
        :root {
            /* Branding colors */
            --bg-gradient: linear-gradient(135deg, #f6fcf8 0%, #e5f5ea 100%);
            --text-dark: #121826;
            --text-light: #4b5563;
            --blue-primary: #1d4ed8;
            --blue-light: #2563eb;
            --blue-hover: #1e40af;
            --green-primary: #16a34a;
            --green-light: #22c55e;
            --green-hover: #15803d;
            --yellow-alert: #eab308;
            --red-alert: #ef4444;
            
            /* Phone Colors */
            --phone-bg: #111827;
            --phone-border: #1f2937;
            --card-bg: #1f2937;
            --card-border: #374151;
            
            /* UI elements */
            --glass-bg: rgba(255, 255, 255, 0.7);
            --glass-border: rgba(255, 255, 255, 0.3);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 20px;
            --radius-full: 9999px;
            
            /* Layout */
            --nav-height: 80px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Outfit', sans-serif;
        }

        body {
            background: var(--bg-gradient);
            color: var(--text-dark);
            min-height: 100vh;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        /* Utils & Layout */
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }
        
        .flex { display: flex; }
        .items-center { align-items: center; }
        .justify-between { justify-content: space-between; }
        .justify-center { justify-content: center; }
        .gap-4 { gap: 1rem; }
        .gap-6 { gap: 1.5rem; }
        .gap-8 { gap: 2rem; }
        
        .text-blue { color: var(--blue-light); }
        .text-green { color: var(--green-primary); }
        .text-light { color: var(--text-light); }

        .hidden { display: none !important; }

        /* Animations */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes pulseMic {
            0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
            70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
            100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
        }

        /* --- Components --- */

        /* Buttons */
        .btn {
            padding: 10px 20px;
            border-radius: var(--radius-sm);
            font-weight: 500;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }
        .btn-primary {
            background-color: var(--blue-light);
            color: white;
            box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
        }
        .btn-primary:hover {
            background-color: var(--blue-hover);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
        }
        .btn-outline {
            background-color: transparent;
            color: var(--blue-primary);
            border: 2px solid var(--blue-primary);
        }
        .btn-outline:hover {
            background-color: var(--blue-primary);
            color: white;
        }
        .btn-large {
            padding: 14px 28px;
            font-size: 1.1rem;
            border-radius: var(--radius-md);
        }

        /* Navigation */
        .navbar {
            height: var(--nav-height);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--glass-border);
            position: sticky;
            top: 0;
            z-index: 50;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--blue-primary);
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }
        
        .nav-links a {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 500;
            font-size: 1rem;
            transition: color 0.2s;
            margin: 0 16px;
        }
        .nav-links a:hover { color: var(--blue-light); }
        
        .portal-select {
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            border: 1px solid #d1d5db;
            background: white;
            font-weight: 500;
            margin-right: 12px;
            cursor: pointer;
            color: var(--text-dark);
        }

        .navbar-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        @media (max-width: 768px) {
            .navbar-actions {
                gap: 6px;
            }
            .navbar-actions > div {
                padding: 4px 6px !important;
                border-radius: 14px !important;
            }
            .navbar-actions select {
                max-width: 90px !important;
                font-size: 0.75rem !important;
            }
            .navbar-actions .btn {
                padding: 6px 10px !important;
                font-size: 0.75rem !important;
                white-space: nowrap !important;
            }
        }

        /* Top Pill */
        .top-pill {
            display: inline-flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid #e5e7eb;
            color: var(--blue-primary);
            padding: 6px 16px;
            border-radius: var(--radius-full);
            font-size: 0.875rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            animation: fadeUp 0.6s ease-out;
        }
        .top-pill .dot {
            width: 8px;
            height: 8px;
            background-color: var(--green-primary);
            border-radius: 50%;
            margin-right: 8px;
        }

        /* Base Section / Page transition */
        .page-content {
            padding: 40px 0;
            animation: fadeUp 0.5s ease;
        }

        .hero-section {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 4rem;
            align-items: center;
            min-height: calc(100vh - var(--nav-height));
            position: relative;
        }

        .hero-ambient {
            position: absolute;
            top: -60px;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 1200px;
            height: 550px;
            background: radial-gradient(circle at 25% 35%, rgba(37, 99, 235, 0.12) 0%, transparent 55%),
                        radial-gradient(circle at 75% 45%, rgba(22, 163, 74, 0.12) 0%, transparent 55%);
            filter: blur(50px);
            pointer-events: none;
            z-index: 0;
        }

        .hero-text {
            position: relative;
            z-index: 2;
        }

        .hero-text h1 {
            font-size: 4.2rem;
            line-height: 1.08;
            font-weight: 800;
            margin-bottom: 0.5rem;
            animation: fadeUp 0.7s ease-out;
            letter-spacing: -0.03em;
        }
        .hero-text p {
            font-size: 1.2rem;
            color: var(--text-light);
            margin-top: 1.2rem;
            margin-bottom: 1.8rem;
            max-width: 90%;
            line-height: 1.6;
            animation: fadeUp 0.8s ease-out;
        }

        /* Hero Quick Search Box */
        .hero-search-box {
            background: white;
            padding: 8px 12px 8px 16px;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
            border: 1px solid rgba(229, 231, 235, 0.9);
            display: flex;
            align-items: center;
            gap: 12px;
            max-width: 520px;
            margin-bottom: 24px;
            transition: all 0.2s ease;
            animation: fadeUp 0.85s ease-out;
        }
        .hero-search-box:focus-within {
            border-color: var(--blue-light);
            box-shadow: 0 14px 36px rgba(37, 99, 235, 0.14);
        }
        .hero-search-box input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 0.98rem;
            color: var(--text-dark);
            font-family: 'Outfit', sans-serif;
            background: transparent;
        }

        .hero-actions {
            display: flex;
            align-items: center;
            gap: 16px;
            animation: fadeUp 0.9s ease-out;
            flex-wrap: wrap;
        }

        .mic-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background-color: var(--blue-light);
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.15rem;
            border: none;
            cursor: pointer;
            box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
            animation: pulseMic 2s infinite;
            transition: transform 0.2s, background-color 0.2s;
        }
        .mic-btn:hover {
            transform: scale(1.06);
            background-color: var(--blue-hover);
        }

        /* Floating Mockup Metric Badges */
        .hero-image-wrap {
            position: relative;
            z-index: 2;
            display: flex;
            justify-content: center;
        }

        .floating-metric {
            position: absolute;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(229, 231, 235, 0.9);
            border-radius: 14px;
            padding: 10px 16px;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.84rem;
            font-weight: 700;
            color: var(--text-dark);
            z-index: 20;
            animation: floatBadge 3s ease-in-out infinite alternate;
        }
        .floating-metric.top-left {
            top: 40px;
            left: -24px;
        }
        .floating-metric.bottom-right {
            bottom: 60px;
            right: -24px;
            animation-delay: 1.5s;
        }
        @keyframes floatBadge {
            0% { transform: translateY(0px); }
            100% { transform: translateY(-7px); }
        }

        /* Phone Mockup */
        .phone-wrapper,
        .phone-mockup {
            position: relative;
            width: 360px;
            height: 720px;
            background: var(--phone-bg);
            border-radius: 40px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            /* Phone border gradient logic */
            border: 12px solid #283041;
            padding: 24px 20px;
            margin: 0 auto;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: fadeUp 1s ease-out;
        }
        
        .phone-notch {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 140px;
            height: 25px;
            background: #283041;
            border-bottom-left-radius: 16px;
            border-bottom-right-radius: 16px;
            z-index: 10;
        }

        .phone-header {
            color: white;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 10px;
            margin-bottom: 24px;
        }
        .phone-header i {
            font-size: 24px;
            color: var(--blue-light);
        }
        .phone-header p {
            line-height: 1.2;
            font-weight: 600;
        }
        .phone-header small {
            font-weight: 300;
            color: #9ca3af;
        }

        .chat-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 16px;
            overflow-y: auto;
            scrollbar-width: none; /* Firefox */
        }
        .chat-container::-webkit-scrollbar { display: none; }

        .chat-bubble {
            padding: 16px;
            border-radius: 16px;
            font-size: 0.95rem;
            line-height: 1.5;
            max-width: 85%;
        }
        .chat-right {
            align-self: flex-end;
            background: #1e3a8a;
            color: white;
            border-bottom-right-radius: 4px;
        }
        .chat-left {
            align-self: flex-start;
            background: #1e293b;
            color: white;
            border-bottom-left-radius: 4px;
        }

        .voice-pill {
            background: #0f172a;
            border: 1px solid #1e3a8a;
            color: #60a5fa;
            border-radius: 30px;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 10px 0;
            align-self: center;
            width: 90%;
        }
        .audio-bars {
            display: flex;
            gap: 3px;
            align-items: center;
        }
        .bar {
            width: 4px;
            background: #3b82f6;
            border-radius: 2px;
            animation: bounce 1s infinite alternate;
        }
        .bar:nth-child(2) { animation-delay: 0.2s; height: 16px;}
        .bar:nth-child(3) { animation-delay: 0.4s; height: 20px;}
        .bar:nth-child(4) { animation-delay: 0.6s; height: 14px;}
        .bar:nth-child(5) { animation-delay: 0.8s; height: 8px;}
        
        @keyframes bounce { 
            0% { height: 8px; }
            100% { height: 24px; }
        }

        .result-card {
            background: #182235;
            border: 1px solid #1e293b;
            border-radius: 16px;
            padding: 16px;
            color: white;
            margin-top: 10px;
        }
        .status-pill {
            display: inline-block;
            background: rgba(22, 163, 74, 0.2);
            color: #4ade80;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 700;
            margin-bottom: 12px;
        }
        .result-card h4 {
            font-size: 1.1rem;
            margin-bottom: 4px;
        }
        .result-card p {
            color: #9ca3af;
            font-size: 0.9rem;
            margin-bottom: 16px;
        }
        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 12px;
            border-top: 1px solid #374151;
        }
        .card-footer span {
            color: #d1d5db;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .route-btn {
            background: #2563eb;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: 0.2s;
        }
        .route-btn:hover { background: #1d4ed8; }

        /* --- PORTALS STYLING --- */
        
        .portal-header {
            margin-bottom: 2rem;
            border-bottom: 2px solid var(--glass-border);
            padding-bottom: 1rem;
        }
        
        .portal-header h2 {
            font-size: 2rem;
            color: var(--text-dark);
            font-weight: 700;
        }
        
        .portal-header p {
            color: var(--text-light);
        }

        /* Generic Panels */
        .panel {
            background: white;
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            margin-bottom: 24px;
        }

        /* Admin Dashboard Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 24px;
        }
        .stat-card {
            background: white;
            padding: 24px;
            border-radius: var(--radius-md);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            gap: 8px;
            position: relative;
            overflow: hidden;
        }
        .stat-card:before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 4px; height: 100%;
            background: var(--blue-primary);
        }
        .stat-card h3 { color: var(--text-light); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; }
        .stat-card .value { font-size: 2rem; font-weight: 800; color: var(--text-dark); }
        .stat-card .trend.up { color: var(--green-primary); font-weight: 600; font-size: 0.85rem; }
        .stat-card .trend.down { color: var(--red-alert); font-weight: 600; font-size: 0.85rem; }

        /* Tables */
        table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
        }
        th, td {
            padding: 16px;
            border-bottom: 1px solid #e5e7eb;
        }
        th {
            background: #f9fafb;
            color: var(--text-light);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.8rem;
        }
        tr:hover { background: #f9fafb; }
        
        .badge {
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        .badge.in-stock { background: #dcfce7; color: #166534; }
        .badge.low-stock { background: #fef9c3; color: #854d0e; }
        .badge.out-stock { background: #fee2e2; color: #991b1b; }

        /* Form Controls */
        .form-group {
            margin-bottom: 16px;
        }
        .form-label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            font-size: 0.9rem;
            color: var(--text-dark);
        }
        .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: var(--radius-sm);
            font-family: 'Outfit', sans-serif;
            font-size: 1rem;
            transition: border-color 0.2s;
        }
        .form-control:focus {
            outline: none;
            border-color: var(--blue-light);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        /* Patient Search Box */
        .patient-search-area {
            background: white;
            border-radius: var(--radius-lg);
            padding: 40px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            max-width: 800px;
            margin: 0 auto 40px auto;
        }
        .search-input-wrapper {
            position: relative;
            max-width: 600px;
            margin: 20px auto;
            display: flex;
            align-items: center;
        }
        .search-input-wrapper input {
            width: 100%;
            padding: 18px 24px;
            padding-right: 120px;
            border-radius: 50px;
            border: 2px solid #e5e7eb;
            font-size: 1.1rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.02);
        }
        .search-actions {
            position: absolute;
            right: 12px;
            display: flex;
            gap: 8px;
        }
        .icon-btn {
            background: #f3f4f6;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            color: var(--text-light);
            transition: 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
        }
        .icon-btn:hover { background: var(--blue-100); color: var(--blue-primary); }
        .icon-btn.active { background: var(--red-alert); color: white; animation: pulse 1.5s infinite; }
        
        .upload-area {
            display: none;
        }

        /* Lang Badge */
        .lang-detect-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #e0e7ff;
            color: #3730a3;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-top: 10px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        /* Pharmacy Panel Grid */
        .pharmacy-layout {
            display: grid;
            grid-template-columns: 3fr 1fr;
            gap: 24px;
        }

        /* Simple Chart Bar */
        .chart-row {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }
        .chart-label { width: 100px; font-weight: 500; font-size: 0.9rem; }
        .chart-bar-bg { flex: 1; height: 12px; background: #f3f4f6; border-radius: 6px; overflow: hidden; }
        .chart-bar-fill { height: 100%; background: var(--blue-light); border-radius: 6px; }
        .chart-value { width: 40px; text-align: right; font-size: 0.85rem; color: var(--text-light); }

        /* Mock Response Area */
        #mock-response {
            max-width: 800px;
            margin: 0 auto;
            margin-top: 2rem;
            text-align: left;
        }
        
        /* Modals and Auth */
        .otp-box { width:50px; height:60px !important; text-align:center; font-size:1.8rem !important; font-weight:bold; padding:0 !important; }
        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
            z-index: 9999; display: flex; align-items: center; justify-content: center;
            opacity: 0; pointer-events: none; transition: 0.3s ease;
        }
        .modal-overlay.active { opacity: 1; pointer-events: auto; }
        .modal-content {
            background: white; border-radius: var(--radius-lg);
            width: 90%; max-width: 450px; padding: 32px;
            transform: translateY(20px); transition: 0.3s ease;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            position: relative;
        }
        .modal-overlay.active .modal-content { transform: translateY(0); }
        .modal-close { position: absolute; top: 20px; right: 20px; cursor: pointer; color: var(--text-light); font-size: 1.25rem; transition: 0.2s;}
        .modal-close:hover { color: var(--red-alert); }
        
        .auth-mode-tab { display: flex; background: #f3f4f6; border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; }
        .auth-mode-tab button { flex: 1; padding: 10px; border: none; background: transparent; border-radius: 6px; font-weight: 600; color: var(--text-light); cursor: pointer; font-size: 0.95rem; transition: 0.2s;}
        .auth-mode-tab button.active { background: white; color: var(--blue-primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

        .auth-tab { display: flex; border-bottom: 2px solid #e5e7eb; margin-bottom: 24px; }
        .auth-tab button { flex: 1; padding: 12px; background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 600; color: var(--text-light); cursor: pointer; font-size:1.05rem;}
        .auth-tab button.active { color: var(--blue-primary); border-bottom-color: var(--blue-primary); }

        /* Arabic RTL Support */
        body.rtl { direction: rtl; text-align: right; font-family: 'Amiri', 'Outfit', sans-serif; }
        body.rtl .modal-close { left: 20px; right: auto; }
        body.rtl .search-input-wrapper input { padding-left: 120px; padding-right: 24px; }
        body.rtl .search-actions { left: 12px; right: auto; }
        body.rtl .form-label { text-align: right; }
        body.rtl .nav-actions div { margin-right: 0; margin-left: 6px; }

        /* Loader */
        .ai-loader { display:inline-block; border: 3px solid #f3f3f3; border-radius: 50%; border-top: 3px solid var(--blue-primary); width: 20px; height: 20px; animation: spin 1s linear infinite; vertical-align: middle; margin-right: 10px; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        /* AI Structured Response */
        .ai-structured-response {
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: var(--radius-lg);
            padding: 24px;
            text-align: left;
            margin-bottom: 24px;
            animation: fadeUp 0.6s ease-out;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        .ai-structured-response.non-medical {
            background: #fffbeb;
            border-color: #fef08a;
            text-align: center;
            padding: 32px 24px;
        }
        .ai-ack {
            font-size: 1.1rem;
            color: var(--blue-primary);
            font-weight: 600;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 12px;
        }
        .ai-extracted-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }
        .ai-chip {
            background: #e0e7ff;
            color: #3730a3;
            border: 1px solid #c7d2fe;
            padding: 6px 12px;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .ai-section {
            margin-bottom: 20px;
        }
        .ai-section h5 {
            font-size: 0.95rem;
            color: var(--text-dark);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .ai-section p {
            color: var(--text-light);
            font-size: 0.95rem;
            line-height: 1.6;
        }
        .ai-section.highlight-meds {
            background: #dcfce7;
            border: 1px solid #bbf7d0;
            padding: 16px;
            border-radius: var(--radius-md);
        }
        .ai-section.highlight-meds h5 {
            color: #166534;
        }
        .ai-section.highlight-meds p {
            color: #15803d;
        }
        .ai-section.red-flags {
            background: #fef2f2;
            border-left: 4px solid var(--red-alert);
            padding: 16px;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
        }
        .ai-section.red-flags h5 {
            color: #991b1b;
        }
        .ai-section.red-flags p {
            color: #7f1d1d;
            font-weight: 500;
        }
        .ai-safety-disclaimer {
            background: #f1f5f9;
            padding: 16px;
            border-radius: var(--radius-md);
            display: flex;
            gap: 12px;
            align-items: flex-start;
            margin-top: 24px;
        }
        .ai-safety-disclaimer p {
            font-size: 0.8rem;
            color: var(--text-light);
            line-height: 1.5;
            margin: 0;
        }

        /* Responsive Grid Helper */
        .grid-2-col {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        /* Responsive Table Wrapper */
        .table-responsive {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin-bottom: 1rem;
            border-radius: var(--radius-md);
        }
        .table-responsive table {
            min-width: 600px;
        }

        /* Mobile Navigation Toggle Button */
        .mobile-menu-btn {
            display: none;
            background: white;
            border: 1px solid #d1d5db;
            width: 44px;
            height: 44px;
            border-radius: var(--radius-sm);
            color: var(--text-dark);
            font-size: 1.2rem;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        .mobile-menu-btn:hover {
            background: #f3f4f6;
            color: var(--blue-primary);
        }
        .nav-menu-wrapper {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        /* --- Comprehensive Responsive Layout --- */
        @media (max-width: 1024px) {
            .hero-text h1 { font-size: 3.5rem; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .pharmacy-layout { grid-template-columns: 1fr; }
            .grid-2-col { grid-template-columns: 1fr; }
        }

        @media (max-width: 860px) {
            .mobile-menu-btn {
                display: flex !important;
            }
            .navbar {
                height: 70px !important;
                padding: 0 !important;
                position: sticky;
                top: 0;
                z-index: 1000;
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(10px);
                border-bottom: 1px solid var(--glass-border);
            }
            .navbar .container {
                display: flex !important;
                flex-direction: row !important;
                justify-content: space-between !important;
                align-items: center !important;
                width: 100% !important;
                height: 100% !important;
                padding: 0 16px !important;
                margin: 0 auto;
            }
            .logo {
                margin: 0 !important;
            }
            .logo svg {
                height: 46px !important;
                max-width: 240px !important;
            }
            .nav-menu-wrapper {
                display: none !important;
                position: absolute;
                top: 70px;
                left: 0;
                right: 0;
                width: 100% !important;
                flex-direction: column;
                background: white;
                padding: 20px;
                box-shadow: 0 15px 35px rgba(0,0,0,0.15);
                gap: 16px;
                border-bottom: 2px solid var(--blue-light);
                z-index: 999;
            }
            .nav-menu-wrapper.active {
                display: flex !important;
                animation: fadeUp 0.3s ease-out;
            }
            .nav-links {
                display: flex !important;
                flex-direction: column;
                gap: 12px;
                text-align: center;
                width: 100%;
            }
            .nav-links a {
                margin: 0;
                padding: 8px 0;
                border-bottom: 1px solid #f3f4f6;
            }
            .hero-section {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 2.5rem;
                padding-top: 20px;
                padding-bottom: 40px;
                min-height: auto;
            }
            .hero-text p {
                max-width: 100%;
                margin-left: auto;
                margin-right: auto;
            }
            .hero-actions {
                justify-content: center;
                flex-direction: column;
                width: 100%;
                margin-top: 20px;
            }
            .hero-actions button {
                width: 100%;
                max-width: 340px;
            }
            .mic-btn {
                width: 44px;
                height: 44px;
                font-size: 1.05rem;
                align-self: center;
                margin: 6px auto;
            }
            
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .pharmacy-layout { grid-template-columns: 1fr; }
            
            .navbar {
                height: auto;
                padding: 14px 0;
            }
            .navbar .container {
                flex-direction: column;
                gap: 12px;
                padding: 0 16px;
            }
            .nav-actions {
                flex-direction: column;
                width: 100%;
                gap: 10px;
            }
            #landing-actions {
                flex-direction: column;
                width: 100%;
                align-items: stretch !important;
                gap: 10px;
            }
            .portal-select {
                margin-right: 0;
                width: 100%;
                text-align: center;
            }
            #landing-links { display: none !important; }
            
            .phone-wrapper,
            .phone-mockup {
                width: 100%;
                max-width: 350px;
                height: auto;
                min-height: 540px;
                border-width: 8px;
                margin: 0 auto;
            }
            .patient-search-area {
                padding: 24px 16px;
                border-radius: var(--radius-md);
            }
            
            footer > div {
                flex-direction: column;
                text-align: center;
                align-items: center;
                gap: 12px;
            }
        }

        @media (max-width: 600px) {
            .search-input-wrapper {
                flex-direction: column;
                gap: 12px;
                align-items: stretch;
            }
            .search-input-wrapper input {
                padding-right: 16px !important;
                border-radius: 16px !important;
                font-size: 1rem;
            }
            .search-actions {
                position: static !important;
                justify-content: center;
                width: 100%;
                margin-top: 8px;
            }
            .search-actions .btn {
                flex: 1;
            }
        }

        @media (max-width: 480px) {
            .container { padding: 0 14px; }
            .stats-grid { grid-template-columns: 1fr; }
            .hero-text h1 { font-size: 2.25rem; }
            .hero-text p { font-size: 1rem; }
            .nav-actions select { width: 100%; }
            .modal-content {
                padding: 20px 16px;
                width: 95%;
                max-height: 90vh;
                overflow-y: auto;
            }
            .panel { padding: 16px; }
            .stat-card .value { font-size: 1.6rem; }
        }

        /* Facility Search & Dual Section Enhancements */
        .radius-filter-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin: 16px 0 24px 0;
            padding: 12px 16px;
            background: #f8fafc;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }
        .radius-pill {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            border: 1px solid #cbd5e1;
            background: white;
            color: var(--text-dark);
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .radius-pill:hover {
            border-color: var(--blue-primary);
            color: var(--blue-primary);
        }
        .radius-pill.active {
            background: var(--blue-primary);
            color: white;
            border-color: var(--blue-primary);
            box-shadow: 0 2px 6px rgba(26, 104, 166, 0.25);
        }

        .facility-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 28px 0 16px 0;
            padding-bottom: 8px;
            border-bottom: 2px solid #f1f5f9;
        }
        .facility-section-header h4 {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0;
        }
        .facility-badge-count {
            background: #e2e8f0;
            color: var(--text-dark);
            font-size: 0.75rem;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 12px;
        }

        .facility-card {
            background: white;
            border-radius: 14px;
            border: 1px solid #e5e7eb;
            padding: 20px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .facility-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
            border-color: #cbd5e1;
        }
        .facility-card.hospital-card {
            border-left: 4px solid var(--blue-primary);
        }
        .facility-card.pharmacy-card {
            border-left: 4px solid var(--green-primary);
        }

        .facility-actions {
            display: flex;
            gap: 8px;
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid #f1f5f9;
            flex-wrap: wrap;
        }
        .facility-btn {
            flex: 1;
            min-width: 100px;
            padding: 8px 12px;
            font-size: 0.82rem;
            font-weight: 600;
            border-radius: 8px;
            text-align: center;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
        }
        .facility-btn.btn-call {
            background: #f0fdf4;
            color: #166534;
            border-color: #bbf7d0;
        }
        .facility-btn.btn-call:hover {
            background: #dcfce7;
        }
        .facility-btn.btn-directions {
            background: #eff6ff;
            color: #1d4ed8;
            border-color: #bfdbfe;
        }
        .facility-btn.btn-directions:hover {
            background: #dbeafe;
        }
        .facility-btn.btn-inquire {
            background: #f8fafc;
            color: var(--text-dark);
            border-color: #e2e8f0;
        }
        .facility-btn.btn-inquire:hover {
            background: #f1f5f9;
        }

        /* ==========================================================================
           Standardized Production Landing Page Architecture
           ========================================================================== */

        .landing-section {
            padding: 44px 0;
            position: relative;
        }

        .section-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(37, 99, 235, 0.08);
            color: var(--blue-light);
            border: 1px solid rgba(37, 99, 235, 0.18);
            padding: 5px 14px;
            border-radius: 999px;
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 12px;
        }

        .section-heading-wrap {
            text-align: center;
            max-width: 680px;
            margin: 0 auto 36px auto;
        }

        .section-heading-wrap h2 {
            font-size: 2.25rem;
            font-weight: 800;
            color: var(--text-dark);
            line-height: 1.18;
            margin-bottom: 10px;
            letter-spacing: -0.025em;
        }

        .section-heading-wrap p {
            color: var(--text-light);
            font-size: 1.02rem;
            line-height: 1.55;
        }

        /* Trust / Partners Ribbon */
        .trust-ribbon {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            padding: 16px 24px;
            margin: 8px 0 28px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
        }

        .trust-title {
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #64748b;
        }

        .trust-logos {
            display: flex;
            align-items: center;
            gap: 28px;
            flex-wrap: wrap;
            color: #475569;
            font-weight: 700;
            font-size: 0.92rem;
        }

        .trust-logo-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: color 0.2s;
        }

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

        /* Live Platform Metrics Strip */
        .metrics-strip {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 18px;
            margin: 12px 0 36px 0;
        }

        .metric-card {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            padding: 20px 18px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
            transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
        }

        .metric-card:hover {
            transform: translateY(-3px);
            border-color: #cbd5e1;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
        }

        .metric-val {
            font-size: 2.1rem;
            font-weight: 800;
            color: var(--blue-primary);
            line-height: 1.1;
            margin-bottom: 4px;
            letter-spacing: -0.02em;
        }

        .metric-label {
            font-size: 0.84rem;
            font-weight: 600;
            color: var(--text-light);
        }

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

        .step-card {
            background: white;
            border-radius: 18px;
            padding: 30px 24px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
            position: relative;
            transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
            display: flex;
            flex-direction: column;
        }

        .step-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
            border-color: #cbd5e1;
        }

        .step-number {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 1.4rem;
            font-weight: 900;
            color: #cbd5e1;
        }

        .step-icon-wrap {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            margin-bottom: 18px;
        }

        .step-card h3 {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 10px;
        }

        .step-card p {
            color: var(--text-light);
            font-size: 0.94rem;
            line-height: 1.55;
            flex: 1;
        }

        /* Bento Features Grid */
        .features-bento {
            display: grid;
            grid-template-columns: 1.35fr 1fr 1fr;
            gap: 20px;
        }

        .bento-card {
            background: white;
            border-radius: 18px;
            padding: 28px 24px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
            transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
            display: flex;
            flex-direction: column;
        }

        .bento-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 26px rgba(0, 0, 0, 0.07);
            border-color: #cbd5e1;
        }

        .bento-card.highlight {
            background: linear-gradient(155deg, #ffffff 0%, #eff6ff 100%);
            border-color: #bfdbfe;
        }

        .bento-icon {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-bottom: 16px;
        }

        .bento-card h3 {
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-dark);
        }

        .bento-card p {
            color: var(--text-light);
            font-size: 0.92rem;
            line-height: 1.55;
        }

        /* Multilingual & Accessibility Showcase */
        .showcase-card {
            background: white;
            border-radius: 20px;
            padding: 32px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
        }

        .languages-showcase-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 32px;
            align-items: stretch;
        }

        #accessibility-info .badge {
            white-space: normal !important;
            word-break: break-word !important;
            text-align: left !important;
            line-height: 1.4 !important;
            display: flex !important;
            align-items: center !important;
        }

        .lang-chips-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
            gap: 10px;
            margin-top: 16px;
        }

        .lang-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-dark);
            cursor: pointer;
            transition: all 0.2s;
            text-align: left;
        }

        .lang-chip:hover, .lang-chip.active {
            background: #eff6ff;
            border-color: var(--blue-light);
            color: var(--blue-primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
        }

        /* CTA Banner */
        .cta-banner {
            background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #0f172a 100%);
            color: white;
            border-radius: 24px;
            padding: 48px 36px;
            text-align: center;
            margin: 36px 0;
            box-shadow: 0 20px 40px -12px rgba(29, 78, 216, 0.38);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .cta-banner h2 {
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 10px;
            letter-spacing: -0.02em;
        }

        .cta-banner p {
            color: #cbd5e1;
            font-size: 1.08rem;
            max-width: 620px;
            margin: 0 auto 28px auto;
            line-height: 1.55;
        }

        .cta-btn-group {
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        /* Master Production Footer */
        .master-footer {
            background: #0f172a;
            color: #e2e8f0;
            padding: 56px 0 28px 0;
            margin-top: 40px;
            border-top: 1px solid #1e293b;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
            gap: 36px;
            margin-bottom: 36px;
        }

        .footer-col h4 {
            color: white;
            font-size: 0.94rem;
            font-weight: 700;
            margin-bottom: 16px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .footer-col ul {
            list-style: none;
            line-height: 2.2;
        }

        .footer-col a {
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.2s;
            font-size: 0.9rem;
        }

        .footer-col a:hover {
            color: white;
        }

        .footer-bottom {
            border-top: 1px solid #1e293b;
            padding-top: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 14px;
            color: #64748b;
            font-size: 0.85rem;
        }

        /* ==========================================================================
           Mobile & Tablet Ultra-Responsive Breakpoints
           ========================================================================== */

        /* ==========================================================================
           Mobile & Tablet Ultra-Responsive Breakpoints
           ========================================================================== */

        @media (max-width: 992px) {
            .nav-links { display: none !important; }
            .hero-section { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; padding: 20px 0 40px 0; }
            .hero-text h1 { font-size: 2.8rem; }
            .hero-text p { margin-left: auto; margin-right: auto; }
            .hero-search-box { margin-left: auto; margin-right: auto; max-width: 520px; }
            .hero-actions { justify-content: center; }
            .metrics-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
            .steps-grid { grid-template-columns: 1fr; }
            .features-bento { grid-template-columns: 1fr; }
            .features-bento .bento-card { grid-column: span 1 !important; grid-row: span 1 !important; }
            .languages-showcase-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
            .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
            .trust-ribbon { justify-content: center; text-align: center; flex-direction: column; gap: 14px; }
            .trust-logos { justify-content: center; }
            .floating-metric { display: none !important; }
        }

        @media (max-width: 768px) {
            :root { --nav-height: 64px; }
            .container { padding: 0 14px; }
            .navbar { padding: 0; }
            .navbar .container { gap: 6px; }
            .logo { font-size: 1.08rem; gap: 6px; }
            .logo span { font-size: 0.98rem; font-weight: 700; white-space: nowrap; }
            .portal-select { display: none !important; }
            
            /* 1. Remove Phone Mockup Screen Div on Mobile */
            .hero-image,
            .hero-image-wrap,
            .phone-wrapper,
            .phone-mockup {
                display: none !important;
            }

            /* 2. Reduced, Compact Production Footer on Mobile */
            .master-footer {
                padding: 28px 0 18px 0 !important;
                margin-top: 28px !important;
            }
            .master-footer .footer-col:nth-child(2),
            .master-footer .footer-col:nth-child(3),
            .master-footer .footer-col:nth-child(4) {
                display: none !important; /* Hide verbose redundant link columns */
            }
            .master-footer .footer-grid {
                grid-template-columns: 1fr !important;
                margin-bottom: 16px !important;
                text-align: center !important;
            }
            .master-footer .footer-col {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
            }
            .master-footer .footer-col p {
                max-width: 100% !important;
                font-size: 0.85rem !important;
            }
            .master-footer .footer-bottom {
                border-top: 1px solid #1e293b !important;
                padding-top: 14px !important;
                flex-direction: column !important;
                text-align: center !important;
                gap: 8px !important;
                font-size: 0.78rem !important;
            }

            /* 3. Remove Clutter & Unnecessary Heavy Elements on Mobile */
            .hero-ambient,
            .floating-metric,
            .trust-ribbon,
            .top-pill,
            .metrics-strip,
            #features {
                display: none !important;
            }

            /* Clean, streamlined Hero for Mobile */
            .hero-section {
                grid-template-columns: 1fr !important;
                text-align: center !important;
                padding: 16px 0 24px 0 !important;
                gap: 1.2rem !important;
                min-height: auto !important;
            }
            .hero-text {
                max-width: 100% !important;
                margin: 0 auto !important;
            }
            .hero-text h1 {
                font-size: 2.15rem !important;
                line-height: 1.18 !important;
                margin-bottom: 6px !important;
            }
            .hero-text p {
                font-size: 0.94rem !important;
                line-height: 1.5 !important;
                margin: 0 auto 18px auto !important;
                max-width: 100% !important;
            }
            .hero-search-box {
                margin: 0 auto 16px auto !important;
                width: 100% !important;
                max-width: 100% !important;
                padding: 4px 6px !important;
            }
            .hero-search-box input {
                font-size: 0.88rem !important;
                padding: 8px 6px !important;
            }
            .hero-actions {
                justify-content: center !important;
                flex-direction: column !important;
                width: 100% !important;
                gap: 10px !important;
            }
            .hero-actions .btn {
                width: 100% !important;
                padding: 12px 18px !important;
                font-size: 0.95rem !important;
            }
            .hero-actions .mic-btn, .mic-btn {
                width: 42px !important;
                height: 42px !important;
                font-size: 0.95rem !important;
                margin: 0 auto 6px auto !important;
                box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
            }
            
            .landing-section { padding: 28px 0 !important; }
            .section-heading-wrap h2 { font-size: 1.5rem !important; }
            .section-heading-wrap p { font-size: 0.88rem !important; }
            .metrics-strip { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
            .metric-card { padding: 16px 12px !important; }
            .metric-val { font-size: 1.8rem !important; }
            .step-card { padding: 20px 14px !important; }
            .bento-card { padding: 18px 14px !important; }
            .languages-showcase-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
            #accessibility-info { padding: 18px 14px !important; border-radius: 14px !important; }
            .lang-chips-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
            .lang-chip { padding: 10px 12px !important; font-size: 0.82rem !important; }
            
            .cta-banner { padding: 28px 16px !important; border-radius: 16px !important; margin: 24px 0 !important; }
            .cta-banner h2 { font-size: 1.55rem !important; }
            .cta-banner p { font-size: 0.9rem !important; margin-bottom: 16px !important; }
            .cta-btn-group { flex-direction: column !important; gap: 8px !important; }
            .cta-btn-group .btn { width: 100% !important; }
            
            /* Floating Accessibility Indicators Mobile Adaptation */
            #tts-active-indicator, #sl-mock {
                left: 10px !important;
                right: 10px !important;
                bottom: 10px !important;
                width: auto !important;
                max-width: calc(100% - 20px) !important;
                padding: 10px 12px !important;
            }
        }

        @media (max-width: 480px) {
            .logo { font-size: 0.98rem; }
            .logo span { font-size: 0.92rem; }
            .metrics-strip { grid-template-columns: 1fr !important; gap: 8px !important; }
        }

        /* ==========================================================================
           High Contrast Accessibility Themes
           ========================================================================== */

        /* 1. The Classic High-Contrast: Off-black text (#121212) on soft cream (#F9F6F0) */
        body.contrast-cream,
        body.high-contrast-mode {
            background: #F9F6F0 !important;
            color: #121212 !important;
        }
        body.contrast-cream .navbar,
        body.contrast-cream .panel,
        body.contrast-cream .step-card,
        body.contrast-cream .bento-card,
        body.contrast-cream .showcase-card,
        body.contrast-cream .metric-card,
        body.contrast-cream .trust-ribbon,
        body.contrast-cream .facility-card,
        body.contrast-cream .hero-search-box,
        body.contrast-cream .lang-chip,
        body.contrast-cream #accessibility-info,
        body.contrast-cream .modal-content {
            background: #FFFFFF !important;
            border: 2px solid #121212 !important;
            color: #121212 !important;
            box-shadow: none !important;
        }
        body.contrast-cream h1,
        body.contrast-cream h2,
        body.contrast-cream h3,
        body.contrast-cream h4,
        body.contrast-cream .metric-val,
        body.contrast-cream .section-badge {
            color: #121212 !important;
            border-color: #121212 !important;
        }
        body.contrast-cream p,
        body.contrast-cream span,
        body.contrast-cream .metric-label,
        body.contrast-cream a,
        body.contrast-cream input,
        body.contrast-cream select {
            color: #121212 !important;
        }
        body.contrast-cream .btn-primary {
            background: #121212 !important;
            color: #FFFFFF !important;
            border: 2px solid #121212 !important;
            font-weight: 700 !important;
        }
        body.contrast-cream .btn-outline {
            background: #FFFFFF !important;
            border: 2px solid #121212 !important;
            color: #121212 !important;
            font-weight: 700 !important;
        }
        body.contrast-cream .master-footer {
            background: #121212 !important;
            color: #FFFFFF !important;
            border-top: 2px solid #121212 !important;
        }
        body.contrast-cream .master-footer p,
        body.contrast-cream .master-footer a,
        body.contrast-cream .master-footer span {
            color: #E0E0E0 !important;
        }

        /* 2. The Safe Primary: Deep Navy Blue (#002060) on Light Yellow (#FFF2CC) */
        body.contrast-navy {
            background: #FFF2CC !important;
            color: #002060 !important;
        }
        body.contrast-navy .navbar,
        body.contrast-navy .panel,
        body.contrast-navy .step-card,
        body.contrast-navy .bento-card,
        body.contrast-navy .showcase-card,
        body.contrast-navy .metric-card,
        body.contrast-navy .trust-ribbon,
        body.contrast-navy .facility-card,
        body.contrast-navy .hero-search-box,
        body.contrast-navy .lang-chip,
        body.contrast-navy #accessibility-info,
        body.contrast-navy .modal-content {
            background: #FFFFFF !important;
            border: 2px solid #002060 !important;
            color: #002060 !important;
            box-shadow: none !important;
        }
        body.contrast-navy h1,
        body.contrast-navy h2,
        body.contrast-navy h3,
        body.contrast-navy h4,
        body.contrast-navy .metric-val,
        body.contrast-navy .section-badge {
            color: #002060 !important;
            border-color: #002060 !important;
        }
        body.contrast-navy p,
        body.contrast-navy span,
        body.contrast-navy .metric-label,
        body.contrast-navy a,
        body.contrast-navy input,
        body.contrast-navy select {
            color: #002060 !important;
        }
        body.contrast-navy .btn-primary {
            background: #002060 !important;
            color: #FFFFFF !important;
            border: 2px solid #002060 !important;
            font-weight: 700 !important;
        }
        body.contrast-navy .btn-outline {
            background: #FFFFFF !important;
            border: 2px solid #002060 !important;
            color: #002060 !important;
            font-weight: 700 !important;
        }
        body.contrast-navy .master-footer {
            background: #002060 !important;
            color: #FFFFFF !important;
            border-top: 2px solid #002060 !important;
        }
        body.contrast-navy .master-footer p,
        body.contrast-navy .master-footer a,
        body.contrast-navy .master-footer span {
            color: #FFF2CC !important;
        }

        /* 3. The Accessible Dark Mode: Light Charcoal (#E0E0E0) on Dark Slate (#1A202C) */
        body.contrast-dark {
            background: #1A202C !important;
            color: #E0E0E0 !important;
        }
        body.contrast-dark .navbar,
        body.contrast-dark .panel,
        body.contrast-dark .step-card,
        body.contrast-dark .bento-card,
        body.contrast-dark .showcase-card,
        body.contrast-dark .metric-card,
        body.contrast-dark .trust-ribbon,
        body.contrast-dark .facility-card,
        body.contrast-dark .hero-search-box,
        body.contrast-dark .lang-chip,
        body.contrast-dark #accessibility-info,
        body.contrast-dark .modal-content {
            background: #2D3748 !important;
            border: 1px solid #4A5568 !important;
            color: #E0E0E0 !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
        }
        body.contrast-dark h1,
        body.contrast-dark h2,
        body.contrast-dark h3,
        body.contrast-dark h4,
        body.contrast-dark .metric-val {
            color: #FFFFFF !important;
        }
        body.contrast-dark .section-badge {
            background: #2D3748 !important;
            color: #63B3ED !important;
            border-color: #4A5568 !important;
        }
        body.contrast-dark p,
        body.contrast-dark span,
        body.contrast-dark .metric-label,
        body.contrast-dark a,
        body.contrast-dark input,
        body.contrast-dark select {
            color: #E0E0E0 !important;
        }
        body.contrast-dark .btn-primary {
            background: #3182CE !important;
            color: #FFFFFF !important;
            border: 2px solid #63B3ED !important;
            font-weight: 700 !important;
        }
        body.contrast-dark .btn-outline {
            background: transparent !important;
            border: 2px solid #63B3ED !important;
            color: #63B3ED !important;
            font-weight: 700 !important;
        }
        body.contrast-dark .master-footer {
            background: #171923 !important;
            color: #CBD5E0 !important;
            border-top: 1px solid #2D3748 !important;
        }
        body.contrast-dark .master-footer p,
        body.contrast-dark .master-footer a,
        body.contrast-dark .master-footer span {
            color: #A0AEC0 !important;
        }

        /* Screen Reader Active Speaking Highlight */
        .tts-speaking-highlight {
            outline: 3px solid #2563eb !important;
            outline-offset: 3px !important;
            background-color: rgba(37, 99, 235, 0.12) !important;
            border-radius: 8px !important;
            transition: outline 0.1s ease, background-color 0.1s ease !important;
        }