/* ==========================================================================
   Zcash Treasuries — Modern Terminal Design System
   Typography: Geist (UI), Cabinet Grotesk (Headers), SF Mono (Numbers)
   Palette: Zcash Yellow #F4B728, Charcoal #0D0D0D, Card #141414
   ========================================================================== */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@500,700,800&display=swap');

:root {
    /* Primary Brand Accents */
    --brand-gold: #F4B728;
    --brand-gold-glow: rgba(244, 183, 40, 0.25);
    --brand-gold-subtle: rgba(244, 183, 40, 0.08);
    --brand-gold-gradient: linear-gradient(135deg, #F4B728 0%, #D97706 100%);
    --brand-gold-gradient-hover: linear-gradient(135deg, #FBBF24 0%, #E07D0A 100%);

    /* Backgrounds & Cards */
    --bg-main: #0D0D0D;
    --card-bg: #141414;
    --card-bg-elevated: #181B21;
    --card-inner: #0A0A0A;
    --card-border: rgba(244, 183, 40, 0.08);
    --card-border-hover: rgba(244, 183, 40, 0.25);
    --card-shadow-hover: 0 4px 24px rgba(244, 183, 40, 0.06);
    --border-color: #1F242C;
    --border-subtle: #181A20;

    /* Text System */
    --text-primary: #F5F5F5;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --text-dim: #4B5563;

    /* Semantic Accents */
    --delta-pos: #4ADE80;
    --delta-neg: #F87171;
    --shielded-cyan: #38BDF8;
    --liquid-slate: #374151;

    /* Font Families */
    --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
    --font-display: 'Cabinet Grotesk', Georgia, serif;
    --font-mono: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--bg-main);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(244, 183, 40, 0.035) 0%, rgba(0, 0, 0, 0) 70%),
                      radial-gradient(circle at 50% 50%, #0F0F11 0%, #08080A 100%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

/* ==========================================================================
   CRT Monitor Effects: Scanlines, Phosphor Mask, Vignette & Beam
   ========================================================================== */

/* 1. Fine Horizontal Scanlines & Subpixel Phosphor Mask */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.32) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.015), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.015));
    z-index: 998;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    opacity: 0.65;
}

/* 2. CRT Curved Screen Vignette & Edge Shadow */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: radial-gradient(ellipse at center, transparent 65%, rgba(0, 0, 0, 0.55) 100%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.75), inset 0 0 40px rgba(0, 0, 0, 0.9);
    z-index: 999;
    pointer-events: none;
}

/* 3. Subtle CRT Raster Scanbeam Animation */
.crt-scanline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 45%,
        rgba(244, 183, 40, 0.02) 50%,
        rgba(255, 255, 255, 0) 55%,
        rgba(255, 255, 255, 0)
    );
    pointer-events: none;
    z-index: 1000;
    animation: crtScanbeam 12s linear infinite;
    opacity: 0.8;
}

@keyframes crtScanbeam {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .crt-scanline {
        animation: none;
        display: none;
    }
}

/* CRT Monitor Effect Toggle Classes */
html.crt-off body::before,
html.crt-off body::after,
html.crt-off .crt-scanline,
body.crt-off::before,
body.crt-off::after,
body.crt-off .crt-scanline {
    display: none !important;
}

/* Header CRT Toggle Button */
.btn-crt-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 3px 8px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    letter-spacing: 0.02em;
}
.btn-crt-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
}
.btn-crt-toggle .crt-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 6px #4ADE80;
    transition: all 0.15s ease;
}
.btn-crt-toggle.off {
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.06);
    background: transparent;
}
.btn-crt-toggle.off .crt-dot {
    background: #6B7280;
    box-shadow: none;
}

/* Numeric elements use SF Mono with Tabular Numbers */
.num, .kpi-value, .stat-val, .metric-value, .calc-num-input, .calc-summary-hero, .slider-val-text, .utc-clock, .badge-mono {
    font-family: var(--font-mono);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Display Headings use Cabinet Grotesk */
h1, h2, h3, h4, .header-title, .section-title, .entity-ticker, .btn-cta {
    font-family: var(--font-display);
    font-weight: 700;
}

/* Container */
.terminal-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Global Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-gold);
}

