/* ═══ Narrator Tab Styles ═══ */
.narrator-hero {
    background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(59,130,246,0.05));
    border: 2px solid var(--gold);
    border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.narrator-headline {
    font-size: 1.4rem; font-weight: 700; margin-bottom: 12px;
    color: var(--gold);
}
.narrator-bias-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.narrator-bias { font-size: 1.3rem; }
.narrator-confidence {
    font-size: 0.9rem; color: var(--text-muted);
}
.score-bars { display: flex; flex-direction: column; gap: 6px; }
.score-bar-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem;
}
.score-bar-row > span:first-child { width: 90px; flex-shrink: 0; }
.score-bar {
    flex: 1; height: 12px; background: var(--bg-elevated);
    border-radius: 6px; overflow: hidden;
}
.score-fill {
    height: 100%; transition: width 0.5s;
}
.score-fill.bull { background: linear-gradient(90deg, #10b981, #22c55e); }
.score-fill.bear { background: linear-gradient(90deg, #dc2626, #ef4444); }
.score-value {
    font-family: 'JetBrains Mono', monospace; font-weight: 700;
    width: 35px; text-align: left;
}

.narrator-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px; margin-bottom: 14px;
}
.narrator-section h3 {
    font-size: 1rem; margin-bottom: 10px; color: var(--gold);
    display: flex; align-items: center; gap: 6px;
}
.summary-text {
    line-height: 1.8; font-size: 0.95rem; color: var(--text);
}

.key-levels-list {
    display: flex; flex-direction: column; gap: 6px;
}
.key-level-item {
    background: var(--bg-elevated); padding: 8px 12px;
    border-radius: 6px; font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
}

.narrator-points-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 14px;
}
.points-card {
    background: var(--bg-card); border-radius: 10px; padding: 14px;
    border: 1px solid var(--border);
}
.points-card.bull { border-color: var(--success); }
.points-card.bear { border-color: var(--danger); }
.points-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.points-card.bull h3 { color: var(--success); }
.points-card.bear h3 { color: var(--danger); }
.points-card ul { list-style: none; padding: 0; }
.points-card li {
    padding: 6px 0; font-size: 0.85rem; line-height: 1.5;
    border-bottom: 1px dashed var(--border);
}
.points-card li:last-child { border-bottom: none; }
.points-card li::before { content: '▶ '; color: var(--text-muted); }

.scenario-card {
    background: var(--bg-elevated); border-radius: 8px;
    padding: 10px 12px; margin-bottom: 8px;
}
.scenario-label {
    font-weight: 700; margin-bottom: 6px; font-size: 0.95rem;
}
.scenario-row {
    display: flex; gap: 6px; margin-bottom: 4px;
    font-size: 0.85rem;
}
.sc-key {
    color: var(--text-muted); flex-shrink: 0; font-weight: 600;
    min-width: 70px;
}

.plans-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.plan-card {
    background: var(--bg-card); border: 2px solid var(--border);
    border-radius: 10px; padding: 12px;
}
.plan-card.primary { border-color: var(--gold); box-shadow: 0 0 12px rgba(250,204,21,0.2); }
.plan-card.plan-buy { border-color: var(--success); }
.plan-card.plan-sell { border-color: var(--danger); }
.plan-card.primary.plan-buy { border-color: var(--gold); }
.plan-card.primary.plan-sell { border-color: var(--gold); }
.plan-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.plan-confidence {
    background: var(--bg-elevated); padding: 2px 8px; border-radius: 4px;
    font-size: 0.8rem; color: var(--gold); font-weight: 700;
}
.plan-body { display: flex; flex-direction: column; gap: 6px; }
.plan-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; padding: 4px 0;
}
.plan-price {
    font-family: 'JetBrains Mono', monospace; font-weight: 600;
}
.plan-price.success { color: var(--success); }
.plan-price.danger { color: var(--danger); }
.plan-rr {
    font-family: 'JetBrains Mono', monospace; color: var(--gold);
}
.plan-reasoning {
    margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border);
    font-size: 0.8rem; color: var(--text-muted);
}
.plan-reason { padding: 2px 0; }

