/* =========================================================
   ELEVATED DARK MODE (OBSIDIAN GLASS + JEWEL-TONED ACCENTS)
   Scoped strictly to html.dark — preserves light mode default
   and leaves #command-os, #vaultrag, #contact, footer, and
   #warroom-modal untouched.
   ========================================================= */

html.dark body {
    background-color: #020612;
    color: #e2e8f0;
}

html.dark .bg-grid {
    background-image:
        linear-gradient(to right, rgba(56, 189, 248, 0.065) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.065) 1px, transparent 1px);
    opacity: 0.95;
}

html.dark .ambient-bg {
    background-image:
        radial-gradient(circle at 10% 16%, rgba(56, 189, 248, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 86% 20%, rgba(251, 191, 36, 0.12) 0%, transparent 36%),
        radial-gradient(circle at 82% 68%, rgba(16, 185, 129, 0.16) 0%, transparent 44%),
        radial-gradient(circle at 42% 48%, rgba(99, 102, 241, 0.15) 0%, transparent 56%);
}

/* Navbar & Glass Surfaces */
html.dark .glass-panel {
    background: rgba(5, 10, 24, 0.80);
    border-color: rgba(56, 189, 248, 0.22);
    box-shadow:
        0 14px 40px -6px rgba(0, 0, 0, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        inset 0 -1px 0 rgba(56, 189, 248, 0.18);
}

html.dark #navbar img[src*="arzel-a"] {
    filter: drop-shadow(0 0 1.2px rgba(248, 250, 252, 0.9)) drop-shadow(0 0 10px rgba(56, 189, 248, 0.35));
}

html.dark .matte-pill {
    background: linear-gradient(145deg, rgba(24, 36, 62, 0.88) 0%, rgba(11, 18, 34, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #f1f5f9;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html.dark .matte-pill:hover {
    background: linear-gradient(145deg, rgba(30, 48, 82, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(56, 189, 248, 0.65);
    color: #7dd3fc;
    box-shadow:
        0 12px 28px rgba(14, 165, 233, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Luminous Obsidian Glass Cards */
html.dark .glass-card {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 55%),
        linear-gradient(155deg, rgba(22, 33, 58, 0.94) 0%, rgba(11, 18, 34, 0.97) 58%, rgba(6, 10, 22, 0.99) 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow:
        0 20px 44px -10px rgba(0, 0, 0, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

html.dark .glass-card::before {
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #34d399, #fbbf24);
    opacity: 0.75;
}

html.dark .glass-card:hover {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow:
        0 28px 56px -12px rgba(0, 0, 0, 0.85),
        0 0 36px -6px rgba(56, 189, 248, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html.dark .glass-card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, #38bdf8, #2dd4bf, #fbbf24);
}

html.dark .text-gradient-blue {
    background-image: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 50%, #fbbf24 100%);
    filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.28));
}

/* Navbar Brand & Actions */
html.dark #navbar .text-slate-900 { color: #f8fafc; }
html.dark #navbar .text-slate-600 { color: #cbd5e1; }
html.dark #navbar .text-sky-600 { color: #38bdf8; }
html.dark #navbar .bg-sky-50 {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(16, 185, 129, 0.16));
    border-color: rgba(56, 189, 248, 0.48);
    color: #7dd3fc;
    box-shadow: 0 0 22px rgba(14, 165, 233, 0.24);
}
html.dark #navbar .bg-sky-50:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.34), rgba(16, 185, 129, 0.24));
    border-color: rgba(125, 211, 252, 0.75);
}
html.dark #mobile-menu {
    background: rgba(6, 11, 25, 0.96);
    border-color: rgba(56, 189, 248, 0.18);
    color: #e2e8f0;
}
html.dark #mobile-menu a:hover {
    background-color: rgba(30, 41, 59, 0.85);
}

/* Hero Section Glow & Accents */
html.dark body > section:first-of-type {
    background:
        radial-gradient(ellipse 60% 50% at 22% 40%, rgba(14, 165, 233, 0.12), transparent 65%),
        radial-gradient(ellipse 70% 55% at 72% 45%, rgba(56, 189, 248, 0.12), transparent 70%);
}
html.dark body > section:first-of-type .matte-pill:first-child {
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.85));
    color: #fde68a;
}

/* Section Atmospheric Surfaces */
html.dark #architecture {
    background:
        radial-gradient(ellipse 75% 45% at 50% 0%, rgba(56, 189, 248, 0.13), transparent 65%),
        radial-gradient(ellipse 65% 40% at 85% 65%, rgba(99, 102, 241, 0.10), transparent 65%),
        #060b19;
    border-color: rgba(56, 189, 248, 0.18);
}

html.dark #projects {
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(16, 185, 129, 0.12), transparent 65%),
        radial-gradient(ellipse 50% 40% at 15% 80%, rgba(56, 189, 248, 0.08), transparent 65%),
        #020612;
    border-color: rgba(52, 211, 153, 0.16);
}