/* ==========================================================================
   Terminal Header & Brand Wordmark
   ========================================================================== */
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    gap: 24px;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.header-logo {
    height: 38px;
    width: auto;
    max-width: 60px;
    filter: drop-shadow(0 0 10px rgba(244, 183, 40, 0.45));
    transition: transform 0.2s ease, filter 0.2s ease;
    flex-shrink: 0;
}
.header-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 16px rgba(244, 183, 40, 0.7));
}
.brand-wordmark-wrap {
    display: flex;
    flex-direction: column;
}
.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    margin-bottom: 4px;
}
.wordmark-title {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 1.85rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}
.wordmark-zcash {
    color: var(--brand-gold);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(244, 183, 40, 0.28);
}
.wordmark-space {
    display: inline-block;
    width: 6px;
}
.wordmark-treasuries {
    color: #FFFFFF; /* Pure crisp bright white for high contrast */
    font-weight: 700;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}
.header-subtext {
    color: #9CA3AF;
    font-size: 0.82rem;
    margin-top: 2px;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
    font-weight: 450;
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.header-zec-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #121316;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    height: 40px;
    box-sizing: border-box;
}
.header-zec-ticker:hover {
    border-color: rgba(244, 183, 40, 0.4);
    box-shadow: 0 2px 16px rgba(244, 183, 40, 0.1);
}
.ticker-header-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.ticker-asset-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ticker-asset-price {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF; /* Crisp bright white for high contrast */
    letter-spacing: -0.01em;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
.ticker-deltas-row {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 10px;
}
.perf-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.2;
}
.perf-chip.delta-pos {
    background: rgba(74, 222, 128, 0.1);
    color: var(--delta-pos);
    border: 1px solid rgba(74, 222, 128, 0.25);
}
.perf-chip.delta-neg {
    background: rgba(248, 113, 113, 0.1);
    color: var(--delta-neg);
    border: 1px solid rgba(248, 113, 113, 0.25);
}
.chip-window {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.spot-multi-perf {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.subtext-bullet {
    color: var(--text-dim);
    font-size: 0.65rem;
}
.header-status-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #121316;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    height: 40px;
    box-sizing: border-box;
}
.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--delta-pos);
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--delta-pos);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--delta-pos);
    animation: livePulse 2s infinite ease-in-out;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}
.utc-clock {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFFFFF; /* Pure white requested by user */
    letter-spacing: 0.03em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 10px;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .terminal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .header-controls {
        width: 100%;
        justify-content: space-between;
    }
}
@media (max-width: 640px) {
    .header-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .header-zec-ticker,
    .header-status-wrap {
        width: 100%;
        justify-content: space-between;
    }
    .wordmark-title {
        font-size: 1.5rem;
    }
    .header-subtext {
        font-size: 0.76rem;
    }
}

/* ==========================================================================
   Top Summary Bar (4 Horizontal Stat Cards)
   ========================================================================== */
