        /* ============================================
           DESIGN SYSTEM & CSS VARIABLES
           File: styles/variables.css
        ============================================ */
        :root {
            /* Dark Theme Colors */
            --primary-50: #f0e7ff;
            --primary-100: #d9c2ff;
            --primary-200: #c19cff;
            --primary-300: #a876ff;
            --primary-400: #9050ff;
            --primary-500: #7928ca;
            --primary-600: #6920b0;
            --primary-700: #591896;
            --primary-800: #49107c;
            --primary-900: #390862;
            
            /* Premium Accent Colors */
            --accent-primary: #8b5cf6;
            --accent-secondary: #6366f1;
            --accent-tertiary: #ec4899;
            
            /* Premium Dark Backgrounds - Very Dark */
            --bg-primary: #000000;
            --bg-secondary: #0a0a0a;
            --bg-tertiary: #141414;
            --bg-elevated: #1a1a1a;
            --bg-overlay: rgba(0, 0, 0, 0.98);
            --bg-card: #0d0d0d;
            
            /* Premium Text Colors */
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.70);
            --text-tertiary: rgba(255, 255, 255, 0.45);
            --text-inverse: #000000;
            
            /* Accent Colors */
            --accent-purple: #8b5cf6;
            --accent-pink: #ec4899;
            --accent-blue: #6366f1;
            --accent-cyan: #06b6d4;
            --accent-green: #10b981;
            --accent-yellow: #f59e0b;
            --accent-red: #ef4444;
            --accent-orange: #f97316;
            
            /* Premium Gradients */
            --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
            --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
            --gradient-accent: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
            --gradient-mesh: radial-gradient(at 40% 20%, rgba(139, 92, 246, 0.25) 0px, transparent 50%),
                            radial-gradient(at 80% 0%, rgba(99, 102, 241, 0.2) 0px, transparent 50%),
                            radial-gradient(at 0% 50%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
            --gradient-hero: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
            --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
            
            /* Spacing Scale */
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-8: 32px;
            --space-10: 40px;
            --space-12: 48px;
            --space-16: 64px;
            --space-20: 80px;
            --space-24: 96px;
            --space-32: 128px;
            
            /* Typography */
            --text-xs: 12px;
            --text-sm: 14px;
            --text-base: 16px;
            --text-lg: 18px;
            --text-xl: 20px;
            --text-2xl: 24px;
            --text-3xl: 30px;
            --text-4xl: 36px;
            --text-5xl: 48px;
            --text-6xl: 60px;
            --text-7xl: 72px;
            --text-8xl: 96px;
            
            /* Premium Border Radius */
            --radius-sm: 6px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --radius-2xl: 24px;
            --radius-3xl: 32px;
            --radius-full: 9999px;
            
            /* Premium Subtle Shadows */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.6);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
            --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
            --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.1);
            --shadow-glow-sm: 0 0 10px rgba(139, 92, 246, 0.2);
            
            /* Premium Border Colors */
            --border-primary: rgba(255, 255, 255, 0.08);
            --border-secondary: rgba(255, 255, 255, 0.05);
            --border-accent: rgba(139, 92, 246, 0.3);
            
            /* 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);
            --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
            
            /* Z-index */
            --z-base: 1;
            --z-dropdown: 1000;
            --z-sticky: 1020;
            --z-fixed: 1030;
            --z-modal-backdrop: 1040;
            --z-modal: 1050;
            --z-popover: 1060;
            --z-tooltip: 1070;
        }

        /* ============================================
           GLOBAL STYLES
           File: styles/global.css
        ============================================ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        *::before,
        *::after {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            font-size: var(--text-base);
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
            letter-spacing: -0.01em;
            font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
        }

        ::selection {
            background: var(--accent-purple);
            color: var(--text-primary);
        }

        ::-webkit-scrollbar {
            width: 12px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--bg-elevated);
            border-radius: var(--radius-full);
            border: 3px solid var(--bg-secondary);
        }

        /* Glass noise texture */
        .glass-card,
        .stat-card,
        .feature-card,
        .step-card,
        .upload-area,
        nav {
            position: relative;
        }

        .glass-card::after,
        .stat-card::after,
        .feature-card::after,
        .step-card::after,
        .upload-area::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
            border-radius: inherit;
            pointer-events: none;
            z-index: 1;
        }

        .glass-card > *,
        .stat-card > *,
        .feature-card > *,
        .step-card > *,
        .upload-area > *,
        nav > * {
            position: relative;
            z-index: 2;
        }

        /* Glass inner border */
        .glass-card,
        .stat-card,
        .feature-card,
        .step-card {
            box-shadow: 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
                0 10px 15px -3px rgba(0, 0, 0, 0.3);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-600);
        }

        /* ============================================
           ANIMATED BACKGROUND
           File: components/AnimatedBackground.css
        ============================================ */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
            background-color: var(--bg-primary);
            background-image: 
                repeating-linear-gradient(
                    -45deg,
                    transparent,
                    transparent 60px,
                    rgba(255, 255, 255, 0.02) 60px,
                    rgba(255, 255, 255, 0.02) 61px
                );
        }

        .bg-gradient-mesh {
            position: absolute;
            top: -20%;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 80%;
            background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
            opacity: 1;
            filter: blur(60px);
            animation: gentlePulse 8s ease-in-out infinite;
        }

        @keyframes gentlePulse {
            0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
            50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
        }

        /* Particles animation disabled after some issuyes when zooming in and out */
        #particles-js {
            display: none;
        }

        .floating-shapes {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .shape {
            position: absolute;
            background: var(--accent-purple);
            border-radius: 50%;
            opacity: 0.1;
            filter: blur(40px);
            animation: float 20s ease-in-out infinite;
        }

        .shape:nth-child(1) {
            width: 300px;
            height: 300px;
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .shape:nth-child(2) {
            width: 200px;
            height: 200px;
            top: 60%;
            right: 10%;
            animation-delay: 2s;
        }

        .shape:nth-child(3) {
            width: 250px;
            height: 250px;
            bottom: 10%;
            left: 50%;
            animation-delay: 4s;
        }

        @keyframes float {
            0%, 100% {
                transform: translate(0, 0) scale(1);
            }
            33% {
                transform: translate(30px, -30px) scale(1.1);
            }
            66% {
                transform: translate(-20px, 20px) scale(0.9);
            }
        }

        /* ============================================
           CONTAINER & LAYOUT
           File: styles/layout.css
        ============================================ */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 var(--space-8);
            position: relative;
            z-index: var(--z-base);
        }

        .section {
            padding: var(--space-32) 0;
            position: relative;
        }

        .section-small {
            padding: var(--space-24) 0;
        }

        .features-section {
            padding: calc(var(--space-32) * 1.5) 0;
        }

        .how-it-works {
            padding: calc(var(--space-32) * 1.5) 0;
            position: relative;
        }

        /* ============================================
           NAVIGATION
           File: components/Navigation.css
        ============================================ */
        nav {
            position: sticky;
            top: 0;
            z-index: var(--z-sticky);
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(20px) saturate(180%);
            box-shadow: var(--shadow-sm);
            border-bottom: 1px solid var(--border-primary);
            transition: all var(--transition-base);
        }

        nav.scrolled {
            box-shadow: var(--shadow-lg);
            background: rgba(0, 0, 0, 0.95);
            border-bottom-color: var(--border-accent);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--space-4) 0;
            gap: var(--space-8);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            font-size: var(--text-2xl);
            font-weight: 700;
            cursor: pointer;
            transition: transform var(--transition-base);
            letter-spacing: -0.02em;
            position: relative;
        }

        .logo:hover {
            transform: scale(1.05);
        }

        .logo-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-md), var(--shadow-glow-sm);
            position: relative;
            overflow: hidden;
        }

        .logo-icon::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .logo-icon svg {
            width: 28px;
            height: 28px;
            fill: white;
            position: relative;
            z-index: 1;
        }

        .nav-links {
            display: flex;
            gap: var(--space-2);
            align-items: center;
        }

        .nav-link {
            padding: var(--space-3) var(--space-5);
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: var(--text-sm);
            font-weight: 500;
            border-radius: var(--radius-lg);
            transition: all var(--transition-base);
            position: relative;
            overflow: hidden;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--accent-purple);
            transform: translateX(-50%);
            transition: width var(--transition-base);
        }

        .nav-link:hover {
            color: var(--text-primary);
            background: rgba(139, 92, 246, 0.1);
        }

        .nav-link:hover::before {
            width: 60%;
        }

        .nav-link.active {
            color: var(--text-primary);
            background: rgba(139, 92, 246, 0.15);
        }

        .nav-link.active::before {
            width: 60%;
        }

        .mobile-menu-toggle {
            display: none !important;
        }

       

        /* ============================================
           MOBILE RESPONSIVE STYLES
        ============================================ */
        @media (max-width: 1024px) {
            :root {
                --space-32: 80px;
                --space-24: 64px;
                --space-20: 48px;
            }

            .container {
                padding: 0 var(--space-6);
            }

            .features-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: var(--space-6);
            }

            .nav-links {
                gap: var(--space-1);
            }

            .nav-link {
                padding: var(--space-2) var(--space-4);
                font-size: var(--text-xs);
            }
        }

    
        @media (min-width: 769px) {
            .nav-links {
                display: flex !important;
                position: static !important;
                right: auto !important;
                transform: none !important;
                width: auto !important;
                height: auto !important;
                padding: 0 !important;
                flex-direction: row !important;
                background: transparent !important;
                border: none !important;
                z-index: auto !important;
                max-width: none !important;
            }
            
            .mobile-menu-toggle {
                display: none !important;
            }
            
            .mobile-menu-overlay {
                display: none !important;
            }
        }

        @media (max-width: 768px) {
            :root {
                --space-32: 60px;
                --space-24: 48px;
                --space-20: 40px;
                --space-16: 48px;
                --space-12: 36px;
                --text-8xl: 48px;
                --text-7xl: 42px;
                --text-6xl: 36px;
                --text-5xl: 32px;
                --text-4xl: 28px;
                --text-3xl: 24px;
            }

            body {
                font-size: 15px;
            }

       
            .shape:nth-child(1) {
                width: 150px !important;
                height: 150px !important;
            }

            .shape:nth-child(2) {
                width: 100px !important;
                height: 100px !important;
            }

            .shape:nth-child(3) {
                width: 120px !important;
                height: 120px !important;
            }

            .bg-gradient-mesh {
                width: 100% !important;
                height: 100% !important;
                filter: blur(40px) !important;
            }

            .mobile-menu-toggle {
                display: none !important;
            }

         
            .nav-links {
                display: none !important;
            }

          
            .language-switcher {
                display: flex !important;
                position: fixed;
                top: 10px;
                right: 20px;
                z-index: 99999 !important;
            }

         
            .language-switcher .lang-dropdown {
                position: fixed !important;
                z-index: 100000 !important;
            }

            .container {
                padding: 0 var(--space-4);
            }

            .hero {
                padding: var(--space-24) var(--space-4) var(--space-16);
            }

            .hero-title {
                font-size: clamp(32px, 10vw, 48px);
            }

            .hero-subtitle {
                font-size: var(--text-base);
            }

            .hero-cta {
                flex-direction: column;
                width: 100%;
                gap: var(--space-3);
            }

            .hero-cta .btn {
                width: 100%;
            }

            .stats-grid {
                grid-template-columns: 1fr;
                gap: var(--space-4);
                margin-top: var(--space-16);
                margin-bottom: var(--space-16);
            }

            .stat-card {
                padding: var(--space-6);
            }

            .stat-number {
                font-size: var(--text-4xl);
            }

            .features-grid {
                grid-template-columns: 1fr;
                gap: var(--space-6);
            }

            .feature-card {
                padding: var(--space-8);
                grid-column: span 1 !important;
                height: auto;
                min-height: auto;
                align-self: start;
            }

            .feature-icon {
                width: 56px;
                height: 56px;
            }

            .feature-icon svg {
                width: 28px;
                height: 28px;
            }

            .section-header {
                margin-bottom: var(--space-12);
            }

            .section-title {
                font-size: clamp(28px, 8vw, 36px);
            }

            .section-description {
                font-size: var(--text-base);
            }

            .upload-area {
                padding: var(--space-8);
            }

            .upload-icon {
                width: 56px;
                height: 56px;
            }

            .upload-icon svg {
                width: 28px;
                height: 28px;
            }

            .file-preview {
                max-height: 300px;
            }

            .analysis-options {
                grid-template-columns: 1fr;
            }

            .option-card {
                padding: var(--space-4);
            }

            .steps-grid {
                grid-template-columns: 1fr;
                gap: var(--space-8);
            }

            .step-card {
                padding: var(--space-6);
            }

            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-8);
            }

            .logo {
                font-size: var(--text-xl);
            }

            .logo-icon {
                width: 40px;
                height: 40px;
            }

            .logo-icon svg {
                width: 24px;
                height: 24px;
            }

            .nav-container {
                padding: var(--space-3) 0;
            }

            .btn {
                padding: var(--space-3) var(--space-6);
                font-size: var(--text-sm);
                min-height: 44px;
            }

            .btn-lg {
                padding: var(--space-4) var(--space-8);
                font-size: var(--text-base);
            }

            .glass-card {
                padding: var(--space-6);
            }
        }

        @media (max-width: 480px) {
            :root {
                --space-32: 48px;
                --space-24: 40px;
                --space-20: 32px;
            }

            .container {
                padding: 0 var(--space-3);
            }

          
            .shape:nth-child(1) {
                width: 100px !important;
                height: 100px !important;
            }

            .shape:nth-child(2) {
                width: 80px !important;
                height: 80px !important;
            }

            .shape:nth-child(3) {
                width: 90px !important;
                height: 90px !important;
            }

            .hero {
                padding: var(--space-20) var(--space-3) var(--space-12);
            }

            .hero-badge {
                font-size: 11px;
                padding: 6px 12px;
            }

            .hero-title {
                font-size: clamp(28px, 12vw, 40px);
                margin-bottom: var(--space-4);
            }

            .hero-subtitle {
                font-size: 14px;
                margin-bottom: var(--space-8);
            }

            .stats-grid {
                gap: var(--space-3);
            }

            .stat-card {
                padding: var(--space-5);
            }

            .stat-number {
                font-size: var(--text-3xl);
            }

            .stat-label {
                font-size: 12px;
            }

            .section-header {
                margin-bottom: var(--space-10);
            }

            .section-badge {
                font-size: 10px;
                padding: 4px 12px;
            }

            .section-title {
                font-size: clamp(24px, 9vw, 32px);
            }

            .section-description {
                font-size: 14px;
            }

            .features-section {
                padding: var(--space-16) 0;
            }

            .features-grid {
                gap: var(--space-5);
            }

            .feature-card {
                padding: var(--space-6);
                grid-column: span 1 !important;
                height: auto;
                min-height: auto;
                align-self: start;
            }

            .feature-icon {
                width: 48px;
                height: 48px;
                margin-bottom: var(--space-4);
            }

            .feature-icon svg {
                width: 24px;
                height: 24px;
            }

            .feature-title {
                font-size: var(--text-lg);
            }

            .feature-description {
                font-size: var(--text-sm);
            }

            .upload-area {
                padding: var(--space-4) var(--space-3);
                min-height: 80px;
                gap: 0;
            }

            .upload-icon {
                width: 36px;
                height: 36px;
                margin: 0 auto var(--space-1);
            }

            .upload-icon svg {
                width: 18px;
                height: 18px;
            }

            .upload-text {
                font-size: var(--text-sm);
                margin-bottom: 1px;
            }

            .upload-subtext {
                font-size: 10px;
            }

          
            .file-info {
                flex-direction: column;
                align-items: stretch;
                gap: var(--space-2);
                padding: var(--space-2) var(--space-3);
                margin-top: var(--space-2);
            }

            .file-icon {
                display: none;
            }

            .file-details {
                text-align: center;
            }

            .file-name {
                font-size: 12px;
            }

            .file-size {
                font-size: 10px;
            }

            .file-remove {
                width: 100%;
                padding: var(--space-1) var(--space-3);
                font-size: 10px;
            }

            .upload-title {
                font-size: var(--text-lg);
            }

            .upload-subtitle {
                font-size: 13px;
            }

            .analysis-options {
                gap: var(--space-3);
            }

            .option-card {
                padding: var(--space-3);
            }

            .option-title {
                font-size: var(--text-sm);
            }

            .option-description {
                font-size: 12px;
            }

            .steps-grid {
                gap: var(--space-6);
            }

            .step-card {
                padding: var(--space-5);
            }

            .step-number {
                width: 56px;
                height: 56px;
                font-size: var(--text-xl);
                margin-bottom: var(--space-4);
            }

            .step-title {
                font-size: var(--text-base);
            }

            .step-description {
                font-size: 13px;
            }

            .footer {
                padding: var(--space-12) var(--space-3);
            }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: var(--space-6);
            }

            .footer-bottom {
                flex-direction: column;
                gap: var(--space-4);
                text-align: center;
            }

            .btn {
                font-size: 14px;
                padding: 12px 20px;
            }

            .logo {
                font-size: var(--text-lg);
            }

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

            .logo-icon svg {
                width: 20px;
                height: 20px;
            }
        }

        /* Touch device optimizations */
        @media (hover: none) and (pointer: coarse) {
            * {
                -webkit-tap-highlight-color: rgba(139, 92, 246, 0.1);
            }

            button, a, [role="button"], .nav-link {
                touch-action: manipulation;
            }

            .btn, .nav-link {
                min-height: 44px;
            }

           
            .btn:hover::before {
                opacity: 0;
            }

            .btn-primary:hover,
            .btn-secondary:hover,
            .btn-outline:hover,
            .btn:hover {
                transform: none !important;
            }

            .feature-card:hover,
            .stat-card:hover {
                transform: none;
            }

            .option-card:hover {
                transform: none;
            }

            .step-card:hover {
                transform: none;
            }

            .glass-card:hover {
                transform: none;
            }
        }

      
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ============================================
        BUTTONS
        File: components/Button.css
        ============================================ */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-2);
            padding: var(--space-4) var(--space-8);
            font-size: var(--text-base);
            font-weight: 600;
            border-radius: var(--radius-lg);
            cursor: pointer;
            transition: all var(--transition-base);
            border: none;
            position: relative;
            overflow: hidden;
            white-space: nowrap;
            font-family: inherit;
            letter-spacing: -0.01em;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
            opacity: 0;
            transition: opacity var(--transition-fast);
            pointer-events: none;
        }

        .btn:hover::before {
            opacity: 1;
        }

        .btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn:active::after {
            width: 300px;
            height: 300px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
            color: var(--text-primary);
            box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 
                        0 8px 16px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .btn-primary:hover {
            box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
                        0 12px 24px rgba(0, 0, 0, 0.5);
            transform: translateY(-2px);
        }

        .btn-primary:active {
            transform: translateY(0);
            box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
                        0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .btn-secondary {
            background: var(--bg-card);
            color: var(--text-primary);
            border: 1px solid var(--border-primary);
            box-shadow: var(--shadow-sm);
        }

        .btn-secondary:hover {
            background: var(--bg-elevated);
            border-color: var(--border-accent);
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .btn-outline {
            background: transparent;
            color: var(--accent-purple);
            border: 1px solid var(--border-accent);
            box-shadow: none;
        }

        .btn-outline:hover {
            background: rgba(139, 92, 246, 0.1);
            box-shadow: var(--shadow-sm);
        }

        .btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none;
        }

        .btn-full {
            width: 100%;
        }

        .btn-lg {
            padding: var(--space-5) var(--space-12);
            font-size: var(--text-lg);
        }

        .btn-sm {
            padding: var(--space-2) var(--space-4);
            font-size: var(--text-sm);
        }

        /* ============================================
           HERO SECTION
           File: components/Hero.css
        ============================================ */
        .hero {
            text-align: center;
            padding: var(--space-32) var(--space-8) var(--space-32);
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: var(--gradient-hero);
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: var(--space-2);
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
            border: 1px solid rgba(139, 92, 246, 0.3);
            padding: var(--space-2) var(--space-4);
            border-radius: var(--radius-full);
            font-size: var(--text-sm);
            font-weight: 600;
            color: var(--accent-purple);
            margin-bottom: var(--space-6);
            animation: float 3s ease-in-out infinite;
            backdrop-filter: blur(10px);
        }

        .hero-badge svg {
            width: 16px;
            height: 16px;
        }

        .hero-title {
            font-size: clamp(var(--text-5xl), 8vw, var(--text-8xl));
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: var(--space-6);
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: fadeInUp 0.8s ease;
        }

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

        .hero-subtitle {
            font-size: var(--text-lg);
            color: var(--text-secondary);
            max-width: 650px;
            margin: 0 auto var(--space-12);
            line-height: 1.6;
            animation: fadeInUp 0.8s ease 0.2s both;
            font-weight: 400;
        }

        .hero-cta {
            display: flex;
            gap: var(--space-4);
            justify-content: center;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s ease 0.4s both;
        }

        .hero-image {
            margin-top: var(--space-20);
            position: relative;
            max-width: 1000px;
            margin-left: auto;
            margin-right: auto;
            animation: fadeInUp 0.8s ease 0.6s both;
        }

        .hero-image-wrapper {
            position: relative;
            border-radius: var(--radius-2xl);
            overflow: hidden;
            box-shadow: var(--shadow-2xl), var(--shadow-glow);
            border: 1px solid var(--border-primary);
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
        }

        .hero-image-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
            opacity: 0;
            transition: opacity var(--transition-base);
        }

        .hero-image-wrapper:hover::before {
            opacity: 0.5;
        }

        /* ============================================
           STATS GRID
           File: components/StatsGrid.css
        ============================================ */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--space-6);
            max-width: 1000px;
            margin: 0 auto var(--space-32);
            margin-top: var(--space-32);
        }

        .stat-card {
            text-align: center;
            padding: var(--space-10);
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid transparent;
            background-image: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)),
                              linear-gradient(135deg, rgba(139, 92, 246, 0.3), transparent 40%);
            background-origin: border-box;
            background-clip: padding-box, border-box;
            border-radius: var(--radius-xl);
            transition: all var(--transition-base);
            position: relative;
            overflow: hidden;
            box-shadow: none;
            backdrop-filter: blur(10px);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.05);
            opacity: 0;
            transition: opacity var(--transition-base);
            z-index: 0;
        }

        .stat-card:hover {
            transform: translateY(-4px);
            background: rgba(255, 255, 255, 0.05);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        }

        .stat-card:hover::before {
            opacity: 1;
        }

        .stat-card > * {
            position: relative;
            z-index: 1;
        }

        .stat-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto var(--space-4);
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.2);
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-base);
        }

        .stat-card:hover .stat-icon {
            background: rgba(139, 92, 246, 0.15);
            border-color: rgba(139, 92, 246, 0.4);
        }

        .stat-icon svg {
            width: 28px;
            height: 28px;
            stroke: var(--accent-purple);
            stroke-width: 1.5;
        }

        .stat-number {
            font-size: var(--text-5xl);
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: var(--space-2);
            font-variant-numeric: tabular-nums;
            letter-spacing: -0.02em;
        }

        .stat-label {
            font-size: var(--text-sm);
            color: var(--text-secondary);
            font-weight: 400;
        }

        /* ============================================
           FEATURES GRID
           File: components/FeaturesGrid.css
        ============================================ */
        .features-section {
            padding: var(--space-32) 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: var(--space-20);
        }

        .section-badge {
            display: inline-flex;
            align-items: center;
            gap: var(--space-2);
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
            border: 1px solid rgba(139, 92, 246, 0.3);
            padding: var(--space-2) var(--space-4);
            border-radius: var(--radius-full);
            font-size: var(--text-xs);
            font-weight: 600;
            color: var(--accent-purple);
            margin-bottom: var(--space-4);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            backdrop-filter: blur(10px);
        }

        .section-title {
            font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
            font-weight: 700;
            margin-bottom: var(--space-4);
            letter-spacing: -0.02em;
            line-height: 1.1;
        }

        .section-description {
            font-size: var(--text-lg);
            color: var(--text-secondary);
            max-width: 650px;
            margin: 0 auto;
            line-height: 1.6;
            font-weight: 400;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: var(--space-8);
            max-width: 1200px;
            margin: 0 auto;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid transparent;
            background-image: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)),
                              linear-gradient(135deg, rgba(139, 92, 246, 0.3), transparent 40%);
            background-origin: border-box;
            background-clip: padding-box, border-box;
            border-radius: var(--radius-xl);
            padding: var(--space-12);
            cursor: pointer;
            transition: all var(--transition-base);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            backdrop-filter: blur(10px);
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.05);
            opacity: 0;
            transition: opacity var(--transition-base);
            z-index: 0;
        }

        .feature-card:hover {
            transform: translateY(-4px);
            background: rgba(255, 255, 255, 0.05);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        }

        .feature-card:hover::before {
            opacity: 1;
        }

        .feature-card > * {
            position: relative;
            z-index: 1;
        }

        .feature-icon {
            width: 72px;
            height: 72px;
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.2);
            border-radius: var(--radius-xl);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: var(--space-6);
            transition: all var(--transition-base);
        }

        .feature-card:hover .feature-icon {
            background: rgba(139, 92, 246, 0.15);
            border-color: rgba(139, 92, 246, 0.4);
            transform: scale(1.05);
        }

        .feature-icon svg {
            width: 36px;
            height: 36px;
            stroke: var(--accent-purple);
            stroke-width: 1.5;
        }

        .feature-title {
            font-size: var(--text-2xl);
            font-weight: 600;
            margin-bottom: var(--space-3);
            color: var(--text-primary);
            letter-spacing: -0.01em;
        }

        .feature-description {
            font-size: var(--text-base);
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: var(--space-6);
            flex-grow: 1;
            font-weight: 400;
        }

        .feature-link {
            display: inline-flex;
            align-items: center;
            gap: var(--space-2);
            color: var(--accent-purple);
            font-weight: 600;
            font-size: var(--text-sm);
            text-decoration: none;
            transition: gap var(--transition-base);
        }

        .feature-link:hover {
            gap: var(--space-3);
        }

        /* ============================================
           HOW IT WORKS
           File: components/HowItWorks.css
        ============================================ */
        .how-it-works {
            padding: var(--space-32) 0;
            position: relative;
        }

        .steps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: var(--space-12);
            margin-top: var(--space-16);
        }

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

        .step-number {
            width: 80px;
            height: 80px;
            margin: 0 auto var(--space-6);
            background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: var(--text-4xl);
            font-weight: 800;
            box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
                        0 8px 16px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .step-number::before {
            content: '';
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            border: 2px dashed rgba(139, 92, 246, 0.3);
            border-radius: var(--radius-full);
            animation: rotate 20s linear infinite;
        }

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

        .step-title {
            font-size: var(--text-2xl);
            font-weight: 600;
            margin-bottom: var(--space-3);
            letter-spacing: -0.01em;
        }

        .step-description {
            font-size: var(--text-base);
            color: var(--text-secondary);
            line-height: 1.6;
            font-weight: 400;
        }

        /* ============================================
           SAMPLE IMAGES
           File: components/SampleImages.css
        ============================================ */
        .samples-section {
            padding: var(--space-24) 0;
        }

        .samples-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: var(--space-6);
            margin-top: var(--space-12);
        }

        .sample-item {
            aspect-ratio: 1;
            border-radius: var(--radius-2xl);
            border: 1px solid rgba(255, 255, 255, 0.08);
            cursor: pointer;
            overflow: hidden;
            transition: all var(--transition-base);
            position: relative;
            background: rgba(255, 255, 255, 0.03);
        }

        .sample-item:hover {
            border-color: var(--accent-purple);
            transform: scale(1.05);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }

        .sample-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .sample-label {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
            padding: var(--space-4) var(--space-3);
            font-size: var(--text-sm);
            text-align: center;
            font-weight: 600;
            transform: translateY(100%);
            transition: transform var(--transition-base);
        }

        .sample-item:hover .sample-label {
            transform: translateY(0);
        }

        /* ============================================
           TESTIMONIALS
           File: components/Testimonials.css
        ============================================ */
        .testimonials-section {
            padding: var(--space-32) 0;
            position: relative;
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: var(--space-8);
            margin-top: var(--space-16);
        }

        .testimonial-card {
            background: var(--bg-secondary);

            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-2xl);
            padding: var(--space-8);
            transition: all var(--transition-base);
        }

        .testimonial-card:hover {
            transform: translateY(-4px);
            border-color: rgba(139, 92, 246, 0.3);
            box-shadow: var(--shadow-lg);
        }

        .testimonial-header {
            display: flex;
            align-items: center;
            gap: var(--space-4);
            margin-bottom: var(--space-4);
        }

        .testimonial-avatar {
            width: 56px;
            height: 56px;
            border-radius: var(--radius-full);
            background: var(--accent-purple);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: var(--text-xl);
            font-weight: 700;
        }

        .testimonial-info {
            flex: 1;
        }

        .testimonial-name {
            font-size: var(--text-base);
            font-weight: 600;
            margin-bottom: var(--space-1);
        }

        .testimonial-role {
            font-size: var(--text-sm);
            color: var(--text-secondary);
        }

        .testimonial-rating {
            display: flex;
            gap: var(--space-1);
            margin-bottom: var(--space-4);
        }

        .star {
            color: var(--accent-yellow);
            font-size: var(--text-base);
        }

        .testimonial-text {
            font-size: var(--text-base);
            color: var(--text-secondary);
            line-height: 1.7;
        }

        /* ============================================
           TRUST SIGNALS
           File: components/TrustSignals.css
        ============================================ */
        .trust-section {
            padding: var(--space-20) 0;
            text-align: center;
        }

        .trust-title {
            font-size: var(--text-lg);
            color: var(--text-secondary);
            margin-bottom: var(--space-8);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 600;
        }

        .trust-logos {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: var(--space-12);
            flex-wrap: wrap;
            opacity: 0.5;
            filter: grayscale(1);
            transition: all var(--transition-base);
        }

        .trust-logos:hover {
            opacity: 0.8;
            filter: grayscale(0);
        }

        .trust-logo {
            font-size: var(--text-xl);
            font-weight: 700;
            color: var(--text-tertiary);
            transition: color var(--transition-base);
        }

        .trust-logo:hover {
            color: var(--text-primary);
        }

        /* ============================================
           FEATURE PAGE
           File: components/FeaturePage.css
        ============================================ */
        .page {
            display: none;
            min-height: calc(100vh - 73px);
            opacity: 0;
            animation: fadeIn 0.5s ease forwards;
        }

        .page.active {
            display: block;
        }

        .feature-page {
            max-width: 1000px;
            margin: 0 auto;
            padding: var(--space-20) var(--space-8) var(--space-24);
        }

        .page-header {
            text-align: center;
            margin-bottom: var(--space-16);
        }

        .page-badge {
            display: inline-flex;
            align-items: center;
            gap: var(--space-2);
            background: var(--bg-elevated);
            padding: var(--space-2) var(--space-4);
            border-radius: var(--radius-full);
            font-size: var(--text-xs);
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: var(--space-4);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            
        }

        .page-title {
            font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
            font-weight: 800;
            margin-bottom: var(--space-4);
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .page-description {
            font-size: var(--text-lg);
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.7;
        }

        /* ============================================
           FORM CONTROLS
           File: components/FormControls.css
        ============================================ */
        .form-section {
            margin-bottom: var(--space-12);
        }

        .form-group {
            margin-bottom: var(--space-8);
        }

        .form-label {
            display: flex;
            align-items: center;
            gap: var(--space-2);
            margin-bottom: var(--space-4);
            font-size: var(--text-base);
            font-weight: 600;
            color: var(--text-primary);
        }

        .tooltip-trigger {
            cursor: help;
            color: var(--text-secondary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            border: 1px solid currentColor;
            border-radius: var(--radius-full);
            font-size: var(--text-xs);
            transition: all var(--transition-fast);
        }

        .tooltip-trigger:hover {
            color: var(--accent-purple);
            background: rgba(139, 92, 246, 0.1);
        }

        .option-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: var(--space-4);
        }

        .option-btn {
            padding: var(--space-6);
            background: var(--bg-secondary);
            
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-xl);
            cursor: pointer;
            transition: all var(--transition-base);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .option-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-elevated);
            opacity: 0;
            transition: opacity var(--transition-base);
        }

        .option-btn:hover {
            border-color: rgba(139, 92, 246, 0.5);
            transform: translateY(-4px);
            box-shadow: var(--shadow-xl), var(--shadow-glow-sm);
        }

        .option-btn.active {
            background: rgba(139, 92, 246, 0.2);
            border-color: var(--accent-purple);
        }

        .option-btn.active::before {
            opacity: 0.5;
        }

        .option-btn.active::after {
            content: '✓';
            position: absolute;
            top: var(--space-2);
            right: var(--space-2);
            width: 28px;
            height: 28px;
            background: var(--accent-purple);
            color: white;
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: var(--text-sm);
            font-weight: 700;
            z-index: 1;
            animation: scaleIn 0.3s ease;
        }

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

        .option-btn > * {
            position: relative;
            z-index: 1;
        }

        .option-icon {
            margin-bottom: var(--space-3);
            display: flex;
            justify-content: center;
        }

        .option-icon svg {
            width: 32px;
            height: 32px;
            stroke: var(--text-secondary);
            transition: stroke var(--transition-base);
        }

        .option-btn.active .option-icon svg {
            stroke: var(--accent-purple);
        }

        .option-label {
            font-size: var(--text-base);
            font-weight: 600;
            color: var(--text-secondary);
            transition: color var(--transition-base);
        }

        .option-btn.active .option-label {
            color: var(--text-primary);
        }

        input[type="number"],
        select {
            width: 100%;
            padding: var(--space-4);
            background: var(--bg-elevated);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-lg);
            color: var(--text-primary);
            font-size: var(--text-base);
            transition: all var(--transition-base);
            font-family: inherit;
        }

        input[type="number"]:hover,
        select:hover {
            border-color: rgba(139, 92, 246, 0.3);
        }

        input[type="number"]:focus,
        select:focus {
            outline: none;
            border-color: var(--accent-purple);
            box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
        }

        /* ============================================
        UPLOAD AREA
        File: components/UploadArea.css
        ============================================ */
        .upload-section {
            margin-bottom: var(--space-12);
        }

        .upload-area {
            border: 2px dashed rgba(139, 92, 246, 0.4);
            border-radius: var(--radius-xl);
            padding: var(--space-8) var(--space-6);
            text-align: center;
            cursor: pointer;
            transition: all var(--transition-base);
            background: rgba(139, 92, 246, 0.02);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
            min-height: 140px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: var(--space-2);
        }

        .upload-area::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
            opacity: 0;
            transition: opacity var(--transition-base);
        }

        .upload-area:hover {
            border-color: var(--accent-purple);
            border-width: 2px;
            transform: translateY(-1px);
            box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
            background: rgba(139, 92, 246, 0.05);
        }

        .upload-area:hover::before {
            opacity: 1;
        }

        .upload-area.dragover {
            border-color: var(--accent-purple);
            border-width: 2px;
            border-style: solid;
            background: rgba(139, 92, 246, 0.08);
            transform: scale(1.01);
            box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
        }

        .upload-area.scanning {
            border-color: var(--accent-purple);
            animation: scanPulse 2s ease-in-out infinite;
        }

        @keyframes scanPulse {
            0%, 100% {
                box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
                border-color: rgba(139, 92, 246, 0.4);
            }
            50% {
                box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
                border-color: rgba(139, 92, 246, 0.6);
            }
        }

        .upload-area.has-file {
            border-color: rgba(139, 92, 246, 0.5);
            border-style: solid;
            background: rgba(139, 92, 246, 0.05);
        }

        .upload-area > * {
            position: relative;
            z-index: 3;
        }

        .upload-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto var(--space-3);
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
            border-radius: var(--radius-xl);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-base);
        }

        .upload-icon svg {
            width: 28px;
            height: 28px;
            stroke: var(--accent-purple);
            stroke-width: 2;
        }

        .upload-area:hover .upload-icon {
            transform: scale(1.05);
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
        }

        .upload-text {
            font-size: var(--text-lg);
            font-weight: 600;
            margin-bottom: var(--space-1);
            color: var(--text-primary);
            letter-spacing: -0.01em;
        }

        .upload-subtext {
            font-size: var(--text-sm);
            color: var(--text-secondary);
            opacity: 0.8;
        }

        .upload-clickable {
            width: 100%;
            display: contents;
        }

        .upload-guide-link {
            margin-top: var(--space-3);
            font-size: var(--text-sm);
            color: var(--accent-purple);
            text-decoration: none;
            transition: all var(--transition-base);
            opacity: 0.8;
            display: inline-flex;
            align-items: center;
            gap: var(--space-1);
        }

        .upload-guide-link:hover {
            opacity: 1;
            text-decoration: underline;
            color: var(--accent-pink);
        }

        .guide-inline {
            margin-top: var(--space-4);
            padding: var(--space-4);
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: var(--radius-lg);
            animation: slideDown 0.3s ease;
        }

        .guide-inline-text {
            font-size: var(--text-sm);
            color: var(--text-primary);
            line-height: 1.6;
        }

        input[type="file"] {
            display: none;
        }

        .file-info {
            margin-top: var(--space-4);
            padding: var(--space-4) var(--space-5);
            background: rgba(139, 92, 246, 0.05);
            border: 1px solid rgba(139, 92, 246, 0.2);
            border-radius: var(--radius-lg);
            display: none;
            align-items: center;
            gap: var(--space-3);
            animation: slideDown 0.3s ease;
        }

        .file-info.show {
            display: flex;
        }

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

        .file-icon {
            width: 40px;
            height: 40px;
            background: rgba(139, 92, 246, 0.12);
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .file-icon svg {
            width: 20px;
            height: 20px;
            stroke: var(--accent-purple);
            stroke-width: 2;
        }

        .file-details {
            flex: 1;
            text-align: left;
            min-width: 0;
        }

        .file-name {
            font-size: var(--text-sm);
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 2px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .file-size {
            font-size: var(--text-xs);
            color: var(--text-secondary);
            opacity: 0.7;
        }

        .file-remove {
            padding: var(--space-2) var(--space-4);
            background: rgba(139, 92, 246, 0.08);
            border: 1px solid rgba(139, 92, 246, 0.2);
            color: var(--text-secondary);
            border-radius: var(--radius-md);
            cursor: pointer;
            font-size: var(--text-xs);
            font-weight: 500;
            transition: all var(--transition-base);
            flex-shrink: 0;
            letter-spacing: 0.01em;
        }

        .file-remove:hover {
            background: rgba(139, 92, 246, 0.15);
            border-color: rgba(139, 92, 246, 0.3);
            color: var(--text-primary);
            transform: translateY(-1px);
        }

        .preview-container {
            margin-top: var(--space-8);
            border-radius: var(--radius-2xl);
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.1);
            display: none;
            animation: fadeIn 0.5s ease;
            background: var(--bg-elevated);
        }

        .preview-container.show {
            display: block;
        }

        .preview-image,
        .preview-video {
            width: 100%;
            height: auto;
            display: block;
            object-fit: contain;
            max-height: 600px;
        }

        .preview-image {
            background: var(--bg-secondary);
        }

        /* ============================================
        LOADING STATES
        File: components/Loading.css
        ============================================ */
        .loading {
            text-align: center;
            padding: var(--space-24);
            display: none;
        }

        .loading.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        /* Skeleton Screen */
        .skeleton-container {
            max-width: 800px;
            margin: 0 auto;
            padding: var(--space-8);
        }

        .skeleton {
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.03) 0%,
                rgba(255, 255, 255, 0.08) 50%,
                rgba(255, 255, 255, 0.03) 100%
            );
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: var(--radius-lg);
        }

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

        .skeleton-header {
            height: 40px;
            width: 60%;
            margin: 0 auto var(--space-8);
            border-radius: var(--radius-xl);
        }

        .skeleton-text {
            height: 16px;
            margin-bottom: var(--space-4);
            border-radius: var(--radius-md);
        }

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

        .skeleton-card {
            height: 200px;
            margin-bottom: var(--space-6);
            border-radius: var(--radius-2xl);
        }

        .skeleton-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: var(--space-6);
            margin-top: var(--space-8);
        }

        .spinner-container {
            position: relative;
            width: 100px;
            height: 100px;
            margin: 0 auto var(--space-8);
            display: none; /* Hide old spinner by default */
        }

        .spinner {
            width: 100px;
            height: 100px;
            border: 5px solid rgba(255, 255, 255, 0.1);
            border-top-color: var(--accent-purple);
            border-radius: var(--radius-full);
            animation: spin 1s linear infinite;
        }

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

        .spinner-glow {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100px;
            height: 100px;
            transform: translate(-50%, -50%);
            border-radius: var(--radius-full);
            background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
            filter: blur(25px);
            opacity: 0.4;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { 
                opacity: 0.4; 
                transform: translate(-50%, -50%) scale(1); 
            }
            50% { 
                opacity: 0.7; 
                transform: translate(-50%, -50%) scale(1.1); 
            }
        }

        .loading-text {
            font-size: var(--text-xl);
            color: var(--text-primary);
            font-weight: 700;
            margin-bottom: var(--space-4);
            letter-spacing: -0.02em;
        }

        .loading-subtext {
            font-size: var(--text-base);
            color: var(--text-secondary);
        }

        /* ============================================
           RESULTS
           File: components/Results.css
        ============================================ */
        .results {
            margin-top: var(--space-20);
            display: none;
            animation: slideUp 0.5s ease;
        }

        .results.show {
            display: block;
        }

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

        .result-card {
            background: var(--bg-secondary);
            border: 1px solid rgba(139, 92, 246, 0.15);
            border-radius: var(--radius-2xl);
            padding: var(--space-12);
            margin-bottom: var(--space-8);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .result-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, rgba(139, 92, 246, 0.6), rgba(99, 102, 241, 0.6));
        }

        .result-card:hover {
            border-color: rgba(139, 92, 246, 0.3);
            box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
            transform: translateY(-2px);
        }

        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-10);
            padding-bottom: var(--space-6);
            border-bottom: 1px solid rgba(139, 92, 246, 0.12);
            flex-wrap: wrap;
            gap: var(--space-4);
        }

        .result-description {
            background: rgba(139, 92, 246, 0.03);
            border-left: 2px solid rgba(139, 92, 246, 0.4);
            padding: var(--space-5) var(--space-6);
            border-radius: var(--radius-lg);
            margin-bottom: var(--space-8);
        }

        .description-text {
            color: var(--text-secondary);
            font-size: var(--text-base);
            line-height: 1.6;
        }

        /* AI Commentary Styles - Premium Minimal */
        .ai-commentary-card {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(59, 130, 246, 0.02));
            border: 1px solid rgba(139, 92, 246, 0.15);
            border-radius: var(--radius-2xl);
            padding: var(--space-8);
            margin-bottom: var(--space-8);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .ai-commentary-card:hover {
            border-color: rgba(139, 92, 246, 0.25);
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.03));
        }

        .ai-commentary-header {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            margin-bottom: var(--space-5);
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--accent-purple);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .ai-commentary-content {
            color: var(--text-primary);
            font-size: 1.0625rem;
            line-height: 1.75;
            letter-spacing: -0.01em;
            font-weight: 400;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .ai-commentary-content p {
            margin-bottom: var(--space-4);
        }

        .ai-commentary-content p:last-child {
            margin-bottom: 0;
        }

        .ai-commentary-loading {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            color: var(--text-tertiary);
            font-size: 0.9375rem;
            font-style: normal;
        }

        .ai-commentary-loading::after {
            content: '';
            display: inline-block;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--text-tertiary);
            animation: loadingDot 1.4s infinite;
        }

        @keyframes loadingDot {
            0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
            40% { opacity: 1; transform: scale(1.2); }
        }

        /* AI Commentary Expandable Section */
        .ai-commentary-expandable {
            margin-top: var(--space-5);
        }

        .ai-expand-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-2);
            width: 100%;
            padding: var(--space-3) var(--space-4);
            background: transparent;
            border: 1px solid rgba(139, 92, 246, 0.2);
            border-radius: var(--radius-lg);
            color: var(--accent-purple);
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .ai-expand-toggle::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.03));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .ai-expand-toggle:hover::before {
            opacity: 1;
        }

        .ai-expand-toggle:hover {
            border-color: rgba(139, 92, 246, 0.4);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
        }

        .ai-expand-toggle:active {
            transform: translateY(0);
        }

        .expand-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 1;
        }

        .expand-icon svg {
            width: 100%;
            height: 100%;
            stroke-width: 2.5;
        }

        .ai-commentary-expandable.expanded .expand-icon {
            transform: rotate(180deg);
        }

        .expand-text {
            position: relative;
            z-index: 1;
            letter-spacing: 0.02em;
        }

        .ai-expand-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .ai-expand-inner {
            padding: var(--space-6) var(--space-5) var(--space-4);
            color: var(--text-primary);
            font-size: 1rem;
            line-height: 1.7;
            letter-spacing: -0.01em;
            white-space: pre-wrap;
            word-wrap: break-word;
            background: linear-gradient(180deg, rgba(139, 92, 246, 0.02), transparent);
            border-radius: var(--radius-lg);
            margin-top: var(--space-4);
            border: 1px solid rgba(139, 92, 246, 0.08);
        }

        .ai-expand-inner p {
            margin-bottom: var(--space-4);
        }

        .ai-expand-inner p:last-child {
            margin-bottom: 0;
        }

        /* Structured content headings in expandable section */
        .ai-expand-inner strong {
            display: block;
            color: var(--accent-purple);
            font-weight: 600;
            font-size: 0.9375rem;
            margin-top: var(--space-5);
            margin-bottom: var(--space-3);
            letter-spacing: 0.02em;
        }

        .ai-expand-inner strong:first-child {
            margin-top: 0;
        }

        /* Section heading spans in main commentary content (produced by parseMarkdownBold) */
        .ai-commentary-content .ai-section-head {
            display: block;
            color: var(--accent-purple);
            font-weight: 700;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-top: var(--space-5);
            margin-bottom: var(--space-2);
        }

        .ai-commentary-content .ai-section-head:first-child {
            margin-top: 0;
        }

        .result-label {
            font-size: var(--text-4xl);
            font-weight: 800;
            background: var(--accent-purple);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .confidence-badge {
            background: var(--accent-purple);
            color: white;
            padding: var(--space-3) var(--space-6);
            border-radius: var(--radius-full);
            font-size: var(--text-base);
            font-weight: 700;
            box-shadow: var(--shadow-xl), var(--shadow-glow-sm);
            animation: fadeIn 0.5s ease 0.3s both;
        }

        .confidence-meter {
            margin-bottom: var(--space-10);
        }

        .meter-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: var(--space-3);
            font-size: var(--text-sm);
        }

        .meter-label-text {
            color: rgba(139, 92, 246, 0.6);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-size: 0.75rem;
        }

        .meter-label-value {
            color: var(--accent-purple);
            font-weight: 600;
            font-size: var(--text-base);
        }

        .meter-bar {
            height: 14px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-full);
            overflow: hidden;
            position: relative;
        }

        .meter-fill {
            height: 100%;
            background: var(--accent-purple);
            border-radius: var(--radius-full);
            animation: fillBar 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
            transform-origin: left;
            position: relative;
        }

        .meter-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shimmerBar 2s infinite;
        }

        @keyframes fillBar {
            from { transform: scaleX(0); }
            to { transform: scaleX(1); }
        }

        @keyframes shimmerBar {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .result-details {
            display: grid;
            gap: var(--space-4);
            margin-bottom: var(--space-10);
        }

        .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--space-5);
            background: rgba(255, 255, 255, 0.05);
            border-radius: var(--radius-lg);
            transition: all var(--transition-base);
        }

        .result-item:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateX(4px);
        }

        .result-item-label {
            color: var(--text-secondary);
            font-size: var(--text-base);
            font-weight: 500;
        }

        .result-item-value {
            color: var(--text-primary);
            font-weight: 600;
            font-size: var(--text-base);
        }

        .predictions-list {
            margin-top: var(--space-12);
        }

        .predictions-title {
            font-size: var(--text-2xl);
            font-weight: 700;
            margin-bottom: var(--space-6);
            display: flex;
            align-items: center;
            gap: var(--space-3);
        }

        .predictions-title::before {
            content: '';
            width: 5px;
            height: 32px;
            background: var(--accent-purple);
            border-radius: var(--radius-full);
        }

        .prediction-item {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-lg);
            padding: var(--space-5);
            margin-bottom: var(--space-3);
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all var(--transition-base);
            animation: fadeIn 0.3s ease;
            gap: var(--space-4);
        }

        .prediction-item:hover {
            border-color: rgba(139, 92, 246, 0.5);
            transform: translateX(6px);
            background: rgba(139, 92, 246, 0.1);
        }

        .prediction-name {
            font-size: var(--text-base);
            color: var(--text-primary);
            font-weight: 500;
        }

        .prediction-confidence {
            font-size: var(--text-sm);
            color: var(--text-secondary);
            font-weight: 600;
            padding: var(--space-2) var(--space-4);
            background: rgba(139, 92, 246, 0.1);
            border-radius: var(--radius-lg);
        }

        /* ============================================
           ENHANCED RESULT COMPONENTS
           File: components/EnhancedResults.css
        ============================================ */
        .result-title {
            font-size: var(--text-3xl);
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: var(--space-2);
            letter-spacing: -0.02em;
        }

        .result-subtitle {
            font-size: var(--text-sm);
            color: rgba(139, 92, 246, 0.7);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .result-emoji {
            font-size: 64px;
            margin-bottom: var(--space-4);
        }

        .confidence-badge-large {
            background: rgba(139, 92, 246, 0.1);
            color: var(--accent-purple);
            padding: var(--space-4) var(--space-6);
            border-radius: var(--radius-xl);
            font-size: var(--text-2xl);
            font-weight: 700;
            border: 1px solid rgba(139, 92, 246, 0.3);
        }

        .confidence-meter-visual {
            margin: var(--space-8) 0;
            padding: var(--space-6);
            background: rgba(139, 92, 246, 0.03);
            border-radius: var(--radius-xl);
            border: 1px solid rgba(139, 92, 246, 0.12);
        }

        .meter-bar-large {
            height: 8px;
            background: rgba(139, 92, 246, 0.08);
            border-radius: var(--radius-full);
            overflow: hidden;
            position: relative;
        }

        .meter-fill-animated {
            height: 100%;
            background: linear-gradient(90deg, rgba(139, 92, 246, 0.8), rgba(99, 102, 241, 0.8));
            border-radius: var(--radius-full);
            animation: fillBar 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            transform-origin: left;
            box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
        }

        .result-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--space-4);
            margin: var(--space-8) 0;
        }

        .info-card {
            background: rgba(139, 92, 246, 0.03);
            border: 1px solid rgba(139, 92, 246, 0.12);
            border-radius: var(--radius-xl);
            padding: var(--space-6) var(--space-5);
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .info-card:hover {
            background: rgba(139, 92, 246, 0.08);
            border-color: rgba(139, 92, 246, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
        }

        .info-label {
            font-size: 0.75rem;
            color: var(--text-tertiary);
            margin-bottom: var(--space-2);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .info-value {
            font-size: var(--text-lg);
            color: var(--text-primary);
            font-weight: 600;
        }

       
        .comprehensive-results-container {
            display: flex;
            flex-direction: column;
            gap: var(--space-6);
            margin-top: var(--space-6);
            width: 100%;
            position: relative;
        }

        .comp-result-card {
            background: var(--bg-secondary);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-2xl);
            padding: var(--space-8);
            animation: fadeIn 0.5s ease;
            transition: border-color var(--transition-base), box-shadow var(--transition-base);
            position: relative;
            isolation: isolate;
            width: 100%;
            box-sizing: border-box;
        }

        @media (min-width: 769px) {
            .comp-result-card:hover {
                transform: translateY(-2px);
                box-shadow: var(--shadow-xl);
                border-color: rgba(139, 92, 246, 0.3);
            }
        }

        .comp-card-header {
            display: flex;
            align-items: center;
            gap: var(--space-4);
            margin-bottom: var(--space-6);
            padding-bottom: var(--space-4);
            border-bottom: 2px solid rgba(255, 255, 255, 0.05);
        }

        .comp-icon-wrapper {
            width: 56px;
            height: 56px;
            min-width: 56px;
            background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
            border-radius: var(--radius-xl);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            box-shadow: var(--shadow-glow-sm);
        }

        .comp-header-content {
            flex: 1;
            min-width: 0;
        }

        .comp-label {
            font-size: var(--text-sm);
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 600;
            margin-bottom: var(--space-1);
        }

        .comp-value {
            font-size: var(--text-2xl);
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.2;
        }

        .comp-confidence {
            font-size: var(--text-xl);
            font-weight: 700;
            color: var(--accent-purple);
            min-width: 70px;
            text-align: right;
        }

        .comp-meter {
            margin-top: var(--space-4);
            margin-bottom: var(--space-2);
        }

        .comp-meter-bar {
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-full);
            overflow: hidden;
            position: relative;
        }

        .comp-meter-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
            border-radius: var(--radius-full);
            transition: width 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            animation: fillBar 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
        }

        .comp-meter-label {
            display: flex;
            justify-content: space-between;
            font-size: var(--text-xs);
            color: var(--text-tertiary);
            margin-top: var(--space-2);
        }

        .comp-details {
            margin-top: var(--space-6);
        }

        .comp-detail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--space-4);
        }

        .comp-detail-item {
            padding: var(--space-4);
            background: rgba(139, 92, 246, 0.05);
            border: 1px solid rgba(139, 92, 246, 0.15);
            border-radius: var(--radius-lg);
        }

        .comp-detail-label {
            font-size: var(--text-xs);
            color: var(--accent-purple);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
            margin-bottom: var(--space-2);
        }

        .comp-detail-value {
            font-size: var(--text-base);
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .comp-description {
            margin-top: var(--space-4);
            padding: var(--space-4);
            background: rgba(255, 255, 255, 0.02);
            border-left: 3px solid var(--accent-purple);
            border-radius: var(--radius-md);
        }

        .comp-description-text {
            font-size: var(--text-base);
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .comp-health-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: var(--space-6);
            margin-bottom: var(--space-6);
        }

        .comp-health-item {
            background: rgba(255, 255, 255, 0.03);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-xl);
            padding: var(--space-6);
            transition: all var(--transition-base);
        }

        .comp-health-item:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(139, 92, 246, 0.3);
        }

        .comp-health-item.healthy {
            border-color: rgba(16, 185, 129, 0.3);
            background: rgba(16, 185, 129, 0.05);
        }

        .comp-health-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-3);
        }

        .comp-health-icon {
            font-size: 32px;
        }

        .comp-health-badge {
            padding: var(--space-2) var(--space-3);
            background: rgba(139, 92, 246, 0.2);
            color: var(--accent-purple);
            border-radius: var(--radius-md);
            font-size: var(--text-sm);
            font-weight: 600;
        }

        .comp-health-item.healthy .comp-health-badge {
            background: rgba(16, 185, 129, 0.2);
            color: var(--accent-green);
        }

        .comp-health-title {
            font-size: var(--text-sm);
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: var(--space-1);
        }

        .comp-health-value {
            font-size: var(--text-xl);
            font-weight: 700;
            color: var(--text-primary);
        }

        .comp-disclaimer {
            background: rgba(139, 92, 246, 0.1);
            border: 2px solid rgba(139, 92, 246, 0.3);
            border-radius: var(--radius-xl);
            padding: var(--space-6);
            display: flex;
            gap: var(--space-4);
            align-items: start;
            margin-top: var(--space-6);
        }

        .comp-disclaimer-icon {
            font-size: 28px;
            min-width: 28px;
        }

        .comp-disclaimer-content h4 {
            font-size: var(--text-base);
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: var(--space-2);
        }

        .comp-disclaimer-content p {
            font-size: var(--text-sm);
            color: var(--text-secondary);
            line-height: 1.6;
            margin: 0;
        }

        .comp-info-message {
            text-align: center;
            padding: var(--space-8);
            background: rgba(59, 130, 246, 0.1);
            border: 2px solid rgba(59, 130, 246, 0.3);
            border-radius: var(--radius-xl);
        }

        .comp-info-icon {
            font-size: 48px;
            margin-bottom: var(--space-3);
        }

        .comp-info-text {
            font-size: var(--text-base);
            color: var(--text-secondary);
            line-height: 1.6;
        }

      
        .available-features-section {
            margin-top: var(--space-8);
            padding-top: var(--space-6);
            border-top: 2px solid rgba(255, 255, 255, 0.05);
        }

        .features-header {
            font-size: var(--text-lg);
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: var(--space-4);
        }

        .features-grid-compact {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: var(--space-3);
        }

        .feature-item-compact {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            padding: var(--space-3) var(--space-4);
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: var(--radius-lg);
            cursor: pointer;
            transition: all var(--transition-base);
        }

        .feature-item-compact.available:hover {
            background: rgba(139, 92, 246, 0.1);
            border-color: rgba(139, 92, 246, 0.3);
            transform: translateY(-2px);
        }

        .feature-item-compact.unavailable {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .feature-icon-small {
            font-size: 20px;
        }

        .feature-name {
            flex: 1;
            font-size: var(--text-sm);
            color: var(--text-secondary);
        }

        .feature-status {
            font-size: var(--text-sm);
            font-weight: 700;
        }

        .feature-item-compact.available .feature-status {
            color: var(--accent-green);
        }

        .feature-item-compact.unavailable .feature-status {
            color: var(--accent-red);
        }

        .features-note {
            margin-top: var(--space-4);
            font-size: var(--text-sm);
            color: var(--text-tertiary);
            text-align: center;
        }

        @media (max-width: 480px) {
            .features-grid-compact {
                grid-template-columns: 1fr;
            }
        }

        .predictions-chart-card {
            background: var(--bg-secondary);
            border: 1px solid rgba(139, 92, 246, 0.12);
            border-radius: var(--radius-2xl);
            padding: var(--space-10);
            margin-top: var(--space-8);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .chart-title {
            font-size: var(--text-xl);
            font-weight: 600;
            margin-bottom: var(--space-8);
            color: var(--text-primary);
            padding-bottom: var(--space-4);
            border-bottom: 1px solid rgba(139, 92, 246, 0.15);
        }

        .horizontal-bar-chart {
            display: flex;
            flex-direction: column;
            gap: var(--space-5);
        }

        .chart-bar-item {
            display: grid;
            grid-template-columns: 160px 1fr 90px;
            align-items: center;
            gap: var(--space-4);
            padding: var(--space-3);
            border-radius: var(--radius-lg);
            transition: all 0.3s ease;
            animation: slideInLeft 0.5s ease;
            position: relative;
        }

        .chart-bar-item:hover {
            background: rgba(139, 92, 246, 0.03);
            transform: translateX(2px);
        }

        .chart-bar-item.top-prediction {
            padding: var(--space-5);
            background: rgba(139, 92, 246, 0.08);
            border-radius: var(--radius-xl);
            border: 1px solid rgba(139, 92, 246, 0.25);
            box-shadow: 0 2px 8px rgba(139, 92, 246, 0.12);
        }

        .chart-bar-label {
            font-size: var(--text-base);
            font-weight: 600;
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .chart-bar-item.top-prediction .chart-bar-label {
            font-weight: 700;
            font-size: var(--text-lg);
            color: var(--accent-purple);
        }

        .chart-bar-container {
            background: rgba(139, 92, 246, 0.08);
            border-radius: var(--radius-full);
            height: 12px;
            overflow: hidden;
            position: relative;
        }

        .chart-bar-item.top-prediction .chart-bar-container {
            height: 14px;
            background: rgba(139, 92, 246, 0.12);
        }

        .chart-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, rgba(139, 92, 246, 0.6), rgba(99, 102, 241, 0.6));
            border-radius: var(--radius-full);
            transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .chart-bar-item.top-prediction .chart-bar-fill {
            background: linear-gradient(90deg, rgba(139, 92, 246, 0.9), rgba(99, 102, 241, 0.9));
            box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
        }

        .chart-bar-value {
            font-size: var(--text-sm);
            font-weight: 600;
            color: var(--text-secondary);
            text-align: right;
            min-width: 60px;
            font-variant-numeric: tabular-nums;
        }

        .chart-bar-item.top-prediction .chart-bar-value {
            font-size: var(--text-base);
            color: var(--accent-purple);
            font-weight: 700;
        }

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

       
        /* Minimal inline feedback */
        .feedback-inline {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-3);
            margin-top: var(--space-6);
            padding: var(--space-3) 0;
        }

        .feedback-prompt {
            font-size: var(--text-sm);
            color: var(--text-secondary);
        }

        .feedback-thumb {
            background: none;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: var(--radius-lg);
            padding: var(--space-2);
            cursor: pointer;
            color: var(--text-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            width: 32px;
            height: 32px;
        }

        .feedback-thumb:hover {
            border-color: rgba(139, 92, 246, 0.4);
            color: var(--accent-purple);
            background: rgba(139, 92, 246, 0.08);
        }

        .feedback-thumb svg {
            width: 16px;
            height: 16px;
        }

        .feedback-thumb.selected {
            border-color: rgba(139, 92, 246, 0.5);
            color: var(--accent-purple);
            background: rgba(139, 92, 246, 0.12);
        }

        .feedback-thanks {
            font-size: var(--text-sm);
            color: var(--text-tertiary);
            text-align: center;
            padding: var(--space-3) 0;
            margin-top: var(--space-6);
        }

        /* Dislike feedback form */
        .dislike-form {
            margin-top: var(--space-4);
            padding: var(--space-5);
            background: var(--bg-secondary);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: var(--radius-xl);
            animation: tabFadeIn 0.25s ease;
        }

        .dislike-form-title {
            font-size: var(--text-sm);
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: var(--space-3);
        }

        .dislike-categories {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-2);
            margin-bottom: var(--space-4);
        }

        .dislike-cat-btn {
            padding: var(--space-2) var(--space-3);
            font-size: var(--text-xs);
            font-weight: 500;
            font-family: inherit;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: var(--radius-lg);
            background: none;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
        }

        .dislike-cat-btn:hover {
            border-color: rgba(139, 92, 246, 0.3);
            color: var(--text-primary);
        }

        .dislike-cat-btn.selected {
            border-color: var(--accent-purple);
            background: rgba(139, 92, 246, 0.12);
            color: var(--accent-purple);
        }

        .dislike-textarea {
            width: 100%;
            min-height: 70px;
            padding: var(--space-3);
            font-size: var(--text-sm);
            font-family: inherit;
            color: var(--text-primary);
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-lg);
            resize: vertical;
            margin-bottom: var(--space-3);
            transition: border-color 0.2s;
        }

        .dislike-textarea:focus {
            outline: none;
            border-color: rgba(139, 92, 246, 0.4);
        }

        .dislike-textarea::placeholder {
            color: var(--text-tertiary);
        }

        .dislike-actions {
            display: flex;
            gap: var(--space-2);
            justify-content: flex-end;
        }

        .dislike-btn {
            padding: var(--space-2) var(--space-4);
            font-size: var(--text-xs);
            font-weight: 600;
            font-family: inherit;
            border-radius: var(--radius-lg);
            cursor: pointer;
            transition: all 0.2s;
        }

        .dislike-btn-skip {
            background: none;
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-tertiary);
        }

        .dislike-btn-skip:hover {
            border-color: rgba(255, 255, 255, 0.25);
            color: var(--text-secondary);
        }

        .dislike-btn-submit {
            background: var(--accent-purple);
            border: none;
            color: white;
        }

        .dislike-btn-submit:hover {
            background: rgba(139, 92, 246, 0.85);
        }

        .dislike-btn-submit:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .dislike-select {
            width: 100%;
            padding: var(--space-3);
            font-size: var(--text-sm);
            font-family: inherit;
            color: var(--text-primary);
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-lg);
            margin-bottom: var(--space-4);
            cursor: pointer;
            transition: border-color 0.2s;
            appearance: none;
            -webkit-appearance: none;
            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='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right var(--space-3) center;
            padding-right: var(--space-8);
        }

        .dislike-select:focus {
            outline: none;
            border-color: rgba(139, 92, 246, 0.4);
        }

        .dislike-select option {
            background: var(--bg-secondary);
            color: var(--text-primary);
        }

        /* Ear Screening Assessment Card */
        .ear-assessment-card {
            background: var(--bg-secondary);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-2xl);
            padding: var(--space-8);
            margin-top: var(--space-4);
        }

        .ear-assessment-card.ear-healthy {
            border-color: rgba(16, 185, 129, 0.3);
        }

        .ear-assessment-card.ear-minor {
            border-color: rgba(251, 191, 36, 0.3);
        }

        .ear-assessment-card.ear-attention {
            border-color: rgba(239, 68, 68, 0.3);
        }

        .ear-assessment-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: var(--space-6);
            flex-wrap: wrap;
            gap: var(--space-3);
        }

        .ear-assessment-badge {
            display: inline-flex;
            align-items: center;
            gap: var(--space-2);
            padding: var(--space-2) var(--space-4);
            border-radius: var(--radius-full);
            font-size: var(--text-sm);
            font-weight: 600;
        }

        .ear-assessment-badge.ear-healthy {
            background: rgba(16, 185, 129, 0.15);
            color: var(--accent-green);
        }

        .ear-assessment-badge.ear-minor {
            background: rgba(251, 191, 36, 0.15);
            color: #fbbf24;
        }

        .ear-assessment-badge.ear-attention {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }

        .ear-meta {
            display: flex;
            gap: var(--space-4);
            font-size: var(--text-xs);
            color: var(--text-tertiary);
        }

        .ear-assessment-section {
            margin-bottom: var(--space-5);
        }

        .ear-assessment-section:last-of-type {
            margin-bottom: 0;
        }

        .ear-section-label {
            font-size: var(--text-xs);
            font-weight: 600;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: var(--space-2);
        }

        .ear-section-text {
            font-size: var(--text-base);
            color: var(--text-primary);
            line-height: 1.7;
        }

        .ear-recommendation {
            background: rgba(139, 92, 246, 0.06);
            border-radius: var(--radius-xl);
            padding: var(--space-4);
        }

        .ear-disclaimer {
            display: flex;
            align-items: flex-start;
            gap: var(--space-2);
            margin-top: var(--space-4);
            padding: var(--space-3) var(--space-4);
            font-size: var(--text-xs);
            color: var(--text-tertiary);
            line-height: 1.5;
        }

        .ear-disclaimer svg {
            flex-shrink: 0;
            margin-top: 1px;
        }

        /* Health Screening Specific Styles */
        .result-icon {
            font-size: 48px;
            margin-bottom: var(--space-3);
        }

        .healthy-result {
            border-color: rgba(16, 185, 129, 0.3);
        }

        .healthy-result::before {
            background: var(--accent-green);
        }

        .badge-success {
            background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
        }

        .fill-success {
            background: linear-gradient(90deg, var(--accent-green) 0%, #059669 100%);
        }

        /* Medical Disclaimer - Collapsible */
        .medical-disclaimer {
            background: rgba(139, 92, 246, 0.04);
            border: 1px solid rgba(139, 92, 246, 0.2);
            border-radius: var(--radius-2xl);
            margin: var(--space-8) 0;
            overflow: hidden;
            transition: all var(--transition-base);
        }

        .medical-disclaimer:hover {
            background: rgba(139, 92, 246, 0.06);
            border-color: rgba(139, 92, 246, 0.3);
        }

        .disclaimer-toggle {
            width: 100%;
            background: transparent;
            border: none;
            padding: var(--space-5);
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: all var(--transition-base);
            color: var(--text-primary);
        }

        .disclaimer-toggle:hover {
            background: rgba(139, 92, 246, 0.08);
        }

        .disclaimer-toggle-left {
            display: flex;
            align-items: center;
            gap: var(--space-3);
        }

        .medical-disclaimer .disclaimer-icon {
            width: 36px;
            height: 36px;
            min-width: 36px;
            background: rgba(139, 92, 246, 0.15);
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border: 1px solid rgba(139, 92, 246, 0.3);
        }

        .medical-disclaimer .disclaimer-icon svg {
            width: 20px;
            height: 20px;
            color: var(--accent-purple);
        }

        .medical-disclaimer .disclaimer-title {
            color: var(--accent-purple);
            font-weight: 600;
            font-size: var(--text-base);
            letter-spacing: -0.01em;
        }

        .disclaimer-chevron {
            width: 20px;
            height: 20px;
            color: var(--accent-purple);
            transition: transform var(--transition-base);
            flex-shrink: 0;
        }

        .disclaimer-toggle[aria-expanded="true"] .disclaimer-chevron {
            transform: rotate(180deg);
        }

        .medical-disclaimer .disclaimer-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0 var(--space-5);
        }

        .medical-disclaimer.expanded .disclaimer-content {
            max-height: 500px;
            padding: 0 var(--space-5) var(--space-5);
        }

        .medical-disclaimer .disclaimer-text {
            color: var(--text-secondary);
            font-size: var(--text-sm);
            line-height: 1.7;
        }

        /* Error Card Styles */
        .error-card {
            background: rgba(239, 68, 68, 0.1);
            border: 2px solid var(--accent-red);
            border-radius: var(--radius-2xl);
            padding: var(--space-12);
            margin-bottom: var(--space-8);
            animation: fadeIn 0.5s ease;
        }

        .error-header {
            display: flex;
            align-items: center;
            gap: var(--space-4);
            margin-bottom: var(--space-8);
        }

        .error-icon {
            font-size: 48px;
            flex-shrink: 0;
        }

        .error-title {
            font-size: var(--text-3xl);
            font-weight: 700;
            color: var(--accent-red);
            margin-bottom: var(--space-1);
        }

        .error-subtitle {
            font-size: var(--text-base);
            color: var(--text-secondary);
        }

        .error-content {
            background: rgba(0, 0, 0, 0.3);
            border-radius: var(--radius-lg);
            padding: var(--space-6);
        }

        .error-message {
            color: var(--text-primary);
            font-size: var(--text-base);
            line-height: 1.7;
            margin-bottom: var(--space-6);
            padding-bottom: var(--space-6);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .error-suggestions h4 {
            color: var(--text-primary);
            font-size: var(--text-lg);
            font-weight: 600;
            margin-bottom: var(--space-4);
        }

        .error-suggestions ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .error-suggestions li {
            color: var(--text-secondary);
            font-size: var(--text-base);
            line-height: 1.8;
            padding-left: var(--space-8);
            position: relative;
            margin-bottom: var(--space-3);
        }

        .error-suggestions li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--accent-red);
            font-weight: 700;
        }

      

        /* ============================================
           FEEDBACK SECTION
           File: components/Feedback.css
        ============================================ */
        .feedback-section {
            margin-top: var(--space-20);
            padding: var(--space-12);
            background: var(--bg-secondary);
            
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-2xl);
            display: none;
            animation: slideUp 0.5s ease;
        }

        .feedback-section.show {
            display: block;
        }

        /* ============================================
           TOAST NOTIFICATIONS
           File: components/Toast.css
        ============================================ */
        .toast-container {
            position: fixed;
            top: var(--space-8);
            right: var(--space-8);
            z-index: var(--z-tooltip);
            display: flex;
            flex-direction: column;
            gap: var(--space-3);
            max-width: 450px;
            pointer-events: none; 
        }

        .toast {
            background: var(--bg-elevated);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-xl);
            padding: var(--space-5) var(--space-6);
            display: flex;
            align-items: flex-start;
            gap: var(--space-4);
            box-shadow: var(--shadow-2xl);
            animation: slideInRight 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            position: relative;
            overflow: hidden;
            pointer-events: auto; 
        }

        .toast::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--accent-purple);
            animation: toastProgress 3s linear;
            transform-origin: left;
        }

        .toast.success {
            border-color: rgba(16, 185, 129, 0.3);
        }

        .toast.success::before {
            background: var(--accent-green);
        }

        .toast.error {
            border-color: rgba(239, 68, 68, 0.3);
        }

        .toast.error::before {
            background: var(--accent-red);
        }

        .toast.warning {
            border-color: rgba(245, 158, 11, 0.3);
        }

        .toast.warning::before {
            background: var(--accent-yellow);
        }

        .toast-icon {
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: var(--text-base);
        }

        .toast.success .toast-icon {
            color: var(--accent-green);
        }

        .toast.error .toast-icon {
            color: var(--accent-red);
        }

        .toast.warning .toast-icon {
            color: var(--accent-yellow);
        }

        .toast.info .toast-icon {
            color: var(--accent-purple);
        }

        .toast-content {
            flex: 1;
        }

        .toast-title {
            font-weight: 600;
            font-size: var(--text-base);
            margin-bottom: var(--space-1);
        }

        .toast-message {
            font-size: var(--text-sm);
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .toast-close {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: var(--space-1);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            transition: all var(--transition-fast);
            font-size: var(--text-xl);
            line-height: 1;
            width: 28px;
            height: 28px;
        }

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

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

        @keyframes toastProgress {
            from { transform: scaleX(1); }
            to { transform: scaleX(0); }
        }

        @keyframes toastMessageUpdate {
            0% { opacity: 0.6; transform: translateX(-5px); }
            100% { opacity: 1; transform: translateX(0); }
        }

       
        .spinner-small {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(168, 85, 247, 0.2);
            border-top-color: var(--accent-purple);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

      
        .toast-progress::before {
            display: none; 
        }

        .toast-completing {
            animation: toastComplete 0.3s ease;
        }

        @keyframes toastComplete {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        /* Mobile-optimized notifications */
        @media (max-width: 768px) {
            .toast-container {
                top: auto;
                bottom: var(--space-6);
                right: var(--space-4);
                left: var(--space-4);
                max-width: none;
                gap: var(--space-2);
            }

            .toast {
                padding: var(--space-3) var(--space-4);
                border-radius: var(--radius-lg);
                border-width: 1px;
                gap: var(--space-3);
                box-shadow: var(--shadow-lg);
            }

            .toast-icon {
                width: 20px;
                height: 20px;
                font-size: var(--text-sm);
            }

            .toast-title {
                font-size: var(--text-sm);
                margin-bottom: 2px;
            }

            .toast-message {
                font-size: var(--text-xs);
                line-height: 1.4;
            }

            .toast-close {
                width: 24px;
                height: 24px;
                font-size: var(--text-lg);
                padding: 2px;
            }

            .toast::before {
                height: 3px;
            }

            .spinner-small {
                width: 16px;
                height: 16px;
            }

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

        /* Very small mobile devices */
        @media (max-width: 480px) {
            .toast-container {
                bottom: var(--space-4);
                right: var(--space-3);
                left: var(--space-3);
            }

            .toast {
                padding: var(--space-2) var(--space-3);
            }

            .toast-title {
                font-size: 13px;
            }

            .toast-message {
                font-size: 12px;
            }
        }

        /* ============================================
           FOOTER
           File: components/Footer.css
        ============================================ */
        footer {
            border-top: 2px solid rgba(255, 255, 255, 0.05);
            padding: var(--space-20) var(--space-8);
            position: relative;
            margin-top: var(--space-32);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: var(--space-12);
            margin-bottom: var(--space-12);
        }

        .footer-section {
            text-align: left;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            margin-bottom: var(--space-6);
            font-size: var(--text-2xl);
            font-weight: 700;
        }

        .footer-logo-icon {
            width: 42px;
            height: 42px;
            background: var(--accent-purple);
            border-radius: var(--radius-xl);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .footer-logo-icon svg {
            width: 24px;
            height: 24px;
            fill: white;
        }

        .footer-tagline {
            font-size: var(--text-base);
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: var(--space-6);
        }

        .footer-social {
            display: flex;
            gap: var(--space-3);
        }

        .social-link {
            width: 42px;
            height: 42px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all var(--transition-base);
            font-size: var(--text-lg);
        }

        .social-link:hover {
            background: var(--accent-purple);
            color: white;
            transform: translateY(-4px);
            box-shadow: var(--shadow-xl), var(--shadow-glow-sm);
            border-color: transparent;
        }

        .footer-title {
            font-size: var(--text-lg);
            font-weight: 700;
            margin-bottom: var(--space-4);
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: var(--space-3);
        }

        .footer-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: var(--text-base);
            transition: all var(--transition-base);
            position: relative;
            padding-left: var(--space-4);
        }

        .footer-link::before {
            content: '→';
            position: absolute;
            left: 0;
            opacity: 0;
            transition: all var(--transition-base);
        }

        .footer-link:hover {
            color: var(--text-primary);
            padding-left: var(--space-6);
        }

        .footer-link:hover::before {
            opacity: 1;
        }

        .footer-bottom {
            text-align: center;
            padding-top: var(--space-8);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .footer-text {
            font-size: var(--text-sm);
            color: var(--text-tertiary);
        }

        /* ============================================
           RESPONSIVE DESIGN
           File: styles/responsive.css
        ============================================ */
        @media (max-width: 768px) {
            :root {
                --space-8: 20px;
                --space-10: 32px;
                --space-12: 40px;
                --space-16: 48px;
                --space-20: 56px;
                --space-24: 64px;
                --space-32: 80px;
            }

            .nav-container {
                flex-direction: row;
                padding: var(--space-3) 0;
            }

           

            .mobile-menu-toggle {
                display: block;
            }

            .hero {
                padding: var(--space-20) var(--space-4) var(--space-16);
            }

            .hero-cta {
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-4);
            }

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

            .feature-card {
                grid-column: span 1 !important;
                height: auto;
                min-height: auto;
                align-self: start;
            }

            .feature-page {
                padding: var(--space-16) var(--space-4) var(--space-20);
            }

            .page-header {
                margin-bottom: var(--space-12);
            }

            .result-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .toast-container {
                left: var(--space-4);
                right: var(--space-4);
                top: var(--space-4);
            }

            .option-buttons {
                grid-template-columns: 1fr;
            }

            .upload-area {
                padding: var(--space-6) var(--space-4);
                min-height: 100px;
                gap: var(--space-1);
            }

            .upload-icon {
                width: 44px;
                height: 44px;
                margin: 0 auto var(--space-2);
            }

            .upload-icon svg {
                width: 22px;
                height: 22px;
            }

            .upload-text {
                font-size: var(--text-base);
                margin-bottom: 2px;
            }

            .upload-subtext {
                font-size: var(--text-xs);
            }

            /* File info mobile fix */
            .file-info {
                margin-top: var(--space-3);
                padding: var(--space-3) var(--space-4);
                gap: var(--space-2);
            }

            .file-icon {
                width: 36px;
                height: 36px;
            }

            .file-icon svg {
                width: 18px;
                height: 18px;
            }

            .file-details {
                flex: 1;
                min-width: 0;
                overflow: hidden;
            }

            .file-name {
                font-size: var(--text-xs);
            }

            .file-size {
                font-size: 11px;
            }

            .file-remove {
                padding: var(--space-1) var(--space-3);
                font-size: 11px;
            }

            .file-name {
                word-break: break-all;
                font-size: var(--text-sm);
            }

            .file-remove {
                width: 100%;
                text-align: center;
                margin-top: var(--space-2);
            }

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

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

            .samples-grid {
                grid-template-columns: repeat(2, 1fr);
            }

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

            .footer-section {
                text-align: center;
            }

            .footer-logo {
                justify-content: center;
            }

            .footer-social {
                justify-content: center;
            }

            /* Comprehensive Results Mobile Styles */
            .comprehensive-results-container {
                display: flex;
                flex-direction: column;
                gap: var(--space-4);
                margin-top: var(--space-6);
                position: relative;
                z-index: 1;
            }

            .comp-result-card {
                padding: var(--space-4);
                margin-bottom: 0;
                position: relative;
                z-index: 1;
                width: 100%;
                box-sizing: border-box;
            }

            .comp-card-header {
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                gap: var(--space-3);
                padding-bottom: var(--space-3);
            }

            .comp-icon-wrapper {
                width: 44px;
                height: 44px;
                min-width: 44px;
                font-size: 22px;
            }

            .comp-header-content {
                flex: 1;
                min-width: 120px;
            }

            .comp-label {
                font-size: var(--text-xs);
            }

            .comp-value {
                font-size: var(--text-lg);
            }

            .comp-confidence {
                font-size: var(--text-base);
                text-align: right;
                min-width: 60px;
            }

            .comp-meter {
                margin-top: var(--space-3);
            }

            .comp-meter-bar {
                height: 6px;
            }

            .comp-details {
                margin-top: var(--space-4);
            }

            .comp-description {
                padding: var(--space-3);
            }

            .comp-description-text {
                font-size: var(--text-sm);
            }

            .comp-detail-grid {
                grid-template-columns: 1fr;
                gap: var(--space-3);
                margin-top: var(--space-3);
            }

            .comp-detail-item {
                padding: var(--space-3);
            }

            .comp-detail-label {
                font-size: 10px;
            }

            .comp-detail-value {
                font-size: var(--text-sm);
            }

            .comp-health-grid {
                grid-template-columns: 1fr;
                gap: var(--space-3);
            }

            .comp-health-item {
                padding: var(--space-4);
            }

            .comp-health-header {
                margin-bottom: var(--space-2);
            }

            .comp-health-icon {
                font-size: 28px;
            }

            .comp-health-badge {
                font-size: var(--text-xs);
                padding: var(--space-1) var(--space-2);
            }

            .comp-health-title {
                font-size: var(--text-xs);
            }

            .comp-health-value {
                font-size: var(--text-lg);
            }

            .comp-disclaimer {
                flex-direction: column;
                gap: var(--space-3);
                padding: var(--space-4);
                margin-top: var(--space-4);
            }

            .comp-disclaimer-icon {
                font-size: 24px;
            }

            .comp-disclaimer-content h4 {
                font-size: var(--text-sm);
            }

            .comp-disclaimer-content p {
                font-size: var(--text-xs);
            }

            .comp-info-message {
                padding: var(--space-6);
            }

            .comp-info-icon {
                font-size: 36px;
            }

            .comp-info-text {
                font-size: var(--text-sm);
            }

            .chart-bar-item {
                grid-template-columns: 80px 1fr 50px;
                gap: var(--space-2);
            }

            .chart-bar-label {
                font-size: var(--text-xs);
            }

            .chart-bar-value {
                font-size: var(--text-xs);
            }

            /* Results container fix for mobile */
            .results {
                margin-top: var(--space-8);
                position: relative;
                z-index: 1;
                width: 100%;
                overflow: visible;
            }

            .comprehensive-results-container {
                gap: var(--space-4);
                margin-top: var(--space-4);
            }
        }

        /* Extra small screens */
        @media (max-width: 480px) {
            .comp-card-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .comp-confidence {
                text-align: left;
                width: 100%;
                margin-top: var(--space-2);
            }

            .comp-value {
                font-size: var(--text-base);
                word-break: break-word;
            }

            .comp-detail-grid {
                gap: var(--space-2);
            }

            .comp-health-grid {
                gap: var(--space-2);
            }

            .comp-health-item {
                padding: var(--space-3);
            }

            .comp-health-value {
                font-size: var(--text-base);
            }
        }

        /* ============================================
           ACCESSIBILITY
           File: styles/accessibility.css
        ============================================ */
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }

        *:focus-visible {
            outline: 3px solid var(--accent-purple);
            outline-offset: 3px;
            border-radius: var(--radius-sm);
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ============================================
           UTILITY CLASSES
           File: styles/utilities.css
        ============================================ */
        .text-gradient {
            background: var(--accent-purple);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .glass-card {
            background: var(--bg-secondary);
            
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .glow {
            box-shadow: var(--shadow-xl), var(--shadow-glow-sm);
        }

        .fade-in {
            animation: fadeIn 0.5s ease;
        }

        .slide-up {
            animation: slideUp 0.5s ease;
        }

        /* =========================================
        EMERGENCY: VISIBILITY & LAYERING
        ========================================= */

        /* 1. Push the animated background behind everything */
        .animated-bg, #particles-js, canvas {
            position: fixed !important;
            z-index: -9999 !important;
            pointer-events: none !important;
        }

        /* 2. Force all content to sit on top and be visible */
        body > *:not(.animated-bg):not(script):not(nav):not(header):not(.toast-container):not(.modal-overlay):not(.image-viewer-overlay) {
            position: relative !important;
            z-index: 10 !important;
        }

        /* 3. Override broken animations that hide text */
        h1, h2, h3, p, a, button, section, div:not(.lang-dropdown), span, .hero-title, .hero-subtitle {
            opacity: 1 !important;
            visibility: visible !important;
        }

        /* Allow language dropdown to control its own visibility */
        .lang-dropdown {
            opacity: 0 !important;
            visibility: hidden !important;
        }

        .language-switcher.open .lang-dropdown {
            opacity: 1 !important;
            visibility: visible !important;
            z-index: 100001 !important;
        }

        /* 4. Ensure the navigation bar is always on top */
        nav, header, .navbar {
            z-index: 9999 !important;
        }

        .lang-dropdown .lang-option {
            pointer-events: auto !important;
        }

        /* 6. Ensure toast notifications are above everything */
        .toast-container {
            position: fixed !important;
            z-index: 100000 !important;
        }

      
        .bg-gradient-mesh {
            animation: none !important; 
            opacity: 0.5 !important;    
        }

        /* 6. Stabilize blurred shapes */
        .shape {
            filter: blur(80px) !important;
        }

/* =========================================
   LANGUAGE SWITCHER
   ========================================= */

.language-switcher {
    position: relative;
    margin-left: var(--space-4);
    z-index: 10001;
    display: flex;
    align-items: center;
    align-self: center;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--text-sm);
    font-weight: 500;
    position: relative;
    z-index: 10002;
    font-family: inherit;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.lang-toggle:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.lang-toggle:active {
    transform: scale(0.98);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
}

.lang-icon {
    width: 18px;
    height: 18px;
}

.lang-chevron {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.language-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.current-lang {
    font-weight: 500;
}

.lang-dropdown {
    position: fixed;
    top: auto;
    right: auto;
    min-width: 160px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2);

    /* Force hide by default */
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    pointer-events: none;
}

.language-switcher.open .lang-dropdown {
    /* Show when open - use !important to override any conflicts */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto !important;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--text-sm);
    text-align: left;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    pointer-events: auto;
}

.lang-option:hover {
    background: rgba(139, 92, 246, 0.1);
}

.lang-option.active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    font-weight: 600;
}

.lang-flag {
    font-size: 20px;
    line-height: 1;
}

.lang-name {
    flex: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-switcher {
        /* Already positioned by line 607-613, don't override */
        position: fixed !important;
        top: 10px !important;
        right: 20px !important;
        margin-left: 0;
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(139, 92, 246, 0.2);
        border-radius: var(--radius-full);
        padding: 0;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .lang-toggle {
        padding: 10px 16px;
        min-height: 40px;
        justify-content: center;
        gap: 8px;
        background: transparent;
        width: 100%;
        cursor: pointer;
        border-radius: var(--radius-full);
    }

    .lang-toggle:hover,
    .lang-toggle:active {
        background: rgba(139, 92, 246, 0.1);
    }

    .current-lang {
        /* Keep visible like desktop */
        display: block;
        font-size: var(--text-sm);
        font-weight: 500;
    }

    .lang-icon {
        width: 18px;
        height: 18px;
    }

    .lang-dropdown {
        /* On mobile, ensure dropdown fits on screen */
        position: fixed !important;
        max-width: calc(100vw - 40px);
        min-width: 120px;
        width: auto;
        /* Position relative to the fixed language switcher */
        right: 20px;
        left: auto;
        top: 62px !important;
        padding: var(--space-2);
        border-radius: var(--radius-lg);
        border: 1px solid rgba(139, 92, 246, 0.2);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    .language-switcher.open .lang-dropdown {
        /* Force highest z-index on mobile when open */
        z-index: 100001 !important;
        pointer-events: auto !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Ensure mobile touch targets work */
    .lang-toggle {
        -webkit-tap-highlight-color: rgba(139, 92, 246, 0.3);
        touch-action: manipulation;
    }

    .lang-option {
        -webkit-tap-highlight-color: rgba(139, 92, 246, 0.3);
        touch-action: manipulation;
    }

    /* Hide flags in dropdown on mobile - show text only */
    .lang-dropdown .lang-flag {
        display: none;
    }

    /* Center-align language names since no flags */
    .lang-dropdown .lang-option {
        justify-content: center;
        padding: var(--space-3) var(--space-5);
        pointer-events: auto !important;
        min-height: 44px;
        font-weight: 500;
    }

    .lang-dropdown .lang-option.active {
        background: rgba(139, 92, 246, 0.2);
    }

    .lang-chevron {
        width: 14px;
        height: 14px;
    }

    .lang-option {
        padding: var(--space-4);
        font-size: var(--text-sm);
        min-height: 48px;
        border-radius: var(--radius-lg);
    }

    .lang-flag {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        position: fixed !important;
        top: 10px !important;
        right: 20px !important;
        margin-left: 0;
    }

    .lang-toggle {
        padding: var(--space-2);
        min-width: 44px;
        min-height: 44px;
    }

    .lang-icon {
        width: 20px;
        height: 20px;
    }

    .lang-chevron {
        width: 14px;
        height: 14px;
    }

    .lang-dropdown {
        min-width: 150px;
    }
}

/* ============================================
   IMAGE GUIDE COMPONENT - COLLAPSIBLE
   File: components/ImageGuide.css
============================================ */
.image-guide {
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-2xl);
    margin: var(--space-8) 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.image-guide:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.25);
}

/* Toggle Button */
.guide-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.guide-toggle:hover {
    background: rgba(139, 92, 246, 0.08);
}

.guide-toggle-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.image-guide .guide-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.image-guide .guide-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.image-guide .guide-title {
    color: var(--accent-purple);
    font-weight: 600;
    font-size: var(--text-base);
    letter-spacing: -0.01em;
}

.guide-chevron {
    width: 20px;
    height: 20px;
    color: var(--accent-purple);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.guide-toggle[aria-expanded="true"] .guide-chevron {
    transform: rotate(180deg);
}

/* Content */
.image-guide .guide-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 var(--space-5);
}

.image-guide.expanded .guide-content {
    max-height: 2000px;
    padding: 0 var(--space-5) var(--space-5);
}

.image-guide .guide-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.image-guide .guide-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Health Guide Specific Styles */
.image-guide.health-guide .guide-content {
    width: 100%;
}

.image-guide .guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.guide-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.guide-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

.guide-item-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
}

.guide-item-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.guide-item-content {
    flex: 1;
}

.guide-item-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
}

.guide-item-text {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-toggle {
        padding: var(--space-3) var(--space-4);
    }

    .guide-toggle-left {
        gap: var(--space-2);
    }

    .image-guide .guide-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .image-guide .guide-icon svg {
        width: 16px;
        height: 16px;
    }

    .image-guide .guide-title {
        font-size: var(--text-sm);
    }

    .guide-chevron {
        width: 18px;
        height: 18px;
    }

    .image-guide .guide-text {
        font-size: var(--text-xs);
    }

    .image-guide .guide-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .guide-item {
        padding: var(--space-3);
    }

    .guide-item-icon {
        font-size: 20px;
        width: 28px;
        height: 28px;
    }

    .guide-item-icon svg {
        width: 18px;
        height: 18px;
    }

    .image-guide.expanded .guide-content {
        padding: 0 var(--space-4) var(--space-4);
    }

    /* Medical Disclaimer Responsive */
    .disclaimer-toggle {
        padding: var(--space-3) var(--space-4);
    }

    .disclaimer-toggle-left {
        gap: var(--space-2);
    }

    .medical-disclaimer .disclaimer-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .medical-disclaimer .disclaimer-icon svg {
        width: 16px;
        height: 16px;
    }

    .medical-disclaimer .disclaimer-title {
        font-size: var(--text-sm);
    }

    .disclaimer-chevron {
        width: 18px;
        height: 18px;
    }

    .medical-disclaimer .disclaimer-text {
        font-size: var(--text-xs);
    }

    .medical-disclaimer.expanded .disclaimer-content {
        padding: 0 var(--space-4) var(--space-4);
    }
}

@media (max-width: 480px) {
    .image-guide {
        margin: var(--space-5) 0;
    }

    .guide-toggle {
        padding: var(--space-2) var(--space-3);
    }

    .guide-toggle-left {
        gap: var(--space-2);
    }

    .image-guide .guide-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .image-guide .guide-icon svg {
        width: 14px;
        height: 14px;
    }

    .image-guide .guide-title {
        font-size: 13px;
        font-weight: 500;
    }

    .guide-chevron {
        width: 16px;
        height: 16px;
    }

    .guide-item-title {
        font-size: var(--text-xs);
    }

    .guide-item-text {
        font-size: 11px;
    }

    .guide-item-icon {
        width: 24px;
        height: 24px;
    }

    .guide-item-icon svg {
        width: 14px;
        height: 14px;
    }

    .image-guide.expanded .guide-content {
        padding: 0 var(--space-3) var(--space-3);
    }

    /* Medical Disclaimer Small Screen */
    .medical-disclaimer {
        margin: var(--space-5) 0;
    }

    .disclaimer-toggle {
        padding: var(--space-2) var(--space-3);
    }

    .disclaimer-toggle-left {
        gap: var(--space-2);
    }

    .medical-disclaimer .disclaimer-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .medical-disclaimer .disclaimer-icon svg {
        width: 14px;
        height: 14px;
    }

    .medical-disclaimer .disclaimer-title {
        font-size: 13px;
        font-weight: 500;
    }

    .disclaimer-chevron {
        width: 16px;
        height: 16px;
    }

    .medical-disclaimer .disclaimer-text {
        font-size: 11px;
        line-height: 1.6;
    }

    .medical-disclaimer.expanded .disclaimer-content {
        padding: 0 var(--space-3) var(--space-3);
    }
}

/* ============================================
   HEALTH CATEGORY NAVIGATION
   ============================================ */

/* Category Selection Screen */
.health-step {
    animation: fadeIn 0.3s ease-in-out;
}

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

.category-selection-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.selection-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.selection-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Health Category Grid - 3-2 layout */
.health-category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-10);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* Top row: 3 cards spanning 2 columns each */
.health-category-grid .health-category-card:nth-child(-n+3) {
    grid-column: span 2;
}

/* Bottom row: 2 cards centered (offset by 1 column each side) */
.health-category-grid .health-category-card:nth-child(4) {
    grid-column: 2 / 4;
}

.health-category-grid .health-category-card:nth-child(5) {
    grid-column: 4 / 6;
}

.health-category-card {
    background: var(--bg-secondary);
    border: 2px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.health-category-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
}

.category-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.health-category-card:hover .category-card-icon {
    background: rgba(139, 92, 246, 0.2);
    transform: scale(1.1);
}

.category-card-icon svg {
    width: 36px;
    height: 36px;
    color: var(--accent-purple);
}

.category-card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.category-card-description {
    display: none;
}


/* Category-Specific Form */
/* Navigation Actions Row - Back Button + Guidelines */
.health-nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding: var(--space-4);
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
}

