/* ================================================================
   MATRIX SAHAM — User Guide · Mock & UI Components
   Mengikuti design system panduan (emerald, IBM Plex, radius)
   ================================================================ */

/* ── Mock wrapper & label ─────────────────────────────────────── */
.mock {
    margin: 18px 0 4px;
}

.mock-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.mock-label::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ── Callout / Tip box ────────────────────────────────────────── */
.callout {
    display: flex;
    gap: 10px;
    margin: 16px 0 4px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    line-height: 1.55;
    border: 1px solid transparent;
}

.callout .callout-ico { flex-shrink: 0; line-height: 1.4; }
.callout p { margin: 0; color: var(--text-secondary); }
.callout strong { color: var(--text-primary); }

.callout-tip {
    background: var(--bg-hero);
    border-color: var(--accent-light);
}
.callout-warn {
    background: #FFFBEB;
    border-color: #FDE68A;
}
.callout-note {
    background: var(--bg-location);
    border-color: #BFDBFE;
}

/* ── Mock: Telegram Chat ──────────────────────────────────────── */
.mock-chat {
    max-width: 460px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
}

.mock-chat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--text-inverse);
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.85rem;
}

.mock-chat-head .bot-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.mock-chat-head .bot-status {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.85;
}

.mock-chat-body {
    padding: 14px;
    background: #F0FDF4;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bubble {
    max-width: 84%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
}

.bubble.user {
    align-self: flex-end;
    background: var(--accent-light);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.bubble.bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.bubble.bot .verdict {
    font-weight: 700;
    display: inline-block;
    margin-bottom: 2px;
}
.v-clear { color: var(--accent-dark); }
.v-waspada { color: #D97706; }
.v-siaga { color: var(--brand-red); }

.bubble.bot .row { display: flex; gap: 6px; align-items: baseline; }
.bubble.bot .tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.bubble.bot .up { color: var(--accent-dark); }
.bubble.bot .down { color: var(--brand-red); }

.bubble.bot .hint {
    display: block;
    margin-top: 6px;
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ── Mock: Terminal Card (watchlist / panels) ─────────────────── */
.mock-terminal {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
    max-width: 520px;
}

.mock-terminal-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-primary);
    background: var(--bg-card);
}

.mock-terminal-head .mini-badge {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: var(--accent-light);
    padding: 2px 8px;
    border-radius: 20px;
}

.mock-terminal-body { padding: 12px 14px; }

/* watchlist rows */
.wl-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
}
.wl-row:last-child { border-bottom: none; }
.wl-ticker { font-family: var(--font-mono); font-weight: 600; }
.wl-name { color: var(--text-muted); font-size: 0.72rem; }
.wl-delta { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; }
.wl-delta.up { color: var(--accent-dark); }
.wl-delta.down { color: var(--brand-red); }
.wl-spark { width: 48px; height: 18px; }

/* sentiment gauge */
.gauge-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.gauge-score { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.gauge-zone { font-size: 0.8rem; font-weight: 600; }
.gauge-note { font-size: 0.76rem; color: var(--text-muted); }
.spider { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.spider .sp {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
}

/* mini candlestick */
.mock-chart {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 10px;
    max-width: 520px;
}
.mock-chart-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.mock-chart-head .legend {
    margin-left: auto;
    display: flex;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
}
.mock-chart-head .legend i { font-style: normal; }

/* ── Mock: KSEI table ─────────────────────────────────────────── */
.mock-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.82rem;
    max-width: 560px;
}
.mock-table table { width: 100%; border-collapse: collapse; }
.mock-table th {
    text-align: left;
    background: var(--bg-card);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 8px 12px;
    font-weight: 600;
}
.mock-table td {
    padding: 8px 12px;
    border-top: 1px solid var(--border-light);
}
.mock-table td.num { font-family: var(--font-mono); text-align: right; }
.mock-table .pos { color: var(--accent-dark); }
.mock-table .neg { color: var(--brand-red); }
.mock-table .tk { font-family: var(--font-mono); font-weight: 600; }

/* mini pie (komposisi) */
.pie-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 460px; }
.pie-legend { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; }
.pie-legend .lg { display: flex; align-items: center; gap: 8px; }
.pie-legend .sw { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* ── Mock: blockholder bar (Smart Money) ──────────────────────── */
.mock-bar {
    display: flex;
    height: 26px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 480px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
}
.mock-bar span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    white-space: nowrap;
}

/* ── Mock: net-flow bars (Foreign Flow) ───────────────────────── */
.flow-bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; max-width: 480px; }
.flow-bars .bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    min-height: 4px;
}
.flow-bars .bar.up { background: var(--accent); }
.flow-bars .bar.down { background: var(--brand-red); }
.flow-axis { display: flex; justify-content: space-between; font-size: 0.66rem; color: var(--text-muted); max-width: 480px; margin-top: 4px; }

/* ── Mock: web lock overlay (free user) ───────────────────────── */
.mock-lock {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 480px;
}
.mock-lock-body {
    padding: 16px;
    filter: blur(2.5px);
    opacity: 0.55;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.mock-lock-body .lk-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-primary); }
.mock-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(249,250,251,0.7);
    text-align: center;
    padding: 12px;
}
.mock-lock-overlay .lk-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-dark);
    background: var(--accent-light);
    padding: 3px 10px;
    border-radius: 20px;
}
.mock-lock-overlay .lk-text { font-size: 0.8rem; color: var(--text-secondary); }

/* ── Stepper (Mulai Cepat) ────────────────────────────────────── */
.quickstart {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}
.quickstart-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.quickstart-sub { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 20px; }
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    counter-reset: step;
}
.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -12px;
    left: 16px;
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 0 0 4px var(--bg-card);
}
.step h4 { font-size: 0.9rem; margin: 6px 0 6px; color: var(--text-primary); }
.step p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.step .step-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.76rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
}

