/* ==========================================================================
   OCTOPUS ARTS - DESIGN SYSTEM & STYLES (PHASE 1)
   ========================================================================== */

/* --- 1. CSS VARIABLES (DESIGN SYSTEM) --- */
:root {
    --bg-main: #05080D;
    --bg-secondary: #0A111D;
    --bg-card: #0E1726;
    --cyan: #45C7E8;
    --blue: #3388FF;
    --gold: #F6A623;
    --green: #2DD881;
    --red: #FF3366;
    --font-primary: 'Inter', sans-serif;
    
    --surface-light: rgba(14, 23, 38, 0.65);
    
    --border-light: rgba(255, 255, 255, 0.05);
    --border-color: var(--border-light);
    --border-focus: rgba(69, 199, 232, 0.4);
    
    --bg-color: var(--bg-main);
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --glow-cyan: 0 0 20px rgba(69, 199, 232, 0.2);
    --glow-gold: 0 0 20px rgba(246, 166, 35, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --transition-fast: 250ms ease-in-out;
    --transition-normal: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 80px;
    --marquee-height: 40px;
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#overview,
#technology,
#performance,
#pricing,
#installation-process,
#suitability,
#faq,
#contact,
#risk-warning {
    scroll-margin-top: calc(var(--header-height) + var(--marquee-height) + 24px);
}

html {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: calc(var(--header-height) + var(--marquee-height));
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* A11Y Focus Styles */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.text-center { text-align: center; }
.text-left { text-align: left; }

/* --- 3. BACKGROUND EFFECTS --- */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.15;
    mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.bg-glow-cyan {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
}

.bg-glow-gold {
    top: 40%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}

/* --- 4. TYPOGRAPHY & UTILITIES --- */
.text-gradient {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: inherit;
}

.text-cyan { color: var(--cyan); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.w-full { width: 100%; }

.link-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-primary {
    background-color: var(--cyan);
    color: var(--bg-main);
}
.btn-primary:hover:not(.link-disabled) {
    background-color: #55d0ef;
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-ghost {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}
.btn-ghost:hover:not(.link-disabled) {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}
.btn-outline:hover:not(.link-disabled) {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--bg-main);
}
.btn-gold:hover:not(.link-disabled) {
    background-color: #f7b445;
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

/* --- 5. HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: background-color var(--transition-fast), border-bottom var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(5, 8, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.nav-desktop {
    display: none;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-list a:hover:not(.link-disabled) {
    color: var(--text-primary);
}

.nav-list a:not(.link-disabled)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--cyan);
    transition: width var(--transition-fast);
}

.nav-list a:not(.link-disabled):hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .btn {
    display: none;
}

.menu-toggle {
    display: flex;
    padding: 8px;
    color: var(--text-primary);
    border-radius: 4px;
}

@media (min-width: 1200px) {
    .nav-desktop { display: block; }
    .header-actions .btn { display: inline-flex; }
    .menu-toggle { display: none; }
}

/* Header fit for desktop (nav has 7 items; header container is width-capped): keep single row, no wrapping */
@media (min-width: 1200px) {
    .logo, .logo-text, .nav-list a, .header-actions .btn { white-space: nowrap; }
    .logo { font-size: 16px; letter-spacing: 0.5px; gap: 8px; }
    .header .container { max-width: 1536px; }
    .nav-list { gap: 16px; }
    .nav-list a { font-size: 13px; }
    .header-actions { gap: 6px; }
    .header-actions .btn { padding: 8px 11px; font-size: 13px; }
    .header-actions > .lang-switcher { margin-right: 4px; }
}

/* Narrower desktops: the "Myfxbook" nav item duplicates the "View Myfxbook" button, so it is hidden here only */
@media (min-width: 1200px) and (max-width: 1365px) {
    .nav-list li:has(> a[data-config-link="myfxbookUrl"]) { display: none; }
    .nav-list { gap: 12px; }
    .header-actions .btn { padding: 8px 9px; }
}

/* --- 6. MOBILE NAVIGATION --- */
.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.nav-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-normal);
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
}

.nav-mobile-list {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
}

.nav-mobile-list li {
    margin-bottom: 24px;
}

.nav-mobile-list a {
    font-size: 18px;
    font-weight: 500;
}

.nav-mobile-actions {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- 7. MARQUEE --- */
.marquee-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: var(--marquee-height);
    background-color: #0c142b;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 90;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.marquee-group {
    display: flex;
    flex-shrink: 0;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 32px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 8. HERO COMMON --- */
.hero {
    position: relative;
    padding: 80px 0 60px;
    min-height: calc(100vh - var(--header-height) - var(--marquee-height));
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(69, 199, 232, 0.1);
    border: 1px solid rgba(69, 199, 232, 0.2);
    border-radius: 100px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.mockup-container {
    position: relative;
    width: 100%;
    perspective: 1000px;
}

.mockup-window {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-normal);
}

.mockup-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.mockup-actions {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.action-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.action-btn.close { background-color: #ff5f56; }
.action-btn.minimize { background-color: #ffbd2e; }
.action-btn.maximize { background-color: #27c93f; }

.mockup-title {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.mockup-body {
    background-color: #020408;
    aspect-ratio: 16/9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img {
    background-image: repeating-linear-gradient(45deg, #0a111d 25%, transparent 25%, transparent 75%, #0a111d 75%, #0a111d), repeating-linear-gradient(45deg, #0a111d 25%, var(--bg-main) 25%, var(--bg-main) 75%, #0a111d 75%, #0a111d);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.placeholder-text {
    z-index: 2;
    color: var(--text-muted);
    font-size: 14px;
    font-family: monospace;
}

.placeholder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

/* Floating Chips */
.floating-chip {
    position: absolute;
    background-color: rgba(14, 23, 38, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 1199px) {
    .floating-chip { display: none; }
    .mockup-window { transform: none !important; }
}

/* --- HERO B (CĂN GIỮA) --- */
.hero.variant-b .hero-center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}

.hero.variant-b .badge-center { margin-left: auto; margin-right: auto; }
.hero.variant-b .hero-title-center {
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    text-wrap: balance;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero.variant-b .hero-subtitle-center {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero.variant-b .hero-buttons-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 48px; }

.hero.variant-b .hero-highlight-card-center {
    background-color: rgba(14, 23, 38, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 64px auto;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero.variant-b .hero-highlight-card-center:hover { border-color: rgba(246, 166, 35, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(246, 166, 35, 0.05); }

@media (min-width: 600px) {
    .hero.variant-b .hero-highlight-card-center { flex-direction: row; align-items: center; justify-content: space-between; }
}

.hero.variant-b .hero-visual-center { width: 100%; max-width: 1000px; margin: 0 auto; }
.hero.variant-b .window-large { border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 20px 60px rgba(0,0,0,0.6); transform: translateY(0); }
.hero.variant-b .window-large:hover { transform: translateY(-10px); }

/* --- 9. TRUST METRICS --- */
.trust-metrics {
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.metrics-header { margin-bottom: 24px; }

.badge-outline {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-muted);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background-color: rgba(14, 23, 38, 0.4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .metrics-grid { grid-template-columns: repeat(4, 1fr); gap: 0; padding: 40px; }
}

.metric-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.metric-divider { display: none; width: 1px; background: linear-gradient(to bottom, transparent, var(--border-light), transparent); }

@media (min-width: 768px) { .metric-divider { display: block; } }

.metric-value { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; }
.metric-label { font-size: 14px; color: var(--text-secondary); }
.metric-item.highlight .metric-label { color: var(--text-primary); font-weight: 600; }

.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
    justify-content: center;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-icon { flex-shrink: 0; margin-top: 2px; }


/* --- 10. PERFORMANCE TABS --- */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}
.tab-btn {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    outline: none;
}
.tab-btn:hover {
    border-color: var(--cyan);
    color: var(--text-primary);
}
.tab-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--cyan);
}
.tab-btn.active {
    background: var(--surface-light);
    border-color: var(--cyan);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}
.tab-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.indicator-live { background: var(--green); }
.indicator-backtest { background: var(--gold); }

.tab-panel {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}
.js .tab-panel {
    display: none;
}
.js .tab-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}
.badge-live {
    background: rgba(0, 255, 170, 0.1);
    color: var(--green);
    border: 1px solid rgba(0, 255, 170, 0.2);
}
.badge-backtest {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.panel-title {
    font-size: 24px;
    margin-bottom: 32px;
}

/* LIVE TAB */
.live-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}
.live-info {
    border-right: 1px solid var(--border-light);
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.live-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}
.info-label { color: var(--text-secondary); font-size: 14px; }
.info-value { font-weight: 600; }

.live-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.metric-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.box-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.box-value { font-size: 24px; font-weight: 700; }
.box-gain { border-color: rgba(0, 255, 170, 0.3); background: rgba(0, 255, 170, 0.05); }
.box-drawdown { border-color: rgba(255, 51, 102, 0.3); background: rgba(255, 51, 102, 0.05); }

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}
.panel-note { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* BACKTEST TAB */
.backtest-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.backtest-stats {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--text-secondary); }
.stat-val { font-weight: 600; }

.drawdown-card {
    background: rgba(255, 51, 102, 0.05);
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.drawdown-title { color: var(--red); margin-bottom: 16px; font-size: 18px; }
.drawdown-item { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.dd-label { font-size: 14px; color: var(--text-secondary); }
.dd-val { font-size: 20px; font-weight: 700; }
.dd-note { font-size: 12px; color: var(--text-secondary); margin-top: 16px; font-style: italic; line-height: 1.4; }

.backtest-visual-container {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 16px;
    overflow: hidden;
}
.backtest-visual-container img { width: 100%; height: 100%; object-fit: cover; }
.backtest-action { text-align: right; }

.panel-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 215, 0, 0.05);
    border-left: 4px solid var(--gold);
    padding: 16px;
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}
.panel-warning svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* --- 11. VIDEO DEMO --- */
.demo-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}
.video-container {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}
.video-placeholder-text {
    margin-top: 16px;
    color: var(--text-secondary);
}
.demo-features {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.demo-features li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.feat-icon {
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- 12. COMPARISON --- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
.comp-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    position: relative;
}
.comp-octopus {
    border-color: var(--cyan);
    background: linear-gradient(180deg, rgba(0,240,255,0.05) 0%, rgba(0,0,0,0) 100%), var(--surface-light);
}
.comp-glow {
    position: absolute;
    top: -20px; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 100px;
    background: var(--cyan);
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
}
.comp-title {
    text-align: center;
    margin-bottom: 32px;
    font-size: 18px;
    letter-spacing: 1px;
}
.comp-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.comp-octopus .comp-list li {
    color: var(--text-primary);
}
.comp-list svg { flex-shrink: 0; margin-top: 4px; }

/* --- 13. ANIMATIONS (SCROLL REVEAL) --- */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

.js .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 150ms; }
.reveal-delay-2 { transition-delay: 300ms; }
.reveal-delay-3 { transition-delay: 450ms; }
.reveal-delay-4 { transition-delay: 600ms; }

/* --- 11. REDUCED MOTION --- */
@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;
    }
    .js .scroll-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .marquee-content { animation: none !important; overflow-x: auto; }
    .floating-chip { animation: none !important; transform: none !important; }
    .mockup-window { transform: none !important; }
}



/* --- SCROLL OFFSET --- */
#overview, #technology, #performance, #pricing, #faq {
    scroll-margin-top: calc(var(--header-height) + var(--marquee-height) + 24px);
}

/* --- COMPATIBILITY STRIP --- */
.compatibility-strip {
    background-color: #030508;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 0;
}
.strip-title {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.strip-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}
.strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
}
.strip-icon {
    font-family: monospace;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* --- COMMON SECTION STYLES --- */
.section-padding {
    padding: 100px 0;
}
.section-header {
    margin-bottom: 64px;
}
.eyebrow {
    color: var(--cyan);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title,
.section-header h2,
.contact-content h2 {
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.9px;
    text-wrap: balance;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

/* --- MARKET CHALLENGES --- */
.market-challenges {
    background-color: var(--bg-main);
}
.challenges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .challenges-grid { grid-template-columns: repeat(3, 1fr); }
}
.challenge-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition-fast);
}
.challenge-card:hover {
    transform: translateY(-6px);
    border-color: rgba(69, 199, 232, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(69, 199, 232, 0.05);
}
.challenge-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(69, 199, 232, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    margin-bottom: 24px;
}
.challenge-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.challenge-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* --- TECHNOLOGY (SIDEWAY & TREND) --- */
.technology {
    background-color: var(--bg-secondary);
    position: relative;
}
.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 900px) {
    .tech-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.tech-col {
    background-color: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
}
.tech-visual {
    width: 100%;
    height: 160px;
    background-color: #030508;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chart-abstract {
    width: 80%;
    height: 60%;
    position: relative;
}
.chart-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.zone-sideway {
    position: absolute;
    top: 15%; left: 10%; width: 80%; height: 70%;
    background: rgba(69, 199, 232, 0.1);
    border: 1px dashed rgba(69, 199, 232, 0.4);
    border-radius: 4px;
}
.point-breakout {
    position: absolute;
    top: 25%; left: 45%; width: 12px; height: 12px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--gold);
}
.tech-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}
.tech-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}
.tech-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tech-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

/* --- PROFIT MANAGEMENT --- */
.profit-management {
    background-color: var(--bg-main);
}
.pm-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 900px) {
    .pm-layout { grid-template-columns: 1fr 1fr; }
}
.pm-content .section-title {
    margin-bottom: 24px;
}
.pm-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}
.pm-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}
.pm-point {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 16px;
}
.pm-point-number {
    width: 32px;
    height: 32px;
    background-color: rgba(69, 199, 232, 0.1);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}