.health-back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: rgba(139, 92, 246, 0.08);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--accent-purple);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.health-back-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(-4px);
}

.health-back-btn svg {
    width: 18px;
    height: 18px;
}

/* Category Page Header (replaces main health header when category is selected) */
.category-page-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.category-page-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.category-page-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Keep old form header for backwards compatibility but hide it */
.category-form-header {
    display: none;
}

.category-form-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.category-form-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

/* Category-Specific Guide */
.category-specific-guide .guide-single-item {
    display: flex;
    align-items: start;
    gap: var(--space-5);
    padding: var(--space-6);
    background: rgba(139, 92, 246, 0.03);
    border-radius: var(--radius-xl);
}

.category-guide-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-guide-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-purple);
}

.category-guide-text {
    flex: 1;
}

.category-guide-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.category-guide-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

/* Sample Image Placeholders */
.guide-sample-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.sample-image-placeholder {
    background: rgba(139, 92, 246, 0.04);
    border: 2px dashed rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
    transition: all 0.3s ease;
}

.sample-image-placeholder:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.4);
}

.sample-image-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-3);
}

.sample-image-icon svg {
    width: 100%;
    height: 100%;
    color: rgba(139, 92, 246, 0.5);
}

.sample-image-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Collapsibles Container */
.category-collapsibles {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.category-disclaimer {
    margin: 0 0 var(--space-6) 0 !important;
}

.category-specific-guide {
    margin: 0 !important;
}

/* Responsive Design */

/* Tablet: 2-column grid, last card full-width */
@media (min-width: 481px) and (max-width: 768px) {
    .health-category-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }

    .health-category-grid .health-category-card:nth-child(-n+3),
    .health-category-grid .health-category-card:nth-child(4) {
        grid-column: auto;
    }

    /* 5th card spans both columns (centered) */
    .health-category-grid .health-category-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
        width: 100%;
    }
}

