/* =============================================
   ProspectAI - Complete Design System
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #6C63FF;
    --primary-dark: #5B52E8;
    --primary-light: #8B83FF;
    --secondary: #00D4FF;
    --accent: #FF6B6B;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    --bg-dark: #0a0a0f;
    --bg-card: #1a1a2e;
    --bg-sidebar: #0f0f1a;
    --bg-input: #16162a;
    --bg-hover: #1e1e38;

    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(108, 99, 255, 0.5);

    --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 15, 26, 0.9) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.3);
    --shadow-glow-sm: 0 0 15px rgba(108, 99, 255, 0.2);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --sidebar-width: 280px;
    --navbar-height: 72px;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

::selection {
    background: var(--primary);
    color: #fff;
}

/* ---------- Utilities ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge-primary {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.08);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Form Inputs ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-input-icon {
    position: relative;
}

.form-input-icon .form-input {
    padding-left: 44px;
}

.form-input-icon svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-error {
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 4px;
}

/* ---------- Cards ---------- */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: rgba(108, 99, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.1);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition-base);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.navbar-brand:hover {
    color: var(--text-primary);
}

.navbar-logo {
    width: 36px;
    height: 36px;
}

.navbar-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
}

.navbar-username {
    font-size: 0.875rem;
    font-weight: 500;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--navbar-height);
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/img/hero-bg.svg') center/cover no-repeat;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Floating cards animation */
.hero-floating-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.floating-card:nth-child(1) { top: 20%; left: 5%; animation-delay: 0s; }
.floating-card:nth-child(2) { top: 30%; right: 5%; animation-delay: 1.5s; }
.floating-card:nth-child(3) { bottom: 25%; left: 8%; animation-delay: 3s; }
.floating-card:nth-child(4) { bottom: 20%; right: 8%; animation-delay: 4.5s; }

.floating-card-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.floating-card-role {
    font-size: 0.75rem;
    color: var(--primary-light);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-20px) rotate(0.5deg); }
}

/* ---------- Features Section ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---------- How It Works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.step h3 {
    margin-bottom: 12px;
}

.step p {
    font-size: 0.9375rem;
}

/* Connector line between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

/* ---------- Integrations Section ---------- */
.integrations {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.integrations-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.integration-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.integration-badge:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(108, 99, 255, 0.05);
}

