/* Skeleton shimmer animation */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}
.skeleton-line, .skeleton-block {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 400px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Mover skeleton cards */
.mover-skeleton {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
}
.mover-skeleton + .mover-skeleton { margin-top: 6px; }
.mover-skeleton .skel-logo { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; }
.mover-skeleton .skel-lines { flex: 1; }
.mover-skeleton .skel-right { flex-shrink: 0; text-align: right; }

/* Treemap skeleton grid */
.treemap-skeleton {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 48px;
    gap: 4px; min-height: 200px; padding: 4px;
}
.treemap-skeleton .skeleton-block { border-radius: 6px; }

/* AI Market Pulse card */
.market-pulse-card {
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 16px 0 12px;
}
.market-pulse-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.market-pulse-icon { font-size: 14px; color: #a855f7; }
.market-pulse-title {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: #a855f7;
    letter-spacing: 0.03em;
}
.market-pulse-text {
    font-size: var(--fs-sm);
    font-weight: 200;
    line-height: 1.65;
    color: rgba(232, 240, 255, 0.88);
    max-height: 200px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.market-pulse-text strong { font-weight: 500; color: #e8f0ff; }
.market-pulse-shimmer .shimmer-line {
    height: 11px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 8px; position: relative; overflow: hidden;
}
.market-pulse-shimmer .shimmer-line.short { width: 55%; }
.market-pulse-shimmer .shimmer-line::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.08) 50%, transparent 100%);
    animation: shimmer 1.8s ease-in-out infinite;
}

/* ═══════════════════════════════════
   TYPE SCALE SYSTEM
   ═══════════════════════════════════ */
:root {
    --fs-2xs: var(--text-2xs);
    --fs-xs: var(--text-xs);
    --fs-sm: var(--text-sm);
    --fs-base: var(--text-base);
    --fs-md: var(--text-md);
    --fs-lg: var(--text-lg);
    --fs-xl: var(--text-xl);
    --fs-hero: clamp(3.2rem, 5vw, var(--text-3xl));

    /* TEXT COLOR SCALE — min 62% opacity */
    --db-text: rgba(255,255,255,0.94);
    --db-text-secondary: rgba(255,255,255,0.72);
    --db-text-muted: rgba(255,255,255,0.50);

    /* ACCENT PALETTE — warm golds from gradient */
    --db-accent-warm: rgba(212,175,55,0.7);
    --db-accent-warm-subtle: rgba(212,175,55,0.12);
    --db-accent-line: rgba(212,175,55,0.25);
}

/* ═══════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════ */
.db-container {
    max-width: var(--container-max-width, 1900px);
    margin: 0 auto;
    padding: 80px var(--container-padding) 40px;
    position: relative;
}
.db-container::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 600px 400px at 15% 20%, rgba(59,130,246,0.04) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 80% 60%, rgba(168,85,247,0.03) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 90%, rgba(245,158,11,0.025) 0%, transparent 70%);
}
.db-container > * { position: relative; z-index: 1; }

/* ── Grain overlay ── */
.db-container::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

/* ═══════════════════════════════════
   VERDICT + NEWS ROW
   ═══════════════════════════════════ */
/* ── Market Pulse (inside verdict) ── */
.verdict-pulse {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.pulse-row {
    padding: 8px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pulse-row:last-child { border-bottom: none; }
.pulse-row-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
}
.pulse-row-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #475569;
}
.pulse-row-label {
    font-size: var(--fs-base);
    font-weight: 200;
    color: var(--db-text);
}
.pulse-row-period {
    font-size: var(--fs-xs);
    color: var(--db-text-muted);
}
.pulse-row-verdict-text {
    margin-left: auto;
    font-size: var(--fs-sm);
    font-weight: 200;
}
.pulse-row-score {
    font-size: var(--fs-xs);
    color: var(--db-text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 30px;
    text-align: right;
}
.pulse-row-chevron {
    color: var(--db-text-muted);
    font-size: var(--text-xs);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.pulse-row.open .pulse-row-chevron { transform: rotate(90deg); color: var(--db-text-muted); }
.pulse-row-thermo {
    padding: 6px 0 2px 16px;
}
.pulse-thermo-track {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 40%, #22c55e 100%);
    opacity: 0.3;
}
.pulse-thermo-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 40%, #22c55e 100%);
    opacity: 1;
    transition: width 0.6s ease-out;
}
.pulse-thermo-marker {
    position: absolute;
    top: -3px;
    width: 3px; height: 12px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    transition: left 0.6s ease-out;
}
.pulse-row-detail {
    display: none;
    padding: 8px 0 4px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    color: var(--db-text-muted);
    line-height: 1.6;
}
.pulse-row.open .pulse-row-detail { display: block; }
.pulse-detail-metrics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.pulse-detail-metric {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xs);
    color: var(--db-text-muted);
}
.pulse-detail-metric-val {
    font-weight: 200;
    font-variant-numeric: tabular-nums;
}
.pulse-detail-sparklines {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.pulse-detail-spark {
    flex: 1;
    min-width: 0;
}
.pulse-detail-spark-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--db-text-muted);
    margin-bottom: 4px;
}
.pulse-detail-spark-wrap {
    height: 52px;
    position: relative;
}
.pulse-detail-spark-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}
@media (max-width: 600px) {
    .pulse-detail-sparklines { flex-direction: column; }
}
.pulse-detail-verdict {
    font-size: var(--fs-sm);
    color: var(--db-text-secondary);
    line-height: 1.55;
    margin-top: 4px;
}