/* Mobile: single column, all cards stacked */
@media (max-width: 480px) {
    .health-category-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .health-category-grid .health-category-card:nth-child(-n+3),
    .health-category-grid .health-category-card:nth-child(4),
    .health-category-grid .health-category-card:nth-child(5) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .health-category-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* Reset ALL nth-child column overrides — they have higher specificity than the generic rule */
    .health-category-grid .health-category-card:nth-child(-n+3),
    .health-category-grid .health-category-card:nth-child(4),
    .health-category-grid .health-category-card:nth-child(5) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }

    .selection-title {
        font-size: var(--text-2xl);
    }

    .category-card-icon {
        width: 60px;
        height: 60px;
    }

    .category-card-icon svg {
        width: 30px;
        height: 30px;
    }

    .category-form-title {
        font-size: var(--text-2xl);
    }

    .category-page-title {
        font-size: var(--text-2xl);
    }

    .category-page-description {
        font-size: var(--text-base);
    }

    .category-specific-guide .guide-single-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .guide-sample-images {
        grid-template-columns: 1fr;
    }

    .sample-image-placeholder {
        min-height: 100px;
        padding: var(--space-6) var(--space-3);
    }

    .health-nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }

    .health-back-btn,
    .health-nav-actions .minimal-guide-btn {
        width: 100%;
        justify-content: center;
    }

    .health-back-btn:hover {
        transform: translateX(0) translateY(-2px);
    }

    .health-nav-actions .minimal-guide-btn:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .health-tab {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
        gap: var(--space-1);
    }

    .health-tab svg {
        width: 14px;
        height: 14px;
    }

    .health-category-card {
        padding: var(--space-6);
    }

    .category-card-title {
        font-size: var(--text-lg);
    }

    .health-back-btn {
        padding: var(--space-2) var(--space-4);
        font-size: 13px;
    }
}