.equity-chart {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-card);
}
.equity-svg {
    width: 100%;
    height: auto;
    display: block;
}
.visual-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
}

/* --- FOUR PILLARS --- */
.four-pillars {
    background-color: var(--bg-secondary);
}
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .pillars-grid { grid-template-columns: 1fr 1fr; }
}
.pillar-card {
    background-color: rgba(14, 23, 38, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.pillar-icon {
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 20px;
    right: 30px;
}
.pillar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--cyan);
}
.pillar-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* --- PRICING SECTION --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}
.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-pro {
    border-color: var(--cyan);
}
.pricing-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px rgba(69, 199, 232, 0.1);
    pointer-events: none;
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cyan);
    color: var(--bg-main);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.pricing-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.pricing-suitability {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 42px;
}
.pricing-price {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}
.pricing-features li svg {
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 2px;
}
.pricing-note {
    font-size: 14px;
    max-width: 600px;
    margin: 32px auto 0;
}

/* --- INSTALLATION PROCESS --- */
.timeline {
    position: relative;
    margin-top: 48px;
}
.timeline-line {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--border-light);
    z-index: 1;
}
.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}
.timeline-step {
    display: flex;
    flex-direction: column;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 20px;
}
.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}
.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- SUITABILITY SECTION --- */
.suitability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}
.suitability-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.suit-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}
.suit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.suit-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.suit-list li svg {
    flex-shrink: 0;
    margin-top: 4px;
}

