/* ====================================================================
   LOGICFLUX SAAS v2.0 — PREMIUM SINGLE-PAGE DARK GLASSMORPHISM
   No sidebar. Floating top nav. Full-width scroll layout.
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root, html, body {
    color-scheme: dark !important;
}

:root {
    --bg-base: #060a13;
    --bg-surface: #0c1222;
    --bg-glass: rgba(12, 18, 34, 0.82);
    --bg-card: rgba(15, 23, 42, 0.65);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(59, 130, 246, 0.25);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #475569;
    --color-primary: #2563eb;
    --color-accent: #3b82f6;
    --color-accent-glow: rgba(59, 130, 246, 0.2);
    --color-success: #10b981;
    --color-success-glow: rgba(16, 185, 129, 0.15);
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-main);
    background-image:
        radial-gradient(ellipse at 15% 5%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ================ BASE CONTAINER ================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* ================ FLOATING TOP NAV ================ */
.topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    z-index: 200;
    background: rgba(6, 10, 19, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: background 0.3s, box-shadow 0.3s;
}
.topnav.scrolled {
    background: rgba(6, 10, 19, 0.92);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.topnav-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}
.topnav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}
.brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}
.topnav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    position: relative;
}
.nav-link:hover { color: var(--text-main); background: rgba(255,255,255,0.04); }
.nav-link.active {
    color: var(--color-accent);
    font-weight: 600;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 16px; right: 16px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}
.topnav-actions { display: flex; align-items: center; gap: 12px; }

/* ================ TOPBAR USER DROPDOWN ================ */
.nav-user-wrap {
    position: relative;
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 6px;
    z-index: 1000;
    display: none;
    animation: dropdownFadeIn 0.18s ease-out;
}

.nav-user-dropdown.open {
    display: block;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-user-dropdown-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    margin-bottom: 4px;
}

.nav-user-badge {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-accent, #2563eb);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-user-email {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main, #f8fafc);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 3px;
}

.nav-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted, #94a3b8);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    text-align: left;
    box-sizing: border-box;
}

.nav-user-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main, #f8fafc);
}

.nav-user-item.danger {
    color: #f87171;
}

.nav-user-item.danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.nav-user-divider {
    height: 1px;
    background: var(--border-glass, rgba(255, 255, 255, 0.08));
    margin: 4px 0;
}

.topnav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.topnav-hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--text-muted);
    border-radius: 1px;
    transition: all 0.2s;
}

/* ================ PAGE CONTENT ================ */
.page-content { padding-top: var(--nav-height); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 64px 0; }
.section-compact { padding: 32px 0; }
.section-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; text-align: center; }
.section-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; text-align: center; }

/* ================ FULL-WIDTH FUTURISTIC HERO SECTION ================ */
.hero-wrapper-section {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.hero-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 76px 0 68px;
    overflow: hidden;
    background-color: #060a13;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    text-align: left;
}

/* Full-Bleed Futuristic Panoramic Image Banner */
.hero-banner-bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/hero-command-center.jpg');
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.02);
    animation: heroBannerDrift 28s ease-in-out infinite alternate;
    opacity: 0.6;
    filter: brightness(0.82) contrast(1.04) saturate(0.92);
    pointer-events: none;
    z-index: 1;
}

@keyframes heroBannerDrift {
    0% { transform: scale(1.02) translate(0, 0); }
    100% { transform: scale(1.06) translate(-1.5%, -0.8%); }
}

/* High-Contrast Multi-Stop Gradient Overlays (Spacious Left Readability) */
.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 10, 19, 0.95) 0%, rgba(6, 10, 19, 0.86) 45%, rgba(6, 10, 19, 0.45) 75%, rgba(6, 10, 19, 0.72) 100%),
        linear-gradient(180deg, rgba(6, 10, 19, 0.78) 0%, rgba(6, 10, 19, 0.12) 32%, rgba(6, 10, 19, 0.68) 80%, #060a13 100%),
        radial-gradient(ellipse at 80% 35%, rgba(37, 99, 235, 0.11) 0%, transparent 62%),
        radial-gradient(ellipse at 15% 75%, rgba(16, 185, 129, 0.07) 0%, transparent 62%);
    pointer-events: none;
    z-index: 2;
}

/* Sweeping Holographic Laser Beam across the Hero Banner */
.hero-hologram-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.08) 10%, rgba(59, 130, 246, 0.42) 45%, rgba(37, 99, 235, 0.5) 55%, rgba(16, 185, 129, 0.36) 75%, transparent 100%);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.3), 0 0 38px rgba(37, 99, 235, 0.14);
    pointer-events: none;
    z-index: 3;
    animation: heroHologramSweep 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes heroHologramSweep {
    0% { top: -2%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: 102%; opacity: 0; }
}

/* Subtle Sci-Fi Scanlines */
.hero-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0px, rgba(0, 0, 0, 0.18) 1px, transparent 1px, transparent 4px);
    pointer-events: none;
    z-index: 2;
    opacity: 0.45;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
    animation: grid-drift 24s linear infinite;
    pointer-events: none;
    z-index: 2;
}

/* Floating Ambient Glow Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
    animation: orb-float 14s ease-in-out infinite;
    z-index: 2;
}
.hero-orb-1 { width: 480px; height: 480px; background: rgba(16, 185, 129, 0.15); top: -80px; left: -60px; animation-delay: 0s; }
.hero-orb-2 { width: 420px; height: 420px; background: rgba(59, 130, 246, 0.18); bottom: -40px; right: 10%; animation-delay: -5s; }
.hero-orb-3 { width: 360px; height: 360px; background: rgba(139, 92, 246, 0.14); top: 25%; left: 50%; animation-delay: -9s; }

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -25px) scale(1.06); }
    66% { transform: translate(-20px, 20px) scale(0.94); }
}

/* Full-Width Hero Inner Container */
.hero-container {
    position: relative;
    z-index: 4;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 44px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.hero-inner {
    position: relative;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Futuristic Pill Badge */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: badgePulse 2s infinite ease-in-out;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px #10b981; }
    50% { opacity: 0.5; transform: scale(0.85); box-shadow: 0 0 4px #10b981; }
}
.hero-badge-text {
    font-size: 11.5px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.hero-badge-divider {
    color: rgba(59, 130, 246, 0.5);
    font-size: 11px;
}
.hero-badge-sub {
    font-size: 11.5px;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-headline {
    font-family: var(--font-main);
    font-size: clamp(38px, 5.2vw, 68px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 20px;
    color: #f8fafc;
    text-align: left;
}

/* Feature Micro-Chips */
.hero-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
    backdrop-filter: blur(8px);
}
.hero-chip svg {
    color: var(--color-success);
    flex-shrink: 0;
}

.hero-brand-shimmer {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 35%, #818cf8 70%, #10b981 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroShimmer 5s linear infinite;
    display: inline-block;
}

@keyframes heroShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 250% center; }
}

.hero-subtext {
    font-size: clamp(15px, 1.8vw, 18px);
    color: #94a3b8;
    max-width: 760px;
    line-height: 1.7;
    margin: 0 0 36px 0;
    font-weight: 400;
    text-align: left;
}
.hero-subtext-highlight {
    color: #f1f5f9;
    font-weight: 700;
    display: block;
    margin-top: 10px;
    letter-spacing: 0.2px;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.2);
    text-decoration: none;
}
.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.7);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.09);
    text-decoration: none;
    backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.15);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ================ GLOBAL BUTTON PRINTS ================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    min-height: 42px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
    text-decoration: none;
    touch-action: manipulation;
}
.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #060912;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #44ced0, #00c4ea);
    color: #060912;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.28);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
    padding: 6px 14px;
    min-height: 34px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    min-height: 48px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* ================ HERO LIVE TELEMETRY STRIP ================ */
.hero-telemetry-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 840px;
    margin: 0;
    background: rgba(12, 18, 34, 0.82);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.telemetry-col {
    text-align: center;
    position: relative;
    padding: 4px 8px;
}
.telemetry-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.telemetry-val {
    font-size: 26px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #f8fafc;
    letter-spacing: -0.5px;
}
.telemetry-lbl {
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 5px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Responsive Rules for Full-Width Hero */
@media (max-width: 1024px) {
    .hero-container {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 40px;
    }
    .hero-container {
        padding: 0 20px;
    }
    .hero-headline {
        font-size: 34px;
        letter-spacing: -1px;
    }
    .hero-telemetry-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
        padding: 16px;
    }
    .telemetry-col:nth-child(2)::after {
        display: none;
    }
}

