/* ==========================================================================
   CB TRADERS API — Enterprise Professional Design System
   Clean, refined, developer-centric UI/UX (Stripe / Linear / Vercel style)
   ========================================================================== */

:root {
    /* Refined Color Palette */
    --bg-main: #07090e;
    --bg-subtle: #0b0f17;
    --bg-card: #0f1523;
    --bg-card-hover: #141c2e;
    --bg-glass: rgba(15, 21, 35, 0.75);

    /* Hairline Borders */
    --border-hairline: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(56, 189, 248, 0.4);

    /* Accents (Restrained & Professional) */
    --accent-blue: #0ea5e9;
    --accent-blue-soft: #38bdf8;
    --accent-blue-dim: rgba(14, 165, 233, 0.1);
    --accent-emerald: #10b981;
    --accent-emerald-dim: rgba(16, 185, 129, 0.1);
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;

    /* High-Legibility Typography */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-dim: #475569;

    /* Fonts */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Sizing & Transitions */
    --max-w: 1200px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Subtle Ambient Gradient (Non-Distracting) */
.ambient-glow {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 450px;
    background: radial-gradient(ellipse at top, rgba(14, 165, 233, 0.08) 0%, rgba(7, 9, 14, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-hairline);
    transition: all 0.2s var(--ease);
}

.site-header.scrolled {
    background: rgba(7, 9, 14, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-blue-soft);
    font-weight: 800;
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hairline);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-emerald);
}

/* Main Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s var(--ease);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    border: 1px solid transparent;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: #ffffff;
    color: #07090e;
    border-color: #ffffff;
}

.btn-primary:hover {
    background: #e2e8f0;
    border-color: #e2e8f0;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-hairline);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-card {
    width: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.btn-card .arrow {
    transition: transform 0.15s var(--ease);
}
.btn-card:hover .arrow {
    transform: translateX(3px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.mobile-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 70px 0 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 50px;
    align-items: center;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hairline);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pill-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue-soft);
    border-radius: 50%;
}

.pill-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-blue-soft);
    background: var(--accent-blue-dim);
    padding: 1px 6px;
    border-radius: 4px;
}

.hero-headline {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-subtext {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.68;
    margin-bottom: 36px;
    max-width: 560px;
}
.hero-subtext b {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

/* Metric Row */
.metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid var(--border-hairline);
}