/* --- FAQ SECTION --- */
.faq-container {
    max-width: 900px;
}
.faq-accordion {
    margin-top: 48px;
}
.faq-item {
    border-bottom: 1px solid var(--border-light);
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
}
.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}
.faq-answer-inner {
    padding-bottom: 24px;
}
.js .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}
.js .faq-answer-inner {
    overflow: hidden;
    padding-bottom: 0;
    transition: padding-bottom 0.3s ease;
}
.js .faq-question[aria-expanded="true"] + .faq-answer {
    grid-template-rows: 1fr;
}
.js .faq-question[aria-expanded="true"] + .faq-answer > .faq-answer-inner {
    padding-bottom: 24px;
}

/* --- CONTACT & CTA --- */
.contact-container {
    max-width: 1100px;
}
.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 48px;
    align-items: center;
}
.contact-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 60px rgba(69, 199, 232, 0.05);
    pointer-events: none;
}
.contact-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 16px 0 32px 0;
}
.contact-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.telegram-username {
    margin-left: 8px;
    opacity: 0.9;
}


/* --- FOOTER --- */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.footer-subtitle {
    font-size: 14px;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 24px;
}
.footer-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 320px;
}
.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 16px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}
.footer-links a:not(.link-disabled):hover {
    color: var(--cyan);
}
.risk-warning-block {
    background: rgba(255, 77, 77, 0.05);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 48px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}
