/* ═══════════════════════════════════════════════════════════════════════
   UNIVERSAL THEME COLOR ENGINE — 15 INSTITUTIONAL STYLES
   Instant real-time theme customization for Landing Page, Admin & Customer Portals
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Theme Modal & Trigger Button Styles ── */
.theme-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.theme-trigger-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}
.theme-trigger-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1.5px solid rgba(0,0,0,0.15);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Floating Theme Button (when not embedded in a fixed topbar) */
.theme-floating-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
}

/* Theme Modal Overlay */
.theme-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 25, 0.6);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: themeFadeIn 0.25s ease-out;
}
.theme-modal-overlay.open {
    display: flex;
}
@keyframes themeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Theme Modal Card */
.theme-modal-card {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: themeSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes themeSlideUp {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Header */
.theme-modal-header {
    padding: 16px 20px 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}
.theme-modal-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.theme-modal-styles-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.theme-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 6px;
    transition: all 0.15s;
}
.theme-modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

/* Filter Tabs */
.theme-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.theme-tab-btn {
    flex: 1;
    padding: 7px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.15s;
}
.theme-tab-btn:hover {
    color: #0f172a;
    border-color: #cbd5e1;
}
.theme-tab-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* Theme List Body */
.theme-modal-body {
    padding: 14px 18px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.theme-modal-body::-webkit-scrollbar {
    width: 6px;
}
.theme-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Individual Theme Option Item */
.theme-option-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}
.theme-option-item:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.theme-option-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.18);
}
.theme-item-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.12);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.theme-item-details {
    flex: 1;
    min-width: 0;
}
.theme-item-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.theme-item-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}
.theme-item-type-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 1.5px 6px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.theme-item-type-pill.light {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.theme-item-type-pill.dark {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
}
.theme-item-sub {
    font-size: 11px;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.theme-item-check {
    color: #3b82f6;
    font-size: 16px;
    display: none;
    font-weight: 800;
}
.theme-option-item.selected .theme-item-check {
    display: block;
}

/* Footer Notice */
.theme-modal-footer {
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.theme-modal-footer i {
    color: #f59e0b;
}

/* ═══════════════════════════════════════════════════════════════════════
   THEME STYLES (15 INSTITUTIONAL THEMES)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Solar Daylight (Warm Gold Light) — Default ── */
html[data-theme="solar-daylight"], body[data-theme="solar-daylight"] {
    --bg-primary: #ffd180;
    --bg-secondary: #ffd180;
    --bg-tertiary: #ffcc80;
    --bg-card: rgba(255,237,200,0.92);
    --bg-card-solid: #fff8ee;
    --text-primary: #1a1200;
    --text-secondary: #3d2e00;
    --text-muted: #6b5800;
    --accent: #ff9800;
    --accent-hover: #ffa726;
    --border: rgba(0,0,0,0.09);
}

/* ── 2. Pearl White (Institutional Light) ── */
html[data-theme="pearl-white"], body[data-theme="pearl-white"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-solid: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
}
html[data-theme="pearl-white"] body,
html[data-theme="pearl-white"] .left-panel { background: #f8fafc !important; color: #0f172a !important; }
html[data-theme="pearl-white"] .right-panel { background: #ffffff !important; }
html[data-theme="pearl-white"] .card,
html[data-theme="pearl-white"] .stat-card,
html[data-theme="pearl-white"] .profile-header { background: #ffffff !important; border-color: #e2e8f0 !important; color: #0f172a !important; }

/* ── 3. Emerald Mint (Ice Green Light) ── */
html[data-theme="emerald-mint"], body[data-theme="emerald-mint"] {
    --bg-primary: #ecfdf5;
    --bg-secondary: #d1fae5;
    --bg-tertiary: #a7f3d0;
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-card-solid: #ffffff;
    --text-primary: #064e3b;
    --text-secondary: #047857;
    --text-muted: #059669;
    --accent: #059669;
    --accent-hover: #047857;
    --border: rgba(16, 185, 129, 0.2);
}
html[data-theme="emerald-mint"] body,
html[data-theme="emerald-mint"] .left-panel { background: #ecfdf5 !important; color: #064e3b !important; }
html[data-theme="emerald-mint"] .right-panel { background: #f0fdf4 !important; }
html[data-theme="emerald-mint"] .card,
html[data-theme="emerald-mint"] .stat-card,
html[data-theme="emerald-mint"] .profile-header { background: #ffffff !important; border-color: #a7f3d0 !important; color: #064e3b !important; }

/* ── 4. Royal Lavender (Lilac Light) ── */
html[data-theme="royal-lavender"], body[data-theme="royal-lavender"] {
    --bg-primary: #f5f3ff;
    --bg-secondary: #ede9fe;
    --bg-tertiary: #ddd6fe;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-solid: #ffffff;
    --text-primary: #2e1065;
    --text-secondary: #4c1d95;
    --text-muted: #6d28d9;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --border: rgba(124, 58, 237, 0.18);
}
html[data-theme="royal-lavender"] body,
html[data-theme="royal-lavender"] .left-panel { background: #f5f3ff !important; color: #2e1065 !important; }
html[data-theme="royal-lavender"] .right-panel { background: #faf5ff !important; }
html[data-theme="royal-lavender"] .card,
html[data-theme="royal-lavender"] .stat-card,
html[data-theme="royal-lavender"] .profile-header { background: #ffffff !important; border-color: #ddd6fe !important; color: #2e1065 !important; }

/* ── 5. Sky Azure (Trading Blue Light) ── */
html[data-theme="sky-azure"], body[data-theme="sky-azure"] {
    --bg-primary: #f0f9ff;
    --bg-secondary: #e0f2fe;
    --bg-tertiary: #bae6fd;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-solid: #ffffff;
    --text-primary: #082f49;
    --text-secondary: #0369a1;
    --text-muted: #0284c7;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --border: rgba(2, 132, 199, 0.2);
}
html[data-theme="sky-azure"] body,
html[data-theme="sky-azure"] .left-panel { background: #f0f9ff !important; color: #082f49 !important; }
html[data-theme="sky-azure"] .right-panel { background: #f8fafc !important; }
html[data-theme="sky-azure"] .card,
html[data-theme="sky-azure"] .stat-card,
html[data-theme="sky-azure"] .profile-header { background: #ffffff !important; border-color: #bae6fd !important; color: #082f49 !important; }

/* ── 6. Peach Sunset (Rose Light) ── */
html[data-theme="peach-sunset"], body[data-theme="peach-sunset"] {
    --bg-primary: #fff1f2;
    --bg-secondary: #ffe4e6;
    --bg-tertiary: #fecdd3;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-solid: #ffffff;
    --text-primary: #4c0519;
    --text-secondary: #881337;
    --text-muted: #9f1239;
    --accent: #e11d48;
    --accent-hover: #be123c;
    --border: rgba(225, 29, 72, 0.2);
}
html[data-theme="peach-sunset"] body,
html[data-theme="peach-sunset"] .left-panel { background: #fff1f2 !important; color: #4c0519 !important; }
html[data-theme="peach-sunset"] .right-panel { background: #fff5f5 !important; }
html[data-theme="peach-sunset"] .card,
html[data-theme="peach-sunset"] .stat-card,
html[data-theme="peach-sunset"] .profile-header { background: #ffffff !important; border-color: #fecdd3 !important; color: #4c0519 !important; }

/* ── 7. Midnight Terminal (Pro Cyber Dark) ── */
html[data-theme="midnight-terminal"], body[data-theme="midnight-terminal"] {
    --bg-primary: #0a0f1d;
    --bg-secondary: #0e1626;
    --bg-tertiary: #172338;
    --bg-card: rgba(14, 22, 38, 0.95);
    --bg-card-solid: #0e1626;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #00f0ff;
    --accent-hover: #38bdf8;
    --border: #1e293b;
}

/* ── 8. Obsidian Gold (Institutional Gold) ── */
html[data-theme="obsidian-gold"], body[data-theme="obsidian-gold"] {
    --bg-primary: #0d0d0d;
    --bg-secondary: #171717;
    --bg-tertiary: #262626;
    --bg-card: rgba(23, 23, 23, 0.95);
    --bg-card-solid: #171717;
    --text-primary: #fef08a;
    --text-secondary: #fef9c3;
    --text-muted: #ca8a04;
    --accent: #eab308;
    --accent-hover: #facc15;
    --border: #332b00;
}

/* ── 9. Cyber Matrix (Terminal Green Dark) ── */
html[data-theme="cyber-matrix"], body[data-theme="cyber-matrix"] {
    --bg-primary: #050d0a;
    --bg-secondary: #091a13;
    --bg-tertiary: #0f2e21;
    --bg-card: rgba(9, 26, 19, 0.95);
    --bg-card-solid: #091a13;
    --text-primary: #4ade80;
    --text-secondary: #86efac;
    --text-muted: #16a34a;
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --border: #14532d;
}

/* ── 10. Wall Street Navy (Executive Navy) ── */
html[data-theme="wall-street-navy"], body[data-theme="wall-street-navy"] {
    --bg-primary: #051329;
    --bg-secondary: #0a2244;
    --bg-tertiary: #103362;
    --bg-card: rgba(10, 34, 68, 0.95);
    --bg-card-solid: #0a2244;
    --text-primary: #e2e8f0;
    --text-secondary: #93c5fd;
    --text-muted: #60a5fa;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --border: #1e3a8a;
}

/* ── 11. Crimson Edge (Ruby Blood Dark) ── */
html[data-theme="crimson-edge"], body[data-theme="crimson-edge"] {
    --bg-primary: #140507;
    --bg-secondary: #220a0e;
    --bg-tertiary: #3a1119;
    --bg-card: rgba(34, 10, 14, 0.95);
    --bg-card-solid: #220a0e;
    --text-primary: #ffe4e6;
    --text-secondary: #fda4af;
    --text-muted: #f43f5e;
    --accent: #e11d48;
    --accent-hover: #f43f5e;
    --border: #4c0519;
}

/* ── 12. Amethyst Glow (Royal Violet Dark) ── */
html[data-theme="amethyst-glow"], body[data-theme="amethyst-glow"] {
    --bg-primary: #0f0720;
    --bg-secondary: #1a0d36;
    --bg-tertiary: #2a1557;
    --bg-card: rgba(26, 13, 54, 0.95);
    --bg-card-solid: #1a0d36;
    --text-primary: #f5f3ff;
    --text-secondary: #c4b5fd;
    --text-muted: #8b5cf6;
    --accent: #a855f7;
    --accent-hover: #c084fc;
    --border: #3b0764;
}

/* ── 13. Arctic Slate (Cool Titanium Dark) ── */
html[data-theme="arctic-slate"], body[data-theme="arctic-slate"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.95);
    --bg-card-solid: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --border: #475569;
}

/* ── 14. Sunset Ember (Dark Charcoal Dusk) ── */
html[data-theme="sunset-ember"], body[data-theme="sunset-ember"] {
    --bg-primary: #120e0c;
    --bg-secondary: #1f1713;
    --bg-tertiary: #35261e;
    --bg-card: rgba(31, 23, 19, 0.95);
    --bg-card-solid: #1f1713;
    --text-primary: #ffedd5;
    --text-secondary: #fdba74;
    --text-muted: #f97316;
    --accent: #ea580c;
    --accent-hover: #f97316;
    --border: #431407;
}

/* ── 15. Emerald Forest (Alpine Pine Dark) ── */
html[data-theme="emerald-forest"], body[data-theme="emerald-forest"] {
    --bg-primary: #03140e;
    --bg-secondary: #062419;
    --bg-tertiary: #0c3827;
    --bg-card: rgba(6, 36, 25, 0.95);
    --bg-card-solid: #062419;
    --text-primary: #d1fae5;
    --text-secondary: #6ee7b7;
    --text-muted: #10b981;
    --accent: #10b981;
    --accent-hover: #34d399;
    --border: #064e3b;
}

/* ═══════════════════════════════════════════════════════════════════════
   DARK THEME SURFACE RECOLORING OVERRIDES
   ═══════════════════════════════════════════════════════════════════════ */
html[data-theme="midnight-terminal"], html[data-theme="obsidian-gold"], html[data-theme="cyber-matrix"],
html[data-theme="wall-street-navy"], html[data-theme="crimson-edge"], html[data-theme="amethyst-glow"],
html[data-theme="arctic-slate"], html[data-theme="sunset-ember"], html[data-theme="emerald-forest"] {
    color-scheme: dark;
}

html[data-theme="midnight-terminal"] body, html[data-theme="obsidian-gold"] body, html[data-theme="cyber-matrix"] body,
html[data-theme="wall-street-navy"] body, html[data-theme="crimson-edge"] body, html[data-theme="amethyst-glow"] body,
html[data-theme="arctic-slate"] body, html[data-theme="sunset-ember"] body, html[data-theme="emerald-forest"] body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

html[data-theme="midnight-terminal"] .left-panel, html[data-theme="obsidian-gold"] .left-panel, html[data-theme="cyber-matrix"] .left-panel,
html[data-theme="wall-street-navy"] .left-panel, html[data-theme="crimson-edge"] .left-panel, html[data-theme="amethyst-glow"] .left-panel,
html[data-theme="arctic-slate"] .left-panel, html[data-theme="sunset-ember"] .left-panel, html[data-theme="emerald-forest"] .left-panel {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

html[data-theme="midnight-terminal"] .right-panel, html[data-theme="obsidian-gold"] .right-panel, html[data-theme="cyber-matrix"] .right-panel,
html[data-theme="wall-street-navy"] .right-panel, html[data-theme="crimson-edge"] .right-panel, html[data-theme="amethyst-glow"] .right-panel,
html[data-theme="arctic-slate"] .right-panel, html[data-theme="sunset-ember"] .right-panel, html[data-theme="emerald-forest"] .right-panel {
    background: var(--bg-secondary) !important;
    border-left: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

html[data-theme="midnight-terminal"] .topbar, html[data-theme="obsidian-gold"] .topbar, html[data-theme="cyber-matrix"] .topbar,
html[data-theme="wall-street-navy"] .topbar, html[data-theme="crimson-edge"] .topbar, html[data-theme="amethyst-glow"] .topbar,
html[data-theme="arctic-slate"] .topbar, html[data-theme="sunset-ember"] .topbar, html[data-theme="emerald-forest"] .topbar {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border) !important;
}

html[data-theme="midnight-terminal"] .hero h1, html[data-theme="obsidian-gold"] .hero h1, html[data-theme="cyber-matrix"] .hero h1,
html[data-theme="wall-street-navy"] .hero h1, html[data-theme="crimson-edge"] .hero h1, html[data-theme="amethyst-glow"] .hero h1,
html[data-theme="arctic-slate"] .hero h1, html[data-theme="sunset-ember"] .hero h1, html[data-theme="emerald-forest"] .hero h1 {
    color: var(--text-primary) !important;
}

html[data-theme="midnight-terminal"] .hero p, html[data-theme="obsidian-gold"] .hero p, html[data-theme="cyber-matrix"] .hero p,
html[data-theme="wall-street-navy"] .hero p, html[data-theme="crimson-edge"] .hero p, html[data-theme="amethyst-glow"] .hero p,
html[data-theme="arctic-slate"] .hero p, html[data-theme="sunset-ember"] .hero p, html[data-theme="emerald-forest"] .hero p {
    color: var(--text-secondary) !important;
}

html[data-theme="midnight-terminal"] .stat-badge, html[data-theme="obsidian-gold"] .stat-badge, html[data-theme="cyber-matrix"] .stat-badge,
html[data-theme="wall-street-navy"] .stat-badge, html[data-theme="crimson-edge"] .stat-badge, html[data-theme="amethyst-glow"] .stat-badge,
html[data-theme="arctic-slate"] .stat-badge, html[data-theme="sunset-ember"] .stat-badge, html[data-theme="emerald-forest"] .stat-badge {
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

html[data-theme="midnight-terminal"] .pill, html[data-theme="obsidian-gold"] .pill, html[data-theme="cyber-matrix"] .pill,
html[data-theme="wall-street-navy"] .pill, html[data-theme="crimson-edge"] .pill, html[data-theme="amethyst-glow"] .pill,
html[data-theme="arctic-slate"] .pill, html[data-theme="sunset-ember"] .pill, html[data-theme="emerald-forest"] .pill {
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

html[data-theme="midnight-terminal"] .card, html[data-theme="obsidian-gold"] .card, html[data-theme="cyber-matrix"] .card,
html[data-theme="wall-street-navy"] .card, html[data-theme="crimson-edge"] .card, html[data-theme="amethyst-glow"] .card,
html[data-theme="arctic-slate"] .card, html[data-theme="sunset-ember"] .card, html[data-theme="emerald-forest"] .card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

html[data-theme="midnight-terminal"] .stat-card, html[data-theme="obsidian-gold"] .stat-card, html[data-theme="cyber-matrix"] .stat-card,
html[data-theme="wall-street-navy"] .stat-card, html[data-theme="crimson-edge"] .stat-card, html[data-theme="amethyst-glow"] .stat-card,
html[data-theme="arctic-slate"] .stat-card, html[data-theme="sunset-ember"] .stat-card, html[data-theme="emerald-forest"] .stat-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

html[data-theme="midnight-terminal"] .profile-header, html[data-theme="obsidian-gold"] .profile-header, html[data-theme="cyber-matrix"] .profile-header,
html[data-theme="wall-street-navy"] .profile-header, html[data-theme="crimson-edge"] .profile-header, html[data-theme="amethyst-glow"] .profile-header,
html[data-theme="arctic-slate"] .profile-header, html[data-theme="sunset-ember"] .profile-header, html[data-theme="emerald-forest"] .profile-header {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

html[data-theme="midnight-terminal"] .sidebar, html[data-theme="obsidian-gold"] .sidebar, html[data-theme="cyber-matrix"] .sidebar,
html[data-theme="wall-street-navy"] .sidebar, html[data-theme="crimson-edge"] .sidebar, html[data-theme="amethyst-glow"] .sidebar,
html[data-theme="arctic-slate"] .sidebar, html[data-theme="sunset-ember"] .sidebar, html[data-theme="emerald-forest"] .sidebar {
    background: var(--bg-secondary) !important;
    border-right: 1px solid var(--border) !important;
}

html[data-theme="midnight-terminal"] .main-content, html[data-theme="obsidian-gold"] .main-content, html[data-theme="cyber-matrix"] .main-content,
html[data-theme="wall-street-navy"] .main-content, html[data-theme="crimson-edge"] .main-content, html[data-theme="amethyst-glow"] .main-content,
html[data-theme="arctic-slate"] .main-content, html[data-theme="sunset-ember"] .main-content, html[data-theme="emerald-forest"] .main-content {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

html[data-theme="midnight-terminal"] .tbl-wrap, html[data-theme="obsidian-gold"] .tbl-wrap, html[data-theme="cyber-matrix"] .tbl-wrap,
html[data-theme="wall-street-navy"] .tbl-wrap, html[data-theme="crimson-edge"] .tbl-wrap, html[data-theme="amethyst-glow"] .tbl-wrap,
html[data-theme="arctic-slate"] .tbl-wrap, html[data-theme="sunset-ember"] .tbl-wrap, html[data-theme="emerald-forest"] .tbl-wrap {
    background: var(--bg-card-solid) !important;
    border-color: var(--border) !important;
}

html[data-theme="midnight-terminal"] table th, html[data-theme="obsidian-gold"] table th, html[data-theme="cyber-matrix"] table th,
html[data-theme="wall-street-navy"] table th, html[data-theme="crimson-edge"] table th, html[data-theme="amethyst-glow"] table th,
html[data-theme="arctic-slate"] table th, html[data-theme="sunset-ember"] table th, html[data-theme="emerald-forest"] table th {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border) !important;
}

html[data-theme="midnight-terminal"] table td, html[data-theme="obsidian-gold"] table td, html[data-theme="cyber-matrix"] table td,
html[data-theme="wall-street-navy"] table td, html[data-theme="crimson-edge"] table td, html[data-theme="amethyst-glow"] table td,
html[data-theme="arctic-slate"] table td, html[data-theme="sunset-ember"] table td, html[data-theme="emerald-forest"] table td {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   UNIVERSAL AUTO-ADAPT COLOR & CONTRAST ENGINE
   Applies bold, high-contrast, strain-free readability across all 15 themes
   ═══════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   1. UNIVERSAL DARK THEME AUTO-ADAPTATION (9 Dark Themes)
   ───────────────────────────────────────────────────────────────────────── */
html[data-theme-type="dark"],
html[data-theme="midnight-terminal"],
html[data-theme="obsidian-gold"],
html[data-theme="cyber-matrix"],
html[data-theme="wall-street-navy"],
html[data-theme="crimson-edge"],
html[data-theme="amethyst-glow"],
html[data-theme="arctic-slate"],
html[data-theme="sunset-ember"],
html[data-theme="emerald-forest"] {
    color-scheme: dark !important;
}

/* Dark Body & Global Surfaces */
html[data-theme-type="dark"] body,
html[data-theme="midnight-terminal"] body,
html[data-theme="obsidian-gold"] body,
html[data-theme="cyber-matrix"] body,
html[data-theme="wall-street-navy"] body,
html[data-theme="crimson-edge"] body,
html[data-theme="amethyst-glow"] body,
html[data-theme="arctic-slate"] body,
html[data-theme="sunset-ember"] body,
html[data-theme="emerald-forest"] body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

/* Background overlay in dark mode */
html[data-theme-type="dark"] .bg::before,
html[data-theme="midnight-terminal"] .bg::before,
html[data-theme="obsidian-gold"] .bg::before,
html[data-theme="cyber-matrix"] .bg::before,
html[data-theme="wall-street-navy"] .bg::before,
html[data-theme="crimson-edge"] .bg::before,
html[data-theme="amethyst-glow"] .bg::before,
html[data-theme="arctic-slate"] .bg::before,
html[data-theme="sunset-ember"] .bg::before,
html[data-theme="emerald-forest"] .bg::before {
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%) !important;
}

/* Dark Cards & Main Panels */
html[data-theme-type="dark"] .card,
html[data-theme-type="dark"] .broker-card,
html[data-theme-type="dark"] .stat-card,
html[data-theme-type="dark"] .profile-header,
html[data-theme="midnight-terminal"] .card, html[data-theme="midnight-terminal"] .broker-card, html[data-theme="midnight-terminal"] .stat-card, html[data-theme="midnight-terminal"] .profile-header,
html[data-theme="obsidian-gold"] .card, html[data-theme="obsidian-gold"] .broker-card, html[data-theme="obsidian-gold"] .stat-card, html[data-theme="obsidian-gold"] .profile-header,
html[data-theme="cyber-matrix"] .card, html[data-theme="cyber-matrix"] .broker-card, html[data-theme="cyber-matrix"] .stat-card, html[data-theme="cyber-matrix"] .profile-header,
html[data-theme="wall-street-navy"] .card, html[data-theme="wall-street-navy"] .broker-card, html[data-theme="wall-street-navy"] .stat-card, html[data-theme="wall-street-navy"] .profile-header,
html[data-theme="crimson-edge"] .card, html[data-theme="crimson-edge"] .broker-card, html[data-theme="crimson-edge"] .stat-card, html[data-theme="crimson-edge"] .profile-header,
html[data-theme="amethyst-glow"] .card, html[data-theme="amethyst-glow"] .broker-card, html[data-theme="amethyst-glow"] .stat-card, html[data-theme="amethyst-glow"] .profile-header,
html[data-theme="arctic-slate"] .card, html[data-theme="arctic-slate"] .broker-card, html[data-theme="arctic-slate"] .stat-card, html[data-theme="arctic-slate"] .profile-header,
html[data-theme="sunset-ember"] .card, html[data-theme="sunset-ember"] .broker-card, html[data-theme="sunset-ember"] .stat-card, html[data-theme="sunset-ember"] .profile-header,
html[data-theme="emerald-forest"] .card, html[data-theme="emerald-forest"] .broker-card, html[data-theme="emerald-forest"] .stat-card, html[data-theme="emerald-forest"] .profile-header {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

/* Dark Card & Page Headings */
html[data-theme-type="dark"] h1, html[data-theme-type="dark"] h2, html[data-theme-type="dark"] h3, html[data-theme-type="dark"] h4,
html[data-theme-type="dark"] .card h2, html[data-theme-type="dark"] .card h3, html[data-theme-type="dark"] .page-header h1,
html[data-theme-type="dark"] .broker-card-header h3, html[data-theme-type="dark"] .form-section,
html[data-theme="midnight-terminal"] h1, html[data-theme="midnight-terminal"] h2, html[data-theme="midnight-terminal"] h3, html[data-theme="midnight-terminal"] .card h2, html[data-theme="midnight-terminal"] .card h3, html[data-theme="midnight-terminal"] .page-header h1, html[data-theme="midnight-terminal"] .broker-card-header h3, html[data-theme="midnight-terminal"] .form-section,
html[data-theme="obsidian-gold"] h1, html[data-theme="obsidian-gold"] h2, html[data-theme="obsidian-gold"] h3, html[data-theme="obsidian-gold"] .card h2, html[data-theme="obsidian-gold"] .card h3, html[data-theme="obsidian-gold"] .page-header h1, html[data-theme="obsidian-gold"] .broker-card-header h3, html[data-theme="obsidian-gold"] .form-section,
html[data-theme="cyber-matrix"] h1, html[data-theme="cyber-matrix"] h2, html[data-theme="cyber-matrix"] h3, html[data-theme="cyber-matrix"] .card h2, html[data-theme="cyber-matrix"] .card h3, html[data-theme="cyber-matrix"] .page-header h1, html[data-theme="cyber-matrix"] .broker-card-header h3, html[data-theme="cyber-matrix"] .form-section,
html[data-theme="wall-street-navy"] h1, html[data-theme="wall-street-navy"] h2, html[data-theme="wall-street-navy"] h3, html[data-theme="wall-street-navy"] .card h2, html[data-theme="wall-street-navy"] .card h3, html[data-theme="wall-street-navy"] .page-header h1, html[data-theme="wall-street-navy"] .broker-card-header h3, html[data-theme="wall-street-navy"] .form-section,
html[data-theme="crimson-edge"] h1, html[data-theme="crimson-edge"] h2, html[data-theme="crimson-edge"] h3, html[data-theme="crimson-edge"] .card h2, html[data-theme="crimson-edge"] .card h3, html[data-theme="crimson-edge"] .page-header h1, html[data-theme="crimson-edge"] .broker-card-header h3, html[data-theme="crimson-edge"] .form-section,
html[data-theme="amethyst-glow"] h1, html[data-theme="amethyst-glow"] h2, html[data-theme="amethyst-glow"] h3, html[data-theme="amethyst-glow"] .card h2, html[data-theme="amethyst-glow"] .card h3, html[data-theme="amethyst-glow"] .page-header h1, html[data-theme="amethyst-glow"] .broker-card-header h3, html[data-theme="amethyst-glow"] .form-section,
html[data-theme="arctic-slate"] h1, html[data-theme="arctic-slate"] h2, html[data-theme="arctic-slate"] h3, html[data-theme="arctic-slate"] .card h2, html[data-theme="arctic-slate"] .card h3, html[data-theme="arctic-slate"] .page-header h1, html[data-theme="arctic-slate"] .broker-card-header h3, html[data-theme="arctic-slate"] .form-section,
html[data-theme="sunset-ember"] h1, html[data-theme="sunset-ember"] h2, html[data-theme="sunset-ember"] h3, html[data-theme="sunset-ember"] .card h2, html[data-theme="sunset-ember"] .card h3, html[data-theme="sunset-ember"] .page-header h1, html[data-theme="sunset-ember"] .broker-card-header h3, html[data-theme="sunset-ember"] .form-section,
html[data-theme="emerald-forest"] h1, html[data-theme="emerald-forest"] h2, html[data-theme="emerald-forest"] h3, html[data-theme="emerald-forest"] .card h2, html[data-theme="emerald-forest"] .card h3, html[data-theme="emerald-forest"] .page-header h1, html[data-theme="emerald-forest"] .broker-card-header h3, html[data-theme="emerald-forest"] .form-section {
    color: var(--text-primary) !important;
    font-weight: 800 !important;
}

/* Dark Form Controls (Inputs, Selects, Textareas) */
html[data-theme-type="dark"] .form-group select,
html[data-theme-type="dark"] .form-group input,
html[data-theme-type="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme-type="dark"] select,
html[data-theme-type="dark"] textarea,
html[data-theme="midnight-terminal"] .form-group select, html[data-theme="midnight-terminal"] .form-group input, html[data-theme="midnight-terminal"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), html[data-theme="midnight-terminal"] select, html[data-theme="midnight-terminal"] textarea,
html[data-theme="obsidian-gold"] .form-group select, html[data-theme="obsidian-gold"] .form-group input, html[data-theme="obsidian-gold"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), html[data-theme="obsidian-gold"] select, html[data-theme="obsidian-gold"] textarea,
html[data-theme="cyber-matrix"] .form-group select, html[data-theme="cyber-matrix"] .form-group input, html[data-theme="cyber-matrix"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), html[data-theme="cyber-matrix"] select, html[data-theme="cyber-matrix"] textarea,
html[data-theme="wall-street-navy"] .form-group select, html[data-theme="wall-street-navy"] .form-group input, html[data-theme="wall-street-navy"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), html[data-theme="wall-street-navy"] select, html[data-theme="wall-street-navy"] textarea,
html[data-theme="crimson-edge"] .form-group select, html[data-theme="crimson-edge"] .form-group input, html[data-theme="crimson-edge"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), html[data-theme="crimson-edge"] select, html[data-theme="crimson-edge"] textarea,
html[data-theme="amethyst-glow"] .form-group select, html[data-theme="amethyst-glow"] .form-group input, html[data-theme="amethyst-glow"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), html[data-theme="amethyst-glow"] select, html[data-theme="amethyst-glow"] textarea,
html[data-theme="arctic-slate"] .form-group select, html[data-theme="arctic-slate"] .form-group input, html[data-theme="arctic-slate"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), html[data-theme="arctic-slate"] select, html[data-theme="arctic-slate"] textarea,
html[data-theme="sunset-ember"] .form-group select, html[data-theme="sunset-ember"] .form-group input, html[data-theme="sunset-ember"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), html[data-theme="sunset-ember"] select, html[data-theme="sunset-ember"] textarea,
html[data-theme="emerald-forest"] .form-group select, html[data-theme="emerald-forest"] .form-group input, html[data-theme="emerald-forest"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), html[data-theme="emerald-forest"] select, html[data-theme="emerald-forest"] textarea {
    background: var(--bg-card-solid) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.25) !important;
}

/* Dropdown Options */
html[data-theme-type="dark"] select option,
html[data-theme="midnight-terminal"] select option,
html[data-theme="obsidian-gold"] select option,
html[data-theme="cyber-matrix"] select option,
html[data-theme="wall-street-navy"] select option,
html[data-theme="crimson-edge"] select option,
html[data-theme="amethyst-glow"] select option,
html[data-theme="arctic-slate"] select option,
html[data-theme="sunset-ember"] select option,
html[data-theme="emerald-forest"] select option {
    background: var(--bg-card-solid) !important;
    color: var(--text-primary) !important;
}

/* Dark Input Focus State */
html[data-theme-type="dark"] .form-group select:focus,
html[data-theme-type="dark"] .form-group input:focus,
html[data-theme-type="dark"] input:focus,
html[data-theme-type="dark"] select:focus,
html[data-theme-type="dark"] textarea:focus,
html[data-theme="midnight-terminal"] input:focus, html[data-theme="midnight-terminal"] select:focus,
html[data-theme="obsidian-gold"] input:focus, html[data-theme="obsidian-gold"] select:focus,
html[data-theme="cyber-matrix"] input:focus, html[data-theme="cyber-matrix"] select:focus,
html[data-theme="wall-street-navy"] input:focus, html[data-theme="wall-street-navy"] select:focus,
html[data-theme="crimson-edge"] input:focus, html[data-theme="crimson-edge"] select:focus,
html[data-theme="amethyst-glow"] input:focus, html[data-theme="amethyst-glow"] select:focus,
html[data-theme="arctic-slate"] input:focus, html[data-theme="arctic-slate"] select:focus,
html[data-theme="sunset-ember"] input:focus, html[data-theme="sunset-ember"] select:focus,
html[data-theme="emerald-forest"] input:focus, html[data-theme="emerald-forest"] select:focus {
    border-color: var(--accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15) !important;
}

/* Dark Labels, Section Titles & Table Headers */
html[data-theme-type="dark"] .form-group label,
html[data-theme-type="dark"] label,
html[data-theme-type="dark"] .trade-cell-lbl,
html[data-theme-type="dark"] .monitor-stat-label,
html[data-theme-type="dark"] .deploy-sec-title,
html[data-theme-type="dark"] .trades-tbl th,
html[data-theme="midnight-terminal"] .form-group label, html[data-theme="midnight-terminal"] label, html[data-theme="midnight-terminal"] .trade-cell-lbl, html[data-theme="midnight-terminal"] .monitor-stat-label, html[data-theme="midnight-terminal"] .trades-tbl th,
html[data-theme="obsidian-gold"] .form-group label, html[data-theme="obsidian-gold"] label, html[data-theme="obsidian-gold"] .trade-cell-lbl, html[data-theme="obsidian-gold"] .monitor-stat-label, html[data-theme="obsidian-gold"] .trades-tbl th,
html[data-theme="cyber-matrix"] .form-group label, html[data-theme="cyber-matrix"] label, html[data-theme="cyber-matrix"] .trade-cell-lbl, html[data-theme="cyber-matrix"] .monitor-stat-label, html[data-theme="cyber-matrix"] .trades-tbl th,
html[data-theme="wall-street-navy"] .form-group label, html[data-theme="wall-street-navy"] label, html[data-theme="wall-street-navy"] .trade-cell-lbl, html[data-theme="wall-street-navy"] .monitor-stat-label, html[data-theme="wall-street-navy"] .trades-tbl th,
html[data-theme="crimson-edge"] .form-group label, html[data-theme="crimson-edge"] label, html[data-theme="crimson-edge"] .trade-cell-lbl, html[data-theme="crimson-edge"] .monitor-stat-label, html[data-theme="crimson-edge"] .trades-tbl th,
html[data-theme="amethyst-glow"] .form-group label, html[data-theme="amethyst-glow"] label, html[data-theme="amethyst-glow"] .trade-cell-lbl, html[data-theme="amethyst-glow"] .monitor-stat-label, html[data-theme="amethyst-glow"] .trades-tbl th,
html[data-theme="arctic-slate"] .form-group label, html[data-theme="arctic-slate"] label, html[data-theme="arctic-slate"] .trade-cell-lbl, html[data-theme="arctic-slate"] .monitor-stat-label, html[data-theme="arctic-slate"] .trades-tbl th,
html[data-theme="sunset-ember"] .form-group label, html[data-theme="sunset-ember"] label, html[data-theme="sunset-ember"] .trade-cell-lbl, html[data-theme="sunset-ember"] .monitor-stat-label, html[data-theme="sunset-ember"] .trades-tbl th,
html[data-theme="emerald-forest"] .form-group label, html[data-theme="emerald-forest"] label, html[data-theme="emerald-forest"] .trade-cell-lbl, html[data-theme="emerald-forest"] .monitor-stat-label, html[data-theme="emerald-forest"] .trades-tbl th {
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
}

/* Dark Subtitle, Hints, Muted Texts */
html[data-theme-type="dark"] .text-muted,
html[data-theme-type="dark"] .form-group small,
html[data-theme-type="dark"] small,
html[data-theme-type="dark"] .step-desc,
html[data-theme-type="dark"] .empty-state,
html[data-theme-type="dark"] .signal-time,
html[data-theme-type="dark"] .page-header .text-muted,
html[data-theme-type="dark"] .broker-card-header .text-muted,
html[data-theme-type="dark"] .check-item.no,
html[data-theme="midnight-terminal"] .text-muted, html[data-theme="midnight-terminal"] .form-group small, html[data-theme="midnight-terminal"] small, html[data-theme="midnight-terminal"] .step-desc, html[data-theme="midnight-terminal"] .empty-state, html[data-theme="midnight-terminal"] .signal-time, html[data-theme="midnight-terminal"] .page-header .text-muted, html[data-theme="midnight-terminal"] .broker-card-header .text-muted, html[data-theme="midnight-terminal"] .check-item.no,
html[data-theme="obsidian-gold"] .text-muted, html[data-theme="obsidian-gold"] .form-group small, html[data-theme="obsidian-gold"] small, html[data-theme="obsidian-gold"] .step-desc, html[data-theme="obsidian-gold"] .empty-state, html[data-theme="obsidian-gold"] .signal-time, html[data-theme="obsidian-gold"] .page-header .text-muted, html[data-theme="obsidian-gold"] .broker-card-header .text-muted, html[data-theme="obsidian-gold"] .check-item.no,
html[data-theme="cyber-matrix"] .text-muted, html[data-theme="cyber-matrix"] .form-group small, html[data-theme="cyber-matrix"] small, html[data-theme="cyber-matrix"] .step-desc, html[data-theme="cyber-matrix"] .empty-state, html[data-theme="cyber-matrix"] .signal-time, html[data-theme="cyber-matrix"] .page-header .text-muted, html[data-theme="cyber-matrix"] .broker-card-header .text-muted, html[data-theme="cyber-matrix"] .check-item.no,
html[data-theme="wall-street-navy"] .text-muted, html[data-theme="wall-street-navy"] .form-group small, html[data-theme="wall-street-navy"] small, html[data-theme="wall-street-navy"] .step-desc, html[data-theme="wall-street-navy"] .empty-state, html[data-theme="wall-street-navy"] .signal-time, html[data-theme="wall-street-navy"] .page-header .text-muted, html[data-theme="wall-street-navy"] .broker-card-header .text-muted, html[data-theme="wall-street-navy"] .check-item.no,
html[data-theme="crimson-edge"] .text-muted, html[data-theme="crimson-edge"] .form-group small, html[data-theme="crimson-edge"] small, html[data-theme="crimson-edge"] .step-desc, html[data-theme="crimson-edge"] .empty-state, html[data-theme="crimson-edge"] .signal-time, html[data-theme="crimson-edge"] .page-header .text-muted, html[data-theme="crimson-edge"] .broker-card-header .text-muted, html[data-theme="crimson-edge"] .check-item.no,
html[data-theme="amethyst-glow"] .text-muted, html[data-theme="amethyst-glow"] .form-group small, html[data-theme="amethyst-glow"] small, html[data-theme="amethyst-glow"] .step-desc, html[data-theme="amethyst-glow"] .empty-state, html[data-theme="amethyst-glow"] .signal-time, html[data-theme="amethyst-glow"] .page-header .text-muted, html[data-theme="amethyst-glow"] .broker-card-header .text-muted, html[data-theme="amethyst-glow"] .check-item.no,
html[data-theme="arctic-slate"] .text-muted, html[data-theme="arctic-slate"] .form-group small, html[data-theme="arctic-slate"] small, html[data-theme="arctic-slate"] .step-desc, html[data-theme="arctic-slate"] .empty-state, html[data-theme="arctic-slate"] .signal-time, html[data-theme="arctic-slate"] .page-header .text-muted, html[data-theme="arctic-slate"] .broker-card-header .text-muted, html[data-theme="arctic-slate"] .check-item.no,
html[data-theme="sunset-ember"] .text-muted, html[data-theme="sunset-ember"] .form-group small, html[data-theme="sunset-ember"] small, html[data-theme="sunset-ember"] .step-desc, html[data-theme="sunset-ember"] .empty-state, html[data-theme="sunset-ember"] .signal-time, html[data-theme="sunset-ember"] .page-header .text-muted, html[data-theme="sunset-ember"] .broker-card-header .text-muted, html[data-theme="sunset-ember"] .check-item.no,
html[data-theme="emerald-forest"] .text-muted, html[data-theme="emerald-forest"] .form-group small, html[data-theme="emerald-forest"] small, html[data-theme="emerald-forest"] .step-desc, html[data-theme="emerald-forest"] .empty-state, html[data-theme="emerald-forest"] .signal-time, html[data-theme="emerald-forest"] .page-header .text-muted, html[data-theme="emerald-forest"] .broker-card-header .text-muted, html[data-theme="emerald-forest"] .check-item.no {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
}

/* Dark Navigation Bar Buttons */
html[data-theme-type="dark"] .top-nav .nav-btn,
html[data-theme-type="dark"] .nav-links .nav-btn,
html[data-theme-type="dark"] .top-nav .theme-trigger-btn,
html[data-theme="midnight-terminal"] .nav-btn, html[data-theme="midnight-terminal"] .theme-trigger-btn,
html[data-theme="obsidian-gold"] .nav-btn, html[data-theme="obsidian-gold"] .theme-trigger-btn,
html[data-theme="cyber-matrix"] .nav-btn, html[data-theme="cyber-matrix"] .theme-trigger-btn,
html[data-theme="wall-street-navy"] .nav-btn, html[data-theme="wall-street-navy"] .theme-trigger-btn,
html[data-theme="crimson-edge"] .nav-btn, html[data-theme="crimson-edge"] .theme-trigger-btn,
html[data-theme="amethyst-glow"] .nav-btn, html[data-theme="amethyst-glow"] .theme-trigger-btn,
html[data-theme="arctic-slate"] .nav-btn, html[data-theme="arctic-slate"] .theme-trigger-btn,
html[data-theme="sunset-ember"] .nav-btn, html[data-theme="sunset-ember"] .theme-trigger-btn,
html[data-theme="emerald-forest"] .nav-btn, html[data-theme="emerald-forest"] .theme-trigger-btn {
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    font-weight: 700 !important;
}

html[data-theme-type="dark"] .top-nav .nav-btn:hover,
html[data-theme-type="dark"] .nav-links .nav-btn:hover,
html[data-theme-type="dark"] .top-nav .theme-trigger-btn:hover,
html[data-theme="midnight-terminal"] .nav-btn:hover, html[data-theme="obsidian-gold"] .nav-btn:hover,
html[data-theme="cyber-matrix"] .nav-btn:hover, html[data-theme="wall-street-navy"] .nav-btn:hover,
html[data-theme="crimson-edge"] .nav-btn:hover, html[data-theme="amethyst-glow"] .nav-btn:hover,
html[data-theme="arctic-slate"] .nav-btn:hover, html[data-theme="sunset-ember"] .nav-btn:hover,
html[data-theme="emerald-forest"] .nav-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

html[data-theme-type="dark"] .top-nav .nav-btn.active,
html[data-theme-type="dark"] .nav-links .nav-btn.active,
html[data-theme="midnight-terminal"] .nav-btn.active, html[data-theme="obsidian-gold"] .nav-btn.active,
html[data-theme="cyber-matrix"] .nav-btn.active, html[data-theme="wall-street-navy"] .nav-btn.active,
html[data-theme="crimson-edge"] .nav-btn.active, html[data-theme="amethyst-glow"] .nav-btn.active,
html[data-theme="arctic-slate"] .nav-btn.active, html[data-theme="sunset-ember"] .nav-btn.active,
html[data-theme="emerald-forest"] .nav-btn.active {
    background: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
    font-weight: 800 !important;
}

html[data-theme-type="dark"] .top-nav .logout-btn,
html[data-theme="midnight-terminal"] .logout-btn, html[data-theme="obsidian-gold"] .logout-btn,
html[data-theme="cyber-matrix"] .logout-btn, html[data-theme="wall-street-navy"] .logout-btn,
html[data-theme="crimson-edge"] .logout-btn, html[data-theme="amethyst-glow"] .logout-btn,
html[data-theme="arctic-slate"] .logout-btn, html[data-theme="sunset-ember"] .logout-btn,
html[data-theme="emerald-forest"] .logout-btn {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    font-weight: 700 !important;
}

/* Dark Radio Options */
html[data-theme-type="dark"] .radio-content,
html[data-theme="midnight-terminal"] .radio-content, html[data-theme="obsidian-gold"] .radio-content,
html[data-theme="cyber-matrix"] .radio-content, html[data-theme="wall-street-navy"] .radio-content,
html[data-theme="crimson-edge"] .radio-content, html[data-theme="amethyst-glow"] .radio-content,
html[data-theme="arctic-slate"] .radio-content, html[data-theme="sunset-ember"] .radio-content,
html[data-theme="emerald-forest"] .radio-content {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border) !important;
}
html[data-theme-type="dark"] .radio-content span,
html[data-theme="midnight-terminal"] .radio-content span, html[data-theme="obsidian-gold"] .radio-content span,
html[data-theme="cyber-matrix"] .radio-content span, html[data-theme="wall-street-navy"] .radio-content span,
html[data-theme="crimson-edge"] .radio-content span, html[data-theme="amethyst-glow"] .radio-content span,
html[data-theme="arctic-slate"] .radio-content span, html[data-theme="sunset-ember"] .radio-content span,
html[data-theme="emerald-forest"] .radio-content span {
    color: #ffffff !important;
    font-weight: 700 !important;
}
html[data-theme-type="dark"] .radio-content i,
html[data-theme="midnight-terminal"] .radio-content i, html[data-theme="obsidian-gold"] .radio-content i,
html[data-theme="cyber-matrix"] .radio-content i, html[data-theme="wall-street-navy"] .radio-content i,
html[data-theme="crimson-edge"] .radio-content i, html[data-theme="amethyst-glow"] .radio-content i,
html[data-theme="arctic-slate"] .radio-content i, html[data-theme="sunset-ember"] .radio-content i,
html[data-theme="emerald-forest"] .radio-content i {
    color: var(--accent) !important;
}
html[data-theme-type="dark"] .radio-content small,
html[data-theme="midnight-terminal"] .radio-content small, html[data-theme="obsidian-gold"] .radio-content small,
html[data-theme="cyber-matrix"] .radio-content small, html[data-theme="wall-street-navy"] .radio-content small,
html[data-theme="crimson-edge"] .radio-content small, html[data-theme="amethyst-glow"] .radio-content small,
html[data-theme="arctic-slate"] .radio-content small, html[data-theme="sunset-ember"] .radio-content small,
html[data-theme="emerald-forest"] .radio-content small {
    color: var(--text-secondary) !important;
}
html[data-theme-type="dark"] .radio-card input:checked + .radio-content,
html[data-theme="midnight-terminal"] .radio-card input:checked + .radio-content,
html[data-theme="obsidian-gold"] .radio-card input:checked + .radio-content,
html[data-theme="cyber-matrix"] .radio-card input:checked + .radio-content,
html[data-theme="wall-street-navy"] .radio-card input:checked + .radio-content,
html[data-theme="crimson-edge"] .radio-card input:checked + .radio-content,
html[data-theme="amethyst-glow"] .radio-card input:checked + .radio-content,
html[data-theme="arctic-slate"] .radio-card input:checked + .radio-content,
html[data-theme="sunset-ember"] .radio-card input:checked + .radio-content,
html[data-theme="emerald-forest"] .radio-card input:checked + .radio-content {
    border-color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Dark Live Monitor & Stats */
html[data-theme-type="dark"] .monitor-big-status,
html[data-theme-type="dark"] .monitor-stat,
html[data-theme="midnight-terminal"] .monitor-big-status, html[data-theme="midnight-terminal"] .monitor-stat,
html[data-theme="obsidian-gold"] .monitor-big-status, html[data-theme="obsidian-gold"] .monitor-stat,
html[data-theme="cyber-matrix"] .monitor-big-status, html[data-theme="cyber-matrix"] .monitor-stat,
html[data-theme="wall-street-navy"] .monitor-big-status, html[data-theme="wall-street-navy"] .monitor-stat,
html[data-theme="crimson-edge"] .monitor-big-status, html[data-theme="crimson-edge"] .monitor-stat,
html[data-theme="amethyst-glow"] .monitor-big-status, html[data-theme="amethyst-glow"] .monitor-stat,
html[data-theme="arctic-slate"] .monitor-big-status, html[data-theme="arctic-slate"] .monitor-stat,
html[data-theme="sunset-ember"] .monitor-big-status, html[data-theme="sunset-ember"] .monitor-stat,
html[data-theme="emerald-forest"] .monitor-big-status, html[data-theme="emerald-forest"] .monitor-stat {
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}
html[data-theme-type="dark"] .monitor-stat-value,
html[data-theme="midnight-terminal"] .monitor-stat-value, html[data-theme="obsidian-gold"] .monitor-stat-value,
html[data-theme="cyber-matrix"] .monitor-stat-value, html[data-theme="wall-street-navy"] .monitor-stat-value,
html[data-theme="crimson-edge"] .monitor-stat-value, html[data-theme="amethyst-glow"] .monitor-stat-value,
html[data-theme="arctic-slate"] .monitor-stat-value, html[data-theme="sunset-ember"] .monitor-stat-value,
html[data-theme="emerald-forest"] .monitor-stat-value {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* Dark Trades & Multi-Tick items */
html[data-theme-type="dark"] .trade-card,
html[data-theme-type="dark"] .tick-card,
html[data-theme-type="dark"] .deploy-stock-item,
html[data-theme="midnight-terminal"] .trade-card, html[data-theme="midnight-terminal"] .tick-card, html[data-theme="midnight-terminal"] .deploy-stock-item,
html[data-theme="obsidian-gold"] .trade-card, html[data-theme="obsidian-gold"] .tick-card, html[data-theme="obsidian-gold"] .deploy-stock-item,
html[data-theme="cyber-matrix"] .trade-card, html[data-theme="cyber-matrix"] .tick-card, html[data-theme="cyber-matrix"] .deploy-stock-item,
html[data-theme="wall-street-navy"] .trade-card, html[data-theme="wall-street-navy"] .tick-card, html[data-theme="wall-street-navy"] .deploy-stock-item,
html[data-theme="crimson-edge"] .trade-card, html[data-theme="crimson-edge"] .tick-card, html[data-theme="crimson-edge"] .deploy-stock-item,
html[data-theme="amethyst-glow"] .trade-card, html[data-theme="amethyst-glow"] .tick-card, html[data-theme="amethyst-glow"] .deploy-stock-item,
html[data-theme="arctic-slate"] .trade-card, html[data-theme="arctic-slate"] .tick-card, html[data-theme="arctic-slate"] .deploy-stock-item,
html[data-theme="sunset-ember"] .trade-card, html[data-theme="sunset-ember"] .tick-card, html[data-theme="sunset-ember"] .deploy-stock-item,
html[data-theme="emerald-forest"] .trade-card, html[data-theme="emerald-forest"] .tick-card, html[data-theme="emerald-forest"] .deploy-stock-item {
    background: var(--bg-card-solid) !important;
    border: 1.5px solid var(--border) !important;
    color: #ffffff !important;
}
html[data-theme-type="dark"] .trade-cell-val,
html[data-theme="midnight-terminal"] .trade-cell-val, html[data-theme="obsidian-gold"] .trade-cell-val,
html[data-theme="cyber-matrix"] .trade-cell-val, html[data-theme="wall-street-navy"] .trade-cell-val,
html[data-theme="crimson-edge"] .trade-cell-val, html[data-theme="amethyst-glow"] .trade-cell-val,
html[data-theme="arctic-slate"] .trade-cell-val, html[data-theme="sunset-ember"] .trade-cell-val,
html[data-theme="emerald-forest"] .trade-cell-val {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Dark Stock tick container & search */
html[data-theme-type="dark"] #deployStockTickContainer,
html[data-theme="midnight-terminal"] #deployStockTickContainer, html[data-theme="obsidian-gold"] #deployStockTickContainer,
html[data-theme="cyber-matrix"] #deployStockTickContainer, html[data-theme="wall-street-navy"] #deployStockTickContainer,
html[data-theme="crimson-edge"] #deployStockTickContainer, html[data-theme="amethyst-glow"] #deployStockTickContainer,
html[data-theme="arctic-slate"] #deployStockTickContainer, html[data-theme="sunset-ember"] #deployStockTickContainer,
html[data-theme="emerald-forest"] #deployStockTickContainer {
    background: var(--bg-secondary) !important;
    border: 1.5px solid var(--border) !important;
}

/* Dark Signal Feed & Boxes */
html[data-theme-type="dark"] .signal-reasons-box,
html[data-theme-type="dark"] .live-scan-card,
html[data-theme="midnight-terminal"] .signal-reasons-box, html[data-theme="midnight-terminal"] .live-scan-card,
html[data-theme="obsidian-gold"] .signal-reasons-box, html[data-theme="obsidian-gold"] .live-scan-card,
html[data-theme="cyber-matrix"] .signal-reasons-box, html[data-theme="cyber-matrix"] .live-scan-card,
html[data-theme="wall-street-navy"] .signal-reasons-box, html[data-theme="wall-street-navy"] .live-scan-card,
html[data-theme="crimson-edge"] .signal-reasons-box, html[data-theme="crimson-edge"] .live-scan-card,
html[data-theme="amethyst-glow"] .signal-reasons-box, html[data-theme="amethyst-glow"] .live-scan-card,
html[data-theme="arctic-slate"] .signal-reasons-box, html[data-theme="arctic-slate"] .live-scan-card,
html[data-theme="sunset-ember"] .signal-reasons-box, html[data-theme="sunset-ember"] .live-scan-card,
html[data-theme="emerald-forest"] .signal-reasons-box, html[data-theme="emerald-forest"] .live-scan-card {
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

/* Dark Badges, IP Box & Step Cards */
html[data-theme-type="dark"] .uid-badge,
html[data-theme-type="dark"] .step-card,
html[data-theme-type="dark"] .ip-box,
html[data-theme="midnight-terminal"] .uid-badge, html[data-theme="midnight-terminal"] .step-card, html[data-theme="midnight-terminal"] .ip-box,
html[data-theme="obsidian-gold"] .uid-badge, html[data-theme="obsidian-gold"] .step-card, html[data-theme="obsidian-gold"] .ip-box,
html[data-theme="cyber-matrix"] .uid-badge, html[data-theme="cyber-matrix"] .step-card, html[data-theme="cyber-matrix"] .ip-box,
html[data-theme="wall-street-navy"] .uid-badge, html[data-theme="wall-street-navy"] .step-card, html[data-theme="wall-street-navy"] .ip-box,
html[data-theme="crimson-edge"] .uid-badge, html[data-theme="crimson-edge"] .step-card, html[data-theme="crimson-edge"] .ip-box,
html[data-theme="amethyst-glow"] .uid-badge, html[data-theme="amethyst-glow"] .step-card, html[data-theme="amethyst-glow"] .ip-box,
html[data-theme="arctic-slate"] .uid-badge, html[data-theme="arctic-slate"] .step-card, html[data-theme="arctic-slate"] .ip-box,
html[data-theme="sunset-ember"] .uid-badge, html[data-theme="sunset-ember"] .step-card, html[data-theme="sunset-ember"] .ip-box,
html[data-theme="emerald-forest"] .uid-badge, html[data-theme="emerald-forest"] .step-card, html[data-theme="emerald-forest"] .ip-box {
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

html[data-theme-type="dark"] .step-title,
html[data-theme="midnight-terminal"] .step-title, html[data-theme="obsidian-gold"] .step-title,
html[data-theme="cyber-matrix"] .step-title, html[data-theme="wall-street-navy"] .step-title,
html[data-theme="crimson-edge"] .step-title, html[data-theme="amethyst-glow"] .step-title,
html[data-theme="arctic-slate"] .step-title, html[data-theme="sunset-ember"] .step-title,
html[data-theme="emerald-forest"] .step-title {
    color: #ffffff !important;
    font-weight: 800 !important;
}

html[data-theme-type="dark"] .btn-outline,
html[data-theme="midnight-terminal"] .btn-outline, html[data-theme="obsidian-gold"] .btn-outline,
html[data-theme="cyber-matrix"] .btn-outline, html[data-theme="wall-street-navy"] .btn-outline,
html[data-theme="crimson-edge"] .btn-outline, html[data-theme="amethyst-glow"] .btn-outline,
html[data-theme="arctic-slate"] .btn-outline, html[data-theme="sunset-ember"] .btn-outline,
html[data-theme="emerald-forest"] .btn-outline {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme-type="dark"] .btn-outline:hover,
html[data-theme="midnight-terminal"] .btn-outline:hover, html[data-theme="obsidian-gold"] .btn-outline:hover,
html[data-theme="cyber-matrix"] .btn-outline:hover, html[data-theme="wall-street-navy"] .btn-outline:hover,
html[data-theme="crimson-edge"] .btn-outline:hover, html[data-theme="amethyst-glow"] .btn-outline:hover,
html[data-theme="arctic-slate"] .btn-outline:hover, html[data-theme="sunset-ember"] .btn-outline:hover,
html[data-theme="emerald-forest"] .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. UNIVERSAL LIGHT THEME AUTO-ADAPTATION (6 Light Themes)
   ───────────────────────────────────────────────────────────────────────── */
html[data-theme-type="light"],
html[data-theme="pearl-white"],
html[data-theme="solar-daylight"],
html[data-theme="emerald-mint"],
html[data-theme="royal-lavender"],
html[data-theme="sky-azure"],
html[data-theme="peach-sunset"] {
    color-scheme: light !important;
}

/* Light Body & Global Text */
html[data-theme-type="light"] body,
html[data-theme="pearl-white"] body,
html[data-theme="solar-daylight"] body,
html[data-theme="emerald-mint"] body,
html[data-theme="royal-lavender"] body,
html[data-theme="sky-azure"] body,
html[data-theme="peach-sunset"] body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

/* Light Cards */
html[data-theme-type="light"] .card,
html[data-theme-type="light"] .broker-card,
html[data-theme-type="light"] .profile-header,
html[data-theme-type="light"] .stat-card,
html[data-theme="pearl-white"] .card, html[data-theme="pearl-white"] .broker-card, html[data-theme="pearl-white"] .stat-card,
html[data-theme="solar-daylight"] .card, html[data-theme="solar-daylight"] .broker-card, html[data-theme="solar-daylight"] .stat-card,
html[data-theme="emerald-mint"] .card, html[data-theme="emerald-mint"] .broker-card, html[data-theme="emerald-mint"] .stat-card,
html[data-theme="royal-lavender"] .card, html[data-theme="royal-lavender"] .broker-card, html[data-theme="royal-lavender"] .stat-card,
html[data-theme="sky-azure"] .card, html[data-theme="sky-azure"] .broker-card, html[data-theme="sky-azure"] .stat-card,
html[data-theme="peach-sunset"] .card, html[data-theme="peach-sunset"] .broker-card, html[data-theme="peach-sunset"] .stat-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Light Headings */
html[data-theme-type="light"] h1, html[data-theme-type="light"] h2, html[data-theme-type="light"] h3, html[data-theme-type="light"] h4,
html[data-theme-type="light"] .card h2, html[data-theme-type="light"] .card h3, html[data-theme-type="light"] .page-header h1,
html[data-theme-type="light"] .broker-card-header h3, html[data-theme-type="light"] .form-section,
html[data-theme="pearl-white"] h1, html[data-theme="pearl-white"] h2, html[data-theme="pearl-white"] h3, html[data-theme="pearl-white"] .card h2, html[data-theme="pearl-white"] .card h3, html[data-theme="pearl-white"] .page-header h1,
html[data-theme="solar-daylight"] h1, html[data-theme="solar-daylight"] h2, html[data-theme="solar-daylight"] h3, html[data-theme="solar-daylight"] .card h2, html[data-theme="solar-daylight"] .card h3, html[data-theme="solar-daylight"] .page-header h1,
html[data-theme="emerald-mint"] h1, html[data-theme="emerald-mint"] h2, html[data-theme="emerald-mint"] h3, html[data-theme="emerald-mint"] .card h2, html[data-theme="emerald-mint"] .card h3, html[data-theme="emerald-mint"] .page-header h1,
html[data-theme="royal-lavender"] h1, html[data-theme="royal-lavender"] h2, html[data-theme="royal-lavender"] h3, html[data-theme="royal-lavender"] .card h2, html[data-theme="royal-lavender"] .card h3, html[data-theme="royal-lavender"] .page-header h1,
html[data-theme="sky-azure"] h1, html[data-theme="sky-azure"] h2, html[data-theme="sky-azure"] h3, html[data-theme="sky-azure"] .card h2, html[data-theme="sky-azure"] .card h3, html[data-theme="sky-azure"] .page-header h1,
html[data-theme="peach-sunset"] h1, html[data-theme="peach-sunset"] h2, html[data-theme="peach-sunset"] h3, html[data-theme="peach-sunset"] .card h2, html[data-theme="peach-sunset"] .card h3, html[data-theme="peach-sunset"] .page-header h1 {
    color: var(--text-primary) !important;
    font-weight: 800 !important;
}

/* Light Form Controls (Clean, High-contrast Inputs & Selects) */
html[data-theme-type="light"] .form-group select,
html[data-theme-type="light"] .form-group input,
html[data-theme-type="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme-type="light"] select,
html[data-theme-type="light"] textarea,
html[data-theme="pearl-white"] .form-group select, html[data-theme="pearl-white"] .form-group input, html[data-theme="pearl-white"] select, html[data-theme="pearl-white"] input,
html[data-theme="solar-daylight"] .form-group select, html[data-theme="solar-daylight"] .form-group input, html[data-theme="solar-daylight"] select, html[data-theme="solar-daylight"] input,
html[data-theme="emerald-mint"] .form-group select, html[data-theme="emerald-mint"] .form-group input, html[data-theme="emerald-mint"] select, html[data-theme="emerald-mint"] input,
html[data-theme="royal-lavender"] .form-group select, html[data-theme="royal-lavender"] .form-group input, html[data-theme="royal-lavender"] select, html[data-theme="royal-lavender"] input,
html[data-theme="sky-azure"] .form-group select, html[data-theme="sky-azure"] .form-group input, html[data-theme="sky-azure"] select, html[data-theme="sky-azure"] input,
html[data-theme="peach-sunset"] .form-group select, html[data-theme="peach-sunset"] .form-group input, html[data-theme="peach-sunset"] select, html[data-theme="peach-sunset"] input {
    background: var(--bg-card-solid) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

html[data-theme-type="light"] select option,
html[data-theme="pearl-white"] select option, html[data-theme="solar-daylight"] select option,
html[data-theme="emerald-mint"] select option, html[data-theme="royal-lavender"] select option,
html[data-theme="sky-azure"] select option, html[data-theme="peach-sunset"] select option {
    background: #ffffff !important;
    color: var(--text-primary) !important;
}

/* Light Labels & Metadata */
html[data-theme-type="light"] .form-group label,
html[data-theme-type="light"] label,
html[data-theme-type="light"] .trade-cell-lbl,
html[data-theme-type="light"] .monitor-stat-label,
html[data-theme-type="light"] .deploy-sec-title,
html[data-theme-type="light"] .trades-tbl th,
html[data-theme="pearl-white"] .form-group label, html[data-theme="pearl-white"] label, html[data-theme="pearl-white"] .trade-cell-lbl,
html[data-theme="solar-daylight"] .form-group label, html[data-theme="solar-daylight"] label, html[data-theme="solar-daylight"] .trade-cell-lbl,
html[data-theme="emerald-mint"] .form-group label, html[data-theme="emerald-mint"] label, html[data-theme="emerald-mint"] .trade-cell-lbl,
html[data-theme="royal-lavender"] .form-group label, html[data-theme="royal-lavender"] label, html[data-theme="royal-lavender"] .trade-cell-lbl,
html[data-theme="sky-azure"] .form-group label, html[data-theme="sky-azure"] label, html[data-theme="sky-azure"] .trade-cell-lbl,
html[data-theme="peach-sunset"] .form-group label, html[data-theme="peach-sunset"] label, html[data-theme="peach-sunset"] .trade-cell-lbl {
    color: var(--text-secondary) !important;
    font-weight: 800 !important;
}

/* Light Muted / Subtitle Text */
html[data-theme-type="light"] .text-muted,
html[data-theme-type="light"] .form-group small,
html[data-theme-type="light"] small,
html[data-theme-type="light"] .step-desc,
html[data-theme-type="light"] .page-header .text-muted,
html[data-theme-type="light"] .broker-card-header .text-muted,
html[data-theme="pearl-white"] .text-muted, html[data-theme="pearl-white"] small,
html[data-theme="solar-daylight"] .text-muted, html[data-theme="solar-daylight"] small,
html[data-theme="emerald-mint"] .text-muted, html[data-theme="emerald-mint"] small,
html[data-theme="royal-lavender"] .text-muted, html[data-theme="royal-lavender"] small,
html[data-theme="sky-azure"] .text-muted, html[data-theme="sky-azure"] small,
html[data-theme="peach-sunset"] .text-muted, html[data-theme="peach-sunset"] small {
    color: var(--text-muted) !important;
    font-weight: 600 !important;
}

/* Light Navigation Buttons */
html[data-theme-type="light"] .top-nav .nav-btn,
html[data-theme-type="light"] .nav-links .nav-btn,
html[data-theme-type="light"] .top-nav .theme-trigger-btn,
html[data-theme="pearl-white"] .nav-btn, html[data-theme="pearl-white"] .theme-trigger-btn,
html[data-theme="solar-daylight"] .nav-btn, html[data-theme="solar-daylight"] .theme-trigger-btn,
html[data-theme="emerald-mint"] .nav-btn, html[data-theme="emerald-mint"] .theme-trigger-btn,
html[data-theme="royal-lavender"] .nav-btn, html[data-theme="royal-lavender"] .theme-trigger-btn,
html[data-theme="sky-azure"] .nav-btn, html[data-theme="sky-azure"] .theme-trigger-btn,
html[data-theme="peach-sunset"] .nav-btn, html[data-theme="peach-sunset"] .theme-trigger-btn {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid var(--border) !important;
    font-weight: 700 !important;
}

html[data-theme-type="light"] .top-nav .nav-btn:hover,
html[data-theme-type="light"] .nav-links .nav-btn:hover,
html[data-theme-type="light"] .top-nav .theme-trigger-btn:hover,
html[data-theme="pearl-white"] .nav-btn:hover, html[data-theme="solar-daylight"] .nav-btn:hover,
html[data-theme="emerald-mint"] .nav-btn:hover, html[data-theme="royal-lavender"] .nav-btn:hover,
html[data-theme="sky-azure"] .nav-btn:hover, html[data-theme="peach-sunset"] .nav-btn:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--text-primary) !important;
    border-color: var(--accent) !important;
}

html[data-theme-type="light"] .top-nav .nav-btn.active,
html[data-theme-type="light"] .nav-links .nav-btn.active,
html[data-theme="pearl-white"] .nav-btn.active, html[data-theme="solar-daylight"] .nav-btn.active,
html[data-theme="emerald-mint"] .nav-btn.active, html[data-theme="royal-lavender"] .nav-btn.active,
html[data-theme="sky-azure"] .nav-btn.active, html[data-theme="peach-sunset"] .nav-btn.active {
    background: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
    font-weight: 800 !important;
}

/* Light Radios */
html[data-theme-type="light"] .radio-content,
html[data-theme="pearl-white"] .radio-content, html[data-theme="solar-daylight"] .radio-content,
html[data-theme="emerald-mint"] .radio-content, html[data-theme="royal-lavender"] .radio-content,
html[data-theme="sky-azure"] .radio-content, html[data-theme="peach-sunset"] .radio-content {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid var(--border) !important;
}
html[data-theme-type="light"] .radio-content span,
html[data-theme="pearl-white"] .radio-content span, html[data-theme="solar-daylight"] .radio-content span,
html[data-theme="emerald-mint"] .radio-content span, html[data-theme="royal-lavender"] .radio-content span,
html[data-theme="sky-azure"] .radio-content span, html[data-theme="peach-sunset"] .radio-content span {
    color: var(--text-primary) !important;
    font-weight: 800 !important;
}
html[data-theme-type="light"] .radio-content small,
html[data-theme="pearl-white"] .radio-content small, html[data-theme="solar-daylight"] .radio-content small,
html[data-theme="emerald-mint"] .radio-content small, html[data-theme="royal-lavender"] .radio-content small,
html[data-theme="sky-azure"] .radio-content small, html[data-theme="peach-sunset"] .radio-content small {
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
}

/* Light Monitor & Stats */
html[data-theme-type="light"] .monitor-big-status,
html[data-theme-type="light"] .monitor-stat,
html[data-theme="pearl-white"] .monitor-big-status, html[data-theme="pearl-white"] .monitor-stat,
html[data-theme="solar-daylight"] .monitor-big-status, html[data-theme="solar-daylight"] .monitor-stat,
html[data-theme="emerald-mint"] .monitor-big-status, html[data-theme="emerald-mint"] .monitor-stat,
html[data-theme="royal-lavender"] .monitor-big-status, html[data-theme="royal-lavender"] .monitor-stat,
html[data-theme="sky-azure"] .monitor-big-status, html[data-theme="sky-azure"] .monitor-stat,
html[data-theme="peach-sunset"] .monitor-big-status, html[data-theme="peach-sunset"] .monitor-stat {
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

html[data-theme-type="light"] .monitor-stat-value,
html[data-theme="pearl-white"] .monitor-stat-value, html[data-theme="solar-daylight"] .monitor-stat-value,
html[data-theme="emerald-mint"] .monitor-stat-value, html[data-theme="royal-lavender"] .monitor-stat-value,
html[data-theme="sky-azure"] .monitor-stat-value, html[data-theme="peach-sunset"] .monitor-stat-value {
    color: var(--text-primary) !important;
    font-weight: 800 !important;
}

/* Light Trades & Multi-Tick items */
html[data-theme-type="light"] .trade-card,
html[data-theme-type="light"] .tick-card,
html[data-theme-type="light"] .deploy-stock-item,
html[data-theme="pearl-white"] .trade-card, html[data-theme="pearl-white"] .tick-card, html[data-theme="pearl-white"] .deploy-stock-item,
html[data-theme="solar-daylight"] .trade-card, html[data-theme="solar-daylight"] .tick-card, html[data-theme="solar-daylight"] .deploy-stock-item,
html[data-theme="emerald-mint"] .trade-card, html[data-theme="emerald-mint"] .tick-card, html[data-theme="emerald-mint"] .deploy-stock-item,
html[data-theme="royal-lavender"] .trade-card, html[data-theme="royal-lavender"] .tick-card, html[data-theme="royal-lavender"] .deploy-stock-item,
html[data-theme="sky-azure"] .trade-card, html[data-theme="sky-azure"] .tick-card, html[data-theme="sky-azure"] .deploy-stock-item,
html[data-theme="peach-sunset"] .trade-card, html[data-theme="peach-sunset"] .tick-card, html[data-theme="peach-sunset"] .deploy-stock-item {
    background: var(--bg-card-solid) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text-primary) !important;
}

html[data-theme-type="light"] .trade-cell-val,
html[data-theme="pearl-white"] .trade-cell-val, html[data-theme="solar-daylight"] .trade-cell-val,
html[data-theme="emerald-mint"] .trade-cell-val, html[data-theme="royal-lavender"] .trade-cell-val,
html[data-theme="sky-azure"] .trade-cell-val, html[data-theme="peach-sunset"] .trade-cell-val {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

html[data-theme-type="light"] #deployStockTickContainer,
html[data-theme="pearl-white"] #deployStockTickContainer, html[data-theme="solar-daylight"] #deployStockTickContainer,
html[data-theme="emerald-mint"] #deployStockTickContainer, html[data-theme="royal-lavender"] #deployStockTickContainer,
html[data-theme="sky-azure"] #deployStockTickContainer, html[data-theme="peach-sunset"] #deployStockTickContainer {
    background: var(--bg-card-solid) !important;
    border: 1.5px solid var(--border) !important;
}

/* Light Badges, IP Box & Step Cards */
html[data-theme-type="light"] .uid-badge,
html[data-theme-type="light"] .step-card,
html[data-theme-type="light"] .ip-box,
html[data-theme="pearl-white"] .uid-badge, html[data-theme="pearl-white"] .step-card, html[data-theme="pearl-white"] .ip-box,
html[data-theme="solar-daylight"] .uid-badge, html[data-theme="solar-daylight"] .step-card, html[data-theme="solar-daylight"] .ip-box,
html[data-theme="emerald-mint"] .uid-badge, html[data-theme="emerald-mint"] .step-card, html[data-theme="emerald-mint"] .ip-box,
html[data-theme="royal-lavender"] .uid-badge, html[data-theme="royal-lavender"] .step-card, html[data-theme="royal-lavender"] .ip-box,
html[data-theme="sky-azure"] .uid-badge, html[data-theme="sky-azure"] .step-card, html[data-theme="sky-azure"] .ip-box,
html[data-theme="peach-sunset"] .uid-badge, html[data-theme="peach-sunset"] .step-card, html[data-theme="peach-sunset"] .ip-box {
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

html[data-theme-type="light"] .step-title,
html[data-theme="pearl-white"] .step-title, html[data-theme="solar-daylight"] .step-title,
html[data-theme="emerald-mint"] .step-title, html[data-theme="royal-lavender"] .step-title,
html[data-theme="sky-azure"] .step-title, html[data-theme="peach-sunset"] .step-title {
    color: var(--text-primary) !important;
    font-weight: 800 !important;
}

