/* ==========================================================================
   BettingTemplates PRO — Next-Level UI/UX Pro Max Design System (newtemp)
   Single Unified Color Palette with Seamless Dark ↔ Light Theme Morphing,
   Full-Page In-Domain Live Preview Studio, 3D Hardware Bezels & Dual Video Studio
   ========================================================================== */

:root[data-theme="dark"] {
    color-scheme: dark;

    /* Single Core Brand Accent Spectrum (Shared across Dark & Light) */
    --brand-cyan: #00D2FF;
    --brand-cyan-strong: #0284C7;
    --brand-blue: #2563EB;
    --brand-indigo: #4F46E5;
    --brand-violet: #7C3AED;
    --brand-purple: #9333EA;
    --brand-gold: #F59E0B;
    --brand-emerald: #10B981;
    --brand-whatsapp: #25D366;
    --brand-rose: #F43F5E;

    /* Shared Brand Gradients */
    --grad-primary: linear-gradient(135deg, #00D2FF 0%, #2563EB 52%, #7C3AED 100%);
    --grad-action: linear-gradient(135deg, #2563EB 0%, #4F46E5 50%, #7C3AED 100%);
    --grad-cyan-blue: linear-gradient(135deg, #00D2FF 0%, #2563EB 100%);
    --grad-text: linear-gradient(135deg, #00D2FF 0%, #60A5FA 42%, #A855F7 80%, #EC4899 100%);
    --grad-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

    /* Dark Mode Surfaces (OLED Cyber Obsidian) */
    --bg-canvas: #040711;
    --bg-surface: #080E22;
    --bg-elevated: #0C1430;
    --bg-card: rgba(11, 18, 40, 0.82);
    --bg-card-hover: rgba(16, 26, 58, 0.94);
    --bg-glass: rgba(8, 14, 34, 0.86);
    --bg-glass-pill: rgba(15, 23, 42, 0.78);
    --bg-input: #060A18;
    --bg-studio: #03060F;
    --bg-studio-bar: rgba(8, 14, 34, 0.95);
    --bg-bezel: #0B132B;

    /* Dark Mode Typography */
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-subtle: #64748B;
    --text-on-brand: #FFFFFF;

    /* Dark Mode Borders & Dividers */
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-brand: rgba(0, 210, 255, 0.42);
    --border-bezel: #1E293B;

    /* Dark Mode Shadows & Glows */
    --shadow-card: 0 14px 34px -8px rgba(0, 0, 0, 0.65);
    --shadow-card-hover: 0 22px 48px -10px rgba(0, 0, 0, 0.85), 0 0 32px rgba(0, 210, 255, 0.22);
    --shadow-modal: 0 28px 70px rgba(0, 0, 0, 0.88);
    --glow-ambient-1: rgba(37, 99, 235, 0.18);
    --glow-ambient-2: rgba(124, 58, 237, 0.16);
    --glow-ambient-3: rgba(0, 210, 255, 0.10);
    --grid-line: rgba(0, 210, 255, 0.04);
    --scrim-overlay: rgba(2, 6, 23, 0.86);

    /* Typography & Layout Tokens */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius-sm: 0.5rem;
    --radius-md: 0.85rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.65rem;
    --radius-pill: 9999px;
    --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   UNIFIED LIGHT THEME PALETTE (Same Core Brand Accents, Alabaster Glass Surfaces)
   ========================================================================== */
:root,
:root[data-theme="light"] {
    color-scheme: light;

    /* Core Brand Accent Spectrum (Shared across Light & Dark) */
    --brand-cyan: #00D2FF;
    --brand-cyan-strong: #0284C7;
    --brand-blue: #2563EB;
    --brand-indigo: #4F46E5;
    --brand-violet: #7C3AED;
    --brand-purple: #9333EA;
    --brand-gold: #F59E0B;
    --brand-emerald: #10B981;
    --brand-whatsapp: #25D366;
    --brand-rose: #F43F5E;

    /* Shared Brand Gradients */
    --grad-primary: linear-gradient(135deg, #00D2FF 0%, #2563EB 52%, #7C3AED 100%);
    --grad-action: linear-gradient(135deg, #2563EB 0%, #4F46E5 50%, #7C3AED 100%);
    --grad-cyan-blue: linear-gradient(135deg, #00D2FF 0%, #2563EB 100%);
    --grad-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

    /* Typography & Layout Tokens */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius-sm: 0.5rem;
    --radius-md: 0.85rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.65rem;
    --radius-pill: 9999px;
    --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);

    /* Same Brand Spectrum tuned for crisp contrast on Alabaster & Pearl White */
    --grad-text: linear-gradient(135deg, #0284C7 0%, #2563EB 45%, #7C3AED 85%, #DB2777 100%);

    /* Light Mode Surfaces (Alabaster Frosted Optical Glass) */
    --bg-canvas: #F4F7FB;
    --bg-surface: #FFFFFF;
    --bg-elevated: #EEF2F9;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-glass: rgba(255, 255, 255, 0.88);
    --bg-glass-pill: rgba(241, 245, 249, 0.92);
    --bg-input: #F8FAFC;
    --bg-studio: #E2E8F0;
    --bg-studio-bar: rgba(255, 255, 255, 0.96);
    --bg-bezel: #0F172A;

    /* Light Mode High-Contrast Typography (WCAG AA/AAA >= 7:1) */
    --text-primary: #0F172A;
    --text-secondary: #1E293B;
    --text-muted: #475569;
    --text-subtle: #64748B;
    --text-on-brand: #FFFFFF;

    /* Light Mode Borders & Dividers */
    --border-subtle: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.16);
    --border-brand: rgba(37, 99, 235, 0.45);
    --border-bezel: #334155;

    /* Light Mode Shadows & Glows */
    --shadow-card: 0 12px 32px -8px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-card-hover: 0 22px 44px -10px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(37, 99, 235, 0.25);
    --shadow-modal: 0 28px 70px rgba(15, 23, 42, 0.28);
    --glow-ambient-1: rgba(37, 99, 235, 0.10);
    --glow-ambient-2: rgba(124, 58, 237, 0.09);
    --glow-ambient-3: rgba(0, 210, 255, 0.12);
    --grid-line: rgba(37, 99, 235, 0.05);
    --scrim-overlay: rgba(15, 23, 42, 0.72);
}

/* ==========================================================================
   GLOBAL RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-image:
        radial-gradient(circle at 12% 10%, var(--glow-ambient-1) 0%, transparent 40%),
        radial-gradient(circle at 88% 18%, var(--glow-ambient-2) 0%, transparent 45%),
        radial-gradient(circle at 50% 62%, var(--glow-ambient-3) 0%, transparent 50%);
    background-attachment: fixed;
    transition: background-color 0.28s ease, color 0.28s ease;
}

/* Ambient Cursor Orb */
.cursor-glow-orb {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.14) 0%, rgba(124, 58, 237, 0.06) 45%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    filter: blur(14px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: none) and (pointer: coarse) {
    .cursor-glow-orb { display: none; }
}

.container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-canvas); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-cyan); }

/* ==========================================================================
   1. STICKY GLASS NAVBAR & THEME SWITCHER
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.8rem 0;
    transition: background 0.28s ease, border-color 0.28s ease;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.32rem;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--grad-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 210, 255, 0.35);
    flex-shrink: 0;
}

.logo-gaming-tag {
    background: var(--grad-cyan-blue);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.08em;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.65rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.3rem 0;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-cyan-blue);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Theme Toggle Pill (Single Palette Dark <-> Light Switch) */
.theme-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-glass-pill);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}

.theme-switch-btn:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 210, 255, 0.18);
}