/* ── Numbered steps inside cards ──────────────────────────────── */
.feature-part ol {
    list-style: none;
    counter-reset: li;
    padding-left: 0;
}
.feature-part ol > li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    counter-increment: li;
}
.feature-part ol > li::before {
    content: counter(li);
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    background: var(--accent-light);
    color: var(--accent-dark);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Tier filter ──────────────────────────────────────────────── */
.filter-group {
    display: inline-flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
}
.filter-btn {
    border: none;
    background: none;
    padding: 4px 12px;
    border-radius: 16px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.filter-btn[aria-pressed="true"] {
    background: var(--accent);
    color: #fff;
}
.search-meta { flex-wrap: wrap; gap: 10px; }

/* ── Command Reference table ──────────────────────────────────── */
.cmd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.cmd-table th {
    text-align: left;
    background: var(--bg-card);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 10px 12px;
    font-weight: 600;
}
.cmd-table td {
    padding: 10px 12px;
    border-top: 1px solid var(--border-light);
    vertical-align: top;
    color: var(--text-secondary);
}
.cmd-table code {
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: var(--accent-dark);
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    background: #fff;
}
.faq-item summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.92rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    -webkit-user-select: none;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: '';
    width: 18px; height: 18px; flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
    transition: transform 0.2s;
}
.faq-item[open] summary::before {
    transform: rotate(45deg);
}
.faq-item summary:hover { background: var(--bg-card); }
.faq-body { padding: 0 18px 16px 48px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Updated badge ────────────────────────────────────────────── */
.hero-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 14px;
}

/* ── Mock: RRG (Relative Rotation Graph) ─────────────────────── */
.rrg-wrap { max-width: 440px; }
.rrg-svg { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.rrg-legend {
    display: flex; gap: 14px; flex-wrap: wrap;
    font-size: 0.72rem; color: var(--text-muted); margin-top: 8px;
}
.rrg-legend b { color: var(--text-secondary); }

/* ── Mock: radar / spider chart ──────────────────────────────── */
.radar-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.radar-svg { width: 160px; height: 160px; flex-shrink: 0; }
.radar-note { font-size: 0.76rem; color: var(--text-muted); }

/* ── Mock: cumulative / flow line chart ──────────────────────── */
.flow-line { border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; padding: 10px; max-width: 480px; }

/* ── Mock: concentration / participation bars ────────────────── */
.hbar { max-width: 480px; }
.hbar .hb-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; margin-bottom: 6px; }
.hbar .hb-name { width: 72px; flex-shrink: 0; font-family: var(--font-mono); font-weight: 600; }
.hbar .hb-track { flex: 1; height: 10px; background: var(--bg-card); border-radius: 6px; overflow: hidden; }
.hbar .hb-track > i { display: block; height: 100%; border-radius: 6px; }
.hbar .hb-val { width: 52px; text-align: right; font-family: var(--font-mono); font-size: 0.78rem; }

/* ── Mock: sector rotation ───────────────────────────────────── */
.rotation { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 480px; font-size: 0.78rem; }
.rotation .rot-sec { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; background: var(--bg-card); }
.rotation .rot-sec.from { border-color: #FCA5A5; background: #FEF2F2; }
.rotation .rot-sec.to { border-color: #6EE7B7; background: #ECFDF5; }
.rotation .rot-arrow { color: var(--accent); font-weight: 700; }

/* ── Mock: news cards ────────────────────────────────────────── */
.news-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    max-width: 460px;
    margin-bottom: 8px;
    background: #fff;
}
.news-card .nc-head { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); }
.news-card .nc-title { font-size: 0.85rem; font-weight: 600; margin: 4px 0; color: var(--text-primary); line-height: 1.4; }
.news-card .nc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.news-card .nc-tag {
    font-family: var(--font-mono); font-size: 0.66rem;
    background: var(--accent-light); color: var(--accent-dark);
    padding: 1px 6px; border-radius: 4px;
}

/* segmented news tabs (Watchlist / Keyword / Radar) */
.news-tabs {
    display: inline-flex; gap: 4px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 3px; margin-bottom: 10px;
}
.news-tabs .nt {
    border: none; background: none; padding: 4px 14px;
    border-radius: 16px; font-family: var(--font-sans);
    font-size: 0.76rem; font-weight: 600; color: var(--text-secondary);
}
.news-tabs .nt.active { background: var(--accent); color: #fff; }
.news-meta {
    font-size: 0.74rem; color: var(--text-muted);
    margin: 0 0 8px; display: flex; align-items: center; gap: 6px;
}
.news-meta .nm-filter {
    font-family: var(--font-mono); font-size: 0.72rem;
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 1px 8px; border-radius: 4px; color: var(--text-secondary);
}

/* ── Mock: fundamental metric grid ───────────────────────────── */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 460px; }
.metric { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; background: #fff; }
.metric .m-label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.metric .m-val { font-family: var(--font-mono); font-size: 0.92rem; font-weight: 600; color: var(--text-primary); margin-top: 2px; }
.metric .m-sub { font-size: 0.66rem; color: var(--text-muted); }

/* ── Mock: analyst consensus ─────────────────────────────────── */
.consensus { max-width: 460px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; background: #fff; }
.consensus .c-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.consensus .c-tp { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; }
.consensus .c-up { font-size: 0.74rem; color: var(--accent-dark); }
.consensus .c-row { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; margin-bottom: 6px; }
.consensus .c-row .c-name { width: 42px; flex-shrink: 0; }
.consensus .c-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--bg-card); overflow: hidden; }
.consensus .c-bar > i { display: block; height: 100%; }
.consensus .c-pct { width: 36px; text-align: right; font-family: var(--font-mono); font-size: 0.72rem; }

/* ── Mock: Smart Search box + results ────────────────────────── */
.search-mock {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 8px 12px; max-width: 420px; background: #fff;
}
.search-mock .sm-ico { color: var(--text-light); flex-shrink: 0; }
.search-mock .sm-text { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-secondary); }
.search-mock .sm-caret { margin-left: auto; color: var(--text-light); }
.search-results {
    border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-width: 420px; background: #fff;
}
.search-results .sr { padding: 8px 12px; font-size: 0.82rem; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; gap: 8px; }
.search-results .sr:first-child { border-top: none; }
.search-results .sr .sr-type { font-size: 0.66rem; color: var(--text-muted); flex-shrink: 0; }
.search-results .sr .sr-name { font-family: var(--font-mono); font-weight: 600; }