.summary-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 36px;
}
@media (max-width: 1024px) {
    .summary-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .summary-bar-grid {
        grid-template-columns: 1fr;
    }
}
.summary-stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.summary-stat-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}
.summary-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.summary-stat-label {
    font-size: 0.80rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.summary-stat-value {
    font-family: var(--font-mono);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.summary-stat-value.gold {
    color: var(--brand-gold);
}
.summary-stat-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.delta-pos {
    color: var(--delta-pos);
    font-weight: 600;
}
.delta-neg {
    color: var(--delta-neg);
    font-weight: 600;
}

/* ==========================================================================
   Macro Scarcity & Supply Absorption Bar
   ========================================================================== */
.absorption-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 36px;
    transition: all 0.2s ease;
}
.absorption-container:hover {
    border-color: var(--card-border-hover);
}
.absorption-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.absorption-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.absorption-supply-stat {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.absorption-bar-wrapper {
    height: 14px;
    background-color: #1a1a1a;
    border-radius: 7px;
    overflow: hidden;
    display: flex;
    margin-bottom: 12px;
}
.absorption-segment {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.seg-treasuries {
    background: var(--brand-gold-gradient);
}
.seg-shielded {
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
}
.seg-liquid {
    background: #2E3642;
}
.absorption-legend {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.76rem;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.legend-dot.gold { background-color: var(--brand-gold); }
.legend-dot.cyan { background-color: var(--shielded-cyan); }
.legend-dot.slate { background-color: var(--liquid-slate); }
.legend-val {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}
.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--brand-gold);
    border-radius: 2px;
}
.section-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.section-meta a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.section-meta a:hover {
    color: var(--brand-gold);
}

/* ==========================================================================
   Entity Cards Grid (3 Columns Desktop, 2 Tablet, 1 Mobile)
   ========================================================================== */
.entity-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
@media (max-width: 1100px) {
    .entity-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 680px) {
    .entity-cards-grid {
        grid-template-columns: 1fr;
    }
}

.entity-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
}
.entity-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* 1. Header Row */
.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.card-title-link,
a.card-title-link,
a.card-title-link:link,
a.card-title-link:visited {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    text-decoration: none !important;
    color: #FFFFFF !important;
    transition: color 0.18s ease;
}
.card-title-link:hover,
a.card-title-link:hover,
a.card-title-link:focus {
    color: var(--brand-gold) !important;
    text-decoration: none !important;
}
.card-title-link:hover .card-title-icon,
a.card-title-link:hover .card-title-icon {
    transform: translate(2px, -2px);
    stroke: var(--brand-gold);
}
.entity-company-name-title {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}
.entity-ticker-tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-gold);
    background: rgba(244, 183, 40, 0.08);
    border: 1px solid rgba(244, 183, 40, 0.25);
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: 0.03em;
}
.card-title-icon {
    color: var(--text-muted);
    transition: transform 0.18s ease, stroke 0.18s ease;
    flex-shrink: 0;
}

/* 2. Main Metrics Grid (2 columns x 2 rows) */
.card-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
    margin-bottom: 22px;
}
.metric-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.metric-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
}
.metric-val-large {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}
.metric-val-usd {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-gold);
    line-height: 1.1;
}
.metric-val-sm {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.metric-val-pnl {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
}

/* 3. Footer Row */
.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.76rem;
    color: var(--text-muted);
}
.card-last-filing {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-detail-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
    font-weight: 500;
}
.card-detail-link:hover {
    color: var(--brand-gold);
}

/* ==========================================================================
   Chart & Regulatory Filings Feed Side-by-Side
   ========================================================================== */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 30px;
    margin-bottom: 48px;
}
@media (max-width: 992px) {
    .data-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Chart Header with Timeframe Pills Underneath */
.chart-header-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

/* Timeframe Selector Pills */
.chart-timeframe-wrap {
    display: flex;
    gap: 6px;
    align-items: center;
}
.timeframe-pill {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.70rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.timeframe-pill:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}
.timeframe-pill.active {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #0D0D0D;
}

/* DefiLlama Matte Range Slider (Under Chart - Dedicated Pages Only) */
.rangeslider-container {
    cursor: default;
}
.rangeslider-bg {
    fill: #0B0C0E !important;
    stroke: rgba(255, 255, 255, 0.12) !important;
    stroke-width: 1px !important;
    rx: 4px;
    ry: 4px;
}
.rangeslider-mask-min,
.rangeslider-mask-max {
    fill: #000000 !important;
    fill-opacity: 0.65 !important;
}
.rangeslider-slidebox {
    stroke: rgba(255, 255, 255, 0.40) !important;
    stroke-width: 1.2px !important;
    fill: transparent !important;
    rx: 3px;
    ry: 3px;
    cursor: grab;
}
.rangeslider-slidebox:active {
    cursor: grabbing;
}
.rangeslider-handle-min,
.rangeslider-handle-max {
    fill: #1E222A !important;
    stroke: rgba(255, 255, 255, 0.75) !important;
    stroke-width: 1.5px !important;
    rx: 3px;
    ry: 3px;
    cursor: ew-resize !important;
}
.rangeslider-grabarea {
    cursor: grab;
}
.rangeslider-grabarea:active {
    cursor: grabbing;
}

.chart-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    height: 380px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.chart-container:hover {
    border-color: var(--card-border-hover);
}

/* Filings Feed & Search */
.feed-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.feed-search-icon {
    position: absolute;
    left: 8px;
    pointer-events: none;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feed-search-input {
    background-color: #0c0c0c;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 4px 8px 4px 26px;
    width: 160px;
    height: 28px;
    transition: all 0.2s ease;
    outline: none;
}
.feed-search-input:focus {
    border-color: var(--brand-gold);
    width: 200px;
    background-color: #141414;
    box-shadow: 0 0 8px rgba(244, 183, 40, 0.2);
}
.feed-search-input::placeholder {
    color: var(--text-muted);
    font-size: 0.72rem;
}
.feed-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px 20px;
    height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease;
}
.feed-container:hover {
    border-color: var(--card-border-hover);
}
.feed-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.feed-item:last-child {
    border-bottom: none;
}
.feed-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.feed-tag {
    background: rgba(244, 183, 40, 0.10);
    color: var(--brand-gold);
    border: 1px solid rgba(244, 183, 40, 0.24);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}
.feed-tag.sec {
    background: rgba(168, 85, 247, 0.12);
    color: #C084FC;
    border-color: rgba(168, 85, 247, 0.3);
}
.feed-tag.sedar {
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.3);
}
.feed-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.feed-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}
.feed-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
.feed-title a:hover {
    color: var(--brand-gold);
    text-decoration: underline;
}
.feed-blurb {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    border-left: 2px solid #262626;
    padding-left: 10px;
    margin-top: 3px;
}