/* ── Fear & Greed Gauge ── */
.fg-container { padding: 4px 0; }
.fg-section-title { display: none; }

/* ── Composite sparkline charts ── */
.fg-composite-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px 0 6px;
}
.fg-composite-card {
    padding: 12px 14px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.fg-composite-card:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}
.fg-composite-card.expanded {
    border-color: rgba(212,175,55,0.25);
}
.fg-composite-card.expanded .fg-composite-arrow {
    transform: rotate(180deg);
}
.fg-composite-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}
.fg-composite-label {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 200;
    color: var(--db-text-muted);
    letter-spacing: 0.04em;
}
.fg-composite-score {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-lg);
    font-weight: 200;
    font-variant-numeric: tabular-nums;
}
.fg-composite-verdict {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
}
.fg-composite-arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--db-text-muted);
    transition: transform 0.2s;
}
.fg-composite-spark-wrap {
    position: relative;
}
.fg-composite-spark {
    width: 100%;
    height: 88px;
    display: block;
    cursor: crosshair;
}
.fg-composite-foot {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-2xs);
    font-weight: 200;
    color: var(--db-text-muted);
    margin-top: 4px;
}

/* Shared sparkline tooltip */
.fg-spark-tooltip {
    position: absolute;
    top: -2px;
    background: rgba(0,0,0,0.9);
    color: var(--db-text);
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
    transform: translateX(-50%);
    font-variant-numeric: tabular-nums;
}

/* ── Expandable component sparkline grid ── */
.fg-comp-expand {
    padding: 4px 0 8px;
}
.fg-comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.fg-comp-spark-card {
    padding: 10px 12px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
}
.fg-comp-spark-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.fg-comp-spark-name {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
    color: var(--db-text);
}
.fg-comp-spark-detail {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 200;
    color: var(--db-text-muted);
    font-variant-numeric: tabular-nums;
}
.fg-comp-spark-score {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-base);
    font-weight: 200;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
}
.fg-comp-spark-wrap {
    position: relative;
}
.fg-pct-spark {
    width: 100%;
    height: 64px;
    display: block;
    cursor: crosshair;
}
.fg-comp-spark-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-2xs);
    font-weight: 200;
    color: var(--db-text-muted);
    margin-top: 3px;
}
@media (max-width: 600px) {
    .fg-composite-row { grid-template-columns: 1fr; }
    .fg-comp-grid { grid-template-columns: 1fr; }
}

