/* ==========================================================================
   PulseQuant.io — Dark Mode Quant & Typewriter Aesthetics
   ========================================================================== */

:root {
    --bg-dark: #0b0d13;
    --bg-darker: #07080c;
    --bg-card: rgba(18, 22, 34, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 254, 0.3);
    
    --primary-cyan: #00f2fe;
    --primary-blue: #4facfe;
    --neon-green: #00e676;
    --neon-red: #ff1744;
    --neon-yellow: #ffea00;
    
    --text-main: #f0f4f8;
    --text-muted: #8a99ad;
    --text-dim: #5c6b73;
    
    --font-heading: 'Fira Code', monospace;
    --font-mono: 'Fira Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-mono);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    font-family: var(--font-mono);
    background-color: var(--bg-dark);
}

/* Background Glow Effects */
.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
}
.glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 242, 254, 0.07);
    top: -100px;
    left: -100px;
}
.glow-2 {
    width: 600px;
    height: 600px;
    background: rgba(0, 230, 118, 0.05);
    bottom: 10%;
    right: -100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Live Ticker Bar */
.ticker-wrap {
    width: 100%;
    background: rgba(7, 8, 12, 0.9);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    height: 38px;
    display: flex;
    align-items: center;
}
.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
.ticker-item {
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.t-symbol { font-weight: 700; color: #fff; }
.t-atr { color: var(--text-muted); font-size: 0.75rem; background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; }
.t-up { color: var(--neon-green); font-weight: 600; }

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(11, 13, 19, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 55px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.6));
    transition: all 0.3s ease;
}
.brand:hover .brand-logo-img {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.8));
}
.brand-icon {
    color: var(--primary-cyan);
    font-size: 1.4rem;
    text-shadow: 0 0 12px var(--primary-cyan);
}
.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand-ext { color: var(--primary-cyan); }
.badge-live {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(0, 230, 118, 0.12);
    color: var(--neon-green);
    border: 1px solid rgba(0, 230, 118, 0.3);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.btn-nav {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #000 !important;
    font-weight: 700 !important;
    padding: 8px 18px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

.brand-img-logo {
    height: 38px;
    width: auto;
    border-radius: 6px;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.4));
}

/* Hero Section with Vibrant Matrix Trading Background */
.hero-section {
    padding: 95px 0 80px 0;
    background: linear-gradient(180deg, rgba(7, 8, 12, 0.65) 0%, rgba(7, 8, 12, 0.88) 80%, rgba(7, 8, 12, 1) 100%), url('assets/hero_matrix_bg.png') no-repeat center top / cover;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-bottom: 1px solid var(--border-color);
}
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: 3.6rem;
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1.2px;
    max-width: 1000px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 34px;
    max-width: 860px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 35px;
}

/* Hero Supported Brokers Bar */
.hero-brokers-row {
    grid-column: 1 / -1;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-brokers-bar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.brokers-title {
    font-family: var(--font-sans);
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 24px;
    text-align: center;
}
.text-gradient-cyan {
    background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}
.brokers-sub-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}
.badge-live {
    border: 1px solid #ef4444;
    color: #ef4444;
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.connected-tag {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #00ff88;
    font-weight: 700;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.broker-select-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.brokers-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}
.clickable-broker-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.clickable-broker-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-cyan);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.25);
    background: rgba(15, 23, 42, 0.9);
}
.hero-broker-card {
    padding: 18px 12px;
    border-radius: 14px;
    background: rgba(11, 15, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: center;
    transition: all 0.3s ease;
}
.connect-hint-btn {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 5px 12px;
    border-radius: 16px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.clickable-broker-card:hover .connect-hint-btn {
    background: var(--primary-cyan);
    color: #030712;
    box-shadow: 0 0 12px var(--primary-cyan);
}
.broker-badge-pill {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: auto;
}
.broker-icon-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}
.broker-brand-title {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.3px;
}
.broker-api-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}
.typewriter-badge {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--primary-cyan);
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 20px;
}
.cursor {
    animation: blink 0.8s infinite;
    color: var(--primary-cyan);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -1px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #000;
}
.btn-glow {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}
.btn-glow:hover {
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.6);
    transform: translateY(-2px);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Quick Docker Box */