.theme-switch-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

:root[data-theme="dark"] .theme-icon-sun { display: inline-block; color: #FBBF24; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: inline-block; color: #2563EB; }

.btn-nav-studio {
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid var(--border-brand);
    color: var(--text-primary);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.22s ease;
}

.btn-nav-studio:hover {
    background: var(--grad-cyan-blue);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(0, 210, 255, 0.35);
}

.btn-nav-demo {
    background: var(--grad-action);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.25rem;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.22s ease;
}

.btn-nav-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.52);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-glass-pill);
    border: 1px solid var(--border-strong);
    padding: 9px 10px;
    border-radius: 9px;
    cursor: pointer;
}

.mobile-nav-toggle .bar {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-brand);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
    z-index: 3000;
    padding: 1.5rem;
    display: none;
    flex-direction: column;
}

.mobile-nav-drawer.active { display: flex; }

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: var(--scrim-overlay);
    backdrop-filter: blur(6px);
    z-index: 2999;
    display: none;
}

.mobile-drawer-backdrop.active { display: block; }

/* ==========================================================================
   2. NEXT-LEVEL HERO SECTION WITH INTERACTIVE MULTI-DEVICE STAGE
   ========================================================================== */
.hero-section {
    padding: 4rem 0 3.25rem;
    position: relative;
    overflow: hidden;
}