.risk-warning-block p {
    margin: 0 0 12px 0;
}
.risk-warning-block p:last-child {
    margin-bottom: 0;
}
.risk-warning-block strong {
    color: var(--red);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px;
    margin-right: 16px;
}

.lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 18px;
    transition: all 0.2s ease;
}

.lang-switcher a:hover:not([aria-current="page"]) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-switcher a[aria-current="page"] {
    background: rgba(69, 199, 232, 0.1);
    border: 1px solid rgba(69, 199, 232, 0.3);
    color: var(--text-primary);
}

/* Mobile Language Switcher */
.nav-mobile-actions .lang-switcher {
    margin-right: 0;
    margin-bottom: 16px;
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    padding: 4px;
}
.nav-mobile-actions .lang-switcher a {
    flex: 1;
    height: 40px;
    border-radius: 6px;
}

/* --- UTILITIES --- */
.is-hidden { display: none !important; }
.bg-alt { background-color: var(--bg-secondary); }
.text-muted { color: var(--text-secondary); }
.mt-4 { margin-top: 32px; }

/* --- LIVE EMPTY STATE --- */
.live-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 64px 24px;
    margin: 24px 0;
}
.live-empty-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(69, 199, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.live-empty-eyebrow {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.live-empty-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.live-empty-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 32px;
}
.live-empty-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.live-empty-note {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991px) {
    .live-grid { grid-template-columns: 1fr; gap: 24px; }
    .live-info { border-right: none; border-bottom: 1px solid var(--border-light); padding-right: 0; padding-bottom: 24px; }
    .backtest-layout { grid-template-columns: 1fr; gap: 24px; }
    .demo-layout { grid-template-columns: 1fr; gap: 32px; }
    .comparison-grid { grid-template-columns: 1fr; gap: 24px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
    .timeline-line { display: none; }
    .timeline-list { grid-template-columns: 1fr; gap: 32px; }
    .timeline-step { flex-direction: row; align-items: flex-start; gap: 24px; }
    .step-number { margin-bottom: 0; flex-shrink: 0; }
    .contact-card { grid-template-columns: 1fr; padding: 48px 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .section-padding { padding: 72px 0; }
    .section-header { margin-bottom: 40px; }
    .tech-col, .challenge-card, .pillar-card, .equity-chart { padding: 24px; }
    .comp-card { padding: 24px; }
    .suitability-grid { grid-template-columns: 1fr; }
    .suitability-card { padding: 32px 24px; }
    .pricing-card { padding: 24px; }
    .faq-question { font-size: 16px; padding: 20px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 599px) {
    .hero-buttons-center {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons-center .btn,
    .hero-highlight-card-center .btn {
        width: 100%;
    }
    .live-metrics { grid-template-columns: 1fr 1fr; }
    .tabs-header { flex-direction: column; }
    .panel-footer { flex-direction: column; align-items: flex-start; gap: 16px; }

    .contact-actions { flex-direction: column; width: 100%; }
    .contact-actions .btn { width: 100%; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}


/* --- MOBILE SPECIFIC --- */
@media (max-width: 480px) {
    .header-actions > .lang-switcher {
        display: none;
    }
}
/* --- LEAD CAPTURE FORM --- */
.lead-capture-section {
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: left;
}
.lead-form .form-group {
    margin-bottom: 20px;
}
.lead-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}
.lead-form .required {
    color: var(--red);
}
.lead-form input[type="text"],
.lead-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.lead-form input[type="text"]:focus,
.lead-form input[type="email"]:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(69, 199, 232, 0.15);
}

/* --- CUSTOM SELECT --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    min-height: 48px;
}

.custom-select-trigger:focus-visible {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(69, 199, 232, 0.15);
}

.custom-select-trigger[aria-expanded="true"] {
    border-color: var(--cyan);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #111827;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    list-style: none;
    padding: 4px;
    margin: 0;
}

.custom-select-options.show {
    opacity: 1;
    visibility: visible;
}

.custom-select-options [role="option"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: #f8fafc;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color var(--transition-fast);
}

.custom-select-options [role="option"]:hover,
.custom-select-options [role="option"].focused {
    background-color: rgba(69, 199, 232, 0.15);
}

.custom-select-options [role="option"][aria-selected="true"] {
    background-color: rgba(69, 199, 232, 0.25);
}

.custom-select-options .check-icon {
    opacity: 0;
    color: var(--cyan);
    transition: opacity var(--transition-fast);
}

.custom-select-options [role="option"][aria-selected="true"] .check-icon {
    opacity: 1;
}

/* Scrollbar for listbox */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}
.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.lead-form .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}
.lead-form .form-checkbox input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--cyan);
}
.lead-form .form-checkbox label {
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
}
.cf-turnstile-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    min-height: 65px;
}
.form-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}
.form-message.success {
    background: rgba(11, 209, 157, 0.1);
    border: 1px solid var(--green);
    color: var(--green);
}
.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--red);
    color: var(--red);
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- M1: MQL5 Market CTA + trust block + performance snapshots --- */
.btn-mql5 {
    border: 1px solid var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    font-weight: 700;
}
.btn-mql5:hover {
    background: var(--gold);
    color: #0a0a0a;
}
.btn-mql5:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.btn-mql5 .lbl-short { display: none; }
@media (min-width: 1200px) {
    .header-actions .btn-mql5 { padding: 7px 10px; }
}
/* Compact label (MQL5) on narrower desktops; the full label stays in aria-label/title */
@media (min-width: 1200px) and (max-width: 1599px) {
    .header-actions .btn-mql5 .lbl-full { display: none; }
    .header-actions .btn-mql5 .lbl-short { display: inline; }
}