html.dark #agency {
    background:
        radial-gradient(ellipse 75% 50% at 50% 0%, rgba(99, 102, 241, 0.14), transparent 65%),
        radial-gradient(ellipse 55% 40% at 85% 85%, rgba(16, 185, 129, 0.10), transparent 65%),
        #060b19;
    border-color: rgba(129, 140, 248, 0.2);
}

html.dark #academy {
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(56, 189, 248, 0.10), transparent 65%),
        #020612;
    border-color: rgba(56, 189, 248, 0.16);
}

/* Typography Overrides for Light Sections Only (Preserves Hero Paper Artifacts) */
html.dark body > section:first-of-type .text-slate-900,
html.dark #architecture .text-slate-900,
html.dark #projects .text-slate-900,
html.dark #agency .text-slate-900,
html.dark #academy > div > div:first-child .text-slate-900 {
    color: #f8fafc;
}

html.dark body > section:first-of-type .text-slate-800,
html.dark #architecture .text-slate-800,
html.dark #projects .text-slate-800,
html.dark #agency .text-slate-800,
html.dark #academy > div > div:first-child .text-slate-800 {
    color: #e2e8f0;
}

html.dark body > section:first-of-type .text-slate-700,
html.dark #architecture .text-slate-700,
html.dark #projects .text-slate-700,
html.dark #agency .text-slate-700,
html.dark #academy > div > div:first-child .text-slate-700 {
    color: #cbd5e1;
}

html.dark body > section:first-of-type .text-slate-600,
html.dark #architecture .text-slate-600,
html.dark #projects .text-slate-600,
html.dark #agency .text-slate-600,
html.dark #academy > div > div:first-child .text-slate-600 {
    color: #94a3b8;
}

html.dark body > section:first-of-type .text-slate-500,
html.dark #architecture .text-slate-500,
html.dark #projects .text-slate-500,
html.dark #agency .text-slate-500,
html.dark #academy > div > div:first-child .text-slate-500 {
    color: #94a3b8;
}

html.dark body > section:first-of-type .border-slate-200\/80,
html.dark #projects .border-slate-100,
html.dark #agency .border-slate-100 {
    border-color: rgba(148, 163, 184, 0.18);
}

/* Color-Coded Projects Cards (#projects) */
html.dark #projects .glass-card:nth-child(1) {
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 55%), linear-gradient(155deg, #101d35 0%, #091020 100%);
    border-color: rgba(56, 189, 248, 0.28);
}
html.dark #projects .glass-card:nth-child(1)::before { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
html.dark #projects .glass-card:nth-child(2) {
    background: radial-gradient(circle at top right, rgba(129, 140, 248, 0.16), transparent 55%), linear-gradient(155deg, #161838 0%, #0b0d22 100%);
    border-color: rgba(129, 140, 248, 0.3);
}
html.dark #projects .glass-card:nth-child(2)::before { background: linear-gradient(90deg, #6366f1, #a78bfa); }
html.dark #projects .glass-card:nth-child(3) {
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 55%), linear-gradient(155deg, #211a14 0%, #0d101b 100%);
    border-color: rgba(251, 191, 36, 0.28);
}
html.dark #projects .glass-card:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