/* ==========================================================================
   Zcash Exposure Calculator Module
   ========================================================================== */
.calc-section {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}
.calculator-module {
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.calculator-module:hover {
    border-color: var(--card-border-hover);
}

/* Grid Column positioning for Calculator and Manifesto */
.calc-grid-col {
    grid-column: 1;
}
.manifesto-grid-col {
    grid-column: 2;
    display: flex;
    flex-direction: column;
}
@media (max-width: 992px) {
    .calc-grid-col,
    .manifesto-grid-col {
        grid-column: auto;
    }
}

/* ==========================================================================
   Cypherpunk Valuation Model
   ========================================================================== */
.model-explainer {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-secondary);
    border-left: 2px solid var(--brand-gold);
    padding-left: 12px;
    margin-bottom: 2px;
}

.mstr-model-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.mstr-model-card:hover {
    border-color: var(--card-border-hover);
}

.model-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #0A0B0E;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 14px;
}
.strip-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.strip-lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.strip-val {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.strip-val.gold { color: var(--brand-gold); }
.strip-val.green { color: var(--delta-pos); }

.mstr-chart-wrap {
    background: #0A0B0E;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 10px;
    overflow: hidden;
}

.mstr-sim-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0D0F13;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px 18px;
}
.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.sim-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}
.sim-current-nav {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--brand-gold);
    font-weight: 600;
}

.sim-presets-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.btn-preset {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.70rem;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-preset:hover {
    color: var(--text-primary);
    border-color: rgba(244, 183, 40, 0.3);
}
.btn-preset.active {
    background: rgba(244, 183, 40, 0.12);
    color: var(--brand-gold);
    border-color: rgba(244, 183, 40, 0.4);
}

.sim-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sim-slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sim-slider-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}
.slider-val-highlight {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-gold);
    background: rgba(244, 183, 40, 0.1);
    border: 1px solid rgba(244, 183, 40, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
}

.terminal-slider {
    accent-color: #007AFF;
    cursor: pointer;
}