/* ============================================
   VISIBILITY CHECK MODALS
   ============================================ */

/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100005 !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-container {
    background: var(--bg-secondary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative !important;
    margin: auto;
}

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

.warning-modal .modal-header {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
}

.warning-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.8), rgba(99, 102, 241, 0.8));
}

.warning-modal .modal-header h2 {
    font-size: var(--text-base);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.modal-body {
    padding: var(--space-4) var(--space-5);
    color: var(--text-secondary);
}

.modal-body p {
    font-size: var(--text-sm);
    line-height: 1.4;
    margin-bottom: var(--space-3);
}

.mismatch-info {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.mismatch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
    font-size: var(--text-sm);
}

.mismatch-row:last-child {
    border-bottom: none;
}

.mismatch-row span:first-child {
    color: var(--text-tertiary);
}

.highlight-selected {
    color: var(--accent-blue);
    font-weight: 600;
}

.highlight-detected {
    color: var(--accent-orange);
    font-weight: 600;
}

.visibility-status {
    text-align: center;
    margin-bottom: var(--space-6);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin: var(--space-4) 0;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.warning-badge {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent-yellow);
}

.warning-tips {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-left: 3px solid var(--accent-purple);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
}

.warning-tips h4 {
    margin-top: 0;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.warning-tips ul {
    margin: 0;
    padding-left: var(--space-6);
    list-style-type: none;
}

.warning-tips li {
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--text-sm);
    position: relative;
}

.warning-tips li::before {
    content: '•';
    position: absolute;
    left: calc(var(--space-4) * -1);
    color: var(--accent-purple);
    font-weight: bold;
}

.modal-footer {
    padding: var(--space-3) var(--space-5);
    border-top: 1px solid rgba(139, 92, 246, 0.08);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-width: 95%;
    }

    .warning-modal .modal-header {
        padding: var(--space-6) var(--space-8);
    }

    .warning-modal .modal-header h2 {
        font-size: var(--text-lg);
    }

    .modal-body {
        padding: var(--space-6);
    }

    .modal-footer {
        flex-direction: column;
        gap: var(--space-2);
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-container {
        border-radius: var(--radius-xl);
    }

    .warning-modal .modal-header {
        padding: var(--space-5) var(--space-6);
    }

    .warning-modal .modal-header h2 {
        font-size: var(--text-base);
    }

    .modal-body {
        padding: var(--space-5);
    }

    .modal-body p {
        font-size: var(--text-sm);
    }

    .warning-tips {
        padding: var(--space-4);
    }

    .warning-tips h4 {
        font-size: var(--text-sm);
    }

    .warning-tips li {
        font-size: var(--text-xs);
    }

    .modal-footer {
        padding: var(--space-5) var(--space-6);
    }
}



.minimal-warning .modal-header {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(251, 113, 133, 0.12));
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
}