.perf-snapshots {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin: 20px 0 28px;
}
.perf-shot { margin: 0; }
.perf-shot a {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    transition: border-color var(--transition-fast);
}
.perf-shot a:hover { border-color: var(--cyan); }
.perf-shot img { display: block; width: 100%; height: auto; }
.perf-caption {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
@media (max-width: 800px) {
    .perf-snapshots { grid-template-columns: minmax(0, 1fr); }
}

.mql5-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    max-width: 1100px;
    margin: 32px auto 0;
}
.mql5-card {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.mql5-card:hover { border-color: var(--gold); }
.mql5-card img { display: block; width: 100%; height: auto; }
.mql5-paths {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}
.mql5-paths li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 14px;
    border-left: 2px solid var(--border-color);
}
.mql5-paths strong { color: var(--text-primary); font-size: 15px; }
.mql5-paths span { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.mql5-paths a { color: var(--cyan); font-size: 14px; text-decoration: underline; width: fit-content; }
.mql5-note {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}
@media (min-width: 901px) {
    .mql5-paths { flex-direction: row; gap: 24px; }
    .mql5-paths li { flex: 1 1 0; }
}
@media (max-width: 900px) {
    .mql5-block { gap: 22px; }
    .mql5-side .btn { width: 100%; }
}

/* M1 header tuning for 5 CTAs (one row, no overlap) */
@media (min-width: 1200px) and (max-width: 1279px) {
    .logo { font-size: 15px; }
    .nav-list { gap: 8px; }
    .nav-list a { font-size: 12px; }
    .header-actions .btn { padding: 7px 7px; font-size: 12px; }
    .header-actions .btn-mql5 { padding: 6px 8px; }
    .header-actions > .lang-switcher { margin-right: 0; }
}
@media (min-width: 1366px) and (max-width: 1439px) {
    .nav-list { gap: 13px; }
    .header-actions .btn { padding: 8px 10px; }
    .header-actions .btn-mql5 { padding: 7px 10px; }
}

/* --- S2C: analytics consent banner + preference control --- */
.consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1200;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 18px;
    background: #0E1726;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    color: var(--text-primary);
}
.consent-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.consent-text a { color: var(--cyan); text-decoration: underline; white-space: nowrap; }
.consent-status { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }
.consent-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.consent-btn {
    flex: 1 1 140px;
    min-height: 44px;
    padding: 10px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    cursor: pointer;
}
.consent-btn:hover { border-color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
.consent-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.footer-link-btn {
    padding: 0;
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
}
.footer-link-btn:hover { color: var(--text-primary); }
.footer-link-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 520px) {
    .consent-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
    .consent-actions { flex-direction: column; }
    .consent-btn { flex: 0 0 auto; width: 100%; }
}