.hero-cyber-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at 60% 45%, black 35%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at 60% 45%, black 35%, transparent 85%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.02fr 1.18fr;
    gap: 2.75rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-kicker-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-glass-pill);
    border: 1px solid var(--border-brand);
    padding: 0.38rem 0.9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.15rem;
    width: fit-content;
}

.pill-dot-pulse {
    width: 8px;
    height: 8px;
    background: var(--brand-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-cyan);
    animation: pulseGlow 1.6s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7); }
    70% { box-shadow: 0 0 0 9px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.pill-text {
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pill-badge-live {
    background: rgba(16, 185, 129, 0.18);
    color: var(--brand-emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4.2vw, 3.65rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.15rem;
    letter-spacing: -0.025em;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-desc {
    font-size: clamp(0.95rem, 1.15vw, 1.06rem);
    color: var(--text-muted);
    line-height: 1.68;
    margin-bottom: 1.85rem;
    max-width: 560px;
}

.hero-buttons-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    position: relative;
    overflow: hidden;
    background: var(--grad-primary);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: var(--radius-pill);
    padding: 0.88rem 1.85rem;
    font-size: 0.98rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.42);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.58);
}

.btn-hero-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 0.88rem 1.65rem;
    font-size: 0.98rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-2px);
}

.hero-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.trust-icon-svg {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.28);
    color: var(--brand-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-info {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    line-height: 1.25;
}

.trust-info strong {
    color: var(--text-primary);
    font-weight: 700;
}

.trust-info span {
    color: var(--text-muted);
}

/* Interactive Hero Stage (Right Column) — Fixed against any horizontal overflow on Mobile */
.hero-graphic-col {
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.hero-stage-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: var(--shadow-card-hover);
    backdrop-filter: blur(18px);
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-stage-topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
}

.stage-template-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.stage-select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.42rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.stage-mode-pills {
    display: flex;
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 3px;
}

.stage-pill-btn {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.38rem 0.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stage-pill-btn.active {
    background: var(--grad-cyan-blue);
    color: #FFFFFF;
}

.hero-stage-viewport {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #030712;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-stage-Composite {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* Distinct Hero Desktop Monitor Frame vs Hero Smartphone Frame */
.hero-desktop-frame {
    width: 100%;
    height: 100%;
    background: #080E24;
    border: 2px solid #1E293B;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.hero-main-screen {
    width: 100%;
    height: calc(100% - 22px);
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: all 0.35s ease;
}

/* Hero Standalone Mobile Portrait Phone Frame (When user clicks Mobile tab in Hero) */
.hero-mobile-standalone-frame {
    height: 94%;
    aspect-ratio: 9 / 18.5;
    background: #080E24;
    border: 4px solid #334155;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 210, 255, 0.28);
    display: none;
    flex-direction: column;
    position: relative;
}

.hero-mobile-notch {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 7px;
    background: #000000;
    border-radius: 999px;
    z-index: 4;
}

.hero-mobile-standalone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.hero-floating-phone {
    position: absolute;
    right: 16px;
    bottom: 12px;
    width: 24%;
    max-width: 140px;
    min-width: 78px;
    aspect-ratio: 9 / 18;
    background: #080E24;
    border: 3px solid #38BDF8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 210, 255, 0.35);
    transition: transform 0.35s ease, opacity 0.3s ease;
    z-index: 5;
}

.hero-floating-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.hero-stage-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

/* ==========================================================================
   3. MARQUEE LIVE TICKER
   ========================================================================== */
.gaming-marquee-wrap {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

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

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0 1.25rem;
}

.m-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.m-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.m-badge-live { background: rgba(239, 68, 68, 0.16); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.35); }
.m-badge-hot { background: rgba(245, 158, 11, 0.16); color: #D97706; border: 1px solid rgba(245, 158, 11, 0.35); }
.m-badge-win { background: rgba(16, 185, 129, 0.16); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.35); }
.m-badge-vip { background: rgba(124, 58, 237, 0.16); color: #8B5CF6; border: 1px solid rgba(124, 58, 237, 0.35); }

/* ==========================================================================
   4. TEMPLATES SHOWCASE SECTION (WITH FILTER BAR & LIVE UPLOAD TESTER)
   ========================================================================== */
.templates-section {
    padding: 4.5rem 0;
}

.section-title-wrap {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.25rem;
}

.gaming-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--brand-cyan-strong);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(0, 210, 255, 0.10);
    border: 1px solid var(--border-brand);
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.85rem;
}

:root[data-theme="dark"] .gaming-section-badge {
    color: var(--brand-cyan);
}

.section-main-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.3vw, 2.65rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.section-sub-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* Filter & Live Upload Studio Bar */
.showcase-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.85rem 1.15rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    flex-wrap: wrap;
}