.quick-docker-box {
    background: #06070a;
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto 35px auto;
    font-family: var(--font-mono);
}
.docker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
}
.docker-title { color: var(--primary-cyan); font-weight: 600; }
.docker-tag { color: var(--text-dim); }
.docker-code-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 6px;
    overflow-x: auto;
    gap: 12px;
}
.docker-code-line code { color: var(--neon-green); font-size: 0.85rem; }
.btn-copy {
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-copy:hover { background: rgba(0, 242, 254, 0.3); }

/* Hero Side Card & Stats */
.card-header-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 20px;
}
.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
}
.card-title-mono { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.stat-grid-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.stat-hero-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 10px;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; font-family: var(--font-mono); }
.stat-number { font-size: 1.8rem; font-weight: 800; font-family: var(--font-mono); margin: 4px 0; display: block; }
.text-green { color: var(--neon-green); text-shadow: 0 0 10px rgba(0,230,118,0.3); }
.text-cyan { color: var(--primary-cyan); text-shadow: 0 0 10px rgba(0,242,254,0.3); }
.text-red { color: var(--neon-red); }
.stat-sub { font-size: 0.75rem; color: var(--text-dim); }

/* Mini Trade Log */
.mini-trade-log {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.log-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 6px;
}
.log-time { color: var(--text-dim); }
.log-ticker { font-weight: 700; color: #fff; }
.log-action { padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }
.action-buy { background: rgba(0,230,118,0.15); color: var(--neon-green); }
.action-sell { background: rgba(255,234,0,0.15); color: var(--neon-yellow); }
.text-neutral { color: var(--text-muted); }

/* Counters Bar */
.counters-bar {
    background: #07080c;
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 36px 0;
    margin: 40px 0 0 0;
}
.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.counter-val {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
}
.counter-unit {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-cyan);
    font-family: var(--font-mono);
}
.counter-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Sections Common */
.section-padding { padding: 90px 0; background-color: #0b0d13; position: relative; z-index: 5; }
.section-darker { background-color: #07080c !important; position: relative; z-index: 5; }

/* Alternating Background Themes: Cyber Grid vs Glowing Dots */
.theme-grid {
    background-color: #060911 !important;
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.05) 1px, transparent 1px) !important;
    background-size: 44px 44px !important;
    background-position: center center !important;
}

.theme-dots {
    background-color: #090d18 !important;
    background-image: radial-gradient(rgba(0, 242, 254, 0.16) 1.2px, transparent 1.2px) !important;
    background-size: 26px 26px !important;
    background-position: 0 0, 13px 13px !important;
}

.section-title-wrap { text-align: center; max-width: 700px; margin: 0 auto 50px auto; }
.section-tag { font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary-cyan); font-weight: 600; }
.section-heading { font-size: 2.4rem; font-weight: 800; margin: 8px 0 14px 0; letter-spacing: -0.5px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* Architecture Stack Grid - 4 Column Layout with Soft Off-White Typography */
/* Architecture Stack Grid with Connecting Arrows & Amber Accents */
.arch-stack-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
}
.arch-card {
    flex: 1;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-top: 4px solid var(--primary-cyan);
    transition: all 0.3s ease;
}
.arch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 242, 254, 0.16);
    border-top-color: #f59e0b;
}
.arch-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.8));
    animation: pulseArrow 2.2s infinite ease-in-out;
    padding: 0 2px;
}
@keyframes pulseArrow {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(4px); opacity: 1; filter: drop-shadow(0 0 16px var(--primary-cyan)); }
}

.text-amber {
    color: #f59e0b !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.arch-badge {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-cyan);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge-num {
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid var(--primary-cyan);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 800;
}
.arch-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1; /* Soft off-white to eliminate harsh white glare */
    letter-spacing: -0.3px;
}
.arch-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.arch-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.0rem;
    line-height: 1.4;
}
.arch-feature-list li i {
    margin-top: 4px;
    font-size: 1.1rem;
}
.arch-feature-list li strong {
    display: block;
    color: #e2e8f0; /* Soft off-white */
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.arch-feature-list li span {
    color: #94a3b8; /* Soft readable muted grey */
    font-size: 0.92rem;
}
.arch-code-preview {
    background: #050608;
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-green);
    overflow-x: auto;
}