.warnings-section {
    border-color: var(--warning) !important;
    background: rgba(251, 191, 36, 0.05) !important;
}
.warning-item {
    padding: 8px 10px; background: var(--bg-elevated); border-radius: 6px;
    margin-bottom: 6px; font-size: 0.85rem; line-height: 1.5;
}

/* 🆕 Confluence Score Card */
.confluence-summary {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.confluence-badge { font-size: 1rem; }
.confluence-counts { display: flex; gap: 10px; font-size: 0.85rem; }
.cf-count { padding: 2px 8px; border-radius: 4px; background: var(--bg-elevated); }
.cf-count.cf-buy  { color: var(--success); }
.cf-count.cf-sell { color: var(--danger); }
.cf-total { color: var(--text-muted); }

.confluence-bar {
    display: flex; height: 10px; border-radius: 5px; overflow: hidden;
    background: var(--bg-elevated); margin-bottom: 12px;
}
.cf-fill { transition: width .25s ease; }
.cf-buy-fill  { background: var(--success); }
.cf-sell-fill { background: var(--danger); }

.confluence-votes {
    display: flex; flex-direction: column; gap: 4px;
    padding-top: 8px; border-top: 1px dashed var(--border);
}
.vote-row {
    display: grid;
    grid-template-columns: 24px 1fr 38px 2fr;
    gap: 8px; align-items: center;
    padding: 4px 8px; background: var(--bg-elevated); border-radius: 4px;
    font-size: 0.82rem;
}
.vote-row.vote-buy  { border-right: 3px solid var(--success); }
.vote-row.vote-sell { border-right: 3px solid var(--danger); }
.vote-row.vote-neutral { border-right: 3px solid var(--text-muted); }
.vote-name { font-weight: 600; }
.vote-weight { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; }
.vote-note { color: var(--text-muted); font-size: 0.8rem; }

/* 🆕 Standalone Indicators Tab */
.indicators-tab-wrapper { padding: 12px; }
.indicators-tab-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.indicators-tab-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.indicators-tab-symbol {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted); font-size: 0.9rem;
}

/* Stacked sections (replaces old inner sub-tabs) */
.indicators-stack-section {
    margin-bottom: 18px;
}
.indicators-stack-section:last-child { margin-bottom: 0; }
.indicators-stack-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent, #5b8def);
    margin: 0 0 10px;
    padding: 8px 10px;
    background: rgba(91, 141, 239, 0.08);
    border-right: 3px solid var(--accent, #5b8def);
    border-radius: 4px;
}

/* 🆕 Indicators Panel (raw values) — polished card look */
.indicators-panel {
    display: flex; flex-direction: column; gap: 8px;
    padding: 4px 0;
}

/* Internal sub-tabs inside the Indicators tab */
.inner-tabs {
    display: flex; gap: 6px;
    border-bottom: 1px solid var(--border);
    margin: 6px 0 14px;
    padding: 0 4px;
}
.inner-tab-btn {
    background: transparent; border: none;
    color: var(--text-muted);
    padding: 10px 18px;
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    border-bottom: 3px solid transparent;
    transition: all .15s ease;
    font-family: inherit;
}
.inner-tab-btn:hover {
    color: var(--text);
    background: rgba(255,255,255,0.03);
}
.inner-tab-btn.active {
    color: var(--accent, var(--text));
    border-bottom-color: var(--accent, #5b8def);
    background: rgba(91, 141, 239, 0.06);
}

.inner-tab-pane { display: none; }
.inner-tab-pane.active { display: block; animation: fadeInPane .15s ease; }
@keyframes fadeInPane {
    from { opacity: 0; transform: translateY(-2px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ind-row {
    display: grid;
    grid-template-columns: 170px 1fr 1.4fr 1.2fr;
    gap: 10px; align-items: center;
    padding: 8px 10px; background: var(--bg-elevated); border-radius: 6px;
    font-size: 0.82rem;
}
.ind-name { font-weight: 600; color: var(--text); }
.ind-value { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; }
.ind-meta { font-size: 0.8rem; }
.ind-extra { color: var(--text-muted); font-size: 0.75rem; line-height: 1.4; }

@media (max-width: 700px) {
    .ind-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .ind-name { font-size: 0.9rem; border-bottom: 1px dashed var(--border); padding-bottom: 4px; }
}