html.dark #projects .bg-emerald-50 {
    background-color: rgba(16, 185, 129, 0.18);
    border-color: rgba(52, 211, 153, 0.45);
    color: #6ee7b7;
}
html.dark #projects .text-emerald-600 {
    color: #34d399;
    text-shadow: 0 0 18px rgba(52, 211, 153, 0.25);
}
html.dark #projects .text-sky-600 { color: #38bdf8; }
html.dark #projects .text-indigo-600 { color: #a5b4fc; }
html.dark #projects .text-amber-600 { color: #fbbf24; }
html.dark #projects > div > .bg-slate-900 {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 55%), linear-gradient(155deg, #0b1929 0%, #060d18 100%);
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.75);
}

/* Color-Coded Agency Cards (#agency) */
html.dark #agency .glass-card:nth-child(1) {
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 55%), linear-gradient(155deg, #0f1e38 0%, #091020 100%);
    border-color: rgba(56, 189, 248, 0.3);
}
html.dark #agency .glass-card:nth-child(1)::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
html.dark #agency .glass-card:nth-child(2) {
    background: radial-gradient(circle at top right, rgba(129, 140, 248, 0.22), transparent 58%), linear-gradient(155deg, #191b42 0%, #0b0e24 100%);
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 24px 55px -12px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
html.dark #agency .glass-card:nth-child(2)::before { background: linear-gradient(90deg, #6366f1, #a855f7, #fbbf24); }
html.dark #agency .glass-card:nth-child(3) {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 55%), linear-gradient(155deg, #0d2422 0%, #09121a 100%);
    border-color: rgba(52, 211, 153, 0.3);
}
html.dark #agency .glass-card:nth-child(3)::before { background: linear-gradient(90deg, #059669, #34d399); }

html.dark #agency .bg-indigo-50,
html.dark #agency .bg-indigo-100 {
    background-color: rgba(99, 102, 241, 0.22);
    border-color: rgba(129, 140, 248, 0.45);
    color: #c7d2fe;
}
html.dark #agency .bg-sky-50,
html.dark #agency .bg-sky-100 {
    background-color: rgba(14, 165, 233, 0.2);
    border-color: rgba(56, 189, 248, 0.42);
    color: #7dd3fc;
}
html.dark #agency .bg-emerald-50,
html.dark #agency .bg-emerald-100 {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: rgba(52, 211, 153, 0.42);
    color: #6ee7b7;
}
html.dark #agency .ring-indigo-500\/20 { --tw-ring-color: rgba(129, 140, 248, 0.48); }
html.dark #agency .text-sky-600 { color: #38bdf8; }
html.dark #agency .text-indigo-600 { color: #a5b4fc; }
html.dark #agency .text-emerald-600 { color: #34d399; }