.minimal-warning .modal-header h2 {
    color: var(--accent-orange);
    font-size: var(--text-base);
    font-weight: 600;
}

.minimal-warning .modal-body {
    padding: var(--space-4) var(--space-5);
    text-align: center;
}

.warning-message {
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

.guide-reference {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0;
}


.sleek-warning {
    max-width: 480px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.sleek-warning .modal-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-5) var(--space-6) var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sleek-warning .modal-header h2 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.sleek-warning .modal-body {
    padding: var(--space-6);
    text-align: center;
}

.warning-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 113, 133, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-orange);
}

.sleek-warning .warning-message {
    font-size: var(--text-base);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.warning-suggestion {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

.sleek-warning .modal-footer {
    padding: var(--space-4) var(--space-6) var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

.sleek-warning .modal-footer .btn {
    flex: 1;
    min-width: 120px;
}

.sleek-warning .modal-footer .btn-tertiary {
    flex-basis: 100%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.sleek-warning .modal-footer .btn-tertiary:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-purple);
}

.sleek-warning .modal-footer .btn-tertiary svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sleek-warning {
        max-width: 95%;
    }

    .sleek-warning .modal-footer .btn {
        flex-basis: calc(50% - var(--space-2));
    }

    .sleek-warning .modal-footer .btn-tertiary {
        flex-basis: 100%;
    }
}

/* Species Selection in Unsupported Species Modal */
.species-select-group {
    margin-top: var(--space-5);
}

.species-select-prompt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.species-select-options {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.species-select-btn {
    flex: 1;
    max-width: 160px;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.species-select-btn:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

.species-select-btn.selected {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.sleek-warning .modal-footer .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Species Override Note in Comprehensive Results */
.comp-override-note {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.comp-override-icon {
    flex-shrink: 0;
    font-size: var(--text-base);
}


.sample-image-item {
    background: var(--bg-tertiary);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sample-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.sample-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.sample-image-item .sample-image-label {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

/* Grid layout for multiple images */
.guide-sample-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-5);
}

/* Single image layout */
.guide-sample-images:has(.sample-image-item:only-child) {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ENHANCED BUTTON STYLES
   Professional and polished buttons
   ============================================ */

.modal-footer .btn {
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

.modal-footer .btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.modal-footer .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-footer .btn-secondary:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--text-primary);
    border-color: rgba(139, 92, 246, 0.3);
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
    .modal-container {
        max-width: 380px;
    }

    .sample-image {
        height: 150px;
    }

    .guide-sample-images {
        grid-template-columns: 1fr;
    }

    .minimal-warning .modal-body {
        padding: var(--space-4) var(--space-5);
    }

    .warning-message {
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {
    .modal-container {
        max-width: 340px;
    }

    .sample-image {
        height: 120px;
    }

    .minimal-warning .modal-header h2 {
        font-size: var(--text-sm);
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }

    .modal-footer .btn + .btn {
        margin-bottom: var(--space-2);
    }
}



.info-modal {
    max-width: 1000px;
    max-height: 90vh;
    width: 95%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.info-modal .modal-header {
    background: transparent;
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-modal .modal-header h2 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.05);
}

.modal-close svg {
    width: 28px;
    height: 28px;
}

.info-modal .modal-body {
    padding: var(--space-5) var(--space-6);
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.info-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.info-modal .modal-body::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 4px;
}

.info-modal .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
    border-radius: 4px;
    transition: background var(--transition-base);
}

.info-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a78bfa, #fb923c);
}

.info-section {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.info-section-icon {
    display: none;
}

.info-section h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.info-section h3::before {
    content: '';
    width: 3px;
    height: 18px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.info-section p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
    margin-bottom: var(--space-4);
    padding: 0;
}

.info-guidelines {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: var(--space-4);
    backdrop-filter: blur(10px);
}

.info-guideline-item {
    padding: var(--space-2) var(--space-2) var(--space-2) 40px;
    margin-bottom: var(--space-2);
    position: relative;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.info-guideline-item:hover {
    background: rgba(139, 92, 246, 0.08);
    transform: translateX(4px);
}

.info-guideline-item:last-child {
    margin-bottom: 0;
}

.info-guideline-item::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-purple);
    font-size: 12px;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.2);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
    flex-shrink: 0;
}

.info-guideline-icon {
    display: none;
}

.info-guideline-text {
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.5;
}

.info-sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-4);
    padding: var(--space-5);
    background: rgba(139, 92, 246, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.info-sample-item {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.3);
    background: var(--bg-tertiary);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.info-sample-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.3);
    border-color: var(--accent-purple);
}

.info-sample-item img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: var(--space-3);
}

.info-sample-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4) var(--space-3) var(--space-3);
    font-size: var(--text-xs);
    color: white;
    text-align: center;
    font-weight: 500;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .info-modal {
        max-width: 95%;
        max-height: 90vh;
    }

    .info-modal .modal-body {
        padding: var(--space-4);
    }

    .info-sample-grid {
        grid-template-columns: 1fr;
        padding: var(--space-3);
    }

    .info-sample-item img {
        height: 260px;
    }

    .info-sample-caption {
        padding: var(--space-3) var(--space-2) var(--space-2);
        font-size: 11px;
    }
}