/* ================ STATS COUNTER BAR ================ */
.stats-counter-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-counter-card {
    background: var(--bg-card); border: 1px solid var(--border-glass);
    border-radius: var(--radius-md); padding: 22px; text-align: center;
    position: relative; overflow: hidden;
}
.stat-counter-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--color-accent), transparent); opacity: 0.5; }
.stat-counter-value { font-size: 28px; font-weight: 800; font-family: var(--font-mono); letter-spacing: -1px; }
.stat-counter-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-counter-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(59, 130, 246,0.1); color: var(--color-accent); margin-top: 8px; }
.stat-counter-badge.badge-green { background: rgba(16,185,129,0.1); color: var(--color-success); }

/* ================ CARDS ================ */
.card {
    background: var(--bg-card); border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg); padding: 24px;
    margin-bottom: 20px; backdrop-filter: blur(8px);
}
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.card-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* ================ ARCH PIPELINE ================ */
.arch-pipeline { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 8px 0; justify-content: center; }
.arch-card {
    flex: 0 0 200px; background: var(--bg-card); border: 1px solid var(--border-glass);
    border-radius: var(--radius-md); padding: 24px 18px; text-align: center; transition: all 0.3s ease;
}
.arch-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.arch-icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: rgba(59, 130, 246,0.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: var(--accent, var(--color-accent)); }
.arch-step { font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.arch-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.arch-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.arch-connector { flex: 0 0 32px; display: flex; align-items: center; justify-content: center; opacity: 0.5; }

/* ================ SHIELD GRID ================ */
.shield-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.shield-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 22px; transition: all 0.25s ease; }
.shield-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.shield-icon { margin-bottom: 12px; }
.shield-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.shield-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ================ STRATEGY CARDS ================ */
.strategy-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-bottom: 8px; }
.strategy-card {
    background: var(--bg-card); border: 1px solid var(--border-glass);
    border-radius: var(--radius-md); padding: 22px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: all 0.3s ease; min-height: 260px; cursor: pointer;
}
.strategy-card:hover { transform: translateY(-3px); border-color: var(--border-glow); box-shadow: 0 8px 28px rgba(37, 99, 235,0.12); }
.strategy-card.selected { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), 0 8px 28px rgba(37, 99, 235,0.15); }
.strategy-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.strategy-card-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.strategy-card-tagline { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.strategy-card-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.metric-mini { text-align: center; }
.metric-mini-label { display: block; font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.metric-mini-val { display: block; font-size: 14px; font-weight: 700; font-family: var(--font-mono); }
.mini-features-list { list-style: none; padding: 0; margin-bottom: 12px; }
.mini-features-list li { font-size: 11.5px; color: var(--text-muted); padding: 3px 0; }
.mini-features-list li::before { content: "✓ "; color: var(--color-success); font-weight: 700; }
.strategy-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border-glass); }
.card-price-tag { font-size: 20px; font-weight: 800; font-family: var(--font-mono); }

/* ================ VARIANT DETAIL ================ */
.variant-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 12px; }
.variant-desc-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.variant-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-box { background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.stat-label { display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.stat-val { display: block; font-size: 14px; font-weight: 600; }
.features-checklist { list-style: none; padding: 0; columns: 2; }
.features-checklist li { font-size: 13px; color: var(--text-muted); padding: 4px 0; }
.features-checklist li::before { content: "✓ "; color: var(--color-success); font-weight: 700; }
.chart-wrapper { height: 280px; margin-bottom: 16px; }

/* ================ TF FILTER & PILLS ================ */
.tf-filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.tf-label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.tf-btn {
    padding: 6px 14px; border-radius: var(--radius-full);
    border: 1px solid var(--border-glass); background: transparent;
    color: var(--text-muted); font-family: var(--font-mono);
    font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.tf-btn:hover { background: rgba(255,255,255,0.04); }
.tf-btn.active { background: rgba(59, 130, 246,0.12); border-color: var(--color-accent); color: var(--color-accent); font-weight: 600; }

/* ================ TABLES ================ */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { padding: 10px 12px; font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-glass); text-align: left; white-space: nowrap; }
tbody td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.03); white-space: nowrap; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
td.positive { color: var(--color-success); font-weight: 600; }
td.negative { color: var(--color-danger); font-weight: 600; }

/* ================ BADGES ================ */
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; letter-spacing: 0.3px; }
.badge-primary { background: rgba(37, 99, 235,0.15); color: var(--color-accent); }
.badge-secondary { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--color-danger); }
.badge-success { background: rgba(16,185,129,0.15); color: var(--color-success); }

/* ================ PRICING ================ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 28px 24px; position: relative; transition: all 0.3s ease; }
.pricing-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.1); }
.pricing-card.featured { border-color: var(--color-accent); box-shadow: 0 0 30px rgba(59, 130, 246,0.1); }
.popular-tag { position: absolute; top: -1px; right: 20px; background: linear-gradient(135deg, #2563eb, #44ced0); color: #fff; padding: 4px 12px; border-radius: 0 0 8px 8px; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.pricing-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 32px; font-weight: 800; font-family: var(--font-mono); margin-bottom: 4px; }
.pricing-period { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.pricing-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.pricing-meta-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); }
.pricing-meta-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.pricing-strategy-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pricing-strat-chip { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: rgba(59, 130, 246, 0.1); color: var(--brand-cyan); border: 1px solid rgba(59, 130, 246, 0.25); }
.pricing-tf-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.pricing-tf-chip { font-size: 10.5px; font-weight: 700; font-family: var(--font-mono); padding: 1px 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border: 1px solid var(--border-glass); }
.pricing-accounts-badge { font-size: 11.5px; font-weight: 700; color: #22c55e; display: flex; align-items: center; gap: 5px; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 20px; }
.pricing-features li { font-size: 12.5px; color: var(--text-secondary); padding: 4px 0; display: flex; align-items: flex-start; gap: 6px; }
.pricing-features li::before { content: "✓"; color: #22c55e; font-weight: 800; font-size: 13px; line-height: 1.3; }
.pricing-interval-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 24px; flex-wrap: wrap; max-width: 500px; }
.pricing-interval-btn { padding: 8px 18px; border-radius: var(--radius-full); border: 1px solid var(--border-glass); background: rgba(255, 255, 255, 0.03); color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: var(--font-main); }
.pricing-interval-btn:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.06); }
.pricing-interval-btn.active { background: rgba(59, 130, 246, 0.15); border-color: var(--color-accent); color: var(--color-accent); }

/* ================ TRUST ================ */
.trust-section { text-align: center; padding: 24px 0; }
.trust-label { font-size: 12px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust-logo-item { font-size: 13px; font-weight: 600; color: var(--text-dim); padding: 8px 16px; border: 1px solid var(--border-glass); border-radius: var(--radius-sm); transition: all 0.2s; }
.trust-logo-item:hover { color: var(--text-muted); border-color: rgba(255,255,255,0.12); }

/* ================ FAQ ================ */
.faq-filter-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.pill { padding: 7px 16px; border-radius: var(--radius-full); border: 1px solid var(--border-glass); background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: var(--font-main); }
.pill:hover { background: rgba(255,255,255,0.04); color: var(--text-main); }
.pill.active { background: rgba(59, 130, 246,0.1); border-color: var(--color-accent); color: var(--color-accent); font-weight: 600; }
.faq-container { display: flex; flex-direction: column; gap: 8px; max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.2s; }
.faq-item:hover { border-color: rgba(255,255,255,0.1); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background 0.2s; }
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 20px; font-size: 13px; color: var(--text-muted); line-height: 1.7; transition: all 0.3s ease; }
.faq-item.open .faq-answer { max-height: 400px; padding: 0 20px 16px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-arrow { transition: transform 0.3s; font-size: 12px; color: var(--text-dim); }
.faq-category-tag { font-size: 10px; font-weight: 600; background: rgba(59, 130, 246,0.1); color: var(--color-accent); padding: 2px 8px; border-radius: var(--radius-full); margin-right: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ================ EMPTY STATE ================ */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state svg { margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text-muted); max-width: 420px; margin: 0 auto 20px; line-height: 1.6; }

/* ================ LICENSE INFO ================ */
.license-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.bound-accounts-list { display: flex; flex-direction: column; gap: 8px; }
.bound-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); font-size: 13px; }