/* Legacy gauge styles — only shown in expanded details */
.fg-gauges-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 16px;
}
.fg-gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
}
.fg-gauge-label {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--db-text-secondary);
    margin-bottom: 4px;
}
.fg-gauge-svg { width: 130px; height: auto; }
.fg-score {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xl);
    font-weight: 200;
    margin-top: -6px;
    line-height: 1;
}
.fg-label {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
    letter-spacing: 0.06em;
    text-transform: none;
    margin-top: 2px;
}
.fg-gauge-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 200;
    color: var(--db-text-muted);
    margin-top: 6px;
}
.fg-toggle-btn {
    display: block;
    margin: 4px auto 14px;
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--db-text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    padding: 5px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.fg-toggle-btn:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--db-text);
}
.fg-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.fg-groups.fg-hidden { display: none; }
.fg-group-title {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 200;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--db-text-muted);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fg-card {
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.025);
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.fg-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.fg-card-name {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
    color: var(--db-text);
}
.fg-card-score {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-lg);
    font-weight: 200;
    font-variant-numeric: tabular-nums;
}
.fg-card-spark-wrap {
    position: relative;
}
.fg-card-spark {
    width: 100%;
    height: 72px;
    display: block;
    cursor: crosshair;
}
.fg-card-tooltip {
    position: absolute;
    top: -2px;
    background: rgba(0,0,0,0.9);
    color: var(--db-text);
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
    transform: translateX(-50%);
    font-variant-numeric: tabular-nums;
}
.fg-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 4px;
}
.fg-card-detail {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
    color: var(--db-text-secondary);
    font-variant-numeric: tabular-nums;
}
.fg-card-range {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 200;
    color: var(--db-text-muted);
    font-variant-numeric: tabular-nums;
}
.fg-card-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 200;
    color: var(--db-text-muted);
    margin-top: 4px;
}
@media (max-width: 768px) {
    .fg-gauges-row { gap: 32px; }
    .fg-gauge-svg { width: 130px; }
    .fg-gauge-wrap { padding: 8px 10px; }
    .fg-groups { grid-template-columns: 1fr; gap: 12px; }
    .verdict-view-title { font-size: var(--fs-lg); }
    .verdict-headline { font-size: var(--fs-lg); }
    .verdict-hero-narrative { font-size: var(--fs-sm); }
    .verdict-bullets li { font-size: var(--fs-sm); }
    .verdict-hero-regime { font-size: var(--fs-sm); }
    .fg-composite-row { gap: 8px; }
}
@media (max-width: 480px) {
    .fg-gauges-row { flex-direction: column; align-items: center; gap: 20px; }
    .fg-gauge-svg { width: 150px; }
    .fg-score { font-size: var(--fs-xl); }
    .fg-gauge-desc { font-size: var(--fs-xs); }
    .fg-composite-card { padding: 8px 10px 6px; }
}

.verdict-news-row {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: stretch;
}
.verdict-news-row > * { min-width: 0; }
@media (max-width: 1000px) {
    .verdict-news-row { flex-direction: column; }
    .news-feed { max-width: none; }
}