.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-viewer-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.image-viewer-close {
    position: absolute;
    top: -50px;
    right: -50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: var(--space-3);
    cursor: pointer;
    transition: all var(--transition-base);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.image-viewer-close svg {
    width: 24px;
    height: 24px;
}

.image-viewer-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.image-viewer-caption {
    color: white;
    font-size: var(--text-base);
    text-align: center;
    padding: var(--space-3) var(--space-6);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .image-viewer-close {
        top: -40px;
        right: 0;
    }

    .image-viewer-container img {
        max-height: 70vh;
    }
}



.minimal-guide-container {
    display: flex;
    justify-content: center;
    margin: var(--space-6) 0;
}

.minimal-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-purple);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.minimal-guide-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.minimal-guide-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


.health-nav-actions .minimal-guide-btn {
    margin: 0;
}

.health-nav-actions .minimal-guide-btn:hover {
    transform: translateY(0) translateX(4px);
}



.segmented-control-wrapper {
    display: flex;
    justify-content: center;
    margin: var(--space-4) 0;
}

.segmented-control {
    display: inline-flex;
    background: var(--bg-tertiary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-full);
    padding: var(--space-1);
    gap: var(--space-1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.segment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-8);
    min-width: 120px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    letter-spacing: 0.02em;
}

.segment-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.08);
}