/* Keep Hero 3D Paper Artifacts Bright Against Dark Space */
html.dark .portal-scene-wrapper .text-slate-900 { color: #0f172a; }
html.dark .portal-scene-wrapper .text-slate-800 { color: #1e293b; }
html.dark .portal-scene-wrapper .text-slate-700 { color: #334155; }
html.dark .portal-scene-wrapper .text-slate-600 { color: #475569; }
html.dark .portal-scene-wrapper .text-slate-500 { color: #64748b; }

/* Brighten Hero Right-Side Code Streams with Electric Glow */
html.dark .code-line-stream {
    text-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
}
html.dark .code-line-stream .text-sky-700,
html.dark .code-line-stream .text-sky-800 { color: #38bdf8; }
html.dark .code-line-stream .text-emerald-700,
html.dark .code-line-stream .text-emerald-800 { color: #34d399; }
html.dark .code-line-stream .text-amber-700 { color: #fbbf24; }
html.dark .code-line-stream .text-indigo-700 { color: #a5b4fc; }
html.dark .code-line-stream .text-rose-600 { color: #fb7185; }

/* Hero Interoperability Marquee */
html.dark .animate-marquee { color: #e2e8f0; opacity: 0.95; }
html.dark div.py-7.bg-white\/80 {
    background: linear-gradient(90deg, rgba(4, 9, 22, 0.94) 0%, rgba(15, 27, 52, 0.86) 50%, rgba(4, 9, 22, 0.94) 100%);
    border-color: rgba(56, 189, 248, 0.22);
}

/* Architecture Timeline & Color-Coded Cards (Steps 01–04) */
html.dark #architecture .bg-sky-50 {
    background-color: rgba(14, 165, 233, 0.18);
    border-color: rgba(56, 189, 248, 0.42);
    color: #7dd3fc;
}
html.dark #architecture .bg-slate-200 {
    background-color: rgba(51, 65, 85, 0.78);
}
html.dark #architecture .arch-step:not(.is-active) .arch-card {
    background: #0b1222;
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.68);
}
html.dark #architecture .arch-step.is-active .arch-card {
    background: #0b1222;
}
html.dark #architecture .arch-step[data-step="1"] .arch-card > .lg\:w-\[66\%\] {
    background: radial-gradient(circle at 92% 12%, rgba(56, 189, 248, 0.10), transparent 55%), #070d1d;
}
html.dark #architecture .arch-step[data-step="2"] .arch-card > .lg\:w-\[66\%\] {
    background: radial-gradient(circle at 92% 12%, rgba(16, 185, 129, 0.10), transparent 55%), #070f18;
}
html.dark #architecture .arch-step[data-step="3"] .arch-card > .lg\:w-\[66\%\] {
    background: radial-gradient(circle at 92% 12%, rgba(99, 102, 241, 0.12), transparent 55%), #090c1e;
}
html.dark #architecture .arch-step[data-step="4"] .arch-card > .lg\:w-\[66\%\] {
    background: radial-gradient(circle at 92% 12%, rgba(244, 63, 94, 0.10), transparent 55%), #120914;
}

/* Rich Layer Color Even Before Focal Activation */
html.dark #architecture .arch-step[data-step="1"]:not(.is-active) .arch-header-pane {
    background: linear-gradient(155deg, rgba(14, 165, 233, 0.28) 0%, rgba(11, 22, 44, 0.96) 78%);
    border-color: rgba(56, 189, 248, 0.35);
}
html.dark #architecture .arch-step[data-step="2"]:not(.is-active) .arch-header-pane {
    background: linear-gradient(155deg, rgba(16, 185, 129, 0.28) 0%, rgba(9, 26, 26, 0.96) 78%);
    border-color: rgba(52, 211, 153, 0.35);
}
html.dark #architecture .arch-step[data-step="3"]:not(.is-active) .arch-header-pane {
    background: linear-gradient(155deg, rgba(99, 102, 241, 0.30) 0%, rgba(16, 18, 46, 0.96) 78%);
    border-color: rgba(129, 140, 248, 0.35);
}
html.dark #architecture .arch-step[data-step="4"]:not(.is-active) .arch-header-pane {
    background: linear-gradient(155deg, rgba(244, 63, 94, 0.28) 0%, rgba(36, 13, 25, 0.96) 78%);
    border-color: rgba(251, 113, 133, 0.35);
}

html.dark #architecture .arch-step[data-step="1"]:not(.is-active) .arch-step-badge { background: rgba(14, 165, 233, 0.24); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
html.dark #architecture .arch-step[data-step="2"]:not(.is-active) .arch-step-badge { background: rgba(16, 185, 129, 0.24); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.4); }
html.dark #architecture .arch-step[data-step="3"]:not(.is-active) .arch-step-badge { background: rgba(99, 102, 241, 0.26); color: #c7d2fe; border: 1px solid rgba(129, 140, 248, 0.4); }
html.dark #architecture .arch-step[data-step="4"]:not(.is-active) .arch-step-badge { background: rgba(244, 63, 94, 0.24); color: #fda4af; border: 1px solid rgba(251, 113, 133, 0.4); }

html.dark #architecture .arch-step:not(.is-active) .arch-watermark { color: rgba(255, 255, 255, 0.09); }
html.dark #architecture .arch-step:not(.is-active) .arch-spine-node {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
html.dark #architecture .arch-step:not(.is-active) .arch-cap-card {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.18);
}
html.dark #architecture .arch-step[data-step="1"]:not(.is-active) .arch-cap-icon { background: rgba(14, 165, 233, 0.20); color: #38bdf8; }
html.dark #architecture .arch-step[data-step="2"]:not(.is-active) .arch-cap-icon { background: rgba(16, 185, 129, 0.20); color: #34d399; }
html.dark #architecture .arch-step[data-step="3"]:not(.is-active) .arch-cap-icon { background: rgba(99, 102, 241, 0.22); color: #818cf8; }
html.dark #architecture .arch-step[data-step="4"]:not(.is-active) .arch-cap-icon { background: rgba(244, 63, 94, 0.20); color: #fb7185; }