.sim-output-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 10px;
    margin-top: 4px;
}
.sim-out-card {
    background: #0A0B0E;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sim-out-card.hero {
    border-color: rgba(244, 183, 40, 0.25);
    background: linear-gradient(135deg, rgba(244, 183, 40, 0.06) 0%, rgba(10, 11, 14, 0.9) 100%);
}
.sim-out-lbl {
    font-size: 0.70rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.sim-out-val {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}
.sim-out-card.hero .sim-out-val {
    color: var(--brand-gold);
    font-size: 1.45rem;
    text-shadow: 0 0 14px rgba(244, 183, 40, 0.25);
}
.sim-out-val .unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.sim-out-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 4px;
}
@media (max-width: 600px) {
    .sim-output-grid {
        grid-template-columns: 1fr;
    }
    .model-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Cypherpunk Manifesto Scrollable Component
   ========================================================================== */
.manifesto-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.manifesto-card:hover {
    border-color: var(--card-border-hover);
}
.manifesto-meta-header {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.manifesto-author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.80rem;
    margin-bottom: 6px;
}
.manifesto-author {
    font-weight: 700;
    color: var(--brand-gold);
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}
.manifesto-dot {
    color: var(--text-dim);
}
.manifesto-date {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
}
.manifesto-tagline {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.4;
}
.manifesto-body {
    flex: 1;
    overflow-y: auto;
    max-height: 520px;
    padding-right: 14px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #D1D5DB;
    font-size: 0.88rem;
    line-height: 1.72;
}
.manifesto-body p {
    margin: 0;
}
.manifesto-body strong {
    color: var(--text-primary);
    font-weight: 600;
}
.manifesto-body .highlight-quote {
    color: var(--text-primary);
    font-weight: 600;
    border-left: 2px solid var(--brand-gold);
    padding-left: 12px;
    margin: 4px 0;
    background: rgba(244, 183, 40, 0.04);
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 0 6px 6px 0;
}
.manifesto-body::-webkit-scrollbar {
    width: 5px;
}
.manifesto-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.manifesto-body::-webkit-scrollbar-thumb {
    background: rgba(244, 183, 40, 0.2);
    border-radius: 4px;
}
.manifesto-body::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 183, 40, 0.45);
}
.manifesto-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.manifesto-sig {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.manifesto-verbatim {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}
.calc-subtext {
    color: var(--text-secondary);
    font-size: 0.80rem;
    margin-bottom: 22px;
}
.btn-reset-pill {
    background: #181B21;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-reset-pill:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    background: #20242D;
}

/* Slider Controls */
.calc-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.slider-group {
    background: #0D0F13;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s ease;
}
.slider-group:hover, .slider-group:focus-within {
    border-color: rgba(244, 183, 40, 0.3);
}
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.slider-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.slider-title {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
}
.badge-ticker {
    background: rgba(244, 183, 40, 0.12);
    border: 1px solid rgba(244, 183, 40, 0.3);
    color: var(--brand-gold);
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}
.slider-rate {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}
.slider-value-badge {
    color: var(--brand-gold);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(244, 183, 40, 0.08);
    border: 1px solid rgba(244, 183, 40, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Quick Add Chips */
.quick-chips-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.btn-chip {
    background: #14171E;
    border: 1px solid #232732;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.12s ease;
}
.btn-chip:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    background: #1C212B;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.calc-range {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    background: #232732;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.calc-range:hover {
    background: #2D3342;
}
.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-gold);
    cursor: pointer;
    border: 2px solid #0D0D0D;
    box-shadow: 0 0 10px rgba(244, 183, 40, 0.4);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.calc-range::-webkit-slider-thumb:hover, .calc-range::-webkit-slider-thumb:active {
    transform: scale(1.18);
    box-shadow: 0 0 16px rgba(244, 183, 40, 0.75);
}
.calc-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-gold);
    cursor: pointer;
    border: 2px solid #0D0D0D;
    box-shadow: 0 0 10px rgba(244, 183, 40, 0.4);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.calc-num-input {
    background-color: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 5px 8px;
    width: 90px;
    text-align: right;
    outline: none;
    transition: border-color 0.2s ease;
}
.calc-num-input:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 6px rgba(244, 183, 40, 0.2);
}