/* ================ COMPACT CLIENT PORTAL GATEWAY ================ */
.portal-gateway-card {
    max-width: 840px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 18px;
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.portal-gateway-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 14px;
}

.portal-gateway-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.portal-gateway-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.portal-gateway-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    text-align: left;
}

.portal-feat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

.portal-feat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.portal-feat-icon {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}

.portal-feat-text strong {
    display: block;
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.portal-feat-text span {
    display: block;
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.4;
}

.portal-gateway-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media(max-width: 768px) {
    .portal-gateway-card { padding: 24px 20px; }
    .portal-gateway-features { grid-template-columns: 1fr; gap: 10px; }
    .portal-gateway-title { font-size: 20px; }
}

/* ================ CHECKOUT MODAL ================ */
.checkout-modal-card {
    max-width: 520px !important;
}

.checkout-summary-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.checkout-summary-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

/* ================ MODALS ================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 300; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-card { background: var(--bg-surface); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: min(94vw, 460px); max-height: 88vh; overflow-y: auto; position: relative; box-shadow: 0 24px 64px rgba(0,0,0,0.6); text-align: left; animation: modalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalIn { from { opacity:0; transform:scale(0.96) translateY(8px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-glass); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 16px; cursor: pointer; transition: all 0.2s; }
.modal-close:hover { color: var(--text-main); background: rgba(255,255,255,0.12); }
.modal-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; text-align: left; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--border-glass); }
.auth-tab { flex: 1; padding: 10px; text-align: center; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: var(--font-main); }
.auth-tab.active { border-bottom-color: var(--color-accent); color: var(--color-accent); }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-align: left; }
.form-input { width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); color: var(--text-main); font-size: 13.5px; font-family: var(--font-main); text-align: left; transition: all 0.2s; }
.form-input::placeholder { color: var(--text-dim); text-align: left; }
.form-input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(59, 130, 246,0.1); background: rgba(255,255,255,0.06); }
textarea.form-input { resize: vertical; }

/* ================ UNIVERSAL CAPTCHA WIDGET ================ */
.captcha-box {
    background: rgba(12, 18, 34, 0.7);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.captcha-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent, #2563eb);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.captcha-shield-icon {
    stroke: currentColor;
    color: var(--color-accent, #2563eb);
    flex-shrink: 0;
}

.captcha-refresh-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
    color: var(--text-muted, #94a3b8);
    border-radius: 6px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.captcha-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    color: #f1f5f9;
}

.captcha-refresh-btn:hover .captcha-refresh-icon {
    transform: rotate(180deg);
}

.captcha-refresh-icon {
    stroke: currentColor;
    transition: transform 0.35s ease;
}

.captcha-body {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-svg-container {
    flex-shrink: 0;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
    height: 44px;
    display: flex;
    align-items: center;
}

.captcha-svg {
    display: block;
    width: 175px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, #090e1a 0%, #0d1527 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    user-select: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.captcha-svg-bg {
    fill: transparent;
}

.captcha-input {
    flex: 1;
    min-width: 85px;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: var(--font-mono, "JetBrains Mono", monospace) !important;
    padding: 8px 10px !important;
    height: 44px !important;
    border-radius: 8px !important;
    box-sizing: border-box;
}

@media (max-width: 440px) {
    .captcha-body {
        flex-wrap: wrap;
    }
    .captcha-svg {
        width: 100%;
        max-width: 100%;
    }
}


/* ================ FOOTER ================ */
.site-footer { border-top: 1px solid var(--border-glass); padding-top: 48px; margin-top: 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; flex-wrap: wrap; gap: 20px; }
.footer-brand p { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--color-accent); }
.footer-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 8px var(--color-success-glow); }
.status-indicator.live { animation: pulse-live 2s infinite; }
@keyframes pulse-live { 0%,100% { box-shadow: 0 0 4px rgba(16,185,129,0.3); } 50% { box-shadow: 0 0 12px rgba(16,185,129,0.6); } }
.footer-bottom { border-top: 1px solid var(--border-glass); padding: 16px 0; margin-top: 8px; font-size: 12px; color: var(--text-dim); text-align: center; }

/* ================ MODERN MOBILE NAVIGATION DRAWER ================ */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 380px);
    background: linear-gradient(180deg, rgba(11, 17, 30, 0.98) 0%, rgba(6, 10, 19, 0.99) 100%);
    border-left: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.12);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
}

.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
}

.mobile-drawer-brand {
    display: flex;
    align-items: center;
}

.mobile-drawer-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    padding: 3px 8px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-full);
}

.mobile-drawer-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-bright);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-drawer-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.mobile-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-drawer-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-drawer-group-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--brand-cyan);
    text-transform: uppercase;
    padding: 0 8px 4px 8px;
}

.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-link:hover, .mobile-drawer-link:active {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateX(3px);
}

.mobile-drawer-link.highlight-link {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.25);
}

.drawer-link-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.mobile-drawer-link:hover .drawer-link-icon-box {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.drawer-link-icon-box.cyan-glow {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
}

.drawer-link-content {
    flex: 1;
    min-width: 0;
}

.drawer-link-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-bright);
    line-height: 1.2;
}

.drawer-link-desc {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-drawer-footer {
    padding: 16px;
    border-top: 1px solid var(--border-glass);
    background: rgba(6, 10, 19, 0.95);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ================ RESPONSIVE ================ */
@media (max-width: 900px) {
    .topnav-links { display: none !important; }
    .topnav-hamburger { display: flex; }
    .stats-counter-bar { grid-template-columns: repeat(2, 1fr); }
    .shield-grid { grid-template-columns: repeat(2, 1fr); }
    .arch-pipeline { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .arch-connector { display: none; }
    .license-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hero-section { padding: 40px 24px; }
    .hero-headline { font-size: 26px; }
    .stats-counter-bar { grid-template-columns: 1fr 1fr; }
    .shield-grid { grid-template-columns: 1fr; }
    .strategy-cards-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .variant-stats-row { grid-template-columns: 1fr; }
    .license-info-grid { grid-template-columns: 1fr; }
    .features-checklist { columns: 1; }
    .section { padding: 40px 0; }
    .container { padding: 0 16px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ================ PHASE 5: DATA SOURCE MODES & PLATFORM BADGES ================ */

/* Data Source Badges & Banners */
.datasource-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.datasource-live {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
    animation: live-pulse-glow 2s infinite ease-in-out;
}

.datasource-live .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
    animation: pulse-dot-anim 1.2s infinite;
}

@keyframes live-pulse-glow {
    0%, 100% { box-shadow: 0 0 7px rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.28); }
    50% { box-shadow: 0 0 14px rgba(16, 185, 129, 0.3); border-color: rgba(16, 185, 129, 0.5); }
}

@keyframes pulse-dot-anim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

.datasource-simulated {
    background: rgba(37, 99, 235, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.35);
}
.datasource-simulated .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    display: inline-block;
}

.datasource-demo {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.datasource-demo .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    display: inline-block;
}

/* Conspicuous Data Source Top Banner in Detail Overlay */
.datasource-hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
}
.datasource-hero-banner.live {
    background: linear-gradient(90deg, rgba(16,185,129,0.2) 0%, rgba(15,23,42,0.6) 100%);
    border: 1px solid rgba(16,185,129,0.4);
    color: #a7f3d0;
}
.datasource-hero-banner.simulated {
    background: linear-gradient(90deg, rgba(37, 99, 235,0.2) 0%, rgba(15,23,42,0.6) 100%);
    border: 1px solid rgba(59, 130, 246,0.35);
    color: #bae6fd;
}
.datasource-hero-banner.demo {
    background: linear-gradient(90deg, rgba(245,158,11,0.2) 0%, rgba(15,23,42,0.6) 100%);
    border: 1px solid rgba(245,158,11,0.4);
    color: #fde68a;
}

/* Multi-Platform Badges */
.platform-badges-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.platform-mt5 {
    background: rgba(33, 150, 243, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(33, 150, 243, 0.35);
}
.platform-mt4 {
    background: rgba(76, 175, 80, 0.15);
    color: #4ade80;
    border: 1px solid rgba(76, 175, 80, 0.35);
}
.platform-ctrader {
    background: rgba(156, 39, 176, 0.15);
    color: #c084fc;
    border: 1px solid rgba(156, 39, 176, 0.35);
}
.platform-tradingview {
    background: rgba(255, 152, 0, 0.15);
    color: #fb923c;
    border: 1px solid rgba(255, 152, 0, 0.35);
}
.platform-ninjatrader {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.platform-manual {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.35);
}

/* ================ DIAGONAL CORNER RIBBON BADGES (TRADING STYLE) ================ */
.card-ribbon-wrapper {
    position: relative !important;
    overflow: hidden !important;
}

.diagonal-style-ribbon,
.diagonal-source-ribbon {
    position: absolute;
    top: 14px;
    left: -34px;
    width: 132px;
    transform: rotate(-45deg);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 3px 28px 3px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
}

/* Trading Style Corner Ribbons */
.diagonal-style-ribbon.ribbon-scalping,
.diagonal-style-ribbon.ribbon-scalp {
    background: linear-gradient(135deg, #0891b2, #44ced0);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.45);
}

.diagonal-style-ribbon.ribbon-day_trading,
.diagonal-style-ribbon.ribbon-day {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.diagonal-style-ribbon.ribbon-swing_trading,
.diagonal-style-ribbon.ribbon-swing {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.45);
}

.diagonal-style-ribbon.ribbon-position_trading,
.diagonal-style-ribbon.ribbon-position,
.diagonal-style-ribbon.ribbon-pos {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.22);
}

/* Fallbacks for Source Mode Corner Ribbons */
.diagonal-source-ribbon.ribbon-live {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.diagonal-source-ribbon.ribbon-simulated {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.18);
}
.diagonal-source-ribbon.ribbon-demo {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #0b1329;
    font-weight: 900;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

/* Safe Padding in Top Row to Prevent Any Overlap with Top-Left Corner Ribbon and Top-Right Glowing Dot */
.strategy-card .source-pulse-orb,
/* The selected-variant panel carries the same ribbon wrapper but is a .card,
   not a .strategy-card, so its orb missed this pin and rendered as a lone row
   above the title. Scoped by id rather than widening to .card-ribbon-wrapper,
   which would also catch the inline legend orbs. */
#variant-detail-card > .source-pulse-orb {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15;
}

.strategy-card-top-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 54px; /* Clears the 45deg top-left diagonal badge completely */
    padding-right: 22px; /* Clears space for glowing dot at extreme top right tip */
    margin-bottom: 12px;
}

/* ================ MINIMALIST PULSATING SOURCE ORB ================ */
.source-pulse-orb {
    position: relative;
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    cursor: help;
    transition: transform 0.2s ease;
    vertical-align: middle;
    flex-shrink: 0;
}
.source-pulse-orb:hover {
    transform: scale(1.3);
}

.source-pulse-orb::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    animation: orbPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    opacity: 0.8;
    pointer-events: none;
}

