/* =========================================================
   BULLHACKERS.COM — DARK DEFAULT + LIGHT TOGGLE (v4)
   Logo Palette: Pitch Black (#000) + Bull Green (#16e158) + Bear Red (#ff2a55)
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    background-color: #05070a;
    color: #cbd5e1;
    margin: 0;
    padding: 94px 0 0 0;
    overflow-x: hidden;
}

@media (max-width: 767px) {
    body { padding-top: 84px; }
}

/* ==========================================
   1. FIXED NAVBAR + BIGGER LOGO + TICKER
   ========================================== */
.navbar-area.bh-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background-color: #000000;
    border-bottom: 1px solid rgba(22, 225, 88, 0.28);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75);
}

.bh-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 12px;
}

.bh-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.bh-logo:hover { color: #ffffff; text-decoration: none; }

.bh-logo-img {
    height: 54px;
    width: auto;
    display: block;
}

.bh-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #16e158 0%, #ff2a55 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 17px;
}

.bh-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 22px;
}

.bh-menu-list a {
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.bh-menu-list a:hover {
    color: #16e158;
    text-decoration: none;
}

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

.bh-theme-toggle {
    background-color: #0f151b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #facc15;
    border-radius: 9px;
    padding: 7px 10px;
    font-size: 13px;
    cursor: pointer;
}

.bh-theme-toggle:hover {
    border-color: #16e158;
}

.bh-nav-cta {
    background: linear-gradient(135deg, #16e158 0%, #10b981 100%);
    border: 1px solid #4ade80;
    color: #041208;
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(22, 225, 88, 0.3);
}

.bh-nav-cta:hover { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }

.bh-burger-btn {
    display: none;
    background-color: #0d141a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
}

.bh-mobile-drawer {
    display: none;
    background-color: #05080b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
}

.bh-mobile-drawer.open { display: block; }

.bh-mobile-drawer a {
    display: block;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

@media (max-width: 991px) {
    .bh-menu-list { display: none; }
    .bh-burger-btn { display: inline-flex; }
}

@media (max-width: 767px) {
    .bh-logo-img { height: 40px; }
    .bh-nav-cta { padding: 7px 11px; font-size: 11.5px; }
}

/* Ticker */
.bh-ticker-bar {
    background-color: #06090c;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5px 0;
    overflow: hidden;
    white-space: nowrap;
}

.bh-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    animation: bhMarquee 28s linear infinite;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
}

.bh-ticker-track:hover { animation-play-state: paused; }
.bh-tk-up { color: #16e158; }
.bh-tk-dn { color: #ff2a55; }
.bh-tk-gold { color: #facc15; }

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

/* ==========================================
   2. HERO SECTION (BLACK + GREEN + RED ACCENTS)
   ========================================== */
.game-header-banner.ch-hero-banner {
    background-color: #000000;
    background-image:
        radial-gradient(circle at 18% 25%, rgba(22, 225, 88, 0.16) 0%, transparent 44%),
        radial-gradient(circle at 86% 22%, rgba(255, 42, 85, 0.14) 0%, transparent 44%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    padding: 44px 0 72px;
    color: #ffffff;
    border-bottom: 1px solid rgba(22, 225, 88, 0.25);
}

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

@media (max-width: 991px) {
    .bh-hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .bh-hero-left { text-align: center; }
    .bh-hero-ctas, .bh-lang-wrap, .bh-hero-stats { justify-content: center; }
}

.bh-lang-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ch-lang-switch {
    display: inline-flex;
    align-items: center;
    background-color: #0e141a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    padding: 3px;
    gap: 3px;
}

.ch-lang-btn {
    border: none;
    background: transparent;
    color: #cbd5e1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.ch-lang-btn.active {
    background-color: #16e158;
    color: #000000;
}

.ch-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 42, 85, 0.14);
    border: 1px solid rgba(255, 42, 85, 0.45);
    color: #ff6b88;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 11.5px;
    font-weight: 700;
}

.bh-hero-left h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.15;
}

.ch-hero-sub {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 22px;
    max-width: 580px;
}

@media (max-width: 991px) {
    .bh-hero-left h1 { font-size: 1.75rem; }
    .ch-hero-sub { margin-left: auto; margin-right: auto; }
}

.bh-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.bh-cta-main {
    background: linear-gradient(135deg, #16e158 0%, #10b981 100%);
    color: #041208;
    border: none;
    border-radius: 12px;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(22, 225, 88, 0.35);
}

.bh-cta-sec {
    background-color: #0c131a;
    border: 1.5px solid #ff2a55;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.bh-cta-sec:hover { background-color: #210b12; color: #ffffff; text-decoration: none; }

.bh-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12.5px;
    color: #94a3b8;
}

.bh-hero-stats strong { color: #ffffff; font-size: 15px; display: block; }

/* Terminal Warmup Card */
.bh-terminal-card {
    background-color: #080d12;
    border: 1.5px solid rgba(22, 225, 88, 0.38);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.bh-term-head {
    background-color: #0f171f;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bh-dots { display: inline-flex; gap: 6px; }
.bh-dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.bh-term-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.bh-term-top { display: flex; align-items: center; gap: 14px; }

.ch-warmup-visual {
    width: 118px;
    height: 112px;
    background-color: #000000;
    border: 1px solid #1e293b;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
}

.ch-warmup-btns { display: flex; flex-wrap: wrap; gap: 7px; }

.ch-w-btn {
    flex: 1;
    min-width: 110px;
    border: 1.5px solid #2a3441;
    background-color: #0e141b;
    color: #f8fafc;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.ch-w-btn:hover:not(:disabled) { border-color: #16e158; background-color: #112217; }
.ch-w-btn.right { background-color: #14532d; border-color: #22c55e; color: #86efac; }
.ch-w-btn.wrong { background-color: #7f1d1d; border-color: #ef4444; color: #fecaca; }

.ch-warmup-explain {
    padding: 9px 11px;
    border-radius: 10px;
    background-color: rgba(22, 225, 88, 0.1);
    border: 1px solid rgba(22, 225, 88, 0.35);
    font-size: 12px;
    color: #e2e8f0;
    display: none;
    line-height: 1.45;
}

/* ==========================================
   3. DARK THEME PLAYER BAR & SECTION HEADS
   ========================================== */
.ch-player-bar {
    background-color: #0b1016;
    border: 1.5px solid #1e293b;
    border-radius: 16px;
    padding: 14px 22px;
    margin: -34px auto 34px;
    position: relative;
    z-index: 6;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ch-rank-box { display: flex; align-items: center; gap: 12px; }

.ch-rank-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #16e158 0%, #059669 100%);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

#homeRankName { color: #ffffff !important; }
.ch-xp-wrap { flex: 1; min-width: 170px; max-width: 280px; }
.ch-xp-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #cbd5e1; margin-bottom: 5px; }
.ch-xp-track { height: 9px; background-color: #1e293b; border-radius: 10px; overflow: hidden; }
.ch-xp-fill { height: 100%; width: 10%; background: linear-gradient(90deg, #16e158, #ff2a55); border-radius: 10px; }

.bh-wallet-chip {
    background-color: #0f1d15;
    border: 1.5px solid #16e158;
    border-radius: 12px;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.bh-wallet-chip div:last-child div:last-child { color: #ffffff !important; }

.bh-sec-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }

.bh-sec-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #16e158;
    background-color: rgba(22, 225, 88, 0.12);
    border: 1px solid rgba(22, 225, 88, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.bh-sec-head h2 { font-weight: 800; color: #ffffff; font-size: 1.75rem; margin: 0 0 8px; }
.bh-sec-head p { color: #94a3b8; font-size: 14.5px; margin: 0; line-height: 1.55; }

.ch-track-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    background-color: #0f151b;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-top: 14px;
}

.ch-track-tab {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 8px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.ch-track-tab.active {
    background: linear-gradient(135deg, #16e158 0%, #10b981 100%);
    color: #000000;
}

.ch-track-tab .badge-soon {
    background-color: #ff2a55;
    color: #ffffff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

/* ==========================================
   4. DARK SIMULATOR CARDS & GUIDES & FAQ
   ========================================== */
.ch-mod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}

@media (max-width: 767px) { .ch-mod-grid { grid-template-columns: 1fr; } }

.ch-mod-card {
    background-color: #0b1016;
    border: 1.5px solid #1e293b;
    border-top: 4px solid #16e158;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.ch-mod-card:hover { border-color: #334155; }
.ch-mod-card.core-pillar { border-color: rgba(22, 225, 88, 0.45); border-top: 4px solid #ff2a55; background: linear-gradient(180deg, #0d1419 0%, #09130d 100%); }
.ch-mod-card.featured { border-top: 4px solid #16e158; }
.ch-mod-card.blue-top { border-top: 4px solid #ff2a55; }
.ch-mod-card.locked-preview { background: linear-gradient(135deg, #080c10 0%, #170a10 100%); border: 1.5px solid rgba(255, 42, 85, 0.45); border-top: 4px solid #ff2a55; }

.ch-mod-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ch-step-pill { font-size: 10.5px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.4px; }
.step-green { background-color: rgba(22, 225, 88, 0.16); color: #4ade80; }
.step-blue { background-color: rgba(255, 42, 85, 0.16); color: #ff6b88; }
.step-indigo { background-color: #16e158; color: #000000; }
.step-purple { background-color: rgba(255, 42, 85, 0.22); color: #ff8aa1; }
.step-amber { background-color: rgba(250, 204, 21, 0.18); color: #fde047; }

.ch-mod-card h4 { font-weight: 800; font-size: 1.15rem; color: #ffffff; margin: 0 0 7px; }
.ch-mod-desc { font-size: 13.5px; color: #94a3b8; line-height: 1.55; margin: 0 0 14px; }
.ch-sub-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ch-sub-pill { background-color: #131b24; border: 1px solid #263342; color: #cbd5e1; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 8px; }
.ch-sub-pill.clickable { cursor: pointer; border-color: rgba(22, 225, 88, 0.4); color: #4ade80; }
.ch-sub-pill.clickable:hover { background-color: #16e158; color: #000000; }
.ch-mod-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.ch-btn-primary {
    flex: 1; min-width: 140px;
    background: linear-gradient(135deg, #16e158 0%, #10b981 100%);
    color: #041208; border: none; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; font-weight: 800; cursor: pointer; text-align: center;
}
.ch-btn-blue {
    flex: 1; min-width: 130px;
    background-color: #ff2a55; color: #ffffff; border: none; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; font-weight: 800; cursor: pointer; text-align: center;
}
.ch-btn-blue:hover { background-color: #e11d48; }
.ch-btn-outline {
    background-color: #121820; border: 1.5px solid #2e3a48; color: #e2e8f0; border-radius: 10px; padding: 9px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.ch-btn-outline:hover { border-color: #16e158; color: #16e158; }

/* Editorial Knowledge Guides (Dark) */
.bh-guides-band {
    background-color: #080c11;
    border-top: 1px solid #1a222d;
    border-bottom: 1px solid #1a222d;
    padding: 52px 0;
}

.bh-article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 767px) { .bh-article-grid { grid-template-columns: 1fr; } }

.bh-article-card {
    background-color: #0d131a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 24px;
    display: flex; flex-direction: column; justify-content: space-between;
}

.bh-art-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: #16e158; margin-bottom: 10px; }
.bh-article-card h3 { font-size: 1.18rem; font-weight: 800; color: #ffffff; margin: 0 0 10px; line-height: 1.35; }
.bh-article-card p { font-size: 13.8px; color: #94a3b8; line-height: 1.68; margin: 0 0 14px; }
.bh-art-points { padding-left: 18px; margin: 0 0 16px; font-size: 13px; color: #cbd5e1; line-height: 1.6; }

/* Why Band + Rules + FAQ (Dark) */
.bh-why-band { padding: 48px 0 24px; }
.bh-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 767px) { .bh-why-grid { grid-template-columns: 1fr; } }

.bh-why-card { background-color: #0b1016; border: 1px solid #1e293b; border-radius: 16px; padding: 22px; }
.bh-why-icon { width: 42px; height: 42px; border-radius: 11px; background-color: rgba(22, 225, 88, 0.14); color: #16e158; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.bh-why-card h5 { font-weight: 800; color: #ffffff; font-size: 1.05rem; margin: 0 0 6px; }
.bh-why-card p { font-size: 13px; color: #94a3b8; line-height: 1.55; margin: 0; }

.rules-card { background-color: #0b1016; border-radius: 18px; border: 1.5px solid #1e293b; padding: 22px; margin: 0 auto 32px; }
.rules-card h5 { font-weight: 800; color: #ffffff; margin: 0 0 12px; }
.rules-card li { font-size: 13.5px; color: #cbd5e1; margin-bottom: 7px; line-height: 1.55; }

.bh-faq-band { padding: 24px 0 52px; }
.bh-faq-item { background-color: #0b1016; border: 1px solid #1e293b; border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.bh-faq-q { width: 100%; text-align: left; background: transparent; border: none; padding: 15px 18px; font-size: 14px; font-weight: 800; color: #ffffff; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.bh-faq-a { display: none; padding: 12px 18px 16px; font-size: 13.5px; color: #94a3b8; line-height: 1.65; border-top: 1px solid #1e293b; }
.bh-faq-item.open .bh-faq-a { display: block; }

/* ==========================================
   5. LIGHT THEME TOGGLE OVERRIDES (body.bh-light-mode)
      Note: Navbar & Hero stay Black/Dark so Logo blends cleanly!
   ========================================== */
body.bh-light-mode { background-color: #f4f7f9; color: #334155; }
body.bh-light-mode .ch-player-bar { background-color: #ffffff; border-color: #e2e8f0; box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08); }
body.bh-light-mode #homeRankName { color: #0f172a !important; }
body.bh-light-mode .ch-xp-meta { color: #334155; }
body.bh-light-mode .ch-xp-track { background-color: #e2e8f0; }
body.bh-light-mode .bh-wallet-chip { background-color: #f0fdf4; border-color: #4ade80; }
body.bh-light-mode .bh-wallet-chip div:last-child div:last-child { color: #0f172a !important; }
body.bh-light-mode .bh-sec-head h2 { color: #090d14; }
body.bh-light-mode .bh-sec-head p { color: #475569; }
body.bh-light-mode .ch-track-tabs { background-color: #e2e8f0; border-color: #cbd5e1; }
body.bh-light-mode .ch-track-tab { color: #334155; }
body.bh-light-mode .ch-mod-card { background-color: #ffffff; border-color: #e2e8f0; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05); }
body.bh-light-mode .ch-mod-card.core-pillar { background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%); border-color: #86efac; }
body.bh-light-mode .ch-mod-card.locked-preview { background: linear-gradient(135deg, #000000 0%, #15090e 100%); }
body.bh-light-mode .ch-mod-card:not(.locked-preview) h4 { color: #0f172a; }
body.bh-light-mode .ch-mod-card:not(.locked-preview) .ch-mod-desc { color: #475569; }
body.bh-light-mode .ch-mod-card:not(.locked-preview) .ch-sub-pill { background-color: #f1f5f9; border-color: #cbd5e1; color: #334155; }
body.bh-light-mode .ch-mod-card:not(.locked-preview) .ch-btn-outline { background-color: #ffffff; border-color: #cbd5e1; color: #1e293b; }
body.bh-light-mode .bh-guides-band { background-color: #ffffff; border-color: #e2e8f0; }
body.bh-light-mode .bh-article-card { background-color: #f8fafc; border-color: #e2e8f0; }
body.bh-light-mode .bh-article-card h3 { color: #0f172a; }
body.bh-light-mode .bh-article-card p, body.bh-light-mode .bh-art-points { color: #475569; }
body.bh-light-mode .bh-why-card, body.bh-light-mode .rules-card, body.bh-light-mode .bh-faq-item { background-color: #ffffff; border-color: #e2e8f0; }
body.bh-light-mode .bh-why-card h5, body.bh-light-mode .rules-card h5, body.bh-light-mode .bh-faq-q { color: #0f172a; }
body.bh-light-mode .bh-why-card p, body.bh-light-mode .rules-card li, body.bh-light-mode .bh-faq-a { color: #475569; border-top-color: #f1f5f9; }

/* FOOTER */
.footer-area.bh-footer { background-color: #000000; color: #94a3b8; padding: 44px 0 28px; border-top: 2px solid rgba(22, 225, 88, 0.28); font-size: 13px; }
.bh-footer h6 { color: #ffffff; font-weight: 800; margin-bottom: 12px; font-size: 14px; }
.bh-footer a { color: #cbd5e1; text-decoration: none; }
.bh-footer a:hover { color: #16e158; text-decoration: none; }
.copy-right-area.bh-copyright { background-color: #040608; color: #64748b; padding: 13px 0; font-size: 12px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* ==========================================
   6. POLICY, EXPLORER & CHART HUNTER MODALS
   ========================================== */
.bh-policy-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, 0.85); z-index: 2147482500; display: none; align-items: center; justify-content: center; padding: 16px; }
.bh-policy-modal.open { display: flex; }
.bh-policy-box { background-color: #0d131a; color: #e2e8f0; border: 1px solid #334155; border-radius: 18px; max-width: 700px; width: 100%; max-height: 84vh; display: flex; flex-direction: column; overflow: hidden; }
.bh-policy-head { background-color: #000000; color: #ffffff; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #16e158; }
.bh-policy-body { padding: 20px; overflow-y: auto; font-size: 13.5px; line-height: 1.65; }

.ch-learn-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, 0.88); z-index: 2147482000; display: none; align-items: center; justify-content: center; padding: 14px; }
.ch-learn-modal.open { display: flex; }
.ch-learn-sheet { background-color: #ffffff; border-radius: 20px; max-width: 920px; width: 100%; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6); }
.ch-learn-head { background-color: #000000; color: #ffffff; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 2px solid #16e158; }
.ch-tier-tabs { display: flex; gap: 6px; padding: 10px 16px; background-color: #f1f5f9; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; }
.ch-tier-btn { border: 1.5px solid #cbd5e1; background-color: #ffffff; color: #334155; border-radius: 10px; padding: 6px 12px; font-size: 12px; font-weight: 800; cursor: pointer; }
.ch-tier-btn.active { background-color: #000000; border-color: #16e158; color: #16e158; }
.ch-learn-body { padding: 16px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 660px) { .ch-learn-body { grid-template-columns: 1fr; } }
.ch-candle-item { border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 12px; background-color: #f8fafc; display: flex; gap: 12px; align-items: center; }
.ch-candle-svg-box { width: 92px; height: 90px; background-color: #070b0e; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ch-candle-info { flex: 1; min-width: 0; }
.ch-candle-info h6 { font-weight: 800; color: #0f172a; margin-bottom: 4px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px; font-size: 13.5px; }
.ch-candle-job { font-size: 12px; color: #334155; line-height: 1.45; }
.ch-candle-loc { font-size: 11px; font-weight: 700; color: #15803d; margin-top: 4px; }
.ch-learn-footer { padding: 10px 16px; background-color: #f8fafc; border-top: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

.app-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; background-color: #090d16; z-index: 2147483000; display: none; flex-direction: column; overflow: hidden; -webkit-user-select: none; user-select: none; }
.app-modal.light-theme { background-color: #e2e8f0; }
.app-modal.open { display: flex; }
.app-topbar { flex-shrink: 0; height: 48px; background-color: #000000; border-bottom: 1px solid rgba(22, 225, 88, 0.25); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; color: #ffffff; }
.app-modal.light-theme .app-topbar { background-color: #1e293b; }
.app-bar-actions { display: flex; align-items: center; }
.app-bar-actions .app-bar-btn + .app-bar-btn { margin-left: 4px; }
.app-bar-btn { background-color: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; border-radius: 8px; padding: 5px 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.app-bar-btn.music-on { background-color: #16a34a; border-color: #4ade80; }
.app-bar-btn.muted-btn { background-color: #dc2626; border-color: #f87171; }
.app-bar-btn.examples-btn { background-color: #2563eb; border-color: #60a5fa; }
.app-title-center { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 5px; }
@media (max-width: 440px) { .app-bar-btn { padding: 4px 6px; font-size: 11px; } .app-title-center { font-size: 12px; } .hide-xs { display: none; } }

.app-body { flex: 1; min-height: 0; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 18px; padding: 12px 18px; max-width: 1180px; width: 100%; margin: 0 auto; }
.canvas-box { position: relative; flex: 1; min-width: 0; height: 82vh; max-height: 580px; max-width: 740px; border-radius: 16px; overflow: hidden; border: 2.5px solid #334155; background-color: #131722; box-shadow: 0 0 28px rgba(0, 0, 0, 0.55); }
.app-modal.light-theme .canvas-box { border-color: #94a3b8; background-color: #ffffff; }
#chCanvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.ohlc-hud { position: absolute; top: 7px; left: 10px; right: 170px; pointer-events: none; font-size: 11px; font-weight: 700; color: #cbd5e1; display: flex; flex-wrap: wrap; gap: 7px; z-index: 4; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.app-modal.light-theme .ohlc-hud { color: #334155; text-shadow: none; }
.replay-bar { position: absolute; top: 6px; right: 54px; display: flex; align-items: center; gap: 4px; z-index: 6; }
.replay-btn { background-color: rgba(30, 41, 59, 0.85); border: 1px solid #475569; color: #ffffff; border-radius: 7px; padding: 3px 7px; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.replay-btn.active { background-color: #16a34a; border-color: #4ade80; }
.draw-banner { position: absolute; top: 30px; left: 10px; right: 56px; background-color: rgba(22, 163, 74, 0.94); border: 1px solid #86efac; color: #ffffff; border-radius: 10px; padding: 6px 10px; font-size: 11.5px; font-weight: 700; display: none; align-items: center; justify-content: space-between; gap: 8px; z-index: 7; }
.draw-banner button { background-color: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.4); color: #ffffff; border-radius: 6px; padding: 2px 8px; font-size: 10.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.scanner-confirm-bar { position: absolute; bottom: 30px; left: 10px; right: 10px; background-color: rgba(15, 23, 42, 0.95); border: 1.5px solid #16e158; border-radius: 12px; padding: 8px 10px; display: none; flex-direction: column; gap: 6px; z-index: 8; }
.scanner-confirm-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 800; color: #4ade80; }
.scanner-confirm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-pick-btn { background-color: #1e293b; border: 1px solid #475569; color: #ffffff; border-radius: 8px; padding: 5px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.sc-pick-btn:hover { background-color: #16a34a; border-color: #4ade80; }
.canvas-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, 0.92); display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; color: #ffffff; z-index: 12; }
.canvas-overlay h4 { font-weight: 800; color: #ffffff; margin-bottom: 8px; }
.canvas-overlay p { font-size: 13.5px; color: #cbd5e1; margin-bottom: 18px; }

.examples-overlay { position: absolute; top: 48px; right: 0; bottom: 0; left: 0; background-color: #090d14; color: #ffffff; z-index: 30; display: none; flex-direction: column; overflow: hidden; }
.app-modal.light-theme .examples-overlay { background-color: #f1f5f9; color: #0f172a; }
.examples-overlay.open { display: flex; }
.ex-header { flex-shrink: 0; padding: 10px 14px; background-color: #131a24; border-bottom: 1px solid #334155; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.app-modal.light-theme .ex-header { background-color: #ffffff; border-bottom-color: #cbd5e1; }
.ex-select { background-color: #090d14; color: #ffffff; border: 1.5px solid #16e158; border-radius: 9px; padding: 6px 10px; font-size: 13px; font-weight: 700; max-width: 240px; }
.app-modal.light-theme .ex-select { background-color: #f8fafc; color: #0f172a; }
.ex-body { flex: 1; overflow-y: auto; padding: 14px; max-width: 1080px; width: 100%; margin: 0 auto; }
.ex-tip-banner { background-color: rgba(22, 225, 88, 0.12); border: 1px solid #16a34a; border-radius: 11px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 14px; line-height: 1.45; }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 820px) { .ex-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .ex-grid { grid-template-columns: 1fr; } }
.ex-card { background-color: #131722; border: 1.5px solid #334155; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.app-modal.light-theme .ex-card { background-color: #ffffff; border-color: #cbd5e1; }
.ex-card-title { font-size: 12.5px; font-weight: 800; color: #4ade80; display: flex; justify-content: space-between; align-items: center; }
.app-modal.light-theme .ex-card-title { color: #15803d; }
.ex-thumb-canvas { width: 100%; height: 125px; border-radius: 9px; background-color: #090d16; display: block; }
.app-modal.light-theme .ex-thumb-canvas { background-color: #f8fafc; border: 1px solid #e2e8f0; }
.ex-card-desc { font-size: 11px; color: #94a3b8; line-height: 1.35; }
.app-modal.light-theme .ex-card-desc { color: #475569; }
.ex-draw-btn { background-color: #16a34a; color: #ffffff; border: none; border-radius: 8px; padding: 7px; font-size: 11.5px; font-weight: 800; cursor: pointer; }

.control-dock { background-color: #0e131b; border: 1px solid #2a2e39; color: #ffffff; border-radius: 16px; padding: 15px; width: 365px; max-height: 86vh; overflow-y: auto; flex-shrink: 0; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5); }
.app-modal.light-theme .control-dock { background-color: #ffffff; border-color: #cbd5e1; color: #0f172a; }
.dock-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: #94a3b8; margin-bottom: 5px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.mode-pill, .diff-pill { padding: 7px 6px; border-radius: 9px; border: 1.5px solid #2a2e39; background-color: #1a212d; font-weight: 700; font-size: 11.5px; color: #cbd5e1; cursor: pointer; }
.app-modal.light-theme .mode-pill, .app-modal.light-theme .diff-pill { background-color: #f8fafc; border-color: #cbd5e1; color: #475569; }
.mode-pill.active, .diff-pill.active { background-color: #16a34a; border-color: #4ade80; color: #ffffff; }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 11px; }
.stat-box { background-color: #1a212d; border: 1px solid #2a2e39; border-radius: 10px; padding: 6px 4px; text-align: center; }
.app-modal.light-theme .stat-box { background-color: #f8fafc; border-color: #e2e8f0; }
.stat-box small { display: block; font-size: 9px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }
.stat-box strong { font-size: 14.5px; font-weight: 800; color: #facc15; }
.app-modal.light-theme .stat-box strong { color: #0f172a; }
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 9px; }
.choice-btn { background-color: #1a212d; border: 1.5px solid #363a45; color: #f1f5f9; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.app-modal.light-theme .choice-btn { background-color: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.choice-btn.correct { background-color: #14532d; border-color: #22c55e; color: #86efac; }
.choice-btn.wrong { background-color: #7f1d1d; border-color: #ef4444; color: #fecaca; }
.tip-box { display: none; background-color: rgba(22, 225, 88, 0.12); border: 1px solid #16a34a; border-radius: 10px; padding: 8px 10px; font-size: 11.5px; line-height: 1.4; color: #e2e8f0; margin-bottom: 9px; }
.app-modal.light-theme .tip-box { background-color: #f0fdf4; color: #1e293b; }
.pattern-bank { background-color: #1a212d; border: 1px solid #2a2e39; border-radius: 12px; padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.app-modal.light-theme .pattern-bank { background-color: #f8fafc; border-color: #cbd5e1; }
.pat-chip { background-color: #0e131b; border: 1px solid #475569; border-radius: 14px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; color: #e2e8f0; }
.app-modal.light-theme .pat-chip { background-color: #ffffff; border-color: #cbd5e1; color: #1e293b; }
.pat-chip.found { background-color: #14532d; border-color: #22c55e; color: #86efac; text-decoration: line-through; }
.scanner-help-note { font-size: 11px; color: #94a3b8; margin-bottom: 10px; line-height: 1.4; }
.dock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dock-actions .btn { font-weight: 700; font-size: 12.5px; border-radius: 10px; padding: 8px 6px; }
.dock-bottom-bar { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.app-modal.light-theme .dock-bottom-bar { border-top-color: #e2e8f0; }
.dock-back-btn { width: 100%; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 800; cursor: pointer; border: 1.5px solid #fca5a5; background-color: #fee2e2; color: #b91c1c; }

.mobile-top-hud, .mobile-scanner-strip, .mobile-spotter-area, .mobile-bottom-bar { display: none; }
@media (max-width: 991px) {
    .app-body { flex-direction: column; justify-content: space-between; padding: 6px 8px 8px; gap: 5px; }
    .control-dock { display: none; }
    .mobile-top-hud { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 560px; flex-shrink: 0; }
    .mobile-mode-diff-row { display: grid; grid-template-columns: 1.2fr 1.3fr; gap: 5px; }
    .mobile-mode-row, .mobile-diff-row { display: grid; gap: 4px; }
    .mobile-mode-row { grid-template-columns: 1fr 1fr; }
    .mobile-diff-row { grid-template-columns: 1fr 1fr 1fr; }
    .mobile-mode-row .mode-pill, .mobile-diff-row .diff-pill { padding: 5px 2px; font-size: 10.5px; border-radius: 8px; }
    .mobile-stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .m-stat-pill { background-color: #131722; border: 1px solid #2a2e39; border-radius: 8px; padding: 2px 4px; text-align: center; color: #ffffff; }
    .app-modal.light-theme .m-stat-pill { background-color: #ffffff; border-color: #cbd5e1; color: #0f172a; }
    .m-stat-pill small { display: block; font-size: 8px; color: #94a3b8; text-transform: uppercase; font-weight: 700; }
    .m-stat-pill strong { font-size: 12px; font-weight: 800; color: #facc15; }
    .app-modal.light-theme .m-stat-pill strong { color: #16a34a; }
    .mobile-scanner-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: 100%; max-width: 560px; flex-shrink: 0; }
    .mobile-scanner-strip .pat-chip { font-size: 10px; padding: 2px 8px; }
    .canvas-box { width: 100%; max-width: 560px; height: auto; flex: 1; min-height: 180px; border-width: 2px; }
    .mobile-spotter-area { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 560px; flex-shrink: 0; }
    .m-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
    .m-choice-grid .choice-btn { padding: 7px 8px; font-size: 11px; border-radius: 9px; }
    .m-tip-bar { display: none; background-color: rgba(22, 225, 88, 0.15); border: 1px solid #16a34a; color: #e2e8f0; border-radius: 8px; padding: 5px 8px; font-size: 10.5px; line-height: 1.3; }
    .app-modal.light-theme .m-tip-bar { background-color: #f0fdf4; color: #0f172a; }
    .mobile-bottom-bar { display: grid; grid-template-columns: 1fr 1fr 1fr 0.8fr; gap: 5px; width: 100%; max-width: 560px; flex-shrink: 0; }
    .m-action-btn { border-radius: 10px; padding: 8px 3px; font-size: 11px; font-weight: 800; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
    .m-action-btn:disabled { opacity: 0.45; }
    .m-back-btn { background-color: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
}