/* ===== V1A: hero Myfxbook snapshots, image zoom, breakout illustration ===== */
.hero.variant-b .hero-visual-center.hero-perf { max-width: 1040px; }
.hero-perf .perf-snapshots { margin: 8px 0 0; }
.perf-cta { grid-column: 1 / -1; display: flex; justify-content: center; }

.perf-shot .zoomable {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    font: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
    transition: border-color var(--transition-fast);
}
.perf-shot .zoomable:hover,
.perf-shot .zoomable:focus-visible { border-color: var(--cyan); }
.zoomable:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.pillars-dashboard { margin: 40px auto 0; max-width: 1000px; }
.zoomable-dashboard {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.pillars-dashboard .visual-caption { margin-top: 12px; text-align: center; }

html.zoom-open { overflow: hidden; }
.zoom-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(3, 5, 8);
    color: var(--text-primary);
    flex-direction: column;
}
.zoom-dialog[open] { display: flex; }
.zoom-dialog::backdrop { background: rgba(3, 5, 8, 0.8); }
.zoom-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(14, 23, 38, 0.95);
    border-bottom: 1px solid var(--border-light);
}
.zoom-hint { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.zoom-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-focus);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.zoom-btn:hover { border-color: var(--cyan); }
.zoom-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.zoom-close { background: var(--cyan); color: #05080D; font-weight: 700; border-color: var(--cyan); }
.zoom-stage {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
}
.zoom-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    background: #fff;
    cursor: zoom-in;
}
.zoom-dialog.is-actual .zoom-stage { align-items: flex-start; justify-content: flex-start; }
.zoom-dialog.is-actual .zoom-img { max-width: none; max-height: none; cursor: zoom-out; }
@media (max-width: 560px) {
    .zoom-hint { display: none; }
    .zoom-bar { justify-content: flex-end; }
}