/* Green: Live Trading Bridge */
.source-pulse-orb.source-live {
    background-color: #10b981;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 7px rgba(16, 185, 129, 0.42);
}
.source-pulse-orb.source-live::after {
    border: 1.5px solid #10b981;
    background: rgba(16, 185, 129, 0.2);
}

/* Sky Blue: Quantitative Simulation */
.source-pulse-orb.source-simulated {
    background-color: #3b82f6;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 7px rgba(59, 130, 246, 0.42);
}
.source-pulse-orb.source-simulated::after {
    border: 1.5px solid #3b82f6;
    background: rgba(59, 130, 246, 0.2);
}

/* Amber/Gold: Demo Account */
.source-pulse-orb.source-demo {
    background-color: #f59e0b;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.8), 0 0 2px #f59e0b;
}
.source-pulse-orb.source-demo::after {
    border: 1.5px solid #f59e0b;
    background: rgba(245, 158, 11, 0.2);
}

/* Inactive / Disabled State: Muted, static, no pulsation */
.source-pulse-orb.disabled,
.source-pulse-orb.inactive,
.source-pulse-orb.source-disabled,
.source-pulse-orb.source-inactive {
    background-color: #64748b;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
    opacity: 0.6;
}
.source-pulse-orb.disabled::after,
.source-pulse-orb.inactive::after,
.source-pulse-orb.source-disabled::after,
.source-pulse-orb.source-inactive::after {
    display: none;
    animation: none;
}

@keyframes orbPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    60% {
        transform: scale(1.8);
        opacity: 0;
    }
    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

.engine-status-cluster {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ================ CATALOG & FEED LEGEND BAR ================ */
.catalog-legend-bar {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.legend-title {
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-items-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11.5px;
}
.legend-item strong {
    color: var(--text-main);
}
.legend-dot-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.legend-dot-indicator.live { background: var(--color-success); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.legend-dot-indicator.sim { background: var(--color-accent); box-shadow: 0 0 6px rgba(59, 130, 246,0.5); }
.legend-dot-indicator.demo { background: var(--color-warning); box-shadow: 0 0 6px rgba(245,158,11,0.5); }

.source-glow-pill .glow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.source-live .glow-dot { background: #10b981; box-shadow: 0 0 6px #10b981; }
.source-simulated .glow-dot { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }
.source-demo .glow-dot { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }

/* Diagonal source label for table rows & signal feed items */
.diagonal-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 6px;
    transform: skew(-6deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.diagonal-source-pill.source-live {
    background: linear-gradient(135deg, rgba(5,150,105,0.25), rgba(16,185,129,0.35));
    border: 1px solid #10b981;
    color: #34d399;
    box-shadow: 0 0 14px rgba(16,185,129,0.3);
}
.diagonal-source-pill.source-simulated {
    background: linear-gradient(135deg, rgba(29,78,216,0.25), rgba(37, 99, 235,0.35));
    border: 1px solid #3b82f6;
    color: #7dd3fc;
    box-shadow: 0 0 14px rgba(59, 130, 246,0.3);
}
.diagonal-source-pill.source-demo {
    background: linear-gradient(135deg, rgba(217,119,6,0.25), rgba(245,158,11,0.35));
    border: 1px solid #fbbf24;
    color: #fde047;
    box-shadow: 0 0 14px rgba(245,158,11,0.3);
}

/* Notification Channel Indicators */
.notification-channels-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}
.channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.channel-pill.active {
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-accent);
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.channel-pill.inactive {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 0.6;
}

/* Custom Toggle Switch for Admin & Client */
.switch-control {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
}
.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.switch-control input:checked + .switch-slider {
    background-color: var(--color-primary);
    border-color: var(--color-accent);
}
.switch-control input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* Global High-Contrast Dropdown Form Elements */
select,
select.form-input,
.form-input select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color-scheme: dark !important;
    background-color: #0b1329 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2340c2c4' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    border: 1px solid var(--border-glass) !important;
}

select:focus,
select.form-input:focus {
    background-color: #0f172a !important;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246,0.15) !important;
}

select option,
select.form-input option,
option,
optgroup {
    color-scheme: dark !important;
    background-color: #0b1329 !important;
    background: #0b1329 !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    font-size: 13.5px !important;
    padding: 10px 14px !important;
}

select option:checked,
select option:hover,
select option:focus,
select.form-input option:checked,
select.form-input option:hover,
select.form-input option:focus {
    background-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ================ SIGNAL TYPE BADGES ================ */
.signal-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: var(--font-mono);
}

.signal-type-scalping {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.12);
}

.signal-type-day_trading {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.12);
}

.signal-type-swing_trading {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.12);
}

.signal-type-position_trading {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.12);
}

/* ================ COOKIE CONSENT BANNER ================ */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: min(820px, calc(100% - 32px));
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(11, 15, 25, 0.98));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(59, 130, 246, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    bottom: 24px;
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.cookie-icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

.cookie-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.cookie-text p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 14px;
    }
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    .cookie-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ================ FLOATING WHATSAPP & TELEGRAM WIDGET ================ */
.floating-contact-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
}

.contact-bubble-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #0284c7 100%);
    border: 2px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24), 0 0 16px rgba(59, 130, 246, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.contact-bubble-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32), 0 0 22px rgba(59, 130, 246, 0.22);
}

.bubble-pulse-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.6);
    animation: contactPulse 2.5s infinite ease-out;
    pointer-events: none;
}