html.dark #architecture .arch-step:not(.is-active) .arch-status-pill {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.24);
    color: #cbd5e1;
}

/* Vibrant Active Capability Cards, Output Streams & Badges */
html.dark #architecture .bg-slate-50,
html.dark #architecture .bg-slate-100 {
    background-color: rgba(15, 23, 42, 0.94);
    border-color: rgba(148, 163, 184, 0.24);
    color: #e2e8f0;
}
html.dark #architecture .bg-emerald-50 { background-color: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.42); }
html.dark #architecture .bg-indigo-50 { background-color: rgba(99, 102, 241, 0.22); color: #c7d2fe; border: 1px solid rgba(129, 140, 248, 0.45); }
html.dark #architecture .bg-rose-50 { background-color: rgba(244, 63, 94, 0.2); color: #fda4af; border: 1px solid rgba(251, 113, 133, 0.42); }
html.dark #architecture .text-sky-600 { color: #38bdf8; }
html.dark #architecture .text-emerald-600 { color: #34d399; }
html.dark #architecture .text-indigo-600 { color: #818cf8; }
html.dark #architecture .text-rose-600 { color: #fb7185; }

html.dark #architecture .border-slate-100,
html.dark #architecture .border-slate-200\/80 {
    border-color: rgba(148, 163, 184, 0.16);
}

html.dark #architecture .arch-step[data-step="1"].is-active .arch-cap-card {
    background: linear-gradient(155deg, rgba(14, 165, 233, 0.22) 0%, rgba(11, 18, 34, 0.96) 100%);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 12px 30px -6px rgba(14, 165, 233, 0.34);
}
html.dark #architecture .arch-step[data-step="2"].is-active .arch-cap-card {
    background: linear-gradient(155deg, rgba(16, 185, 129, 0.22) 0%, rgba(11, 18, 34, 0.96) 100%);
    border-color: rgba(52, 211, 153, 0.6);
    box-shadow: 0 12px 30px -6px rgba(16, 185, 129, 0.34);
}
html.dark #architecture .arch-step[data-step="3"].is-active .arch-cap-card {
    background: linear-gradient(155deg, rgba(99, 102, 241, 0.24) 0%, rgba(11, 18, 34, 0.96) 100%);
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 12px 30px -6px rgba(99, 102, 241, 0.34);
}
html.dark #architecture .arch-step[data-step="4"].is-active .arch-cap-card {
    background: linear-gradient(155deg, rgba(244, 63, 94, 0.22) 0%, rgba(11, 18, 34, 0.96) 100%);
    border-color: rgba(251, 113, 133, 0.6);
    box-shadow: 0 12px 30px -6px rgba(244, 63, 94, 0.34);
}

html.dark #architecture .arch-step[data-step="1"].is-active .arch-status-pill {
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(56, 189, 248, 0.52);
    color: #7dd3fc;
}
html.dark #architecture .arch-step[data-step="2"].is-active .arch-status-pill {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(52, 211, 153, 0.52);
    color: #6ee7b7;
}
html.dark #architecture .arch-step[data-step="3"].is-active .arch-status-pill {
    background: rgba(99, 102, 241, 0.24);
    border-color: rgba(129, 140, 248, 0.52);
    color: #c7d2fe;
}
html.dark #architecture .arch-step[data-step="4"].is-active .arch-status-pill {
    background: rgba(244, 63, 94, 0.22);
    border-color: rgba(251, 113, 133, 0.52);
    color: #fda4af;
}