.segment-btn.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .segment-btn {
        min-width: 100px;
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .segment-btn {
        min-width: 80px;
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }
}

/* ==================== HEALTH TABS (Screening / Explainability) ==================== */

.health-tabs {
    display: flex;
    flex-direction: column;
}

.health-tabs-nav {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-1);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-5);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.health-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-tertiary);
    transition: all 0.25s ease;
}

.health-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.health-tab.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.health-tab[data-tab="explainability"].active {
    color: var(--accent-purple, #8b5cf6);
    background: rgba(139, 92, 246, 0.1);
}

.health-tab svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.health-tab.active svg {
    opacity: 1;
}

.health-tab-panel {
    display: none;
}

.health-tab-panel.active {
    display: block;
    animation: tabFadeIn 0.25s ease;
}

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

/* XAI tab content */
.xai-tab-content {
    min-height: 200px;
}

.xai-tab-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-10) var(--space-6);
    color: var(--text-tertiary);
    text-align: center;
}

.xai-tab-placeholder p {
    font-size: var(--text-sm);
    line-height: 1.5;
    max-width: 300px;
    margin: 0;
}

/* ==================== EXPLAINABILITY RESULT STYLES ==================== */

/* Loading state */
.xai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-8) 0;
}

.xai-loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.xai-loading-fill {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple, #8b5cf6), var(--accent-blue, #6366f1));
    border-radius: 2px;
    animation: xaiLoadingSlide 1.5s ease-in-out infinite;
}

@keyframes xaiLoadingSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.xai-loading-text {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* Result display */
.xai-result-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0 0 var(--space-4) 0;
    line-height: 1.5;
}

.xai-image-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.xai-image {
    width: 100%;
    height: auto;
    display: block;
}

.xai-legend {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin: var(--space-4) 0 0 0;
    line-height: 1.5;
}

/* Error state */
.xai-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-6) 0;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.xai-retry-btn {
    background: none;
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent-purple, #8b5cf6);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.xai-retry-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
}