@keyframes contactPulse {
    0% { transform: scale(0.95); opacity: 0.9; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

.bubble-online-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    background: #10b981;
    border: 2px solid #060a13;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.bubble-icon-open { display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.bubble-icon-close { display: none; font-size: 20px; font-weight: 700; }

.floating-contact-widget.open .bubble-icon-open { display: none; }
.floating-contact-widget.open .bubble-icon-close { display: flex; }
.floating-contact-widget.open .contact-bubble-btn { background: #1e293b; border-color: rgba(255, 255, 255, 0.2); }

/* POPUP CARD */
.contact-popup-card {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 320px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(11, 15, 25, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65), 0 0 30px rgba(59, 130, 246, 0.15);
    display: none;
    flex-direction: column;
    gap: 12px;
    transform-origin: bottom right;
    animation: contactPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contactPopIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.floating-contact-widget.open .contact-popup-card {
    display: flex;
}

.contact-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-glass);
}

.contact-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.contact-card-status {
    font-size: 11.5px;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.contact-card-status .pulse-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.contact-card-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s;
}

.contact-card-close:hover { color: var(--text-main); }

.contact-channels-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.contact-channel-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateX(3px);
}

.channel-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-wa { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.icon-tg { background: rgba(34, 158, 217, 0.15); color: #229ED9; }
.icon-vip { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-mail { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.channel-info { flex: 1; }
.channel-name { font-size: 13px; font-weight: 600; color: var(--text-bright, #fff); }
.channel-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.channel-arrow { font-size: 14px; color: var(--text-dim); transition: transform 0.2s; }
.contact-channel-item:hover .channel-arrow { transform: translateX(3px); color: var(--color-accent); }

/* ================ COMPREHENSIVE MODAL SYSTEM ================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 9, 20, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open,
.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-card {
    background: #0d1527;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg, 16px);
    padding: 32px 28px;
    width: 100%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(59, 130, 246, 0.12);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal-card,
.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-card-wide {
    max-width: 820px !important;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
    color: var(--text-muted, #94a3b8);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main, #ffffff);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.modal-subtitle {
    font-size: 13.5px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.5;
    margin-bottom: 20px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 20px;
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
}

.auth-tab {
    flex: 1;
    padding: 9px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted, #94a3b8);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--brand-cyan, #3b82f6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 700;
}

.checkout-summary-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-sm, 8px);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
}

.checkout-summary-row.total {
    border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    padding-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main, #ffffff);
}

/* ================ LEGAL DOCUMENT MODAL ================ */
.legal-modal-card {
    max-width: 820px !important;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.legal-modal-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    padding-right: 40px;
}

.legal-content-body {
    overflow-y: auto;
    max-height: 55vh;
    padding-right: 12px;
    font-size: 13.5px;
    line-height: 1.75;
    color: #cbd5e1;
}

.legal-content-body::-webkit-scrollbar { width: 6px; }
.legal-content-body::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.3); border-radius: 4px; }
.legal-content-body::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }

.legal-h2 { font-size: 19px; font-weight: 800; color: var(--text-bright, #ffffff); margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-glass, rgba(255,255,255,0.06)); }
.legal-h3 { font-size: 16px; font-weight: 700; color: var(--text-bright, #f1f5f9); margin: 16px 0 8px; }
.legal-h4 { font-size: 14.5px; font-weight: 700; color: var(--color-accent, #3b82f6); margin: 14px 0 6px; }
.legal-p { margin-bottom: 14px; color: var(--text-muted, #cbd5e1); }
.legal-ul { margin: 10px 0 14px 22px; list-style-type: disc; }
.legal-li { margin-bottom: 8px; color: var(--text-muted, #cbd5e1); line-height: 1.6; }

.legal-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    flex-wrap: wrap;
    gap: 10px;
}

/* ================ PAYMENT CARD FORM (Step 2 Checkout) ================ */
.pay-card-frame {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.pay-card-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #2563eb, var(--color-accent));
    background-size: 200% 100%;
    animation: cardShimmer 3s linear infinite;
}

@keyframes cardShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pay-card-frame-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pay-card-input {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    color: var(--text-main) !important;
    font-size: 14px !important;
    transition: all 0.25s ease !important;
}

.pay-card-input:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.08) !important;
    background: rgba(0, 0, 0, 0.45) !important;
}

.pay-card-input::placeholder {
    color: var(--text-dim) !important;
    opacity: 0.6;
}

.pay-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: paySpinnerRotate 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes paySpinnerRotate {
    to { transform: rotate(360deg); }
}

/* ================ SWITCHABLE WELL-OPTIMIZED LIGHT THEME (STYLE.CSS) ================ */
html[data-theme="light"],
html[data-theme="light"] body {
    color-scheme: light !important;
}

:root[data-theme="light"],
html[data-theme="light"] {
    --bg-base: #eceff5;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.96);
    --bg-card: #ffffff;
    --border-glass: rgba(15, 23, 42, 0.13);
    --border-glow: rgba(2, 132, 199, 0.35);
    --text-main: #0f172a;
    --text-muted: #3f4d5f;
    --text-dim: #5a6a7e;
    --color-primary: #0369a1;
    --color-accent: #2563eb;
    --color-accent-glow: rgba(8, 145, 178, 0.18);
    --color-success: #059669;
    --color-success-glow: rgba(5, 150, 105, 0.15);
    --color-danger: #dc2626;
    --color-warning: #d97706;
    --shadow-glass: 0 1px 2px rgba(15, 23, 42, 0.07), 0 10px 26px -8px rgba(15, 23, 42, 0.18);
    --shadow-glow: 0 0 26px rgba(37, 99, 235, 0.18);
}

html[data-theme="light"] body {
    background-color: #eceff5;
    color: #0f172a;
    background-image:
        radial-gradient(ellipse at 12% -8%, rgba(3, 105, 161, 0.07) 0%, transparent 52%),
        radial-gradient(ellipse at 92% 8%, rgba(13, 148, 136, 0.05) 0%, transparent 48%);
    background-attachment: fixed;
}

/* Light Topnav */
/* The wordmark PNG is a light-on-dark asset; on white it needs darkening
   rather than a second file. */
html[data-theme="light"] .brand-logo-img {
    /* contrast rather than brightness: it deepens the mid-tone wordmark while
       pushing the asset's pale circuit-texture surround toward white, instead
       of darkening the halo along with it. */
    filter: contrast(1.5) saturate(1.4) brightness(0.97);
}
html[data-theme="light"] .topnav {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(15, 23, 42, 0.13);
}
html[data-theme="light"] .topnav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}

/* Light Theme User Dropdown */
html[data-theme="light"] .nav-user-dropdown {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="light"] .nav-user-dropdown-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .nav-user-badge {
    color: #0369a1 !important;
}

html[data-theme="light"] .nav-user-email {
    color: #0f172a !important;
}

html[data-theme="light"] .nav-user-item {
    color: #334155 !important;
}

html[data-theme="light"] .nav-user-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .nav-user-item.danger {
    color: #dc2626 !important;
}

html[data-theme="light"] .nav-user-item.danger:hover {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #b91c1c !important;
}

html[data-theme="light"] .nav-user-divider {
    background: #e2e8f0 !important;
}

html[data-theme="light"] .nav-link {
    color: #3f4d5f;
}
html[data-theme="light"] .nav-link:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .nav-link.active {
    color: var(--color-primary);
}
html[data-theme="light"] .nav-link.active::after {
    background: var(--color-primary);
}

/* Light Mobile Drawer */
html[data-theme="light"] .mobile-drawer {
    background: #ffffff;
    border-left: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
}
html[data-theme="light"] .mobile-drawer-link {
    color: #1e293b;
}
html[data-theme="light"] .mobile-drawer-link:hover {
    background: rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .drawer-link-title {
    color: #0f172a;
}
html[data-theme="light"] .drawer-link-desc {
    color: #5a6a7e;
}

/* Light Hero Section */
html[data-theme="light"] .hero-section {
    background-color: #f5f8fc;
    border-bottom: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.05);
}
/* Light theme keeps the command-centre image visible: a soft light wash sits
   behind the copy on the left and clears towards the right, where the image shows. */
html[data-theme="light"] .hero-banner-bg {
    opacity: 1;
    filter: brightness(1.08) contrast(1.02) saturate(0.95);
}
html[data-theme="light"] .hero-banner-overlay {
    background:
        linear-gradient(90deg, rgba(245, 248, 252, 0.96) 0%, rgba(245, 248, 252, 0.9) 34%, rgba(245, 248, 252, 0.55) 58%, rgba(245, 248, 252, 0.12) 82%, rgba(245, 248, 252, 0.05) 100%),
        linear-gradient(180deg, rgba(245, 248, 252, 0.35) 0%, rgba(245, 248, 252, 0) 22%, rgba(245, 248, 252, 0) 72%, #f5f8fc 100%),
        radial-gradient(ellipse at 18% 45%, rgba(255, 255, 255, 0.55) 0%, transparent 55%);
}
@media (max-width: 900px) {
    /* Copy spans the full width on small screens, so wash the whole image evenly */
    html[data-theme="light"] .hero-banner-overlay {
        background:
            linear-gradient(180deg, rgba(245, 248, 252, 0.82) 0%, rgba(245, 248, 252, 0.86) 60%, #f5f8fc 100%);
    }
}
html[data-theme="light"] .hero-scanlines {
    opacity: 0.15;
}
html[data-theme="light"] .hero-headline {
    color: #0f172a;
}
html[data-theme="light"] .hero-subtext {
    color: #3f4d5f;
}
html[data-theme="light"] .hero-subtext-highlight {
    color: #0f172a;
}
html[data-theme="light"] .hero-brand-shimmer {
    background-image: linear-gradient(135deg,
        #047857 0%,
        #2563eb 35%,
        #4338ca 70%,
        #047857 100%) !important;
}
html[data-theme="light"] .hero-chip {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    color: #2b3648;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.07);
}
html[data-theme="light"] .btn-hero-secondary {
    background: #ffffff;
    color: #035a8a;
    border: 1px solid rgba(3, 105, 161, 0.48);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.07);
}
html[data-theme="light"] .btn-hero-secondary:hover {
    background: rgba(2, 132, 199, 0.08);
    color: #0369a1;
}
html[data-theme="light"] .btn-hero-outline {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.22);
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.07);
}
html[data-theme="light"] .btn-hero-outline:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.3);
    color: #0f172a;
}
html[data-theme="light"] .hero-telemetry-strip {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 14px 32px -10px rgba(15, 23, 42, 0.22);
}
html[data-theme="light"] .telemetry-val {
    color: #0f172a;
}
html[data-theme="light"] .telemetry-lbl {
    color: #5a6a7e;
}
html[data-theme="light"] .telemetry-col:not(:last-child)::after {
    background: rgba(15, 23, 42, 0.14);
}

/* Light Cards & Grids */
html[data-theme="light"] .card,
html[data-theme="light"] .stat-counter-card,
html[data-theme="light"] .arch-card,
html[data-theme="light"] .shield-card,
html[data-theme="light"] .strategy-card,
html[data-theme="light"] .pricing-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 22px -8px rgba(15, 23, 42, 0.16) !important;
}
html[data-theme="light"] .strategy-card:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12) !important;
}
html[data-theme="light"] .strategy-card.selected {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 1.5px var(--color-primary), 0 10px 30px rgba(2, 132, 199, 0.12) !important;
}
html[data-theme="light"] .strategy-card-title,
html[data-theme="light"] .card-title,
html[data-theme="light"] .arch-name,
html[data-theme="light"] .shield-name,
html[data-theme="light"] .section-title {
    color: #0f172a !important;
}
html[data-theme="light"] .strategy-card-tagline,
html[data-theme="light"] .card-subtitle,
html[data-theme="light"] .arch-desc,
html[data-theme="light"] .shield-desc,
html[data-theme="light"] .section-desc {
    color: #3f4d5f !important;
}
html[data-theme="light"] .metric-mini-val,
html[data-theme="light"] .card-price-tag,
html[data-theme="light"] .stat-counter-value {
    color: #0f172a !important;
}
html[data-theme="light"] .stat-box {
    background: #f4f6fa !important;
    border: 1px solid rgba(15, 23, 42, 0.13) !important;
}
html[data-theme="light"] .stat-val {
    color: #0f172a !important;
}
html[data-theme="light"] .stat-label {
    color: #5a6a7e !important;
}

/* Light FAQ */
html[data-theme="light"] .faq-item {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}
html[data-theme="light"] .faq-question {
    color: #0f172a !important;
}
html[data-theme="light"] .faq-answer {
    color: #3f4d5f !important;
}

/* Light Modals & Forms */
html[data-theme="light"] .modal-backdrop {
    background: rgba(15, 23, 42, 0.6) !important;
}
html[data-theme="light"] .modal-card,
html[data-theme="light"] .auth-modal-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2) !important;
    color: #0f172a !important;
}
html[data-theme="light"] .modal-title {
    color: #0f172a !important;
}
html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select,
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html[data-theme="light"] select,
html[data-theme="light"] select.form-input,
html[data-theme="light"] .form-input select,
html[data-theme="light"] .form-select,
html[data-theme="light"] .table-filter-select {
    color-scheme: light !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 12px !important;
    padding-right: 38px !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] select option,
html[data-theme="light"] select.form-input option,
html[data-theme="light"] .form-input select option,
html[data-theme="light"] option,
html[data-theme="light"] optgroup {
    color-scheme: light !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html[data-theme="light"] select option:checked,
html[data-theme="light"] select.form-input option:checked,
html[data-theme="light"] select option:hover,
html[data-theme="light"] select.form-input option:hover {
    background-color: #0369a1 !important;
    background: #0369a1 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="light"] .form-input:focus,
html[data-theme="light"] .form-select:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] select.form-input:focus,
html[data-theme="light"] .form-input select:focus,
html[data-theme="light"] .table-filter-select:focus {
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 12px !important;
    border-color: #0369a1 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* Light Theme Captcha Widget */
html[data-theme="light"] .captcha-box {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .captcha-title {
    color: #0369a1 !important;
}

html[data-theme="light"] .captcha-shield-icon {
    color: #0369a1 !important;
}

html[data-theme="light"] .captcha-refresh-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .captcha-refresh-btn:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .captcha-svg {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .captcha-svg-bg {
    fill: #ffffff !important;
}

html[data-theme="light"] .captcha-glyph-num {
    fill: #0f172a !important;
}

html[data-theme="light"] .captcha-glyph-op {
    fill: #0369a1 !important;
}

html[data-theme="light"] .captcha-glyph-q {
    fill: #2563eb !important;
}

html[data-theme="light"] .captcha-noise-line {
    opacity: 0.22 !important;
}

html[data-theme="light"] .captcha-noise-dot {
    opacity: 0.25 !important;
}

html[data-theme="light"] .captcha-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .captcha-input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}

html[data-theme="light"] .captcha-input:focus {
    border-color: #0369a1 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}
html[data-theme="light"] .badge-secondary {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #334155 !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
}
html[data-theme="light"] .btn-secondary {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .btn-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .tf-filter-bar {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.13);
}
html[data-theme="light"] .tf-btn {
    color: #3f4d5f;
}
html[data-theme="light"] .tf-btn.active {
    background: #ffffff;
    color: #0369a1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.13);
}
html[data-theme="light"] .footer {
    background: #f1f5f9;
    border-top: 1px solid rgba(15, 23, 42, 0.13);
}
html[data-theme="light"] .footer-title {
    color: #0f172a;
}
html[data-theme="light"] .footer-link {
    color: #5a6a7e;
}
html[data-theme="light"] .footer-link:hover {
    color: #0f172a;
}

/* Theme Toggle Button Component */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}
:root:not([data-theme="light"]) .theme-toggle-btn .sun-icon { display: block; }
:root:not([data-theme="light"]) .theme-toggle-btn .moon-icon { display: none; }
html[data-theme="light"] .theme-toggle-btn .sun-icon { display: none; }
html[data-theme="light"] .theme-toggle-btn .moon-icon { display: block; }

html[data-theme="light"] .theme-toggle-btn {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: #3f4d5f;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .theme-toggle-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.25);
}

/* ================ STYLISH ZOOM TOGGLE BUTTON ================ */
.zoom-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px 0 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    flex-shrink: 0;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    position: relative;
    outline: none;
}

.zoom-toggle-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.18);
    transform: translateY(-1px);
}

.zoom-toggle-btn:active {
    transform: translateY(1px) scale(0.97);
}

.zoom-toggle-btn .zoom-icon {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2.2;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.2s ease;
    display: block;
    flex-shrink: 0;
}

.zoom-toggle-btn .zoom-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1;
    padding: 2.5px 6.5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* State 2x */
.zoom-toggle-btn.zoom-active-2 {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.22);
}
.zoom-toggle-btn.zoom-active-2 .zoom-badge {
    background: rgba(59, 130, 246, 0.25);
    color: #3b82f6;
    font-weight: 800;
    transform: scale(1.04);
}
.zoom-toggle-btn.zoom-active-2 .zoom-icon {
    transform: scale(1.12);
    stroke: #3b82f6;
}

/* State x3 */
.zoom-toggle-btn.zoom-active-3 {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.18);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.38);
}
.zoom-toggle-btn.zoom-active-3 .zoom-badge {
    background: #3b82f6;
    color: #060a13;
    font-weight: 900;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.zoom-toggle-btn.zoom-active-3 .zoom-icon {
    transform: scale(1.2) rotate(12deg);
    stroke: #3b82f6;
}

/* Light Mode */
html[data-theme="light"] .zoom-toggle-btn {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: #3f4d5f;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .zoom-toggle-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

html[data-theme="light"] .zoom-toggle-btn .zoom-badge {
    background: #f1f5f9;
    color: #3f4d5f;
}

html[data-theme="light"] .zoom-toggle-btn.zoom-active-2 {
    border-color: rgba(2, 132, 199, 0.55);
    background: rgba(2, 132, 199, 0.08);
    color: #0369a1;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15);
}

html[data-theme="light"] .zoom-toggle-btn.zoom-active-2 .zoom-badge {
    background: rgba(2, 132, 199, 0.16);
    color: #0369a1;
    font-weight: 800;
}

html[data-theme="light"] .zoom-toggle-btn.zoom-active-2 .zoom-icon {
    stroke: #0369a1;
}

html[data-theme="light"] .zoom-toggle-btn.zoom-active-3 {
    border-color: #0369a1;
    background: rgba(2, 132, 199, 0.12);
    color: #0369a1;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25);
}

html[data-theme="light"] .zoom-toggle-btn.zoom-active-3 .zoom-badge {
    background: #0369a1;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 1px 6px rgba(2, 132, 199, 0.4);
}

html[data-theme="light"] .zoom-toggle-btn.zoom-active-3 .zoom-icon {
    stroke: #0369a1;
}

/* ================ CATALOG & STRATEGIES LIGHT THEME ================ */
html[data-theme="light"] .catalog-filter-panel {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}
html[data-theme="light"] .filter-top-bar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.13) !important;
}
html[data-theme="light"] .filter-search-input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .filter-search-input:focus {
    background: #ffffff !important;
    border-color: #0369a1 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}
html[data-theme="light"] .filter-pill-btn {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #3f4d5f !important;
}
html[data-theme="light"] .filter-pill-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .filter-group-title {
    color: #0f172a !important;
}
html[data-theme="light"] .detail-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.15) !important;
}
html[data-theme="light"] .detail-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.13) !important;
}
html[data-theme="light"] .detail-name {
    color: #0f172a !important;
}
html[data-theme="light"] .perf-card {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.13) !important;
}
html[data-theme="light"] .perf-card-val {
    color: #0f172a !important;
}
html[data-theme="light"] .feature-item {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.13) !important;
    color: #334155 !important;
}
html[data-theme="light"] .pos-card {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.13) !important;
}
html[data-theme="light"] .pos-card:hover {
    border-color: #0369a1 !important;
}
html[data-theme="light"] .pos-symbol {
    color: #0f172a !important;
}
html[data-theme="light"] .monthly-table td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    color: #1e293b !important;
}
html[data-theme="light"] .detail-footer {
    background: #f8fafc !important;
    border-top: 1px solid rgba(15, 23, 42, 0.13) !important;
}
html[data-theme="light"] .detail-price {
    color: #0f172a !important;
}