/* Academy Showcase Dark Glass + Color-Coded Module Cards */
html.dark #academy > div > div:first-child {
    background:
        radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.18), transparent 45%),
        radial-gradient(circle at 88% 82%, rgba(16, 185, 129, 0.16), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.10), transparent 60%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.96) 0%, rgba(8, 13, 26, 0.99) 100%);
    border-color: rgba(56, 189, 248, 0.34);
    box-shadow: 0 26px 56px -12px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html.dark #academy > div > div:first-child .bg-sky-100 {
    background-color: rgba(14, 165, 233, 0.22);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
}
html.dark #academy > div > div:first-child .bg-white\/95:nth-child(1) {
    background: linear-gradient(155deg, rgba(14, 165, 233, 0.16) 0%, rgba(11, 18, 34, 0.96) 100%);
    border-color: rgba(56, 189, 248, 0.32);
}
html.dark #academy > div > div:first-child .bg-white\/95:nth-child(2) {
    background: linear-gradient(155deg, rgba(16, 185, 129, 0.16) 0%, rgba(11, 18, 34, 0.96) 100%);
    border-color: rgba(52, 211, 153, 0.32);
}
html.dark #academy > div > div:first-child .bg-white\/95:nth-child(3) {
    background: linear-gradient(155deg, rgba(99, 102, 241, 0.18) 0%, rgba(11, 18, 34, 0.96) 100%);
    border-color: rgba(129, 140, 248, 0.34);
}
html.dark #academy > div > div:first-child .bg-white\/95:hover {
    box-shadow: 0 16px 34px -8px rgba(56, 189, 248, 0.25);
}
html.dark #academy > div > div:first-child .bg-slate-900 {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.38);
}
html.dark #academy > div > div:first-child .bg-slate-900:hover {
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
}
html.dark #academy code.text-emerald-700 { color: #34d399; }

/* Floating Contact Widget & Academy Notes Modal */
html.dark #floating-contact-card {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 55%),
        linear-gradient(155deg, rgba(15, 23, 42, 0.90) 0%, rgba(7, 11, 22, 0.96) 100%);
    border-color: rgba(56, 189, 248, 0.34);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.7),
        0 0 28px rgba(14, 165, 233, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
html.dark #floating-contact-card h3,
html.dark #floating-contact-card .text-slate-800 { color: #f8fafc; }
html.dark #floating-contact-card .text-sky-800 { color: #38bdf8; }
html.dark #floating-contact-card .bg-white\/45 {
    background-color: rgba(24, 36, 62, 0.78);
    border-color: rgba(56, 189, 248, 0.24);
    color: #e2e8f0;
}
html.dark #floating-contact-card .bg-white\/45:hover {
    background-color: rgba(30, 48, 82, 0.95);
    border-color: rgba(56, 189, 248, 0.55);
}
html.dark #floating-booking-btn {
    background-color: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.45);
    color: #6ee7b7;
}
html.dark #floating-booking-btn:hover {
    background-color: rgba(16, 185, 129, 0.28);
}
html.dark #floating-contact-pill {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(14, 165, 233, 0.22));
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #f8fafc;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
}

html.dark #health-tech-notes-modal > div {
    background-color: #0b1222;
    border-color: rgba(56, 189, 248, 0.32);
}
html.dark #health-tech-notes-modal .bg-slate-100,
html.dark #health-tech-notes-modal #notes-modal-content {
    background-color: #070d19;
    border-color: rgba(51, 65, 85, 0.85);
}
html.dark #notes-modal-content > div {
    background: linear-gradient(155deg, rgba(22, 33, 58, 0.92) 0%, rgba(11, 18, 34, 0.98) 100%);
    border-color: rgba(56, 189, 248, 0.25);
}
html.dark #notes-modal-content h4 { color: #f8fafc; }
html.dark #notes-modal-content p { color: #cbd5e1; }