.integration-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.pricing-plan {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-card .btn {
    width: 100%;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.testimonial-stars {
    color: var(--warning);
    font-size: 0.875rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ---------- CTA Section ---------- */
.cta-section {
    text-align: center;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto 32px;
    font-size: 1.125rem;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-badge {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ---------- Auth Page ---------- */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-visual {
    position: relative;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.8;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}

.auth-visual h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.auth-visual p {
    font-size: 1rem;
    max-width: 400px;
}

/* Animated data visualization on auth page */
.auth-data-viz {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.auth-data-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: left;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.auth-data-card:nth-child(1) { animation-delay: 0.1s; }
.auth-data-card:nth-child(2) { animation-delay: 0.2s; }
.auth-data-card:nth-child(3) { animation-delay: 0.3s; }
.auth-data-card:nth-child(4) { animation-delay: 0.4s; }

.auth-data-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.auth-data-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-card);
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.auth-logo img {
    width: 40px;
    height: 40px;
}

.auth-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.btn-google {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-google:hover {
    background: #f8f8f8;
    box-shadow: var(--shadow-sm);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-toggle {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.auth-toggle a {
    font-weight: 600;
}

/* ---------- Dashboard Layout ---------- */
.dashboard {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-logo img {
    width: 32px;
    height: 32px;
}

.sidebar-logo span {
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-new-session {
    width: 100%;
    padding: 10px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-base);
}

.btn-new-session:hover {
    box-shadow: var(--shadow-glow-sm);
}

.sidebar-search {
    padding: 12px 20px;
}

.sidebar-search input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8125rem;
    outline: none;
}

.sidebar-search input:focus {
    border-color: var(--border-focus);
}

/* Session list */
.sidebar-sessions {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.sidebar-sessions::-webkit-scrollbar {
    width: 4px;
}

.sidebar-sessions::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.session-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    margin-bottom: 2px;
}

.session-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.session-item.active {
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.session-item-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-item-date {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Sidebar sections */
.sidebar-section {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.sidebar-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.sidebar-ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.ai-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.ai-status-dot.disconnected {
    background: var(--text-muted);
}

.sidebar-ai-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-credits {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* ---------- Chat Area ---------- */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-dark);
}

.chat-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.chat-topbar-title {
    font-size: 1rem;
    font-weight: 600;
    cursor: text;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: border-color var(--transition-fast);
    background: transparent;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-sans);
}

.chat-topbar-title:focus {
    border-color: var(--border-focus);
}

.chat-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 6px;
}

/* Chat Bubbles */
.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: fadeInUp 0.3s ease;
}

.chat-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-ai {
    align-self: flex-start;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
}

.chat-avatar-user {
    background: var(--gradient-primary);
}

.chat-avatar-ai {
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.chat-bubble {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    line-height: 1.7;
    word-wrap: break-word;
}

.chat-bubble-user {
    background: var(--gradient-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble-ai {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-bubble-ai p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.chat-bubble-ai p:last-child {
    margin-bottom: 0;
}

.chat-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-8px); opacity: 1; }
}

/* ---------- Prospect Table ---------- */
.prospect-table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.prospect-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.prospect-table th {
    background: rgba(108, 99, 255, 0.08);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-light);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.prospect-table td {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
}

.prospect-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.prospect-table tr.selected td {
    background: rgba(108, 99, 255, 0.05);
}

.prospect-table input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ---------- Chat Input Area ---------- */
.chat-input-area {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.chat-prompt-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.chat-prompt-chips::-webkit-scrollbar {
    display: none;
}

.prompt-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--primary-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.prompt-chip:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: var(--primary);
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.chat-input-wrapper:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.chat-input-wrapper textarea {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    max-height: 150px;
    min-height: 24px;
}

.chat-input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.chat-input-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.chat-input-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.chat-input-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-send {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-md);
}

.btn-send:hover {
    box-shadow: var(--shadow-glow-sm);
}

.btn-send:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chat-char-count {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 6px;
}

/* ---------- Welcome Screen ---------- */
.welcome-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.welcome-screen h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.welcome-screen p {
    max-width: 500px;
    margin-bottom: 40px;
    font-size: 1rem;
}

.welcome-prompts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 700px;
    width: 100%;
}

.welcome-prompt-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-base);
}

.welcome-prompt-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.welcome-prompt-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.welcome-prompt-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.welcome-prompt-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ---------- Modals ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.25rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-lg {
    max-width: 800px;
}

/* Tabs in modal */
.modal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 4px;
}

.modal-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

.modal-tab.active {
    background: var(--primary);
    color: #fff;
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

/* Prompt Library Grid */
.prompt-library-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.prompt-library-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.prompt-library-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    background: rgba(108, 99, 255, 0.05);
}

.prompt-library-icon {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.prompt-library-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.prompt-library-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- Toast Notifications ---------- */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    color: var(--text-primary);
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    transition: all var(--transition-base);
}

.toast.removing {
    animation: slideOutRight 0.3s ease forwards;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--secondary); }

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.125rem;
    padding: 0 4px;
}

/* ---------- Loading States ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.05) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-text:last-child {
    width: 70%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Scroll Animations ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Gradient text animation */
.gradient-animate {
    background: linear-gradient(270deg, #6C63FF, #00D4FF, #6C63FF, #00D4FF);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- FAQ Section ---------- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
    color: var(--text-muted);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.open .faq-answer {
    padding: 0 24px 18px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ---------- 404 Page ---------- */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
}

.error-page h2 {
    margin-bottom: 12px;
}

.error-page p {
    margin-bottom: 32px;
    max-width: 400px;
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .hero-stats {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-base);
    }

    .navbar-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-user {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 16px;
        border-top: 1px solid var(--border);
        width: 100%;
    }

    .features-grid,
    .steps-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid::before {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Dashboard mobile */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-base);
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .welcome-prompts {
        grid-template-columns: 1fr;
    }

    .prompt-library-grid {
        grid-template-columns: 1fr;
    }

    .chat-message {
        max-width: 95%;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .integrations-logos {
        gap: 16px;
    }

    .integration-badge {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .card {
        padding: 24px;
    }

    .pricing-card {
        padding: 28px 24px;
    }

    .modal {
        margin: 16px;
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .floating-card {
        display: none;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ---------- Scrollbar (global) ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- Export button floating ---------- */
.export-float-btn {
    position: fixed;
    bottom: 100px;
    right: 32px;
    z-index: 50;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    display: none;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.3s ease;
    transition: transform var(--transition-fast);
}

.export-float-btn:hover {
    transform: scale(1.05);
}

.export-float-btn.visible {
    display: inline-flex;
}

/* Mobile sidebar toggle button */
.sidebar-mobile-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 50;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .sidebar-mobile-toggle {
        display: flex;
    }
}