/* Strategy Legends Bar in Light Mode */
html[data-theme="light"] .catalog-legend-bar {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .legend-title {
    color: #0f172a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .legend-item {
    color: #334155 !important;
}
html[data-theme="light"] .legend-item strong {
    color: #0f172a !important;
}
html[data-theme="light"] .legend-item span {
    color: #3f4d5f !important;
}
html[data-theme="light"] .legend-item-divider {
    border-left: 1px solid rgba(15, 23, 42, 0.14) !important;
}

/* Detail Modal Light Mode */
html[data-theme="light"] .detail-overlay {
    background: rgba(15, 23, 42, 0.65) !important;
}
html[data-theme="light"] .detail-panel {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2) !important;
}
html[data-theme="light"] .detail-close {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.13) !important;
}
html[data-theme="light"] .detail-close:hover {
    background: #f1f5f9 !important;
    color: #0369a1 !important;
}
html[data-theme="light"] .detail-desc {
    color: #334155 !important;
}
html[data-theme="light"] .notification-channels-bar {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .notification-channels-bar span {
    color: #3f4d5f !important;
}
html[data-theme="light"] .channel-pill.active {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0369a1 !important;
    border: 1px solid rgba(2, 132, 199, 0.35) !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .channel-pill.inactive {
    background: #f1f5f9 !important;
    color: #3f4d5f !important;
    border: 1px solid #cbd5e1 !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

/* Regulatory Disclaimer Box */
.regulatory-disclaimer-box {
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 11.5px;
    line-height: 1.65;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}
.regulatory-disclaimer-box .disclaimer-header {
    font-weight: 700;
    color: #fee2e2;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
html[data-theme="light"] .regulatory-disclaimer-box {
    background: #fff5f5 !important;
    border: 1px solid #fecaca !important;
    color: #334155 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.04) !important;
}
html[data-theme="light"] .regulatory-disclaimer-box .disclaimer-header {
    color: #b91c1c !important;
}
html[data-theme="light"] .regulatory-disclaimer-box strong {
    color: #0f172a !important;
}
html[data-theme="light"] .regulatory-disclaimer-box p {
    color: #3f4d5f !important;
}

/* Platform Badges & Signal Type Tags Light Mode */
html[data-theme="light"] .platform-mt5 {
    background: rgba(2, 132, 199, 0.1) !important;
    color: #0369a1 !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
}
html[data-theme="light"] .platform-mt4 {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}
html[data-theme="light"] .platform-ctrader {
    background: rgba(168, 85, 247, 0.1) !important;
    color: #7e22ce !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
}
html[data-theme="light"] .platform-tradingview {
    background: rgba(234, 88, 12, 0.1) !important;
    color: #c2410c !important;
    border: 1px solid rgba(234, 88, 12, 0.3) !important;
}
html[data-theme="light"] .platform-ninjatrader {
    background: rgba(220, 38, 38, 0.1) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
}
html[data-theme="light"] .platform-manual {
    background: rgba(100, 116, 139, 0.1) !important;
    color: #3f4d5f !important;
    border: 1px solid rgba(100, 116, 139, 0.3) !important;
}
html[data-theme="light"] .signal-type-scalping {
    background: rgba(217, 119, 6, 0.1) !important;
    color: #b45309 !important;
    border: 1px solid rgba(217, 119, 6, 0.3) !important;
}
html[data-theme="light"] .signal-type-day_trading {
    background: rgba(2, 132, 199, 0.1) !important;
    color: #0369a1 !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
}
html[data-theme="light"] .signal-type-swing_trading {
    background: rgba(147, 51, 234, 0.1) !important;
    color: #7e22ce !important;
    border: 1px solid rgba(147, 51, 234, 0.3) !important;
}
html[data-theme="light"] .signal-type-position_trading {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* Auth Tabs & Checkout Modal Light Mode */
html[data-theme="light"] .auth-tabs {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .auth-tab {
    color: #5a6a7e !important;
}
html[data-theme="light"] .auth-tab.active {
    background: #ffffff !important;
    color: #0369a1 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.13) !important;
}
html[data-theme="light"] .checkout-summary-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .checkout-summary-row span {
    color: #3f4d5f !important;
}
html[data-theme="light"] .checkout-summary-row strong {
    color: #0f172a !important;
}
html[data-theme="light"] .pay-card-frame {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] #checkout-sandbox-box,
html[data-theme="light"] #client-checkout-sandbox-box {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
}

/* ================ CLIENT DRM & EXECUTION PORTAL GATEWAY LIGHT MODE ================ */
html[data-theme="light"] .portal-gateway-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #f0f9ff 100%) !important;
    border: 1px solid rgba(2, 132, 199, 0.22) !important;
    border-top: 3px solid #0369a1 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.13), 0 2px 10px rgba(2, 132, 199, 0.05) !important;
}
html[data-theme="light"] .portal-gateway-badge {
    background: rgba(2, 132, 199, 0.08) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    color: #0369a1 !important;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.06) !important;
}
html[data-theme="light"] .portal-gateway-title {
    color: #0f172a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .portal-gateway-desc {
    color: #3f4d5f !important;
}
html[data-theme="light"] .portal-feat-item {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.13) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .portal-feat-item:hover {
    background: #ffffff !important;
    border-color: rgba(2, 132, 199, 0.45) !important;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12) !important;
    transform: translateY(-2px);
}
html[data-theme="light"] .portal-feat-text strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .portal-feat-text span {
    color: #5a6a7e !important;
    font-weight: 500 !important;
}
html[data-theme="light"] .portal-gateway-actions .btn-primary {
    background: linear-gradient(135deg, #0369a1 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
}
html[data-theme="light"] .portal-gateway-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4) !important;
    color: #ffffff !important;
}
html[data-theme="light"] .portal-gateway-actions .btn-secondary {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}
html[data-theme="light"] .portal-gateway-actions .btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #0369a1 !important;
    color: #0369a1 !important;
}

/* ================ PRICING SECTION LIGHT THEME ================ */
html[data-theme="light"] .pricing-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 22px -8px rgba(15, 23, 42, 0.16) !important;
}
html[data-theme="light"] .pricing-card.featured {
    border-color: #0369a1 !important;
    box-shadow: 0 8px 30px rgba(2, 132, 199, 0.15) !important;
}
html[data-theme="light"] .pricing-name {
    color: #0f172a !important;
}
html[data-theme="light"] .pricing-price {
    color: #0f172a !important;
}
html[data-theme="light"] .pricing-period {
    color: #5a6a7e !important;
}
html[data-theme="light"] .pricing-desc {
    color: #3f4d5f !important;
}
html[data-theme="light"] .pricing-meta-row {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.13) !important;
}
html[data-theme="light"] .pricing-meta-label {
    color: #5a6a7e !important;
}
html[data-theme="light"] .pricing-tf-chip {
    background: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #334155 !important;
}
html[data-theme="light"] .pricing-features li {
    color: #334155 !important;
}
html[data-theme="light"] .pricing-interval-tabs {
    background: rgba(15, 23, 42, 0.03);
    padding: 6px;
    border-radius: var(--radius-full);
}
html[data-theme="light"] .pricing-interval-btn {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #5a6a7e !important;
}
html[data-theme="light"] .pricing-interval-btn:hover {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.05) !important;
}
html[data-theme="light"] .pricing-interval-btn.active {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0369a1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.13) !important;
    font-weight: 700 !important;
}