/* Breakout illustration (Trend card) */
.visual-trend .chart-breakout { width: 94%; height: 92%; }
.breakout-svg { display: block; width: 100%; height: 100%; }

/* ===== V1B: sales landing layout ===== */
.hero-v1b { padding-top: 24px; }
.hero-v1b-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 48px;
    align-items: center;
    width: 100%;
}
.hero-v1b-copy { text-align: left; }
.hero-eyebrow-v1b {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--cyan);
    border: 1px solid var(--border-focus);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}
.hero-title-v1b {
    font-size: clamp(34px, 3.8vw, 52px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.1px;
    margin-bottom: 16px;
}
.hero-sub-v1b { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 24px; max-width: 560px; }
.hero-cta-v1b { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-link-v1b { display: inline-block; color: var(--text-secondary); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 14px; }
.hero-link-v1b:hover { color: var(--cyan); }
.hero-risk-v1b { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.hero-v1b-proof { min-width: 0; }
.proof-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--green);
    background: rgba(45, 216, 129, 0.08);
    border: 1px solid rgba(45, 216, 129, 0.35);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 10px;
}
.hero-v1b-proof .perf-shot .zoomable { max-height: 560px; }
.hero-v1b-proof .perf-shot img { width: 100%; height: auto; object-fit: cover; object-position: top; max-height: 560px; }
.hero-v1b-proof .perf-caption { text-align: left; margin: 10px 0; }
.hero-proof-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-proof-actions .btn { min-height: 44px; }

.section-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}
.why-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; color: var(--cyan);
    background: rgba(69, 199, 232, 0.1); border: 1px solid var(--border-focus);
    margin-bottom: 16px;
}
.why-title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.why-desc { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.flow-step {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px 18px;
}
.flow-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--gold); color: #05080D; font-weight: 800; font-size: 14px;
    margin-bottom: 12px;
}
.flow-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.flow-desc { font-size: 14px; line-height: 1.55; color: var(--text-secondary); }

.perf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
.perf-stat { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.perf-stat-value { font-size: 20px; font-weight: 800; }
.perf-stat-label { font-size: 13px; color: var(--text-secondary); }
.perf-stats-note { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin: 8px 0 18px; }
.perf-backtest { margin-top: 36px; max-width: 900px; margin-left: auto; margin-right: auto; }
.perf-backtest-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); text-align: center; }
.perf-backtest .visual-caption { margin-top: 12px; text-align: center; }

.demo-steps { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.demo-steps li { display: flex; gap: 12px; align-items: flex-start; background: rgba(5, 8, 13, 0.5); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.demo-steps strong { color: var(--text-primary); }
.demo-step-num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cyan); color: #05080D; font-weight: 800; font-size: 14px; }

.mql5-compare { margin-bottom: 8px; }
.final-cta-card { text-align: center; max-width: 820px; margin: 0 auto; padding: 48px 32px; background: var(--bg-card); border: 1px solid var(--border-focus); border-radius: var(--radius-lg); }
.final-cta-card .section-desc { margin-left: auto; margin-right: auto; }
.final-cta-card a:not(.btn) { color: var(--cyan); text-decoration: underline; }

@media (max-width: 1100px) {
    .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .hero-v1b-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hero-v1b-proof .perf-shot .zoomable, .hero-v1b-proof .perf-shot img { max-height: none; }
    .perf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .demo-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .why-grid, .flow-steps { grid-template-columns: minmax(0, 1fr); }
    .hero-cta-v1b .btn, .section-cta .btn { width: 100%; justify-content: center; }
    .hero-proof-actions .btn { flex: 1 1 140px; }
    .final-cta-card { padding: 32px 20px; }
}

@media (max-width: 560px) {
    .hero-v1b { padding-top: 4px; }
    .hero-eyebrow-v1b { margin-bottom: 12px; }
    .hero-sub-v1b { font-size: 15px; margin-bottom: 16px; }
    .hero-cta-v1b .btn-outline, .hero-link-v1b, .hero-risk-v1b { display: none; }
    .hero-v1b-grid { gap: 18px; }
}

/* ===== V1B final polish ===== */
.hero-title-v1b { text-wrap: balance; }
.hero-risk-v1b { font-size: 13.5px; color: rgba(255, 255, 255, 0.82); line-height: 1.55; }
.hero-risk-v1b strong { color: var(--gold); }
#demo-license .contact-card { padding-bottom: 40px; }

.perf-monthly { max-width: 680px; margin: 20px auto 0; }
.perf-monthly .perf-caption { text-align: center; margin-top: 10px; }
.perf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 8px; }
.perf-links .btn { min-height: 44px; }
.perf-links-note { text-align: center; font-size: 13px; line-height: 1.6; color: var(--text-secondary); max-width: 640px; margin: 0 auto; }
.perf-backtest { margin-top: 28px; }