/* Free Consultation Modal Dark Mode */
html.dark #consultation-modal .consult-modal-card {
    background: linear-gradient(155deg, #0f172a 0%, #070d19 100%);
    border-color: rgba(56, 189, 248, 0.32);
    color: #e2e8f0;
}
html.dark #consultation-modal .text-slate-600,
html.dark #consultation-modal .text-slate-500 { color: #94a3b8; }
html.dark #consultation-modal .consult-input {
    background-color: #050a16;
    border-color: rgba(51, 65, 85, 0.9);
    color: #f8fafc;
}
html.dark #consultation-modal .consult-service-btn.bg-slate-50 {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: rgba(51, 65, 85, 0.9);
    color: #cbd5e1;
}
html.dark #consultation-modal .consult-service-btn.bg-sky-50 {
    background-color: rgba(14, 165, 233, 0.2);
    border-color: #38bdf8;
    color: #7dd3fc;
}
html.dark #consultation-modal .consult-alt-btn {
    background-color: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.28);
}
html.dark #consultation-modal .consult-alt-btn:hover { background-color: #334155; }
html.dark #consultation-modal .consult-pill {
    background-color: rgba(30, 41, 59, 0.85);
    color: #e2e8f0;
}
html.dark #consultation-modal .consult-pill:hover { background-color: rgba(51, 65, 85, 0.95); }
html.dark #consultation-modal .border-slate-200\/80 { border-color: rgba(51, 65, 85, 0.8); }
html.dark #consultation-modal #consult-booking-link {
    background-color: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.45);
    color: #6ee7b7;
}
html.dark #consultation-modal #consult-status-box.bg-emerald-50 {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.45);
    color: #a7f3d0;
}
html.dark #consultation-modal #consult-status-box.bg-amber-50 {
    background-color: rgba(245, 158, 11, 0.14);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fde68a;
}
html.dark #consultation-modal #consult-status-box.bg-rose-50 {
    background-color: rgba(244, 63, 94, 0.15);
    border-color: rgba(251, 113, 133, 0.45);
    color: #fecdd3;
}
html.dark #consultation-modal #consult-status-box.bg-sky-50 {
    background-color: rgba(14, 165, 233, 0.15);
    border-color: rgba(56, 189, 248, 0.45);
    color: #bae6fd;
}

/* Agency Delivery Steps, Founder Card, FAQ & Legal Modal Dark Mode */
html.dark #agency .agency-process-step,
html.dark #agency .faq-item {
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.94) 0%, rgba(8, 13, 26, 0.98) 100%);
    border-color: rgba(56, 189, 248, 0.24);
}
html.dark #agency .agency-process-step h4,
html.dark #agency .faq-item button,
html.dark #founder-card h3,
html.dark #founder-card strong { color: #f8fafc; }
html.dark #agency .agency-process-step p,
html.dark #agency .faq-answer,
html.dark #founder-card p { color: #cbd5e1; }
html.dark #agency .bg-amber-50 {
    background-color: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fde68a;
}
html.dark #founder-card {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 55%),
        linear-gradient(155deg, rgba(15, 23, 42, 0.96) 0%, rgba(7, 11, 22, 0.99) 100%);
    border-color: rgba(56, 189, 248, 0.34);
}
html.dark #founder-card .founder-pill {
    background-color: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}
html.dark #founder-card .bg-slate-900 {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}
html.dark #pricing .pricing-card,
html.dark #pricing .pricing-stripe-bar {
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.94) 0%, rgba(8, 13, 26, 0.98) 100%);
    border-color: rgba(148, 163, 184, 0.22);
}
html.dark #pricing .pricing-card-featured {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.8), 0 0 36px -8px rgba(56, 189, 248, 0.25);
}
html.dark #pricing .pricing-box {
    background: rgba(2, 6, 18, 0.65);
    border-color: rgba(56, 189, 248, 0.25);
}
html.dark #pricing .pricing-card h4,
html.dark #pricing .pricing-box .text-slate-900,
html.dark #pricing strong { color: #f8fafc; }
html.dark #pricing .pricing-btn-secondary {
    background-color: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.28);
}
html.dark #pricing .pricing-btn-secondary:hover {
    background-color: #0284c7;
    border-color: rgba(56, 189, 248, 0.6);
}
html.dark #legal-modal .legal-modal-card {
    background: linear-gradient(155deg, #0f172a 0%, #070d19 100%);
    border-color: rgba(56, 189, 248, 0.34);
}
html.dark #legal-modal .legal-tab-bar {
    background-color: #070d19;
    border-color: rgba(51, 65, 85, 0.85);
}
html.dark #legal-modal .legal-tab-btn.bg-white {
    background-color: #1e293b;
    border-color: rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}
html.dark #legal-modal #legal-modal-body,
html.dark #legal-modal #legal-modal-body p { color: #cbd5e1; }
html.dark #legal-modal #legal-modal-body h4,
html.dark #legal-modal #legal-modal-body strong { color: #f8fafc; }