/* ================ TRUST & LOGOS LIGHT THEME ================ */
html[data-theme="light"] .trust-label {
    color: #5a6a7e !important;
}
html[data-theme="light"] .trust-logo-item {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #334155 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .trust-logo-item:hover {
    border-color: #0369a1 !important;
    color: #0369a1 !important;
    background: #f0f9ff !important;
}

/* ================ FAQ PILLS LIGHT THEME ================ */
html[data-theme="light"] .faq-filter-row .pill {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    color: #3f4d5f !important;
}
html[data-theme="light"] .faq-filter-row .pill:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .faq-filter-row .pill.active {
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: #0369a1 !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .faq-arrow {
    color: #5a6a7e !important;
}

/* ================ SITE FOOTER LIGHT THEME ================ */
html[data-theme="light"] .site-footer {
    background: #f1f5f9 !important;
    border-top: 1px solid rgba(15, 23, 42, 0.13) !important;
}
html[data-theme="light"] .footer-brand p {
    color: #5a6a7e !important;
}
html[data-theme="light"] .footer-links a {
    color: #3f4d5f !important;
}
html[data-theme="light"] .footer-links a:hover {
    color: #0369a1 !important;
}
html[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
    color: #5a6a7e !important;
}
html[data-theme="light"] .footer-bottom a {
    color: #5a6a7e !important;
}
html[data-theme="light"] .footer-bottom a:hover {
    color: #0369a1 !important;
}