/* ── Mock: holder / emiten list ──────────────────────────────── */
.holder-list { max-width: 460px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.holder-list .hl { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 0.82rem; border-top: 1px solid var(--border-light); gap: 8px; }
.holder-list .hl:first-child { border-top: none; background: var(--bg-card); font-weight: 600; }
.holder-list .hl .hl-name { color: var(--text-primary); }
.holder-list .hl .hl-pct { font-family: var(--font-mono); font-weight: 600; }

/* ── Mock: movers tags ───────────────────────────────────────── */
.movers { display: flex; flex-wrap: wrap; gap: 6px; max-width: 460px; }
.mover { font-size: 0.74rem; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); background: #fff; }
.mover .m-tk { font-family: var(--font-mono); font-weight: 600; }
.mover.entry { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }
.mover.exit { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.mover.naik { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.mover.turun { background: #FFFBEB; color: #D97706; border-color: #FDE68A; }

/* ── Mock: price alert row ───────────────────────────────────── */
.alert-row {
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 8px 12px; max-width: 460px; margin-bottom: 6px; font-size: 0.82rem; background: #fff;
}
.alert-row .ar-left { display: flex; align-items: center; gap: 8px; }
.alert-row .ar-tk { font-family: var(--font-mono); font-weight: 600; }
.alert-row .ar-badge { font-size: 0.66rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--accent-light); color: var(--accent-dark); }
.alert-row .ar-val { font-family: var(--font-mono); font-weight: 600; }
.alert-row .ar-val.up { color: var(--accent-dark); }
.alert-row .ar-val.down { color: var(--brand-red); }

/* ── Mock: keyword tags (toggle) ─────────────────────────────── */
.kw-tags { display: flex; flex-wrap: wrap; gap: 6px; max-width: 460px; }
.kw {
    font-size: 0.76rem; padding: 4px 10px; border-radius: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.kw .kw-toggle { width: 30px; height: 16px; border-radius: 10px; background: var(--accent); position: relative; flex-shrink: 0; }
.kw .kw-toggle::after { content: ''; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.kw.off .kw-toggle { background: #D1D5DB; }
.kw.off .kw-toggle::after { left: 2px; right: auto; }

/* ── Mock: Telegram Bridge / Alert Settings (faithful) ───────── */
.terminal-panel--telegram {
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: #fff; padding: 14px; max-width: 520px;
}
.terminal-tg-status { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.terminal-tg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.terminal-tg-dot.connected { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.terminal-tg-dot.disconnected { background: var(--brand-red); }
.terminal-tg-alert-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.terminal-tg-alert-row:last-child { border-bottom: none; }
.terminal-tg-alert-label { font-size: 0.82rem; color: var(--text-secondary); }
.terminal-tg-toggle {
    width: 40px; height: 22px; border-radius: 11px;
    background: var(--bg-card); border: 1px solid var(--border);
    cursor: pointer; position: relative; transition: all 0.2s; flex-shrink: 0;
}
.terminal-tg-toggle.on { background: var(--accent); border-color: var(--accent); }
.terminal-tg-toggle-knob {
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    position: absolute; top: 2px; left: 2px; transition: transform 0.2s;
}
.terminal-tg-toggle.on .terminal-tg-toggle-knob { transform: translateX(18px); }
.terminal-section-label {
    font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}
.btn-ghost {
    background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
    border-radius: 6px; padding: 6px 12px; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}

/* ── Mock: News panel (faithful to Terminal app) ─────────────── */
.terminal-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 14px;
    max-width: 520px;
}
.terminal-panel-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.terminal-panel-title { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.terminal-preview-label {
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em;
    color: var(--accent-dark); background: var(--accent-light);
    padding: 2px 8px; border-radius: 20px;
}
.terminal-news-tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.terminal-news-tab {
    padding: 6px 14px; font-size: 0.78rem; font-weight: 600;
    border: 1px solid var(--border); border-radius: 6px;
    background: transparent; color: var(--text-muted);
    cursor: pointer; font-family: var(--font-sans);
}
.terminal-news-tab.active {
    background: rgba(16,185,129,0.1); border-color: var(--accent); color: var(--accent-dark);
}
.terminal-news-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.terminal-news-item:last-child { border-bottom: none; }
.terminal-news-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.terminal-news-source {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    color: var(--accent-dark); background: rgba(16,185,129,0.1);
    padding: 1px 6px; border-radius: 3px;
}
.terminal-news-time { font-size: 0.7rem; color: var(--text-muted); }
.terminal-news-title { font-size: 0.88rem; font-weight: 600; line-height: 1.4; color: var(--text-primary); }
.terminal-news-summary { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; line-height: 1.45; }
.terminal-news-sentiment { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; margin-top: 4px; }
.terminal-news-ticker-tag {
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
    color: var(--brand-gold); background: rgba(199,154,61,0.12);
    padding: 1px 6px; border-radius: 3px;
}
.terminal-kw-box { margin-bottom: 10px; }
.terminal-kw-input-row { display: flex; gap: 6px; margin-bottom: 8px; }
.terminal-kw-input {
    flex: 1; font-family: var(--font-sans); font-size: 0.82rem;
    padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px;
    background: var(--bg-card); color: var(--text-primary);
}
.btn-primary { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 6px 12px; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.btn-sm { padding: 4px 10px; font-size: 0.72rem; }
.terminal-kw-presets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 0.7rem; margin-bottom: 6px; }
.terminal-kw-presets-label { color: var(--text-muted); }
.terminal-kw-preset {
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary);
    border-radius: 20px; padding: 2px 10px; font-size: 0.7rem; cursor: pointer;
}
.terminal-kw-hint { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 8px; }
.terminal-kw-list { display: flex; gap: 6px; flex-wrap: wrap; }
.terminal-kw-chip {
    display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem;
    background: var(--accent-light); color: var(--accent-dark);
    border-radius: 20px; padding: 2px 6px 2px 10px;
}
.terminal-kw-chip .terminal-kw-del { border: none; background: none; color: var(--accent-dark); cursor: pointer; font-size: 0.9rem; line-height: 1; }

/* ── Mock: Blockholders / Smart Money (faithful bh-scope) ────── */
.bh-scope {
    font-family: var(--font-sans);
    color: var(--text-primary);
}
.bh-scope .bh-search-panel {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px 22px; margin-bottom: 22px;
}
.bh-scope .bh-search-row { display: flex; align-items: center; gap: 12px; }
.bh-scope .bh-search-icon { color: var(--brand-gold); flex-shrink: 0; }
.bh-scope .bh-search-input-wrap { flex: 1; position: relative; }
.bh-scope .bh-search-input {
    width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary);
    border-radius: var(--radius-md); padding: 12px 14px; font-size: 0.85rem; font-family: var(--font-mono);
}
.bh-scope .bh-search-input::placeholder { color: var(--text-light); }
.bh-scope .bh-search-input:focus { outline: none; border-color: var(--brand-gold); box-shadow: 0 0 0 3px rgba(199,154,61,0.15); }
.bh-scope .bh-search-type { flex-shrink: 0; }
.bh-scope .bh-search-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
    z-index: 20; box-shadow: var(--shadow-lg);
}
.bh-scope .bh-search-item {
    display: flex; align-items: baseline; gap: 10px; padding: 10px 14px;
    cursor: pointer; border-bottom: 1px solid var(--border-light);
}
.bh-scope .bh-search-item:last-child { border-bottom: none; }
.bh-scope .bh-search-item:hover { background: var(--bg-card); }
.bh-scope .bh-search-item-ticker {
    font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem;
    color: var(--brand-gold); min-width: 55px; flex-shrink: 0;
}
.bh-scope .bh-search-item-name {
    font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.bh-scope .bh-search-item-type {
    font-size: 0.62rem; color: var(--text-light); text-transform: uppercase;
    letter-spacing: 0.04em; margin-left: auto; flex-shrink: 0;
}
.bh-scope .bh-search-tag {
    display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em;
    padding: 3px 8px; border-radius: 5px;
}
.bh-scope .bh-search-tag.ticker { background: rgba(63,163,119,0.12); color: #3FA377; }
.bh-scope .bh-search-tag.shareholder { background: rgba(79,143,199,0.12); color: #4F8FC7; }
.bh-scope .bh-search-hints { margin-top: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.bh-scope .bh-hint-tag {
    font-size: 0.72rem; color: var(--text-light); background: var(--bg-card);
    padding: 4px 10px; border-radius: 5px;
}
.bh-scope .bh-panel {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 18px 20px; margin-bottom: 22px;
}
.bh-scope .bh-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.bh-scope .bh-panel-title {
    font-family: var(--font-display); font-size: 1rem; font-weight: 600;
    display: flex; align-items: center; gap: 9px;
}
.bh-scope .bh-panel-icon { font-size: 1.1rem; }
.bh-scope .bh-panel-sub {
    font-family: var(--font-sans); font-size: 0.72rem; font-weight: 500;
    color: var(--text-muted);
}
.bh-scope .bh-panel-hint { color: var(--text-muted); font-size: 0.76rem; }
.bh-scope .bh-period-btns, .bh-scope .bh-seg {
    display: inline-flex; gap: 4px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 999px; padding: 3px;
}
.bh-scope .bh-period-btn, .bh-scope .bh-seg-btn {
    background: transparent; border: none; color: var(--text-muted); cursor: pointer;
    font-family: var(--font-sans); font-size: 0.78rem; font-weight: 500;
    padding: 6px 14px; border-radius: 999px;
}
.bh-scope .bh-period-btn.active, .bh-scope .bh-seg-btn.active {
    background: var(--brand-gold); color: #fff; font-weight: 600;
}
.bh-scope .bh-movers-hint {
    color: var(--text-light); font-size: 0.72rem; font-family: var(--font-mono); margin-bottom: 12px;
}
.bh-scope .bh-movers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bh-scope .bh-movers-col { min-width: 0; }
.bh-scope .bh-movers-head {
    font-weight: 600; font-size: 0.82rem; padding: 8px 12px;
    border-radius: var(--radius-md); margin-bottom: 4px;
}
.bh-scope .bh-movers-head.pos { color: #3FA377; background: rgba(63,163,119,0.12); }
.bh-scope .bh-movers-head.neg { color: #C1483F; background: rgba(193,72,63,0.12); }
.bh-scope .bh-mover-row { cursor: pointer; }
.bh-scope .bh-table-wrap { overflow-x: auto; }
.bh-scope .bh-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.bh-scope .bh-table th {
    text-align: left; color: var(--text-muted); font-weight: 600; font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 10px;
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.bh-scope .bh-table td {
    padding: 9px 10px; border-bottom: 1px solid var(--border-light); vertical-align: top;
}
.bh-scope .bh-table .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.bh-scope .bh-table .pos { color: #3FA377; }
.bh-scope .bh-table .neg { color: #C1483F; }
.bh-scope .bh-sub {
    color: var(--text-muted); font-size: 0.7rem; margin-top: 3px; font-family: var(--font-mono);
}
.bh-scope .bh-stock-chg {
    display: inline-block; font-family: var(--font-mono); font-size: 0.68rem;
    padding: 2px 6px; border-radius: 4px; margin: 1px 2px; white-space: nowrap;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
}
.bh-scope .bh-stock-chg.pos { background: rgba(63,163,119,0.12); border-color: rgba(63,163,119,0.25); color: #3FA377; }
.bh-scope .bh-stock-chg.neg { background: rgba(193,72,63,0.12); border-color: rgba(193,72,63,0.25); color: #C1483F; }
.bh-scope .bh-broker-cell { min-width: 120px; }
.bh-scope .bh-broker-line { display: inline-block; white-space: nowrap; margin-right: 8px; font-size: 0.7rem; }
.bh-scope .bh-broker-name { color: var(--text-muted); }
.bh-scope .bh-broker-name.asing { color: #4F8FC7; }
.bh-scope .bh-broker-name.lokal { color: var(--text-secondary); }
.bh-scope .bh-kode-cell { font-family: var(--font-mono); font-weight: 700; color: var(--brand-gold); }
.bh-scope .bh-badge {
    display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 2px 7px; border-radius: 5px; vertical-align: middle;
}
.bh-scope .bh-badge.asing { background: rgba(79,143,199,0.18); color: #4F8FC7; }
.bh-scope .bh-badge.lokal { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.bh-scope .bh-code {
    display: inline-block; font-family: var(--font-mono); font-weight: 700;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
    padding: 1px 6px; border-radius: 5px; font-size: 0.7rem; margin-left: 2px;
}
.bh-scope .bh-code.asing { color: #4F8FC7; background: rgba(79,143,199,0.1); border-color: rgba(79,143,199,0.25); }
.bh-scope .bh-activity-badge {
    display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em;
    padding: 3px 8px; border-radius: 5px; white-space: nowrap;
}
.bh-scope .act-consistent-buy { background: rgba(63,163,119,0.18); color: #3FA377; }
.bh-scope .act-consistent-sell { background: rgba(193,72,63,0.18); color: #C1483F; }
.bh-scope .act-dump { background: rgba(193,72,63,0.25); color: #C1483F; border: 1px solid rgba(193,72,63,0.3); }
.bh-scope .act-active { background: rgba(199,154,61,0.16); color: var(--brand-gold); }
.bh-scope .act-sporadic { background: var(--bg-card); color: var(--text-muted); }
.bh-scope .bh-input-sm {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary);
    border-radius: var(--radius-md); padding: 8px 12px; font-size: 0.82rem; width: 100%;
}
.bh-scope .bh-conglo-row { border-bottom: 1px solid var(--border-light); }
.bh-scope .bh-conglo-header {
    display: flex; align-items: center; cursor: pointer; padding: 12px 10px;
    border-radius: var(--radius-md);
}
.bh-scope .bh-conglo-header:hover { background: var(--bg-card); }
.bh-scope .bh-conglo-main { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; }
.bh-scope .bh-conglo-chevron { color: var(--brand-gold); font-size: 0.85rem; width: 16px; text-align: center; flex-shrink: 0; }
.bh-scope .bh-conglo-name { font-weight: 600; font-size: 0.88rem; }
.bh-scope .bh-conglo-count { font-size: 0.74rem; color: var(--text-muted); margin-left: auto; }
.bh-scope .bh-conglo-total {
    font-family: var(--font-mono); font-size: 0.74rem; color: var(--brand-gold); font-weight: 600;
}
.bh-scope .bh-conglo-detail { padding: 0 10px 14px 36px; }
.bh-scope .bh-conglo-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bh-scope .bh-emiten-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
    padding: 4px 10px; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
}
.bh-scope .bh-emiten-pct { color: var(--brand-gold); font-weight: 700; }
.bh-scope .bh-section-divider {
    display: flex; align-items: center; gap: 12px; margin: 28px 0 18px;
}
.bh-scope .bh-section-divider-line { flex: 1; height: 1px; background: var(--border); }
.bh-scope .bh-section-divider-label {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    color: var(--brand-gold); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.bh-scope .ow-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 8px; }
.bh-scope .ow-metric-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 14px 16px; text-align: center;
}
.bh-scope .ow-metric-label {
    font-size: 0.66rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.04em; margin-bottom: 4px;
}
.bh-scope .ow-metric-val {
    font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700;
}
.bh-scope .ow-metric-sub { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }
.bh-scope .ow-donut-row { display: flex; align-items: center; gap: 10px; justify-content: center; }
.bh-scope .ow-donut-legend {
    font-size: 0.68rem; color: var(--text-secondary); text-align: left; line-height: 1.6;
}
.bh-scope .ow-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-right: 4px; vertical-align: middle;
}
.bh-scope .ow-section-title {
    font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-muted); font-weight: 600; margin: 18px 0 10px;
    padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.bh-scope .ow-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.bh-scope .ow-table th {
    text-align: left; color: var(--text-muted); font-weight: 600; font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 10px;
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.bh-scope .ow-table td {
    padding: 9px 10px; border-bottom: 1px solid var(--border-light); vertical-align: middle;
}
.bh-scope .ow-table .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.bh-scope .ow-link {
    color: var(--brand-gold); cursor: pointer; text-decoration: none;
    font-family: var(--font-mono); font-weight: 600;
}
.bh-scope .ow-link:hover { text-decoration: underline; }
.bh-scope .ow-badge { display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 5px; }
.bh-scope .ow-badge.foreign { background: rgba(79,143,199,0.18); color: #4F8FC7; }
.bh-scope .ow-badge.local { background: rgba(63,163,119,0.16); color: #3FA377; }
.bh-scope .ow-cls-tag {
    display: inline-block; font-size: 0.62rem; background: var(--bg-card);
    border: 1px solid var(--border); color: var(--text-muted); padding: 1px 6px; border-radius: 4px;
}
.bh-scope .ow-bar-wrap { display: flex; align-items: center; gap: 6px; }
.bh-scope .ow-bar-fill { height: 6px; background: var(--brand-gold); border-radius: 3px; min-width: 2px; }
.bh-scope .ow-bar-label { font-size: 0.68rem; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; }
.bh-scope .ow-delta-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bh-scope .ow-delta-item {
    display: flex; align-items: center; gap: 6px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 0.74rem;
}
.bh-scope .ow-delta-icon { font-size: 0.62rem; }
.bh-scope .ow-delta-action { font-family: var(--font-mono); font-weight: 600; font-size: 0.68rem; }
.bh-scope .ow-delta-up { border-color: rgba(63,163,119,0.3); }
.bh-scope .ow-delta-up .ow-delta-icon, .bh-scope .ow-delta-up .ow-delta-action { color: #3FA377; }
.bh-scope .ow-delta-down { border-color: rgba(193,72,63,0.3); }
.bh-scope .ow-delta-down .ow-delta-icon, .bh-scope .ow-delta-down .ow-delta-action { color: #C1483F; }
.bh-scope .ow-delta-new { border-color: rgba(79,143,199,0.3); }
.bh-scope .ow-delta-new .ow-delta-icon, .bh-scope .ow-delta-new .ow-delta-action { color: #4F8FC7; }
.bh-scope .ow-delta-exit { border-color: rgba(140,151,171,0.3); }
.bh-scope .ow-delta-exit .ow-delta-icon, .bh-scope .ow-delta-exit .ow-delta-action { color: var(--text-muted); }

/* ── Mock: Foreign Flow (faithful flow-scope) ────────────────── */
.flow-scope .flow-panel {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; margin-top: 20px;
}
.flow-scope .flow-panel-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.flow-scope .flow-panel-title {
    font-family: var(--font-display); font-size: 1rem; font-weight: 600;
    color: var(--text-primary); display: flex; align-items: center; gap: 8px;
}
.flow-scope .flow-panel-title-icon {
    width: 20px; height: 20px; background: rgba(199,154,61,0.12); border-radius: 6px;
    display: flex; align-items: center; justify-content: center; font-size: 0.68rem;
}
.flow-scope .flow-panel-hint {
    font-size: 0.68rem; color: var(--text-light); font-family: var(--font-mono);
    max-width: 400px; text-align: right; line-height: 1.5;
}
.flow-scope .flow-panel-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.flow-scope .flow-period-btns { display: flex; gap: 4px; flex-shrink: 0; }
.flow-scope .flow-period-btn {
    padding: 6px 14px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text-muted); font-family: var(--font-mono);
    font-size: 0.74rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.flow-scope .flow-period-btn.active { background: rgba(199,154,61,0.12); border-color: var(--brand-gold); color: var(--brand-gold); }
/* RRG */
.flow-scope .rrg-layout { display: grid; grid-template-columns: 1fr 200px; gap: 16px; }
.flow-scope .rrg-chart-container { position: relative; background: var(--bg-card); border-radius: var(--radius-md); padding: 16px; min-height: 320px; }
.flow-scope .rrg-legend { display: flex; flex-direction: column; gap: 6px; }
.flow-scope .rrg-legend-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-md); border: 1px solid transparent; font-size: 0.74rem; }
.flow-scope .rrg-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px currentColor; }
.flow-scope .rrg-legend-name { flex: 1; font-size: 0.74rem; color: var(--text-primary); }
.flow-scope .rrg-legend-value { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-light); }
/* Sector Summary table */
.flow-scope .flow-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; margin-top: 20px; }
.flow-scope .flow-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.flow-scope .flow-table th {
    background: var(--bg-card); font-family: var(--font-mono); font-size: 0.62rem;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light);
    text-align: right; padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid var(--border);
}
.flow-scope .flow-table th:first-child { text-align: left; }
.flow-scope .flow-table td {
    padding: 12px 14px; border-top: 1px solid var(--border-light); text-align: right;
    font-family: var(--font-mono); font-size: 0.78rem; white-space: nowrap;
}
.flow-scope .flow-table td:first-child { text-align: left; font-family: var(--font-sans); font-weight: 500; }
.flow-scope .flow-table tbody tr:hover td { background: var(--bg-card); }
.flow-scope .flow-table .pos { color: #3FA377; }
.flow-scope .flow-table .neg { color: #C1483F; }
.flow-scope .breadth-bar { display: inline-flex; width: 80px; height: 8px; border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.flow-scope .breadth-bar-up { background: #3FA377; height: 100%; }
.flow-scope .breadth-bar-down { background: #C1483F; height: 100%; }
.flow-scope .zone-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.flow-scope .zone-leading { background: rgba(199,154,61,0.12); color: var(--brand-gold); }
.flow-scope .zone-weakening { background: rgba(193,72,63,0.12); color: #C1483F; }
.flow-scope .zone-lagging { background: rgba(193,72,63,0.2); color: #C1483F; }
.flow-scope .zone-improving { background: rgba(63,163,119,0.12); color: #3FA377; }
/* Cumulative Flow chart */
.flow-scope .flow-chart-container { position: relative; background: var(--bg-card); border-radius: var(--radius-md); padding: 16px; }
.flow-scope .flow-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.flow-scope .flow-chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; font-family: var(--font-mono); color: var(--text-muted); cursor: pointer; padding: 3px 6px; border-radius: 4px; }
.flow-scope .flow-chart-legend-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
/* Activity Table */
.flow-scope .activity-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); }
.flow-scope .activity-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; table-layout: fixed; }
.flow-scope .activity-table thead { background: rgba(199,154,61,0.06); }
.flow-scope .activity-table thead th {
    font-size: 0.68rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.06em; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.flow-scope .activity-table tbody tr { border-left: 3px solid transparent; }
.flow-scope .activity-table tbody tr.row-pos { border-left-color: #3FA377; }
.flow-scope .activity-table tbody tr.row-neg { border-left-color: #C1483F; }
.flow-scope .activity-table tbody tr:hover { background: rgba(199,154,61,0.06); }
.flow-scope .activity-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.flow-scope .activity-ticker { font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; color: var(--text-primary); }
.flow-scope .col-rank { width: 44px; text-align: center; font-family: var(--font-mono); font-weight: 600; color: var(--text-muted); }
.flow-scope .col-ticker { text-align: left; }
.flow-scope .col-sector { text-align: left; font-size: 0.74rem; color: var(--text-muted); }
.flow-scope .col-net { text-align: right; font-family: var(--font-mono); font-weight: 600; }
.flow-scope .col-net.pos, .flow-scope .activity-table td.pos { color: #3FA377; }
.flow-scope .col-net.neg, .flow-scope .activity-table td.neg { color: #C1483F; }
.flow-scope .col-ratio { text-align: left; white-space: nowrap; }
.flow-scope .ratio-bar-wrap { display: inline-block; width: 52px; height: 6px; background: #C1483F; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 8px; opacity: 0.7; }
.flow-scope .ratio-bar-buy { height: 100%; background: #3FA377; border-radius: 3px 0 0 3px; }
.flow-scope .ratio-pct { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }
.flow-scope .col-price { text-align: right; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); }
.flow-scope .col-activity { text-align: right; font-family: var(--font-mono); font-weight: 600; color: var(--text-primary); }
/* Stock Search & Detail */
.flow-scope .stock-search-wrap { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.flow-scope .stock-search-input-wrap { flex: 1; position: relative; }
.flow-scope .stock-search-input {
    width: 100%; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-primary); font-family: var(--font-mono);
    font-size: 0.95rem; font-weight: 500; text-transform: uppercase; outline: none;
}
.flow-scope .stock-search-input::placeholder { color: var(--text-light); text-transform: none; font-family: var(--font-sans); font-weight: 400; }
.flow-scope .stock-period-btns { display: flex; gap: 4px; flex-shrink: 0; }
.flow-scope .stock-period-btn {
    padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-muted); font-family: var(--font-mono);
    font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.flow-scope .stock-period-btn.active { background: rgba(199,154,61,0.12); border-color: var(--brand-gold); color: var(--brand-gold); }
.flow-scope .stock-flow-info { margin-bottom: 16px; padding: 16px; background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); }
.flow-scope .stock-flow-info-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.flow-scope .stock-flow-info-ticker { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--brand-gold); }
.flow-scope .stock-flow-info-name { font-size: 0.88rem; color: var(--text-primary); }
.flow-scope .stock-flow-info-sector { font-size: 0.68rem; color: var(--text-light); padding: 2px 8px; background: var(--bg-card); border-radius: 4px; margin-left: auto; border: 1px solid var(--border); }
.flow-scope .stock-flow-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.flow-scope .stock-flow-stat { text-align: center; }
.flow-scope .stock-flow-stat-label { font-size: 0.62rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.flow-scope .stock-flow-stat-value { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600; }
.flow-scope .stock-flow-chart-container { min-height: 200px; position: relative; }

/* ── Mock: Terminal Chart (faithful tc-scope) ────────────────── */
.tc-scope .tc-wrap {
    position: relative; width: 100%; height: 380px; margin-top: 8px;
    border-radius: 8px; background: #fff; border: 1px solid var(--border);
    display: flex; flex-direction: column; overflow: hidden;
}
.tc-scope .tc-header {
    display: flex; align-items: center; gap: 12px; padding: 8px 12px; flex-shrink: 0;
}
.tc-scope .tc-chart-select {
    background: #fff; border: 1px solid var(--border); color: var(--text-primary);
    font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
    padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.tc-scope .tc-ticker { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--brand-gold); }
.tc-scope .tc-price { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; }
.tc-scope .tc-price.up { color: var(--accent-dark); }
.tc-scope .tc-price.down { color: var(--brand-red); }
.tc-scope .tc-change { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; }
.tc-scope .tc-change.up { color: var(--accent-dark); }
.tc-scope .tc-change.down { color: var(--brand-red); }
.tc-scope .tc-date { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.tc-scope .tc-period-btns { display: flex; gap: 4px; }
.tc-scope .tc-period-btn {
    padding: 3px 10px; font-size: 0.7rem; font-family: var(--font-mono); font-weight: 600;
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    border-radius: 4px; cursor: pointer;
}
.tc-scope .tc-period-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tc-scope .tc-dropdown { position: relative; }
.tc-scope .tc-dropdown-btn {
    padding: 4px 10px; font-size: 0.7rem; font-family: var(--font-mono); font-weight: 600;
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    border-radius: 4px; cursor: pointer; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 4px;
}
.tc-scope .tc-expand-btn {
    width: 32px; height: 32px; background: rgba(16,185,129,0.1);
    border: 1.5px solid var(--accent); border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.1rem; font-weight: 700; color: var(--accent);
    line-height: 1; font-family: var(--font-sans);
}
.tc-scope .tc-resize-grip {
    height: 12px; cursor: ns-resize; background: transparent; position: relative;
    flex-shrink: 0; border-top: 1px solid var(--border);
}
.tc-scope .tc-legend { font-family: var(--font-mono); font-size: 9px; fill: var(--text-muted); opacity: 0.8; }
.tc-scope .tc-label { font-family: var(--font-mono); font-size: 9px; fill: var(--text-muted); opacity: 0.7; }
/* Watchlist panel */
.tc-scope .terminal-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; max-width: 520px; }
.tc-scope .terminal-panel--watch { }
.tc-scope .terminal-panel--fund { }
.tc-scope .terminal-panel-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tc-scope .terminal-panel-title { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.tc-scope .terminal-add-btn {
    width: 100%; padding: 10px; border: 1.5px dashed var(--border); border-radius: 8px;
    background: transparent; color: var(--text-muted); font-size: 0.82rem; font-weight: 600;
    cursor: pointer; font-family: var(--font-sans); display: flex; align-items: center;
    justify-content: center; gap: 6px;
}
.tc-scope .terminal-watch-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border-radius: 8px; border: 1px solid var(--border); margin-bottom: 8px; cursor: pointer;
}
.tc-scope .terminal-watch-item--active { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); }
.tc-scope .terminal-watch-ticker { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--brand-gold); min-width: 56px; }
.tc-scope .terminal-watch-price { margin-left: auto; text-align: right; font-family: var(--font-mono); }
.tc-scope .terminal-watch-val { font-size: 0.88rem; font-weight: 700; }
.tc-scope .terminal-watch-val.pos, .tc-scope .terminal-watch-change.pos { color: var(--accent-dark); }
.tc-scope .terminal-watch-val.neg, .tc-scope .terminal-watch-change.neg { color: var(--brand-red); }
.tc-scope .terminal-watch-change { font-size: 0.72rem; font-weight: 600; }
.tc-scope .terminal-watch-del { border: none; background: none; color: var(--text-light); cursor: pointer; font-size: 1rem; line-height: 1; }
/* Fundamentals */
.tc-scope .terminal-fund-select {
    font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--brand-gold);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
    padding: 8px 12px; cursor: pointer; width: 100%; margin-bottom: 14px;
}
.tc-scope .terminal-fund-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-scope .terminal-fund-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.tc-scope .terminal-fund-label { font-size: 0.78rem; color: var(--text-muted); }
.tc-scope .terminal-fund-value { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; }
.tc-scope .terminal-fund-meta { margin-top: 12px; font-size: 0.68rem; color: var(--text-muted); font-style: italic; }
/* Consensus */
.tc-scope .terminal-consensus { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.tc-scope .terminal-consensus-title { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.tc-scope .terminal-consensus-rec { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.tc-scope .terminal-consensus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-scope .terminal-consensus-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 6px; }
.tc-scope .terminal-consensus-bar .cs-buy { background: var(--accent-dark); }
.tc-scope .terminal-consensus-bar .cs-hold { background: var(--brand-gold); }
.tc-scope .terminal-consensus-bar .cs-sell { background: var(--brand-red); }
.tc-scope .terminal-consensus-legend { display: flex; gap: 14px; font-size: 0.72rem; font-weight: 600; }
.tc-scope .terminal-consensus-legend .cs-buy { color: var(--accent-dark); }
.tc-scope .terminal-consensus-legend .cs-hold { color: var(--brand-gold); }
.tc-scope .terminal-consensus-legend .cs-sell { color: var(--brand-red); }

/* ── Mock: Sentiment gauge + history (Beranda) ────────────────── */
.sentiment-mock {
    display: flex; gap: 24px; align-items: center;
    flex-wrap: wrap; margin-bottom: 16px;
}
.gauge-svg { width: 200px; height: auto; flex-shrink: 0; }
.gauge-svg svg { display: block; width: 100%; height: auto; }
.sentiment-hist {
    display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 180px;
}
.sentiment-hist-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.sentiment-hist-label {
    font-size: 0.72rem; color: var(--text-muted); min-width: 90px;
    flex-shrink: 0;
}
.sentiment-hist-score {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
}
.sentiment-hist-zone {
    font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-left: auto;
}
.sentiment-zone-legend {
    display: flex; flex-wrap: wrap; gap: 4px 10px;
    font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-muted);
    margin: 8px 0 4px;
}
.sentiment-zone-legend strong { font-weight: 600; }
.sentiment-component-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 6px; margin: 8px 0 4px; max-width: 480px;
}
.sentiment-component-item {
    text-align: center; padding: 8px 4px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-card);
}
.sentiment-comp-label {
    font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.04em; margin-bottom: 2px;
}
.sentiment-comp-score {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
}
.sentiment-comp-bar {
    height: 3px; border-radius: 2px; margin: 2px 6px 0;
    background: var(--border);
}
.sentiment-comp-bar-fill { height: 100%; border-radius: 2px; }

/* ── Responsive mocks ─────────────────────────────────────────── */
@media (max-width: 560px) {
    .mock-chat, .mock-terminal, .mock-table, .mock-chart,
    .mock-lock, .flow-bars, .flow-axis, .pie-wrap,
    .rrg-wrap, .flow-line, .hbar, .rotation, .news-card,
    .metric-grid, .consensus, .search-mock, .search-results,
    .holder-list, .movers, .alert-row, .kw-tags { max-width: 100%; }
    .bh-scope .bh-movers-grid { grid-template-columns: 1fr; }
    .bh-scope .ow-metrics { grid-template-columns: 1fr 1fr; }
    .flow-scope .rrg-layout { grid-template-columns: 1fr; }
    .flow-scope .flow-panel-controls { justify-content: flex-start; }
    .hero-updated { display: flex; }
}