/* Features Grid Legacy */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 32px;
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Terminal Window */
.terminal-window {
    background: #050608;
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    font-family: var(--font-mono);
}
.terminal-bar {
    background: #0f131a;
    padding: 12px 18px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.term-dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.term-title { margin: 0 auto; font-size: 0.8rem; color: var(--text-muted); }

.terminal-body {
    padding: 20px;
    min-height: 280px;
    max-height: 380px;
    overflow-y: auto;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.t-line { color: #d0d7de; }
.t-line.t-info { color: #38bdf8; }
.t-line.t-warn { color: #f59e0b; }
.t-line.t-success { color: #00ff88; }
.term-cursor {
    color: var(--primary-cyan);
    margin-left: 2px;
    animation: termBlink 0.6s infinite;
    font-weight: 800;
}
@keyframes termBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.t-info { color: var(--primary-cyan); }
.t-success { color: var(--neon-green); }
.t-warn { color: var(--neon-yellow); }

/* Ticker Selector Grid & Row */
.ticker-select-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 10px;
}
.ticker-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #94a3b8;
    font-family: var(--font-mono);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-align: center;
}
.ticker-chip input { display: none; }
.ticker-chip.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.7);
    color: #cbd5e1;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.2);
    transform: translateY(-2px);
}
.chip-atr {
    font-size: 0.82rem;
    color: #34d399;
    font-weight: 600;
}
.ticker-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 10px;
    margin-bottom: 12px;
}

/* Calculator */
.calc-container { max-width: 1550px; }
.calc-card { padding: 44px 56px; max-width: 1550px; margin: 0 auto; }
.calc-sliders-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.02);
    padding: 26px 32px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.calc-label { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; display: block; }
.range-wrap { margin-bottom: 0; }
#balance-slider, #risk-slider {
    width: 100%;
    accent-color: var(--primary-cyan);
    height: 10px;
    border-radius: 5px;
    cursor: pointer;
}
.slider-val {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    color: var(--primary-cyan);
    font-weight: 800;
    margin-top: 10px;
    display: block;
}

.calc-tickers-section {
    margin-bottom: 28px;
}

.calc-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
}

.calc-info-box {
    background: rgba(0, 242, 254, 0.035);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.calc-results { display: flex; flex-direction: column; gap: 16px; }
.res-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-color);
    padding: 18px 28px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.highlight-res { border-color: rgba(0, 242, 254, 0.45); background: rgba(0, 242, 254, 0.08); }
.res-label { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.res-val { font-family: var(--font-mono); font-size: 1.55rem; font-weight: 800; }

/* Pricing 3-Tier Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.pricing-card { position: relative; padding: 36px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.popular-tier { border-color: rgba(0, 242, 254, 0.6); box-shadow: 0 0 40px rgba(0, 242, 254, 0.12); }
.enterprise-tier { border-color: rgba(0, 255, 136, 0.5); box-shadow: 0 0 40px rgba(0, 255, 136, 0.12); }
.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
}
.enterprise-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--neon-green), #00b894);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
}
.tier-tag { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.tier-price { font-size: 2.6rem; font-weight: 800; font-family: var(--font-mono); }
.tier-price .currency { font-size: 1.6rem; color: var(--text-muted); }
.tier-price .period { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.tier-desc { color: var(--text-muted); font-size: 0.88rem; margin: 12px 0 20px 0; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; line-height: 1.45; }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; font-size: 0.88rem; }
.tier-features li { display: flex; gap: 10px; align-items: center; }
.btn-full { width: 100%; justify-content: center; text-align: center; }

/* Video Showcase Section */
.video-container-wrap {
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 16px;
    overflow: hidden;
    background: #06090e;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.12);
    transition: all 0.3s ease;
    max-width: 1400px;
    margin: 0 auto;
}
.video-container-wrap:hover {
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 242, 254, 0.25);
}
.video-header-bar {
    background: #090e17;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.video-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.video-status-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.video-frame-body {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.video-frame-body video {
    width: 100%;
    height: auto;
    max-height: 750px;
    display: block;
    object-fit: contain;
    outline: none;
}

/* Dynamic Candlestick TA Analysis Showcase */
.ta-setup-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.ta-tab-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 12px;
    color: #94a3b8;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transition: all 0.25s ease;
}
.ta-tab-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(0, 242, 254, 0.3);
    color: #e2e8f0;
}
.ta-tab-btn.active {
    background: rgba(14, 165, 233, 0.12);
    border-color: var(--primary-cyan);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}