/* Legal & Contact Modals Light Mode Overrides */
html[data-theme="light"] .legal-h2 {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .legal-h3 {
    color: #1e293b !important;
}
html[data-theme="light"] .legal-p,
html[data-theme="light"] .legal-li {
    color: #334155 !important;
}
html[data-theme="light"] .channel-name {
    color: #0f172a !important;
}
html[data-theme="light"] .channel-desc {
    color: #5a6a7e !important;
}
html[data-theme="light"] .contact-channel-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .contact-channel-item:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* ================ COOKIE CONSENT BANNER (LIGHT THEME) ================ */
html[data-theme="light"] .cookie-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(2, 132, 199, 0.22) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15), 0 2px 12px rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] .cookie-text strong {
    color: #0f172a !important;
}

html[data-theme="light"] .cookie-text p {
    color: #3f4d5f !important;
}

html[data-theme="light"] .cookie-icon {
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.35));
}

html[data-theme="light"] .cookie-actions .btn-secondary {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

html[data-theme="light"] .cookie-actions .btn-secondary:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0369a1 !important;
    transform: translateY(-1px);
}

html[data-theme="light"] .cookie-actions .btn-primary {
    background: linear-gradient(135deg, #0369a1 0%, #2563eb 100%) !important;
    border: 1px solid #0369a1 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
    transition: all 0.2s ease !important;
}

html[data-theme="light"] .cookie-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0369a1 100%) !important;
    border-color: #0369a1 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45) !important;
    transform: translateY(-1px);
}

/* ================ FLOATING CONTACT WIDGET (LIGHT THEME) ================ */
html[data-theme="light"] .contact-popup-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.99) 100%) !important;
    border: 1px solid rgba(2, 132, 199, 0.2) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14), 0 0 25px rgba(2, 132, 199, 0.06) !important;
}

html[data-theme="light"] .contact-card-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.13) !important;
}

html[data-theme="light"] .contact-card-title {
    color: #0f172a !important;
}

html[data-theme="light"] .contact-card-close {
    color: #5a6a7e !important;
}

html[data-theme="light"] .contact-card-close:hover {
    color: #0f172a !important;
}

html[data-theme="light"] .contact-card-status {
    color: #059669 !important;
}

html[data-theme="light"] .contact-channel-item .channel-name {
    color: #0f172a !important;
}

html[data-theme="light"] .contact-channel-item .channel-desc {
    color: #5a6a7e !important;
}

html[data-theme="light"] .contact-channel-item .channel-arrow {
    color: #94a3b8 !important;
}

html[data-theme="light"] .contact-channel-item:hover .channel-arrow {
    color: #0369a1 !important;
}

html[data-theme="light"] .floating-contact-widget.open .contact-bubble-btn {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15) !important;
}

/* ================ LEGAL MODAL (LIGHT THEME) ================ */
html[data-theme="light"] .legal-modal-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] .legal-modal-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.13) !important;
}

html[data-theme="light"] .legal-modal-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.13) !important;
    background: #f8fafc !important;
}

html[data-theme="light"] .legal-content-body {
    color: #334155 !important;
}

html[data-theme="light"] .legal-content-body::-webkit-scrollbar-thumb {
    background: rgba(2, 132, 199, 0.3) !important;
}

html[data-theme="light"] .legal-content-body::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}





/* ================ LANDING: CATALOG BANNER, STEPS, TRUST NOTE ================ */
.catalog-cta { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 26px 32px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(37, 99, 235, 0.12)); border: 1px solid var(--border-glass); }
.catalog-cta-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.catalog-cta-text { font-size: 13.5px; color: var(--text-muted); margin: 0; max-width: 640px; }
.catalog-cta-btn { padding: 13px 26px; white-space: nowrap; }

.steps-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.step-card { position: relative; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 22px 20px 20px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; margin-bottom: 12px; font: 800 14px/1 var(--font-mono); color: #04121a; background: linear-gradient(135deg, #3b82f6, #0ea5e9); }
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.trust-disclaimer { margin: 14px auto 0; font-size: 11.5px; color: var(--text-dim); max-width: 560px; }

@media (max-width: 900px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .steps-grid { grid-template-columns: 1fr; }
    .catalog-cta { padding: 20px; }
    .catalog-cta-btn { width: 100%; justify-content: center; }
}
html[data-theme="light"] .catalog-cta { background: linear-gradient(135deg, #ffffff, rgba(14, 165, 164, 0.08)); border-color: rgba(15, 23, 42, 0.1); }
html[data-theme="light"] .step-card { background: #ffffff; border-color: rgba(15, 23, 42, 0.1); }

/* The focused-select rule above also matched text boxes, drawing a dropdown chevron in them */
html[data-theme="light"] input.form-input:focus,
html[data-theme="light"] textarea.form-input:focus { background-image: none !important; }