/* ── Verdict (left) ── */
.verdict-hero {
    flex: 3;
    min-width: 0;
    padding: 28px 32px 22px;
    border-radius: var(--glass-radius);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 48px rgba(0,0,0,0.3);
    animation: cardSlideIn 0.5s ease-out backwards;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.verdict-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    border-radius: 14px 14px 0 0;
}
.verdict-hero.bullish::before { background: linear-gradient(90deg, #22c55e 0%, rgba(34,197,94,0.3) 40%, transparent 100%); }
.verdict-hero.bearish::before { background: linear-gradient(90deg, #ef4444 0%, rgba(239,68,68,0.3) 40%, transparent 100%); }
.verdict-hero.cautious::before { background: linear-gradient(90deg, #f59e0b 0%, rgba(245,158,11,0.3) 40%, transparent 100%); }
.verdict-hero.neutral::before { background: linear-gradient(90deg, #64748b 0%, rgba(100,116,139,0.3) 40%, transparent 100%); }

.verdict-hero-narrative {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
    line-height: 1.7;
    color: var(--db-text);
    flex: 1;
    max-height: 320px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
}
.verdict-hero-narrative strong {
    color: var(--db-text);
    font-weight: 200;
}
.verdict-headline {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xl);
    font-weight: 200;
    line-height: 1.2;
    color: var(--db-text);
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

/* ── News Feed (right) ── */
.news-feed {
    flex: 2;
    min-width: 0;
    border-radius: var(--glass-radius);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 32px rgba(0,0,0,0.2);
    animation: cardSlideIn 0.5s ease-out 0.1s backwards;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.news-feed-header {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 200;
    letter-spacing: 0.12em;
    text-transform: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(212,175,55,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 18px 20px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.news-feed-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--db-accent-line), transparent);
}
.news-feed-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 6px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.news-feed-list::-webkit-scrollbar { width: 3px; }
.news-feed-list::-webkit-scrollbar-track { background: transparent; }
.news-feed-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }


/* ═══════════════════════════════════
   INDEX MOVEMENT CARDS
   ═══════════════════════════════════ */
.idx-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex-shrink: 1;
    width: min(720px, 50%);
    min-width: 340px;
    animation: cardSlideIn 0.5s ease-out backwards;
}
.idx-card {
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 16px 18px 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.idx-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.idx-card:hover {
    border-color: rgba(212,175,55,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}
.idx-card:hover::after { opacity: 1; }
.idx-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1px;
}
.idx-card-name {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}
.idx-card-change {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-md);
    font-weight: 200;
    white-space: nowrap;
    letter-spacing: -0.02em;
    line-height: 1;
}
.idx-card-price {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-md);
    font-weight: 200;
    color: var(--db-text);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.idx-card-sparkline {
    height: 58px;
    margin-top: auto;
    margin-left: -18px;
    margin-right: -18px;
}
.idx-card-sparkline canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 900px) {
    .idx-cards { width: 100%; }
    .db-hero-top { flex-direction: column; gap: 20px; }
}
@media (max-width: 480px) {
    .idx-cards { gap: 6px; }
    .idx-card { padding: 10px 12px 0; }
    .idx-card-change { font-size: var(--fs-sm); }
    .idx-card-sparkline { height: 36px; margin-left: -12px; margin-right: -12px; }
}

/* (news-movers-row removed — verdict is now standalone) */

/* ── News Items (compact feed) ── */
.news-item {
    margin: 4px 12px;
    padding: 14px 16px;
    border-bottom: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border-radius: 8px;
    border-left: 3px solid transparent;
    background: rgba(255,255,255,0.015);
}
.news-item:last-child { border-bottom: none; }
.news-item.sentiment-bullish, .news-item.sentiment-slightly_bullish { border-left-color: rgba(34,197,94,0.5); }
.news-item.sentiment-bearish, .news-item.sentiment-slightly_bearish { border-left-color: rgba(239,68,68,0.5); }
.news-item.sentiment-neutral { border-left-color: rgba(100,116,139,0.3); }
.news-item-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.news-item:hover { background: rgba(255,255,255,0.045); }
.news-item-source {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    color: var(--db-text-muted);
    margin-top: 4px;
}
.news-item-source span { margin: 0 4px; opacity: 0.5; }
.news-item-title {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-base);
    font-weight: 200;
    color: var(--db-text);
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-item-time-inline {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    color: var(--db-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}
.news-item-meta {
    color: rgba(255,255,255,0.25);
    font-size: 11px;
    font-weight: 300;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.news-item-chevron {
    color: rgba(255,255,255,0.2);
    font-size: var(--fs-sm);
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: 200;
    transition: color 0.2s, transform 0.2s;
}
.news-item:hover .news-item-chevron { color: rgba(212,175,55,0.6); transform: translateX(2px); }
.news-item.news-expanded .news-item-chevron { color: var(--db-accent-warm); }
.news-item-body {
    display: none;
    padding: 6px 0 4px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    line-height: 1.55;
    color: var(--db-text-muted);
}
.news-item.news-expanded .news-item-body { display: block; }
.news-item-text {
    margin: 0 0 6px 0;
    font-weight: 200;
}
.news-item-link {
    display: inline-block;
    margin-top: 4px;
    font-size: var(--fs-xs);
    color: rgba(147,197,253,0.6);
    text-decoration: none;
}
.news-item-link:hover { color: #93c5fd; }

/* (verdict styles moved to .verdict-hero above) */

.tm-tab:focus-visible { outline: 2px solid rgba(212,175,55,0.8); outline-offset: 2px; }

/* ═══════════════════════════════════
   SHARED CARD STYLES
   ═══════════════════════════════════ */
.db-card {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--glass-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.2);
    max-height: 420px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.db-card:hover {
    border-color: rgba(212,175,55,0.12);
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.db-card.full-width { grid-column: 1 / -1; max-height: none; }
.db-card-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.db-card-scrollable::-webkit-scrollbar { width: 4px; }
.db-card-scrollable::-webkit-scrollbar-track { background: transparent; }
.db-card-scrollable::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.db-card-title {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 200;
    letter-spacing: 0.12em;
    text-transform: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(212,175,55,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.db-card-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--db-accent-line), transparent);
}
.db-section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-lg);
    font-weight: 200;
    letter-spacing: 0.02em;
    color: var(--db-text);
    margin: 8px 0 14px 2px;
}

/* ═══════════════════════════════════
   SECTOR SIGNALS + TREEMAP
   ═══════════════════════════════════ */
.db-grid { margin-bottom: 16px; }

/* Breadth stats below treemap title */
.treemap-breadth {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    color: var(--db-text-secondary);
}

/* Sector signal pills above treemap */
#sectorSignalPills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
#sectorSignalPills .sector-signal-pill { font-size: var(--fs-sm); }
/* Signal detail panel below treemap */
#sectorSignalDetail {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Market Movers */
.db-movers-row { margin: 0 0 20px; }
.movers-card { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 16px 20px; box-shadow: 0 4px 32px rgba(0,0,0,0.2); }
.movers-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.movers-tab {
    padding: 6px 14px; border-radius: 6px; font-size: var(--fs-sm); font-weight: 200;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    color: var(--db-text-muted); cursor: pointer; transition: all 0.15s;
    font-family: 'DM Sans', sans-serif;
}
.movers-tab:hover { background: rgba(255,255,255,0.1); color: var(--db-text-secondary); }
.movers-tab.active { background: rgba(212,175,55,0.12); border-color: rgba(212,175,55,0.25); color: rgba(212,175,55,0.85); }
.movers-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mover-card-v2 {
    padding: 14px 16px; border-radius: 10px; cursor: pointer;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s, border-color 0.15s;
}
.mover-card-v2:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.1); }
.mover-header { display: flex; justify-content: space-between; align-items: flex-start; }
.mover-left { display: flex; align-items: center; gap: 10px; }
.mover-logo { width: 28px; height: 28px; border-radius: 6px; }
.mover-logo-fallback { width: 28px; height: 28px; border-radius: 6px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.mover-ticker { font-size: var(--fs-base); font-weight: 200; color: var(--db-text); }
.mover-name { font-size: var(--fs-2xs); color: var(--db-text-muted); font-weight: 200; margin-top: 1px; }
.mover-sector { font-size: 10px; color: rgba(255,255,255,0.22); font-weight: 300; margin-top: 2px; letter-spacing: 0.03em; }
.mover-right-group { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.mover-spark-wrap { width: 64px; height: 28px; flex-shrink: 0; }
.mover-spark { width: 100%; height: 100%; display: block; }
.mover-right { text-align: right; flex-shrink: 0; }
.mover-change { font-size: var(--fs-base); font-weight: 200; }
.mover-price { font-size: var(--fs-sm); font-weight: 200; color: var(--db-text-muted); margin-top: 2px; }
.mover-vol { font-size: var(--fs-2xs); color: var(--db-text-muted); font-weight: 200; margin-top: 1px; }
.mover-explain {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: var(--fs-xs); font-weight: 200; color: var(--db-text-secondary);
    line-height: 1.45; letter-spacing: 0.01em;
}
.mover-explain--loading { display: flex; gap: 4px; align-items: center; justify-content: flex-start; }
.mover-explain-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    animation: moverDotPulse 1.2s ease-in-out infinite;
}
.mover-explain-dot:nth-child(2) { animation-delay: 0.2s; }
.mover-explain-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes moverDotPulse { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 0.8; } }
@media (max-width: 992px) { .movers-list { grid-template-columns: 1fr; } }

/* Treemap controls */
.treemap-controls { margin-bottom: 10px; }
.treemap-metric-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tm-tab {
    padding: 8px 12px; border-radius: 6px; font-size: var(--fs-sm); font-weight: 200;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    color: var(--db-text-secondary); cursor: pointer; transition: all 0.15s;
    font-family: 'DM Sans', sans-serif; white-space: nowrap;
}
.tm-tab:hover { background: rgba(255,255,255,0.1); color: var(--db-text-secondary); }
.tm-tab.active {
    background: rgba(212,175,55,0.12); border-color: rgba(212,175,55,0.25);
    color: rgba(212,175,55,0.85); font-weight: 200;
}

/* Treemap tiles */
.ind-treemap {
    position: relative;
    width: 100%;
    height: clamp(380px, 50vw, 680px);
    border-radius: 8px;
    overflow: hidden;
}
.ind-treemap.drilled { height: auto; min-height: 320px; }
@media (max-width: 768px) { .ind-treemap { height: 420px; } }
@media (max-width: 480px) { .ind-treemap { height: 320px; } }
.treemap-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 0 4px;
    font-size: var(--fs-xs, 11px);
    color: rgba(255,255,255,0.5);
}
.treemap-legend-bar {
    flex: 0 0 120px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ef4444, #ef444466, rgba(255,255,255,0.1), #22c55e66, #22c55e);
}
.treemap-legend-label { white-space: nowrap; }
.treemap-legend-size { margin-left: auto; opacity: 0.6; }
@media (max-width: 480px) {
    .treemap-legend { font-size: 10px; gap: 5px; }
    .treemap-legend-bar { flex: 0 0 80px; }
}
@keyframes tileFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
.ind-tile {
    position: absolute;
    padding: 6px 8px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: opacity 0.25s, filter 0.15s;
    box-sizing: border-box;
    border-radius: 3px;
    animation: tileFadeIn 0.35s ease-out backwards;
}
.ind-tile:hover { filter: brightness(1.15); z-index: 2; }
.ind-tile-header { position: relative; padding-right: 48px; }
.ind-tile-name {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-base);
    font-weight: 200;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(226,232,240,0.95);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ind-tile[data-big="1"] .ind-tile-name { font-size: var(--fs-base); }
.ind-tile-pct { font-family: 'DM Sans', sans-serif; font-size: var(--fs-sm); font-weight: 200; letter-spacing: -0.01em; position: absolute; top: 0; right: 0; white-space: nowrap; }
.ind-tile-sub { font-family: 'DM Sans', sans-serif; font-size: var(--fs-xs); color: var(--db-text-muted); margin-top: 2px; }
.ind-tile-period { opacity: 0.55; font-size: 0.85em; }
.ind-tile-cap { font-family: 'DM Sans', sans-serif; font-size: var(--fs-sm); color: rgba(255,255,255,0.65); margin-top: auto; }

/* Signal badges on treemap tiles */
.ind-tile-signals {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}
.ind-signal-badge {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-2xs);
    font-weight: 200;
    color: var(--sig-color, #94a3b8);
    background: color-mix(in srgb, var(--sig-color, #94a3b8) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--sig-color, #94a3b8) 25%, transparent);
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.4;
    white-space: nowrap;
}
.ind-signal-overlay {
    position: absolute;
    bottom: 4px;
    left: 6px;
    right: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-2xs);
    font-weight: 200;
    line-height: 1.3;
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Drill-down */
.ind-drill-view { padding: 0; }
.ind-drill-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ind-drill-back { background: rgba(255,255,255,0.08); border: none; color: #e2e8f0; font-size: var(--fs-sm); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.15s; }
.ind-drill-back:hover { background: rgba(255,255,255,0.15); }
.ind-drill-header-text { display: flex; flex-direction: column; gap: 2px; }
.ind-drill-title { font-family: 'DM Sans', sans-serif; font-size: var(--fs-lg); color: #fff; font-weight: 200; }
.ind-drill-period { font-family: 'DM Sans', sans-serif; font-size: var(--fs-sm); color: #64748b; font-weight: 200; }
.ind-drill-meta { font-family: 'DM Sans', sans-serif; font-size: var(--fs-sm); color: #94a3b8; margin-left: auto; }
.ind-drill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 16px; }
@media (max-width: 1200px) { .ind-drill-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .ind-drill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ind-drill-grid { grid-template-columns: 1fr; } }
.ind-stock-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,0.04); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); transition: background 0.15s; }
.ind-stock-card:hover { background: rgba(255,255,255,0.08); }
.ind-stock-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #fff; flex-shrink: 0; }
.ind-stock-info { flex: 1; min-width: 0; }
.ind-stock-name { font-family: 'DM Sans', sans-serif; font-size: var(--fs-md); font-weight: 200; color: #e2e8f0; line-height: 1.25; }
.ind-stock-ticker { font-family: 'DM Sans', sans-serif; font-size: var(--fs-sm); font-weight: 200; color: #94a3b8; }
.ind-stock-numbers { text-align: right; flex-shrink: 0; }
.ind-stock-pct { font-family: 'DM Sans', sans-serif; font-size: var(--fs-md); font-weight: 200; display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
.ind-stock-price { font-size: var(--fs-sm); color: #94a3b8; font-weight: 200; }
.ind-stock-pct.positive { color: #22c55e; }
.ind-stock-pct.negative { color: #ef4444; }
.ind-stock-pe { font-family: 'DM Sans', sans-serif; font-size: var(--fs-sm); color: var(--db-text-muted); text-align: right; }

/* ═══════════════════════════════════
   VERDICT STRUCTURED CONTENT
   ═══════════════════════════════════ */
.verdict-view-title {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 200;
    letter-spacing: 0.12em;
    text-transform: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(212,175,55,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.verdict-view-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--db-accent-line), transparent);
}
.verdict-bullets {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.verdict-bullets li {
    padding: 12px 16px 12px 20px;
    position: relative;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border-left: 2px solid rgba(212,175,55,0.2);
    transition: border-color 0.2s, background 0.2s;
}
.verdict-bullets li:hover {
    background: rgba(255,255,255,0.035);
    border-left-color: rgba(212,175,55,0.45);
}
.verdict-bullets li::before { display: none; }
.verdict-bullets li strong {
    color: rgba(255,255,255,0.95);
    font-weight: 200;
    font-size: var(--fs-base);
    display: block;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}

/* ═══════════════════════════════════
   SECTOR SIGNAL COMPACT
   ═══════════════════════════════════ */
.sector-signal-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.sector-signal-pill {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.02);
    color: var(--db-text-secondary);
}
.sector-signal-pill:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}
.sector-signal-pill.active {
    border-color: var(--pill-color, rgba(255,255,255,0.2));
    color: var(--pill-color, rgba(255,255,255,0.8));
    background: var(--pill-bg, rgba(255,255,255,0.06));
}

/* ═══════════════════════════════════
   ANIMATIONS + UTILITIES
   ═══════════════════════════════════ */
@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.db-card { animation: cardSlideIn 0.5s ease-out backwards; }

/* Error state + retry */
.db-error-state { text-align: center; padding: 16px; color: var(--text-muted); font-size: var(--fs-base); }
.db-retry-btn {
    margin-left: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.db-retry-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 900px) {
    .db-grid { grid-template-columns: 1fr; }
    .db-card.full-width { grid-column: 1; }
    .idx-chart-wrap { height: 240px; }
}
@media (max-width: 600px) {
    .db-container { padding: 80px 12px 30px; }
}

/* ═══════════════════════════════════
   HERO (Market Dashboard + KPIs)
   ═══════════════════════════════════ */
.db-hero {
    margin-bottom: 16px;
    padding: 0 2px 12px;
    animation: heroFadeIn 0.7s ease-out;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.db-hero-cube-canvas {
    position: absolute;
    top: -20px;
    right: 50%;
    width: 280px;
    height: 280px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}
.db-hero-top, .db-quick-nav { position: relative; z-index: 1; }
@keyframes heroFadeIn {
    from { opacity: 0.01; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.db-hero { opacity: 1; }
.db-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 6px;
}
.db-hero-text { flex: 1; min-width: 0; }
.db-hero-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
    color: var(--db-text-muted);
    letter-spacing: 0.12em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.db-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-green, #22c55e);
    box-shadow: 0 0 8px rgba(34,197,94,0.6);
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 4px rgba(34,197,94,0.3); }
    50% { opacity: 1; box-shadow: 0 0 12px rgba(34,197,94,0.8); }
}
.db-hero-title {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-hero);
    font-weight: 200;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 14px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.db-hero-title span {
    display: inline-block; margin-left: -4px;
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logged-in compact dashboard hero */
.db-hero-text--dashboard { flex: 1; min-width: 0; }
.db-hero-title--compact {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 200;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}
.db-card--no-maxh { max-height: none; }
.db-card-subtitle { font-weight: 200; font-size: 0.65em; color: var(--db-text-muted); margin-left: 8px; }
.db-hero-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-base);
    font-weight: 200;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    max-width: 480px;
    margin: 0;
}
.db-hero-desc strong {
    color: rgba(255,255,255,0.9);
    font-weight: 200;
}
.db-hero-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.95);
    background: rgba(168,85,247,0.18);
    border: 1px solid rgba(168,85,247,0.35);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.db-hero-cta:hover {
    background: rgba(168,85,247,0.3);
    border-color: rgba(168,85,247,0.5);
    color: #fff;
}
.db-hero-cta span {
    margin-left: 4px;
    transition: margin-left 0.2s ease;
}
.db-hero-cta:hover span {
    margin-left: 8px;
}
.db-hero-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex-shrink: 0;
}
.db-kpi {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 110px;
    transition: all 0.3s ease;
}
.db-kpi:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}
.db-kpi-value {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xl);
    font-weight: 200;
    color: rgba(255,255,255,0.95);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.db-kpi-label {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 200;
    color: var(--db-text-muted);
    letter-spacing: 0.04em;
    margin-top: 4px;
}
.db-quick-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.db-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    transition: all 0.25s;
    letter-spacing: 0.02em;
}
.db-nav-link:hover {
    color: rgba(212,175,55,0.85);
    border-color: rgba(212,175,55,0.2);
    background: rgba(212,175,55,0.04);
}
@media (max-width: 900px) {
    .db-hero-top { flex-direction: column; gap: 20px; }
    .db-hero-kpis { grid-template-columns: repeat(4, 1fr); width: 100%; }
    .db-kpi { min-width: 0; }
}
@media (max-width: 520px) {
    .db-hero-kpis { grid-template-columns: 1fr 1fr; }
}

/* (chart removed entirely) */

/* ═══════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════ */
[data-theme="light"] .db-card,
[data-theme="light"] .idx-card {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
[data-theme="light"] .db-container::before { opacity: 0.5; }
[data-theme="light"] .db-container::after { opacity: 0.015; }
[data-theme="light"] .idx-card-name { color: rgba(0,0,0,0.85); }
[data-theme="light"] .idx-card-price { color: rgba(0,0,0,0.45); }
[data-theme="light"] .ind-tile-name { color: #334155; }
[data-theme="light"] .ind-tile-pe { color: #64748b; }
[data-theme="light"] .idx-range-btn { border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.4); }
[data-theme="light"] .idx-range-btn:hover { background: rgba(0,0,0,0.04); color: #111; }
[data-theme="light"] .idx-range-btn.active { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.25); color: #2563eb; }
[data-theme="light"] .verdict-hero,
[data-theme="light"] .news-feed { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .verdict-hero-narrative { color: #334155; }
[data-theme="light"] .verdict-stat-pill-label { color: rgba(0,0,0,0.5); }
[data-theme="light"] .news-item-title { color: #1e293b; }
[data-theme="light"] .news-item-body { color: #475569; }
[data-theme="light"] .news-feed-header { color: rgba(0,0,0,0.4); }
[data-theme="light"] .pulse-row-label { color: rgba(0,0,0,0.8); }
[data-theme="light"] .pulse-row-dot { background: #64748b; }
[data-theme="light"] .pulse-row-chevron { color: rgba(0,0,0,0.2); }
[data-theme="light"] .pulse-row-detail { color: rgba(0,0,0,0.55); }
[data-theme="light"] .pulse-thermo-marker { background: #1e293b; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ═══════════════════════════════════
   DASHBOARD JS — shared utility classes
   ═══════════════════════════════════ */
/* Sector signal detail panel items */
.db-signal-item {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.db-signal-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.db-signal-name {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 200;
    color: rgba(255,255,255,0.8);
    flex: 1;
}
.db-signal-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-xs);
    color: var(--db-text-muted);
    margin-top: 2px;
}
.db-signal-label {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    color: var(--db-text-muted);
}

.db-chart-legend-label {
    color: var(--db-text-muted);
}

/* Breadth stats inline spans */
.db-breadth-label { color: var(--db-text-muted); }

/* Treemap loading/error text */
.db-treemap-msg {
    padding: 20px;
    color: var(--db-text-muted);
    font-size: var(--fs-sm);
    grid-column: 1/-1;
}

/* dataTimestamp element */
.db-data-timestamp {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--fs-sm);
    color: var(--db-text-muted);
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

/* ind-stock-mcap opacity fix (was 0.5) */
.ind-stock-mcap { color: var(--db-text-muted); }

/* === How it Works === */
.hiw-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 24px;
}
.hiw-title {
    font-size: var(--text-xl, 1.5rem);
    font-weight: 200;
    text-align: center;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.92);
}
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.hiw-card {
    background: rgba(18,24,38,0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
    display: block;
}
.hiw-card:hover {
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-2px);
}
.hiw-icon {
    color: var(--accent-purple, #a855f7);
    margin-bottom: 16px;
}
.hiw-step {
    font-size: var(--text-2xs, 0.7rem);
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.hiw-card-title {
    font-size: var(--text-base, 1rem);
    font-weight: 400;
    color: rgba(255,255,255,0.92);
    margin-bottom: 8px;
}
.hiw-card-desc {
    font-size: var(--text-sm, 0.875rem);
    color: rgba(255,255,255,0.56);
    line-height: 1.5;
}

/* === Pricing Teaser === */
.pricing-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}
.pricing-title {
    font-size: var(--text-xl, 1.5rem);
    font-weight: 200;
    text-align: center;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.92);
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pricing-card {
    background: rgba(18,24,38,0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 32px 28px;
    position: relative;
}
.pricing-card.pro {
    border-color: rgba(168,85,247,0.3);
}
.pricing-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #a855f7, #6d28d9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}
.pricing-tier {
    font-size: var(--text-sm, 0.875rem);
    color: rgba(255,255,255,0.56);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.pricing-price {
    font-size: 2.5rem;
    font-weight: 200;
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
}
.pricing-period {
    font-size: var(--text-base, 1rem);
    color: rgba(255,255,255,0.45);
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.pricing-features li {
    padding: 6px 0;
    font-size: var(--text-sm, 0.875rem);
    color: rgba(255,255,255,0.72);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li::before {
    content: '✓';
    margin-right: 10px;
    color: #22c55e;
}
.pricing-cta {
    display: block;
    text-align: center;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
}
.pricing-cta:hover { opacity: 0.85; }
.pricing-cta.pro {
    background: linear-gradient(135deg, #a855f7, #6d28d9);
    border: none;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hiw-grid { grid-template-columns: 1fr; gap: 14px; }
    .hiw-section { padding: 32px 16px 16px; }
    .hiw-card { padding: 20px 18px; }
    .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
    .pricing-section { padding: 16px 16px 32px; }
}