.filter-pills-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.filter-pill.active {
    background: var(--grad-cyan-blue);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 210, 255, 0.3);
}

.toolbar-right-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.global-device-sync {
    display: inline-flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 3px;
}

.sync-device-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sync-device-btn.active {
    background: var(--grad-action);
    color: #FFFFFF;
}

/* 8 Templates Grid */
.templates-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.template-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    position: relative;
    min-width: 0;
}

.template-item-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-brand);
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-card-hover);
}

.template-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.05rem 1.1rem 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
}

.badge-num-box {
    background: var(--grad-cyan-blue);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.32rem 0.6rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 210, 255, 0.28);
    flex-shrink: 0;
}

.template-titles {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.tmpl-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tmpl-tagline {
    font-size: 0.76rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-quick-upload-btn {
    background: var(--bg-glass-pill);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    border-radius: 7px;
    padding: 0.28rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.card-quick-upload-btn:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}

/* Per-Card Live Mockup Upload Drawer (Collapsible) */
.card-upload-tester {
    display: none;
    padding: 0.75rem 1.1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.75rem;
}

.card-upload-tester.active {
    display: block;
}

.tester-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.tester-file-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--bg-surface);
    border: 1px dashed var(--border-brand);
    border-radius: 7px;
    padding: 0.45rem;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tester-file-label:hover {
    background: rgba(0, 210, 255, 0.08);
}

.tester-file-label input[type="file"] {
    display: none;
}

/* Card Device Switcher & 3-Slide Carousel */
.template-preview-wrapper {
    padding: 0.8rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.device-switcher-bar {
    display: flex;
    width: 100%;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 9px;
    padding: 3px;
    gap: 3px;
    overflow: hidden;
}

.view-btn {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.34rem 0.2rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-btn:hover { color: var(--text-primary); }

.view-btn.active {
    background: var(--bg-surface);
    color: var(--brand-blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .view-btn.active {
    background: #1E293B;
    color: var(--brand-cyan);
}

.card-carousel-viewport {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #020617;
    aspect-ratio: 16 / 10;
    cursor: pointer;
}

.carousel-slides-track {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-carousel-viewport[data-slide-state="0"] .carousel-slides-track { transform: translateX(0%); }
.card-carousel-viewport[data-slide-state="1"] .carousel-slides-track { transform: translateX(-25%); }
.card-carousel-viewport[data-slide-state="2"] .carousel-slides-track { transform: translateX(-50%); }
.card-carousel-viewport[data-slide-state="3"] .carousel-slides-track { transform: translateX(-75%); }

.carousel-slide {
    width: 25%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

/* Live Website Miniature Scaled Iframe inside Card & Hero */
.live-mini-viewport {
    position: relative;
    width: 100%;
    height: calc(100% - 20px);
    overflow: hidden;
    background-size: cover;
    background-position: top center;
}

.live-mini-iframe {
    width: 300%;
    height: 300%;
    border: none;
    transform: scale(0.333333);
    transform-origin: top left;
    pointer-events: none;
    background: transparent;
}

.desktop-screen-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #080E24;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.screen-browser-bar {
    height: 20px;
    background: #0A1128;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.dots-trio { display: flex; gap: 4px; }
.b-dot { width: 5px; height: 5px; border-radius: 50%; }
.b-dot.red { background: #EF4444; }
.b-dot.yellow { background: #F59E0B; }
.b-dot.green { background: #10B981; }

.browser-url-text {
    font-size: 0.62rem;
    color: #94A3B8;
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desktop-screen-mockup .mockup-img {
    width: 100%;
    height: calc(100% - 20px);
    object-fit: cover;
    display: block;
}

.ipad-bezel-frame {
    height: 94%;
    aspect-ratio: 4 / 3;
    max-width: 84%;
    background: #0F172A;
    border: 4px solid #334155;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 15px rgba(0, 210, 255, 0.18);
}

.ipad-bezel-frame .mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.mobile-bezel-frame {
    height: 95%;
    aspect-ratio: 9 / 18.5;
    max-width: 48%;
    background: #080E24;
    border: 4px solid #38BDF8;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 210, 255, 0.25);
}

.mobile-bezel-frame::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 6px;
    background: #000000;
    border-radius: 999px;
    z-index: 3;
}

.mobile-bezel-frame::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    z-index: 3;
}

.mobile-bezel-frame .mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Hover Overlay Badge on Card Screen */
.screen-inspect-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(4, 7, 17, 0.82);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    border: 1px solid rgba(0, 210, 255, 0.4);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 6;
}

.card-carousel-viewport:hover .screen-inspect-badge {
    opacity: 1;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: rgba(10, 17, 40, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 6;
}

.card-carousel-viewport:hover .carousel-nav-btn { opacity: 1; }
.carousel-nav-btn:hover { background: var(--brand-cyan); color: #040711; }
.carousel-nav-btn.prev-btn { left: 6px; }
.carousel-nav-btn.next-btn { right: 6px; }

/* Card Details & Actions */
.template-details {
    padding: 0.75rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.template-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    margin-bottom: 1.05rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.48rem;
    font-size: 0.81rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.check-mark {
    color: var(--brand-emerald);
    font-weight: 800;
    flex-shrink: 0;
}

.template-card-actions {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0.55rem;
}

.btn-card-demo {
    background: var(--grad-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.58rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-card-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.48);
}

.btn-card-video {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 0.58rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-card-video:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-2px);
}

/* ==========================================================================
   5. INTERACTIVE VIDEO WALKTHROUGH STUDIO ("SEE HOW IT WORKS")
   ========================================================================== */
.video-walkthrough-section {
    padding: 4.5rem 0;
    position: relative;
}

.video-studio-shell {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.video-demo-container {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 2.75rem;
    align-items: center;
}

.video-laptop-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    background: #000000;
    aspect-ratio: 16 / 9;
}

.video-laptop-img,
.video-inline-player,
.video-inline-iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.play-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--grad-cyan-blue);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.75);
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease;
    z-index: 4;
}

.play-pulse-ring:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-floating-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 4;
}

.dot-rec {
    color: #EF4444;
    animation: blinkRec 1.4s infinite;
}

@keyframes blinkRec {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/* Dual Video Switcher Box inside the Demo Video Section */
.video-source-switcher-card {
    margin-top: 1.15rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.1rem;
}

.v-switcher-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.v-switcher-tabs {
    display: inline-flex;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

.v-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.32rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.v-tab-btn.active {
    background: var(--grad-cyan-blue);
    color: #FFFFFF;
}

.v-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.v-input {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
}

.video-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
    margin: 1.5rem 0 1.75rem;
}

.feature-tag-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ==========================================================================
   6. FULL-PAGE IN-DOMAIN LIVE PREVIEW STUDIO (100vw x 100vh ZERO REDIRECT)
   ========================================================================== */
.fullpage-studio-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: var(--bg-studio);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.fullpage-studio-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.studio-topbar {
    min-height: 64px;
    background: var(--bg-studio-bar);
    border-bottom: 1px solid var(--border-strong);
    padding: 0.55rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    backdrop-filter: blur(16px);
}

.studio-nav-left,
.studio-nav-center,
.studio-nav-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.studio-template-select {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-brand);
    border-radius: 9px;
    padding: 0.45rem 0.85rem;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.studio-step-btn {
    background: var(--bg-glass-pill);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.42rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.studio-step-btn:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}

.studio-viewport-pills,
.studio-render-pills {
    display: inline-flex;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
}

.studio-vp-btn,
.studio-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.38rem 0.75rem;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.studio-vp-btn.active,
.studio-mode-btn.active {
    background: var(--grad-cyan-blue);
    color: #FFFFFF;
}

.studio-close-btn {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #EF4444;
    border-radius: 9px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.studio-close-btn:hover {
    background: #EF4444;
    color: #FFFFFF;
}

.studio-workspace {
    flex: 1;
    position: relative;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

/* Mode 1: In-Domain Interactive Showcase Stage (Never Fails, Zero Redirect) */
.studio-showcase-canvas {
    width: 100%;
    height: 100%;
    max-width: 1480px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.studio-device-frame-desktop {
    width: 100%;
    height: 100%;
    max-height: 82vh;
    background: #080E24;
    border: 2px solid var(--border-bezel);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    transition: all 0.3s ease;
}

.studio-device-frame-tablet {
    width: 768px;
    max-width: 100%;
    height: 82vh;
    background: #080E24;
    border: 8px solid #1E293B;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.studio-device-frame-mobile {
    width: 380px;
    max-width: 100%;
    height: 82vh;
    background: #080E24;
    border: 10px solid #1E293B;
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
    flex-shrink: 0;
}

.studio-browser-chrome {
    height: 36px;
    background: #0B132B;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    color: #94A3B8;
    font-size: 0.76rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.studio-screen-scroll {
    flex: 1;
    overflow-y: auto;
    background: #040711;
    position: relative;
}

.studio-screen-scroll img {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

/* Interactive Simulated Live Sportsbook HUD Bar inside In-Domain Preview */
.studio-interactive-hud {
    position: sticky;
    bottom: 12px;
    left: 12px;
    right: 12px;
    margin: 0 12px;
    background: rgba(8, 14, 34, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #F8FAFC;
    flex-wrap: wrap;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

/* Mode 2: Live Sandbox Iframe Container (Stays inside same domain page) */
.studio-iframe-stage {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.studio-iframe-stage.active {
    display: flex;
}

.studio-iframe-box {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-strong);
    transition: max-width 0.3s ease;
    position: relative;
}

.studio-iframe-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   7. WHY CHOOSE US, CTA BANNER & FOOTER
   ========================================================================== */
.why-us-section { padding: 4rem 0; }

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.why-us-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.85rem 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.why-us-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-brand);
    box-shadow: var(--shadow-card-hover);
}

.why-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid var(--border-brand);
    color: var(--brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.15rem;
}

.why-us-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.why-us-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.bottom-cta-banner-section { padding: 2.5rem 0 4.5rem; }

.bottom-cta-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-brand);
    box-shadow: var(--shadow-card-hover);
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-surface);
}

.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-links a:hover { color: var(--brand-cyan); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.84rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp-widget {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 990;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-whatsapp);
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.68rem 1.15rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.floating-whatsapp-widget:hover {
    transform: translateY(-3px);
}

/* Standard Modals (Video Cinema & Lead Inquiry) */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 4500;
    background: var(--scrim-overlay);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 820px;
    box-shadow: var(--shadow-modal);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body { padding: 1.4rem; }

.video-responsive-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000000;
}

.video-responsive-wrap iframe,
.video-responsive-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    padding: 0.72rem 0.95rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.92rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-cyan);
}

/* ==========================================================================
   8. PAGE-LEVEL DEVICE VIEWPORT SWITCHER BAR (LAPTOP / TAB / MOBILE)
      & 100% VISIBLE RESPONSIVE MEDIA QUERIES (ZERO HIDDEN BUTTONS)
   ========================================================================== */
/* Public Landing Page Navbar Hide / Unhide Support */
body.public-navbar-hidden .navbar {
    display: none !important;
}

.public-floating-unhide-nav {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 2500;
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--bg-glass);
    border: 1px solid var(--border-brand);
    color: var(--text-primary);
    box-shadow: var(--shadow-card-hover);
    padding: 0.42rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(14px);
}

body.public-navbar-hidden .public-floating-unhide-nav {
    display: inline-flex;
}

.page-device-switcher-dock {
    display: inline-flex;
    align-items: center;
    background: var(--bg-glass-pill);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 3px;
}

.page-vp-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.36rem 0.7rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.page-vp-btn:hover {
    color: var(--text-primary);
}

.page-vp-btn.active {
    background: var(--grad-cyan-blue);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 210, 255, 0.3);
}

/* When user switches landing page viewport to Tab (768px) or Mobile (390px) */
body[data-page-viewport="tablet"] .page-viewport-shell,
body[data-page-viewport="mobile"] .page-viewport-shell {
    margin: 1.25rem auto 2.5rem;
    border: 6px solid var(--border-bezel);
    border-radius: 26px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border-brand);
    overflow-x: hidden;
    background: var(--bg-canvas);
    transition: max-width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page-viewport="tablet"] .page-viewport-shell {
    max-width: 780px;
}

body[data-page-viewport="mobile"] .page-viewport-shell {
    max-width: 412px;
    border-width: 8px;
    border-radius: 34px;
}

/* Force responsive grid adaptations when in simulated Tablet or Mobile mode */
body[data-page-viewport="tablet"] .hero-container,
body[data-page-viewport="tablet"] .video-demo-container {
    grid-template-columns: 1fr;
}

body[data-page-viewport="tablet"] .templates-grid-8,
body[data-page-viewport="tablet"] .why-us-grid,
body[data-page-viewport="tablet"] .hero-trust-bar,
body[data-page-viewport="tablet"] .footer-grid {
    grid-template-columns: repeat(2, 1fr);
}

body[data-page-viewport="mobile"] .hero-container,
body[data-page-viewport="mobile"] .video-demo-container,
body[data-page-viewport="mobile"] .templates-grid-8,
body[data-page-viewport="mobile"] .why-us-grid,
body[data-page-viewport="mobile"] .video-features-grid,
body[data-page-viewport="mobile"] .footer-grid {
    grid-template-columns: 1fr;
}

body[data-page-viewport="mobile"] .hero-trust-bar {
    grid-template-columns: repeat(2, 1fr);
}

body[data-page-viewport="mobile"] .hero-heading {
    font-size: 1.95rem;
}

body[data-page-viewport="mobile"] .section-main-heading {
    font-size: 1.55rem;
}

body[data-page-viewport="mobile"] .hero-buttons-row {
    flex-direction: column;
    align-items: stretch;
}

body[data-page-viewport="mobile"] .hero-buttons-row .btn-hero-primary,
body[data-page-viewport="mobile"] .hero-buttons-row .btn-hero-secondary {
    width: 100%;
    justify-content: center;
}

body[data-page-viewport="mobile"] .showcase-toolbar {
    flex-direction: column;
    align-items: stretch;
}

body[data-page-viewport="mobile"] .video-studio-shell {
    padding: 1.15rem;
}

/* Native Screen Breakpoints — NEVER hide action buttons on mobile! */
@media (max-width: 1200px) {
    .templates-grid-8 { grid-template-columns: repeat(2, 1fr); }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .mobile-nav-toggle { display: flex; }
    .navbar-inner {
        flex-wrap: wrap;
        gap: 0.65rem;
    }
    .nav-actions {
        flex-wrap: wrap;
        gap: 0.45rem;
        justify-content: flex-end;
    }
    .hero-container,
    .video-demo-container {
        grid-template-columns: 1fr;
    }
    .hero-trust-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .studio-showcase-canvas { flex-direction: column; }
    .studio-device-frame-tablet,
    .studio-device-frame-mobile {
        height: 68vh;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .navbar {
        padding: 0.65rem 0;
    }
    .navbar-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    /* Keep ALL navbar action buttons visible on mobile */
    .nav-actions {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.4rem;
        padding-top: 0.45rem;
        border-top: 1px solid var(--border-subtle);
        overflow-x: auto;
    }
    .btn-nav-studio,
    .btn-nav-demo,
    .theme-switch-btn {
        display: inline-flex !important;
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    /* Public Landing Page Navbar Hide / Unhide Support */
body.public-navbar-hidden .navbar {
    display: none !important;
}

.public-floating-unhide-nav {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 2500;
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--bg-glass);
    border: 1px solid var(--border-brand);
    color: var(--text-primary);
    box-shadow: var(--shadow-card-hover);
    padding: 0.42rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(14px);
}

body.public-navbar-hidden .public-floating-unhide-nav {
    display: inline-flex;
}

.page-device-switcher-dock {
        width: 100%;
        justify-content: center;
        margin-top: 0.35rem;
    }
    .page-vp-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.72rem;
        padding: 0.34rem 0.45rem;
    }
    .templates-grid-8,
    .why-us-grid,
    .video-features-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons-row {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons-row .btn-hero-primary,
    .hero-buttons-row .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    .hero-stage-topbar,
    .hero-stage-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .stage-mode-pills {
        width: 100%;
        display: flex;
    }
    .stage-pill-btn {
        flex: 1;
        text-align: center;
    }
    .showcase-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem;
    }
    .filter-pills-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }
    .filter-pill {
        text-align: center;
        padding: 0.45rem 0.5rem;
        font-size: 0.76rem;
    }
    .toolbar-right-controls {
        width: 100%;
        justify-content: space-between;
    }
    .global-device-sync {
        flex: 1;
        display: flex;
    }
    .sync-device-btn {
        flex: 1;
        text-align: center;
        padding: 0.38rem 0.3rem;
        font-size: 0.73rem;
    }
    .template-card-actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .btn-card-demo,
    .btn-card-video {
        display: inline-flex !important;
        width: 100%;
        padding: 0.6rem 0.5rem;
        font-size: 0.78rem;
    }
    .video-studio-shell {
        padding: 1.15rem;
    }
    /* Full-Page Studio Mobile Responsive Topbar — Keep every button accessible */
    .studio-topbar {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        max-height: 36vh;
        overflow-y: auto;
    }
    .studio-nav-left,
    .studio-nav-center,
    .studio-nav-right {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
    }
    .studio-template-select {
        flex: 1;
        min-width: 0;
        font-size: 0.78rem;
        padding: 0.38rem 0.5rem;
    }
    .studio-viewport-pills,
    .studio-render-pills {
        width: 100%;
        display: flex;
        overflow-x: auto;
    }
    .studio-vp-btn,
    .studio-mode-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.71rem;
        padding: 0.35rem 0.4rem;
        white-space: nowrap;
    }
    .studio-workspace {
        padding: 0.65rem;
    }
}

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

/* Mobile overflow guards: hero/grid children must shrink, never clip buttons */
.hero-container > *, .templates-grid-8 > *, .video-demo-container > * { min-width: 0; }
.hero-text-col, .hero-graphic-col { max-width: 100%; }
@media (max-width: 768px) {
    .hero-stage-card { padding: 0.75rem; }
    .stage-pill-btn { font-size: 0.68rem; padding: 0.38rem 0.1rem; }
    .view-btn { font-size: 0.66rem; padding: 0.34rem 0.1rem; }
    .hero-floating-phone { min-width: 62px; right: 10px; bottom: 8px; }
    .hero-mobile-standalone-frame { height: 92%; }
}