.metric-value {
    font-family: var(--font-sans);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Terminal Window (Clean Developer Console)
   ========================================================================== */
.terminal-window {
    background: #090d16;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #0c121f;
    border-bottom: 1px solid var(--border-hairline);
}

.terminal-controls {
    display: flex;
    gap: 7px;
}
.ctrl-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.ctrl-red { background: #ef4444; opacity: 0.85; }
.ctrl-yellow { background: #f59e0b; opacity: 0.85; }
.ctrl-green { background: #10b981; opacity: 0.85; }

.terminal-title {
    font-size: 0.76rem;
    color: var(--text-tertiary);
}

.terminal-chip {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-emerald);
    background: var(--accent-emerald-dim);
    padding: 2px 7px;
    border-radius: 4px;
}

.terminal-code-body {
    padding: 16px 18px;
    height: 310px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.log-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: fadeInRow 0.25s var(--ease) forwards;
}
@keyframes fadeInRow {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.terminal-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #0b0f19;
    border-top: 1px solid var(--border-hairline);
    font-size: 0.72rem;
}

.status-col .lbl {
    color: var(--text-dim);
    margin-right: 4px;
}
.status-col .val {
    font-weight: 600;
}

.text-success { color: #10b981; }
.text-info { color: #38bdf8; }
.text-highlight { color: #c084fc; }

/* ==========================================================================
   Sections & Titles
   ========================================================================== */
.section {
    padding: 90px 0;
}

.section-dark {
    background: #090c13;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
}

.section-title-wrap {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.kicker {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-blue-soft);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-heading {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.section-lead {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   Broker Cards Grid
   ========================================================================== */
.broker-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.broker-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s var(--ease);
}

.broker-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.broker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.broker-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.broker-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.icon-quotex {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.25);
}
.icon-pocket {
    background: rgba(139, 92, 246, 0.12);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.icon-binolla {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.icon-iq {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.broker-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.broker-proto {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.latency-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-emerald);
    background: var(--accent-emerald-dim);
    padding: 3px 8px;
    border-radius: 4px;
}

.broker-summary {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 22px;
}

.feature-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    flex-grow: 1;
}

.feature-checklist li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.feature-checklist .check {
    color: var(--accent-blue-soft);
    font-weight: 700;
}

.feature-checklist b {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Infrastructure Feature Grid
   ========================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    transition: border-color 0.2s var(--ease);
}

.feature-box:hover {
    border-color: var(--border-hover);
}

.feature-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue-soft);
    margin-bottom: 18px;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ==========================================================================
   Code Playground Workbench
   ========================================================================== */
.code-workbench {
    background: #090d16;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.code-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #0d121f;
    border-bottom: 1px solid var(--border-hairline);
    flex-wrap: wrap;
    gap: 12px;
}

.code-tabs-list {
    display: flex;
    gap: 6px;
}

.code-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s var(--ease);
}

.code-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.code-tab-btn.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s var(--ease);
}

.copy-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.code-editor-viewport {
    padding: 22px;
    background: #070a11;
    overflow-x: auto;
}

.code-panel {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.code-panel.active {
    display: block;
}

/* Syntax Coloring (Clean & Subdued) */
.c-comment { color: #64748b; font-style: italic; }
.c-keyword { color: #c084fc; font-weight: 600; }
.c-string { color: #34d399; }
.c-fn { color: #38bdf8; }
.c-number { color: #f59e0b; }

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-deck {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 40px;
}

.pricing-box {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s var(--ease);
}

.pricing-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.tier-featured {
    border-color: var(--border-accent);
    background: linear-gradient(180deg, #10192e 0%, #0c121e 100%);
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.15);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 28px;
    background: #0ea5e9;
    color: #07090e;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 999px;
}

.tier-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.text-accent {
    color: var(--accent-blue-soft);
}

.tier-name {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tier-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 24px;
    min-height: 42px;
}

.price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-hairline);
}

.price-wrap .currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-wrap .price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.price-wrap .period {
    color: var(--text-tertiary);
    font-size: 0.88rem;
}

.tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    flex-grow: 1;
}

.tier-features li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.tier-features .bullet {
    color: var(--accent-blue-soft);
    font-weight: 700;
}

.tier-features b {
    color: var(--text-primary);
    font-weight: 600;
}

.btn-tier {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    padding: 11px 16px;
    font-weight: 600;
}

.btn-tier:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

/* Custom Card */
.custom-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 30px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.custom-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.custom-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-row {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s var(--ease);
}

.faq-trigger:hover {
    color: var(--accent-blue-soft);
}

.faq-icon {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-tertiary);
    transition: transform 0.2s var(--ease);
}

.faq-row.open .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-blue-soft);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height 0.25s var(--ease), padding 0.25s var(--ease);
}

.faq-row.open .faq-content {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}
.faq-content a {
    color: var(--accent-blue-soft);
    text-decoration: none;
}
.faq-content a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #05070b;
    border-top: 1px solid var(--border-hairline);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 16px 0 20px;
    max-width: 360px;
}

.footer-contact-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s var(--ease);
}

.contact-pill:hover {
    color: var(--text-primary);
}

.footer-col-nav h6 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-col-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s var(--ease);
}

.footer-col-nav a:hover {
    color: var(--text-primary);
}

.footer-meta {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.copyright {
    font-size: 0.82rem;
    color: var(--text-dim);
}
.copyright code {
    color: var(--accent-blue-soft);
    font-family: var(--font-mono);
}

.disclaimer-text {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.55;
}

/* Toast Bubble */
.toast-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateY(60px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s var(--ease);
}

.toast-bubble.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-tick {
    color: var(--accent-emerald);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pricing-deck {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto 30px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #090d16;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-hairline);
    }
    .main-nav.active {
        display: flex;
    }
    .mobile-toggle {
        display: flex;
    }
    .status-indicator {
        display: none;
    }
    .hero-headline {
        font-size: 2.3rem;
    }
    .broker-cards-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .custom-card {
        flex-direction: column;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .metric-row {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Added Layout & Component Specifications */
.hero-text-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-terminal-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.metric-item {
    background: rgba(15, 21, 35, 0.65);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s var(--ease);
}

.metric-item:hover {
    border-color: var(--border-hover);
    background: rgba(20, 28, 46, 0.75);
    transform: translateY(-2px);
}

.pill-text {
    color: var(--text-secondary);
}

.status-text {
    color: var(--text-secondary);
}

.broker-action {
    margin-top: auto;
    width: 100%;
}

.footer-col-about {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* Contact For Price Box */
.price-contact-box {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: all 0.2s var(--ease);
}

.pricing-box:hover .price-contact-box {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
}

.tier-featured .price-contact-box {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 20px -5px rgba(14, 165, 233, 0.2);
}

.price-contact-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-blue-soft);
    background: rgba(14, 165, 233, 0.15);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.price-contact-badge.highlight {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
}

.price-contact-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.price-contact-tg svg {
    color: #38bdf8;
    flex-shrink: 0;
}

.price-contact-hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.price-contact-hint b {
    color: #38bdf8;
}


/* ==========================================================================
   V0 TEMPLATE STYLES: 3D Wave Dots, Glowing Typography & Tars Chat Widget
   ========================================================================== */

/* 3D Wave Dots Background Canvas */
.wave-dots-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #000000;
}

#waveDotsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.wave-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
}

/* Glowing Typography from v0 template */
.hero-headline {
    text-shadow: 0 0 15px rgba(220, 220, 230, 0.6), 0 0 30px rgba(56, 189, 248, 0.35) !important;
    letter-spacing: 0.02em !important;
}

.section-heading {
    text-shadow: 0 0 10px rgba(220, 220, 230, 0.5), 0 0 20px rgba(56, 189, 248, 0.25) !important;
    letter-spacing: 0.02em !important;
}

/* Gradient Cards from v0 template */
.broker-card, .pricing-box, .feature-box {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(3, 7, 18, 0.95) 100%) !important;
    border: 1px solid rgba(75, 85, 99, 0.35) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.broker-card:hover, .pricing-box:hover, .feature-box:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 25px 50px -12px rgba(56, 189, 248, 0.25) !important;
}

/* v0 Template Pill Buttons */
.btn-primary {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border: 1px solid #4b5563 !important;
    color: #f3f4f6 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
    border-radius: 12px !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
    border-color: #9ca3af !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25) !important;
}

.btn-secondary {
    border: 2px solid #4b5563 !important;
    background: rgba(17, 24, 39, 0.4) !important;
    color: #e5e7eb !important;
    border-radius: 12px !important;
}

.btn-secondary:hover {
    background: rgba(31, 41, 55, 0.7) !important;
    border-color: #9ca3af !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* Neural Network Showcase in Architecture Section */
.neural-showcase-container {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    background: #030712;
    border: 1px solid rgba(75, 85, 99, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

#neuralCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.neural-overlay-badge {
    position: absolute;
    bottom: 20px;
    left: 24px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 10px 18px;
    border-radius: var(--radius-md);
}
.neural-overlay-badge h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.neural-overlay-badge p {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
}

/* ==========================================================================
   Tars-Style Floating AI Chat Widget
   ========================================================================== */
.chat-launcher-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(14, 165, 233, 0.3);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.chat-launcher-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(14, 165, 233, 0.5);
    color: #ffffff;
}

.chat-pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.5);
    animation: chatPulse 2.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    pointer-events: none;
}

@keyframes chatPulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Floating Chat Window */
.chat-window {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    background: #090d16;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(14, 165, 233, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, #111827 0%, #0b0f19 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
}

.chat-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.chat-sub {
    font-size: 0.7rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-sub::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.chat-ctrl-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s var(--ease);
}
.chat-ctrl-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.84rem;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    line-height: 1.5;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.chat-msg.user {
    align-self: flex-end;
    background: #0284c7;
    color: #ffffff;
}

.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.chat-chip {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s var(--ease);
}
.chat-chip:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.chat-input-bar {
    padding: 12px 14px;
    background: #0b0f19;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.82rem;
    outline: none;
    font-family: inherit;
}
.chat-input:focus {
    border-color: #38bdf8;
}

.chat-send-btn {
    background: #0284c7;
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s var(--ease);
}
.chat-send-btn:hover {
    background: #0369a1;
}


/* ==========================================================================
   FLOATING PILL NAVBAR & SPACE GROTESK HERO (Exact User Specification)
   ========================================================================== */

/* Font Family Variables */
:root {
    --font-display: 'Space Grotesk', 'Outfit', sans-serif;
    --font-sans: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6, .hero-headline, .section-heading {
    font-family: var(--font-display) !important;
}

/* Floating Pill Navbar (Avengers Style) */
.header-wrapper {
    position: fixed;
    top: 18px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
}

.site-header {
    pointer-events: auto;
    width: 100%;
    max-width: 1080px;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 20px rgba(14, 165, 233, 0.12);
    padding: 6px 12px 6px 22px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
    background: rgba(6, 9, 16, 0.95);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 20px 45px -5px rgba(0, 0, 0, 0.85), 0 0 30px rgba(14, 165, 233, 0.2);
}

.nav-container {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    line-height: 1.15;
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #38bdf8;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.15s var(--ease);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}

.btn-icon-circle:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #ffffff;
    border-color: #38bdf8;
    transform: scale(1.06);
}

.btn-pill-cta {
    border-radius: 9999px !important;
    background: #38bdf8 !important;
    color: #020817 !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    padding: 8px 20px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4) !important;
    border: 1px solid #7dd3fc !important;
    transition: all 0.2s var(--ease) !important;
}

.btn-pill-cta:hover {
    background: #7dd3fc !important;
    transform: scale(1.04) !important;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.65) !important;
}

/* ==========================================================================
   CENTERED HERO SECTION (Exact v0 template style)
   ========================================================================== */
.hero-section {
    padding: 140px 0 90px !important;
    position: relative;
    z-index: 1;
}

.hero-container-centered {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-headline {
    font-size: clamp(2.4rem, 5.2vw, 3.8rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin-bottom: 22px !important;
    text-align: center !important;
}

.hero-subtext {
    font-size: 1.12rem !important;
    line-height: 1.7 !important;
    max-width: 720px !important;
    margin: 0 auto 36px !important;
    text-align: center !important;
    color: #94a3b8 !important;
}

.hero-actions {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-bottom: 44px !important;
    width: 100%;
}

.metric-row {
    width: 100% !important;
    max-width: 880px !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: 0 auto 40px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.hero-terminal-wrapper {
    width: 100% !important;
    max-width: 880px !important;
    margin: 0 auto !important;
}

.btn-lg {
    padding: 13px 28px !important;
    font-size: 0.95rem !important;
    border-radius: 9999px !important;
}

@media (max-width: 768px) {
    .header-wrapper {
        top: 10px;
        padding: 0 10px;
    }
    .main-nav {
        display: none;
    }
    .metric-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}



/* CB TRADERS Official Brand Logo */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0f19;
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.4);
    flex-shrink: 0;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.brand-logo:hover .logo-mark {
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.7);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    line-height: 1.15;
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #38bdf8;
    text-transform: uppercase;
}

/* ==========================================================================
   Bidirectional Scroll Reveal Animations
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(38px) scale(0.97);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ==========================================================================
   Realistic HFT Terminal Styles
   ========================================================================== */
.terminal-window {
    background: #060910;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 35px rgba(14, 165, 233, 0.08);
}

.terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #0b0f19;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    flex-wrap: wrap;
    gap: 8px;
}

.terminal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.term-metrics {
    display: flex;
    align-items: center;
    gap: 14px;
}

.term-metric-item {
    font-size: 0.68rem;
    color: #64748b;
    font-family: var(--font-mono);
}

.term-metric-val {
    color: #38bdf8;
    font-weight: 700;
}

.terminal-chip {
    font-size: 0.65rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chip-pulse {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseBeacon 1.5s infinite;
}

@keyframes pulseBeacon {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    50% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

.terminal-code-body {
    padding: 16px 18px;
    height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.79rem;
    line-height: 1.55;
    background: #060910;
}

.log-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: fadeInRow 0.2s var(--ease) forwards;
}

.log-time {
    color: #475569;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.log-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    text-transform: uppercase;
}

.badge-wss { background: rgba(56, 189, 248, 0.14); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-tick { background: rgba(16, 185, 129, 0.14); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-exec { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-ack { background: rgba(59, 130, 246, 0.14); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-win { background: rgba(16, 185, 129, 0.22); color: #10b981; border: 1px solid #10b981; font-weight: 800; }
.badge-auth { background: rgba(168, 85, 247, 0.14); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.log-content {
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #090d16;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    flex-wrap: wrap;
    gap: 8px;
}
