/* ========================================
   IQ TEST - UNIFIED DESIGN SYSTEM
   Modern, Clean, Conversion-Optimized
   ======================================== */

/* ========================================
   1. CSS VARIABLES (Design Tokens)
   ======================================== */

:root {
    /* Primary Colors (Blue) */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    
    /* Secondary/Accent */
    --secondary: #7c3aed;
    --secondary-dark: #6d28d9;
    
    /* Success/Error */
    --success: #10b981;
    --success-dark: #059669;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Neutral Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --background: #fafbfc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow-primary: 0 4px 14px rgba(37, 99, 235, 0.35);
    --shadow-glow-success: 0 4px 14px rgba(16, 185, 129, 0.35);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   2. BASE TYPOGRAPHY
   ======================================== */

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.heading1, .heading2, .heading3, .heading4, .heading5, .heading6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.heading1, h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
}

.heading2, h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
}

.heading3, h3 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 600;
}

.heading4, h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-transform: none;
}

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

/* ========================================
   3. MODERN BUTTONS
   ======================================== */

/* Base Button */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-modern:active {
    transform: scale(0.98);
}

/* Primary Button (Blue - Main CTAs) */
.btn-modern-primary,
.base-button_fill {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: var(--shadow-glow-primary);
    border: none !important;
}

.btn-modern-primary:hover,
.base-button_fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-modern-primary:active,
.base-button_fill:active {
    transform: translateY(0);
}

/* Secondary Button (Purple) */
.btn-modern-secondary {
    background: var(--gradient-secondary);
    color: white !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-modern-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
    color: white !important;
}

/* Success Button (Green) */
.btn-modern-success {
    background: var(--gradient-success);
    color: white !important;
    box-shadow: var(--shadow-glow-success);
}

.btn-modern-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white !important;
}

/* Outline Button */
.btn-modern-outline,
.base-button_stroke {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    box-shadow: none;
}

.btn-modern-outline:hover,
.base-button_stroke:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    transform: translateY(-2px);
    color: var(--primary) !important;
}

/* Button Sizes */
.btn-modern-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-modern-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* Button with shimmer effect */
.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

/* ========================================
   4. MODERN CARDS
   ======================================== */

.card-modern {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.1);
}

.card-modern-content {
    padding: 28px;
}

/* Glass Card */
.card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Auth / Forms container width (avoid relying on Tailwind max-w utilities) */
.auth-card {
    width: 100%;
    max-width: 460px;
}

/* Auth page layout helpers */
.auth-shell {
    width: 100%;
    min-height: calc(100vh - 83px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 0 56px;
}

@media (max-width: 640px) {
    .auth-shell {
        padding: 20px 0 40px;
    }
}

/* Bigger primary CTA on auth pages */
.auth-cta {
    width: 100% !important;
    justify-content: center !important;
    height: 52px !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    border-radius: var(--radius-md) !important;
}

/* Pricing Card */
.card-pricing {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-2xl);
    padding: 48px 40px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.card-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

/* ========================================
   5. FORM INPUTS
   ======================================== */

.input-modern {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

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

.input-modern:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-modern:hover:not(:focus) {
    border-color: var(--text-muted);
}

/* Textarea */
textarea.input-modern {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   6. BADGES & CHIPS
   ======================================== */

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    color: var(--primary);
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: var(--success);
}

/* Stat Badge */
.stat-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-fast);
}

.stat-badge-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   7. SECTION TITLES
   ======================================== */

.section-title-modern {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle-modern {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 0.01em;
    margin-bottom: 60px;
}

/* ========================================
   8. PRICING STYLES
   ======================================== */

.pricing-price-modern,
.pricing-price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.pricing-period-modern,
.pricing-period {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Pricing Card Container */
.pricing-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-2xl);
    padding: 48px 40px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

.pricing-feature-modern {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    transition: all var(--transition-fast);
}

.pricing-feature-modern:hover {
    transform: translateX(5px);
}

.pricing-check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--success);
}