.tab-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 2px;
}
.tab-badge.green { background: rgba(0, 255, 136, 0.12); color: var(--neon-green); border: 1px solid rgba(0, 255, 136, 0.3); }
.tab-badge.purple { background: rgba(170, 68, 255, 0.12); color: #c084fc; border: 1px solid rgba(170, 68, 255, 0.3); }
.tab-badge.cyan { background: rgba(0, 242, 254, 0.12); color: var(--primary-cyan); border: 1px solid rgba(0, 242, 254, 0.3); }
.tab-badge.amber { background: rgba(255, 170, 0, 0.12); color: #fba518; border: 1px solid rgba(255, 170, 0, 0.3); }

.ta-analysis-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}
.ta-chart-card {
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 242, 254, 0.2);
    background: #06090e;
}
.ta-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ta-chart-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ticker-name {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}
.timeframe-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    color: #94a3b8;
}
.status-indicator {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neon-green);
}
.ta-chart-legend {
    display: flex;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #94a3b8;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.leg-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}
.leg-color.orb-level { background: #38bdf8; }
.leg-color.vwap-level { background: #a855f7; }
.leg-color.sl-level { background: #ef4444; }
.leg-color.tp-level { background: #22c55e; }

.ta-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    min-height: 520px;
    background: #030712;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 254, 0.25);
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}
#ta-candlestick-canvas {
    width: 100%;
    height: 520px;
    min-height: 520px;
    display: block;
    background: #030712;
}
.ta-canvas-overlay-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(6, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.ta-details-card {
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #080d16;
    border: 1px solid rgba(0, 242, 254, 0.2);
}
.ta-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ta-card-head h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ta-score-pill {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 800;
    background: rgba(0, 255, 136, 0.15);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 4px 12px;
    border-radius: 20px;
}
.ta-meter-wrap {
    background: rgba(15, 23, 42, 0.6);
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.ta-meter-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: #94a3b8;
    margin-bottom: 8px;
}
.ta-meter-label strong { color: var(--neon-green); }
.ta-meter-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}
.ta-meter-fill {
    height: 100%;
    border-radius: 4px;
    transition: all 0.4s ease;
}
.ta-pattern-box {
    background: rgba(14, 165, 233, 0.06);
    border-left: 3px solid var(--primary-cyan);
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
}
.pattern-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary-cyan);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.pattern-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 6px;
}
.pattern-desc {
    font-size: 0.84rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}
.ta-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.check-item strong { color: #cbd5e1; font-weight: 700; margin-right: 4px; }
.check-item span { color: #94a3b8; }
.ta-action-banner {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 12px 14px;
    border-radius: 8px;
}
.action-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--neon-green);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.action-desc {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 700;
    color: #f1f5f9;
}

/* Dual Execution Mode Showcase (Manual vs Full Automation) */
.mode-switch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}
.switch-badge-pill {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(0, 255, 136, 0.12);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
    transition: all 0.3s ease;
}
.mode-toggle-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(11, 15, 25, 0.8);
    padding: 10px 24px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.mode-opt {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
.mode-opt.active {
    color: #ffffff;
}

/* Switch Toggle Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 68px;
    height: 36px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 34px;
    transition: 0.3s;
}
.slider-knob {
    position: absolute;
    height: 28px;
    width: 28px;
    left: 3px;
    bottom: 3px;
    background-color: #64748b;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.8rem;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(0, 255, 136, 0.15);
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}
.toggle-switch input:checked + .toggle-slider .slider-knob {
    transform: translateX(32px);
    background-color: var(--neon-green);
    color: #000;
    box-shadow: 0 0 10px var(--neon-green);
}

.mode-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}
.mode-features-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.mode-feature-card {
    padding: 20px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #080d16;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}
.feat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.mode-feature-card h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 6px 0;
}
.mode-feature-card p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

.mode-preview-col {
    padding: 24px;
    border-radius: 16px;
    background: #06090e;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 136, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.preview-tag {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--neon-green);
    display: flex;
    align-items: center;
    gap: 8px;
}
.preview-broker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #cbd5e1;
}
.preview-mock-body {
    position: relative;
    padding: 20px 0;
}
.preview-graphic-box {
    position: relative;
    height: 160px;
    background: #030712;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.graphic-line {
    position: absolute;
    left: 0; right: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    font-family: var(--font-mono);
    font-size: 9px;
    padding-left: 10px;
}
.graphic-line.vwap-line { top: 75px; border-color: #a855f7; color: #a855f7; }
.graphic-line.orb-line { top: 50px; border-color: #38bdf8; color: #38bdf8; }
.graphic-candle-group {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}
.c-bar {
    width: 14px;
    border-radius: 2px;
    position: relative;
}
.c-bar.red { background: #ff4444; }
.c-bar.green { background: #00ff88; }
.c-bar.surge { box-shadow: 0 0 15px rgba(0, 255, 136, 0.5); }
.trade-marker {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.trade-marker.buy { background: var(--neon-green); color: #000; box-shadow: 0 0 10px var(--neon-green); }

.notification-toast {
    margin-top: 16px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}
.toast-icon {
    font-size: 1.3rem;
    margin-top: 2px;
}
.toast-content { flex: 1; }
.toast-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 4px;
}
.toast-header strong { color: #f1f5f9; font-weight: 800; }
.toast-time { font-family: var(--font-mono); font-size: 0.7rem; color: #64748b; }
.toast-content p {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.preview-footnote {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Multi-Broker Selector Styling */
.broker-selector-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.broker-select-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 700;
}
.broker-pills-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.broker-pill {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}
.broker-pill:hover {
    border-color: var(--primary-cyan);
    color: #fff;
    transform: translateY(-2px);
}
.broker-pill.active {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--primary-cyan);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Footer & Legal Disclaimers (OptiTrade Style Compact Text Stack) */
.footer { border-top: 1px solid var(--border-color); padding: 45px 0 35px 0; background: var(--bg-darker); }
.footer-container { display: flex; flex-direction: column; gap: 24px; max-width: 960px; margin: 0 auto; }
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-copy {
    color: #64748b;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    margin-left: auto;
    padding-left: 24px;
    white-space: nowrap;
}
.footer-legal-compact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
    font-size: 0.73rem;
    color: #64748b;
    line-height: 1.55;
    max-width: 880px;
    margin: 0 auto;
}
.footer-legal-compact p {
    margin: 0;
}
.footer-legal-compact strong {
    color: #94a3b8;
    font-weight: 700;
}
.footer-legal-compact .trademark-note {
    font-size: 0.68rem;
    color: #475569;
    margin-top: 6px;
}