/* Portfolio Composition Bar */
.calc-composition-wrap {
    margin-top: 20px;
}
.composition-bar {
    height: 8px;
    background: #1C212B;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    margin-bottom: 8px;
}
.comp-seg {
    height: 100%;
    transition: width 0.2s ease;
}
.comp-direct { background: #F4B728; }
.comp-cyph { background: #D97706; }
.comp-zcsh { background: #A37D22; }
.composition-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Lower Part: Zcash Equivalent Display */
.calc-summary-card {
    background: linear-gradient(180deg, #101217 0%, #090A0D 100%);
    border: 1px solid var(--brand-gold);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-top: 22px;
    box-shadow: 0 0 24px rgba(244, 183, 40, 0.12);
}
.calc-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.calc-summary-label {
    color: var(--text-secondary);
    font-size: 0.80rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.calc-summary-spot {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
}
.calc-summary-hero {
    color: var(--brand-gold);
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 10px 0 18px 0;
    text-shadow: 0 0 20px rgba(244, 183, 40, 0.35);
}
.hero-unit {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 6px;
}
.calc-summary-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
}
.stat-val {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}
.calc-actions-row {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}
.btn-cta {
    background: var(--brand-gold-gradient);
    color: #0D0D0D;
    border: none;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}
.btn-cta:hover {
    background: var(--brand-gold-gradient-hover);
    box-shadow: 0 0 16px rgba(244, 183, 40, 0.4);
    transform: translateY(-1px);
}

/* ==========================================================================
   Terminal Footer & Links
   ========================================================================== */
.terminal-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    padding-bottom: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
}
.footer-links-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.84rem;
}
.footer-link-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.footer-link-btn:hover {
    color: var(--brand-gold);
    background: rgba(244, 183, 40, 0.08);
}
.footer-icon {
    color: var(--brand-gold);
}
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.footer-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}
.footer-author-link:hover {
    color: var(--brand-gold);
}
.footer-ext-icon {
    opacity: 0.6;
}
.footer-separator {
    color: var(--text-dim);
    font-size: 0.75rem;
}
.shielded-heart-wrap,
.footer-coffee {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
    font-size: 0.85rem;
    line-height: 1;
    filter: drop-shadow(0 0 5px rgba(244, 183, 40, 0.4));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}
.footer-author-link:hover .shielded-heart-wrap,
.footer-author-link:hover .footer-coffee {
    transform: scale(1.22) rotate(-6deg);
    filter: drop-shadow(0 0 10px rgba(244, 183, 40, 0.85));
}
.shielded-heart-icon {
    display: block;
}

@media (max-width: 600px) {
    .footer-links-wrap {
        flex-direction: column;
        gap: 8px;
    }
    .footer-separator {
        display: none;
    }
}

/* ==========================================================================
   Cypher Manifesto Modal Overlay
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.modal-overlay.active {
    display: flex;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-card {
    position: relative;
    z-index: 1001;
    background: #111317;
    border: 1px solid rgba(244, 183, 40, 0.25);
    border-radius: 14px;
    width: 100%;
    max-width: 780px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(244, 183, 40, 0.12);
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.modal-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
}
.modal-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.modal-close-btn:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.35);
    color: #F87171;
    transform: scale(1.05);
}
.modal-tagline {
    font-style: italic;
    color: var(--brand-gold);
    font-size: 0.88rem;
    padding: 10px 24px;
    background: rgba(244, 183, 40, 0.04);
    border-bottom: 1px solid rgba(244, 183, 40, 0.1);
}
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 26px;
    max-height: calc(85vh - 160px);
}
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0D0E12;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
}
body.modal-open {
    overflow: hidden;
}

/* Subpage Back Bar & Navigation */
.subpage-back-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}
.btn-back:hover {
    background: rgba(244, 183, 40, 0.12);
    border-color: rgba(244, 183, 40, 0.4);
    color: var(--brand-gold);
    transform: translateX(-2px);
}
.subpage-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--brand-gold);
    background: rgba(244, 183, 40, 0.08);
    border: 1px solid rgba(244, 183, 40, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Expand Module Button on Main Dashboard Cards */
.btn-expand-module {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-expand-module:hover {
    background: rgba(244, 183, 40, 0.12);
    border-color: rgba(244, 183, 40, 0.4);
    color: var(--brand-gold);
    transform: translateY(-1px);
}

/* Sources & Disclaimer Modal Styles */
.modal-content-block {
    margin-bottom: 22px;
}
.modal-content-block:last-child {
    margin-bottom: 0;
}
.modal-block-title {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-block-text {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px 0;
}
.sources-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.source-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.15s ease;
}
.source-card:hover {
    border-color: rgba(244, 183, 40, 0.25);
}
.source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.source-name {
    font-family: var(--font-display);
    font-size: 0.90rem;
    font-weight: 700;
    color: #FFFFFF;
}
.source-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}
.privacy-highlight-box {
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 14px;
}
.privacy-highlight-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--delta-pos);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