/* ========================================
   9. FAQ CARDS
   ======================================== */

.faq-card-modern {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.faq-card-modern:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.faq-card-modern h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.faq-card-modern h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.faq-card-modern p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   10. STAT NUMBERS
   ======================================== */

.stat-number-modern {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label-modern {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* ========================================
   11. HERO IMAGE CONTAINER
   ======================================== */

.hero-image-modern {
    position: relative;
    transition: all 0.4s ease;
}

.hero-image-modern::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    z-index: -1;
    transition: all 0.4s ease;
}

.hero-image-modern:hover::before {
    top: -12px;
    left: -12px;
}

.hero-image-modern:hover {
    transform: translate(4px, 4px);
}

.hero-image-modern img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ========================================
   12. ANIMATIONS
   ======================================== */

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Animation utility classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* For elements that start hidden and animate in */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    opacity: 1;
}

/* ========================================
   13. UTILITY CLASSES
   ======================================== */

/* Text colors */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }

/* Background colors */
.bg-primary { background-color: var(--primary) !important; }
.bg-surface { background-color: var(--surface) !important; }

/* Hover effects */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-glow:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

/* ========================================
   14. HEADER - Complete Redesign
   ======================================== */

#header-sidebar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border) !important;
    transition: all var(--transition-base);
}

#header-sidebar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Main header container - flex layout */
#header-sidebar header > .max-w-layout {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Header Row - Contains logo and burger */
.header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
}

/* Logo link styling */
.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-link:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* ========================================
   DESKTOP NAVIGATION (>= 768px)
   ======================================== */
@media (min-width: 768px) {
    /* Header row only shows logo on desktop */
    .header-row {
        width: auto;
        flex-shrink: 0;
    }
    
    /* Hide burger on desktop */
    #primary-menu-trigger {
        display: none !important;
    }
    
    /* Primary menu visible and aligned right */
    .primary-menu {
        display: flex !important;
        align-items: center;
        margin-left: auto;
    }
    
    .primary-menu .menu-container {
        display: flex !important;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    /* Hide nav logo on desktop (we use header-logo-link) */
    .primary-menu .menu-container > a:first-child {
        display: none !important;
    }
    
    /* Nav buttons container */
    .primary-menu .menu-container .flex.gap-2,
    .primary-menu .menu-container > .flex {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 12px;
        margin: 0 !important;
    }
    
    /* Nav button base styles */
    .primary-menu .menu-container .base-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        font-family: var(--font-body);
        font-size: 14px;
        font-weight: 600;
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    
    /* Primary button (Login) */
    .primary-menu .menu-container .base-button_fill {
        background: var(--gradient-primary) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    }
    
    .primary-menu .menu-container .base-button_fill:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    }
    
    /* Secondary button (Sign up) */
    .primary-menu .menu-container .base-button_stroke {
        background: transparent !important;
        color: var(--primary) !important;
        border: 2px solid var(--primary) !important;
    }
    
    .primary-menu .menu-container .base-button_stroke:hover {
        background: rgba(37, 99, 235, 0.08) !important;
        transform: translateY(-1px);
    }
}

/* ========================================
   MOBILE NAVIGATION (< 768px)
   ======================================== */