/* Broker Dropdown & API Config Button */
.broker-select-in-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 8px;
    padding: 5px 12px;
}
.choose-label-in-card {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--primary-cyan);
    letter-spacing: 0.5px;
}
.broker-select-dropdown {
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    outline: none;
}
.broker-select-dropdown option {
    background: #0f172a;
    color: #f1f5f9;
}
.btn-api-config {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--primary-cyan);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-api-config:hover {
    background: rgba(0, 242, 254, 0.25);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

/* API Credentials Modal */
.api-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.api-modal-box {
    width: 100%;
    max-width: 580px;
    background: #090e17;
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 242, 254, 0.15);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.api-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}
.pricing-configured-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.35);
    color: #00ff88;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    margin: 14px 0;
    animation: glowBadge 2s infinite ease-in-out;
}
@keyframes glowBadge {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 22px rgba(0, 255, 136, 0.5); }
}
.btn-close-modal {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.btn-close-modal:hover { color: #fff; }

.modal-broker-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.m-tab-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.m-tab-btn.active {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--primary-cyan);
    color: #fff;
}

.modal-tab-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.modal-ibkr-info {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}
.modal-ibkr-info i {
    font-size: 1.2rem;
    margin-top: 2px;
}
.modal-spec-row {
    font-family: var(--font-sans);
    font-size: 0.86rem;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-spec-row code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary-cyan);
}
.modal-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modal-input-group label {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #cbd5e1;
    font-weight: 700;
}
.modal-input-group input, .modal-select-input {
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: #f1f5f9;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
}
.modal-input-group input:focus, .modal-select-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.api-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}
.security-note {
    font-size: 0.74rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .counters-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .calc-grid { grid-template-columns: 1fr; }
    .ta-setup-tabs { grid-template-columns: repeat(2, 1fr); }
    .ta-analysis-grid { grid-template-columns: 1fr; }
    .brokers-badges-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top-row { flex-direction: column; gap: 12px; align-items: center; }
}