@media (max-width: 560px) {
    .hero-title-v1b { font-size: clamp(32px, 8.6vw, 38px); line-height: 1.12; letter-spacing: -0.8px; }
    .hero-sub-v1b { font-size: 14.5px; line-height: 1.55; margin-bottom: 14px; }
    .hero-cta-v1b { gap: 10px; margin-bottom: 10px; }
    .hero-cta-v1b .btn-outline { display: inline-flex; min-height: 46px; }
    .hero-cta-v1b .btn { width: 100%; justify-content: center; }
    .hero-link-v1b { display: inline-block; margin-bottom: 8px; }
    .hero-risk-v1b { display: block; font-size: 13px; }
    .hero-v1b-grid { gap: 16px; }
    .section-padding { padding-top: 48px; padding-bottom: 48px; }
    .perf-links .btn { flex: 1 1 100%; }
    #demo-license .contact-card { padding-bottom: 28px; }
}

/* ---- Customer Tester 24h panel (inert unless enabled; see tester-entitlement.js) ---- */
.tester-card { margin-top: 24px; padding: 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; background: rgba(0,0,0,0.2); text-align: left; font-size: 13px; color: var(--text-secondary); }
.tester-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tester-head h4 { margin: 0; color: var(--gold); font-size: 14px; }
.tester-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; border: 1px solid currentColor; white-space: nowrap; }
.tester-pill.is-none { color: var(--text-muted); }
.tester-pill.is-active { color: var(--green); }
.tester-pill.is-expired { color: var(--gold); }
.tester-pill.is-demo-expired { color: var(--red); }
.tester-mock { margin-bottom: 8px; padding: 6px 8px; border: 1px dashed var(--gold); border-radius: 4px; color: var(--gold); font-size: 11px; }
.tester-intro { margin: 0 0 12px; line-height: 1.5; }
.tester-rows { margin: 0 0 12px; display: grid; gap: 6px; }
.tester-rows > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tester-rows dt { color: var(--text-muted); }
.tester-rows dd { margin: 0; color: var(--text-primary); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.tester-notice { margin: 0 0 12px; padding: 8px 10px; border-radius: 4px; line-height: 1.5; border-left: 3px solid var(--cyan); background: rgba(69,199,232,0.08); }
.tester-notice.is-ok { border-color: var(--green); background: rgba(45,216,129,0.08); }
.tester-notice.is-error { border-color: var(--red); background: rgba(255,51,102,0.08); }
.tester-btn { margin-top: 4px; }
.tester-loading, .tester-sent { margin: 0 0 8px; color: var(--text-muted); }
.tester-code-label { display: block; margin-bottom: 6px; }
.tester-code { width: 100%; box-sizing: border-box; padding: 12px; margin-bottom: 8px; font-family: monospace; font-size: 18px; letter-spacing: 6px; text-align: center; color: var(--text-primary); background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; }
.tester-link { display: block; margin: 10px auto 0; padding: 4px 8px; background: none; border: 0; color: var(--cyan); font-size: 12px; text-decoration: underline; cursor: pointer; }
.tester-link:disabled { opacity: 0.5; cursor: default; }
.tester-guide { margin-top: 12px; }
.tester-guide summary { cursor: pointer; color: var(--gold); font-weight: 600; }
.tester-guide ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.5; }
.tester-path { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3); color: var(--cyan); font-size: 12px; overflow-wrap: anywhere; }
.tester-rule, .tester-privacy { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.tester-privacy a { color: var(--cyan); }
.tester-cta-wrap { margin-top: 12px; text-align: center; }
.tester-cta { padding: 6px 12px; background: none; border: 0; color: var(--cyan); font-size: 13px; text-decoration: underline; cursor: pointer; }
.tester-cta:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
#tester-returning { text-align: left; }
.tester-field { width: 100%; box-sizing: border-box; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; color: var(--text-primary); background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; }
.tester-path-note { display: block; margin-top: 4px; font-size: 11px; color: var(--text-muted); }
.tester-ts { margin: 4px 0 8px; }
.tester-help { margin: 8px 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.tester-guide li { overflow-wrap: anywhere; }