@media (max-width: 767.98px) {
    /* Header row spans full width with logo left, burger right */
    .header-row {
        width: 100%;
    }
    
    /* Burger Menu Trigger */
    #primary-menu-trigger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: background-color 0.2s ease;
        z-index: 100;
        flex-shrink: 0;
        background: transparent;
        border: none;
    }
    
    #primary-menu-trigger:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    /* SVG Trigger Styling */
    #primary-menu-trigger .svg-trigger {
        width: 28px;
        height: 28px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 400ms;
    }
    
    #primary-menu-trigger .svg-trigger path {
        fill: none;
        transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
        stroke: var(--text-primary);
        stroke-width: 5;
        stroke-linecap: round;
    }
    
    #primary-menu-trigger .svg-trigger path:nth-child(1) { stroke-dasharray: 40 160; }
    #primary-menu-trigger .svg-trigger path:nth-child(2) {
        stroke-dasharray: 40 142;
        transform-origin: 50%;
        transition: transform 400ms;
    }
    #primary-menu-trigger .svg-trigger path:nth-child(3) {
        stroke-dasharray: 40 85;
        transform-origin: 50%;
        transition: transform 400ms, stroke-dashoffset 400ms;
    }
    
    /* Burger to X animation */
    body.primary-menu-open #primary-menu-trigger .svg-trigger { 
        transform: rotate(45deg); 
    }
    body.primary-menu-open #primary-menu-trigger .svg-trigger path:nth-child(1),
    body.primary-menu-open #primary-menu-trigger .svg-trigger path:nth-child(3) { 
        stroke-dashoffset: -64px; 
    }
    body.primary-menu-open #primary-menu-trigger .svg-trigger path:nth-child(2) { 
        transform: rotate(90deg); 
    }
    
    /* Mobile Menu Overlay */
    .primary-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 24px;
    }
    
    body.primary-menu-open .primary-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Keep header above overlay */
    body.primary-menu-open #header-sidebar {
        z-index: 1000;
        background: white !important;
    }
    
    /* Menu container centered */
    .primary-menu .menu-container {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        max-width: 300px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    /* Hide nav logo in mobile menu */
    .primary-menu .menu-container > a:first-child {
        display: none !important;
    }
    
    /* Mobile menu buttons container */
    .primary-menu .menu-container .flex.gap-2,
    .primary-menu .menu-container > .flex {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 16px;
        margin: 0;
    }
    
    /* Mobile menu button styles */
    .primary-menu .menu-container .base-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 18px 32px;
        font-family: var(--font-body);
        font-size: 16px;
        font-weight: 600;
        border-radius: 14px;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    /* Primary button (Login) */
    .primary-menu .menu-container .base-button_fill {
        background: var(--gradient-primary) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    }
    
    .primary-menu .menu-container .base-button_fill:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    }
    
    /* Secondary button (Sign up) */
    .primary-menu .menu-container .base-button_stroke {
        background: transparent !important;
        color: var(--primary) !important;
        border: 2px solid var(--primary) !important;
    }
    
    .primary-menu .menu-container .base-button_stroke:hover {
        background: rgba(37, 99, 235, 0.08) !important;
        transform: translateY(-2px);
    }
}

/* Prevent body scroll when mobile menu is open */
body.primary-menu-open {
    overflow: hidden;
}

/* ========================================
   BASE BUTTON OVERRIDES - Ensure visibility
   ======================================== */

/* Base button reset */
.base-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.base-button span {
    display: inline-block;
}

/* Small size */
.base-button_small {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
}

/* Fill style (primary) */
.base-button_fill {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.base-button_fill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    color: white !important;
}

/* Stroke style (outline) */
.base-button_stroke {
    background: transparent !important;
    color: #2563eb !important;
    border: 2px solid #2563eb !important;
}

.base-button_stroke:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    transform: translateY(-1px);
    color: #2563eb !important;
}

/* Navigation links */
.link.link_header {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.link.link_header:hover {
    color: var(--primary);
}

/* ========================================
   15. FOOTER OVERRIDES
   ======================================== */

/* Dark Footer Styles */
.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-family: var(--font-body);
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1f2937;
    color: #ffffff;
    border: 1px solid #374151;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-lang-btn:hover {
    background: #374151;
    border-color: #4b5563;
}

/* ========================================
   16. RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .heading1, h1 {
        font-size: 2rem;
    }
    
    .heading2, h2 {
        font-size: 1.75rem;
    }
    
    .btn-modern {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .card-pricing {
        padding: 32px 24px;
    }
    
    .pricing-price-modern {
        font-size: 2.5rem;
    }
    
    .stat-number-modern {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .btn-modern {
        padding: 12px 20px;
        font-size: 0.875rem;
        width: 100%;
    }
    
    .card-modern-content {
        padding: 20px;
    }
}
