/* ══════════════════════════════════════════════════
   ProphecyLens — Design System
   "Ancient manuscript meets modern intelligence"
   ══════════════════════════════════════════════════ */


:root {
    /* Base palette — deep midnight */
    --bg:          #0b0f1a;
    --bg2:         #0f1420;
    --surface:     #141a28;
    --surface2:    #1a2235;
    --surface3:    #212b40;
    --border:      #243049;
    --border-light:#344163;

    /* Text — high contrast for dark background readability */
    --text:        #f0ece4;
    --text-secondary: #cdc6ba;
    --text-dim:    #9e9689;

    /* Gold accent system */
    --gold:        #c9a96e;
    --gold-bright: #dfc18a;
    --gold-dim:    #8a7444;
    --gold-glow:   rgba(201, 169, 110, 0.12);
    --gold-subtle: rgba(201, 169, 110, 0.06);

    /* Aliases for legacy/tracker compat */
    --accent:      var(--gold);
    --accent-dim:  var(--gold-dim);
    --accent-glow: var(--gold-glow);
    --muted:       var(--text-dim);

    /* Semantic */
    --green:       #5dba78;
    --green-dim:   rgba(93, 186, 120, 0.12);
    --amber:       #d4a843;
    --amber-dim:   rgba(212, 168, 67, 0.12);
    --red:         #c75450;
    --red-dim:     rgba(199, 84, 80, 0.12);
    --purple:      #9b7ec8;
    --purple-dim:  rgba(155, 126, 200, 0.12);
    --orange:      #cb8245;
    --orange-dim:  rgba(203, 130, 69, 0.12);

    /* Layout */
    --radius:      8px;
    --radius-sm:   5px;
    --radius-lg:   14px;
    --max-width:   1240px;

    /* Typography */
    --font:        'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-display:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-mono:   'JetBrains Mono', 'SF Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Subtle noise texture */
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-bright); }

::selection { background: rgba(201, 169, 110, 0.25); color: var(--text); }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; }
h1 { font-size: 2rem; font-weight: 600; }
h2 { font-size: 1.5rem; font-weight: 600; margin: 2rem 0 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* ══════════════════════════════════════════════════
   Navigation
   ══════════════════════════════════════════════════ */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11, 15, 26, 0.88);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; height: 64px;
}
.nav-brand {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 600;
    color: var(--text); letter-spacing: 0.01em;
}
.nav-brand:hover { color: var(--text); text-decoration: none; }
.brand-icon { width: auto; height: 44px; color: var(--gold); flex-shrink: 0; }
.brand-accent { color: var(--gold); }
.nav-links { display: flex; gap: 0.15rem; }
.nav-link {
    padding: 0.45rem 0.9rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
    transition: all 0.2s; letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.nav-link.active { color: var(--gold); background: var(--gold-glow); }
.nav-mobile-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.nav-mobile-toggle span { width: 20px; height: 2px; background: var(--text-secondary); transition: 0.2s; }

/* ══════════════════════════════════════════════════
   Layout
   ══════════════════════════════════════════════════ */
.main { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem 4rem; }
.section { margin-top: 3.5rem; }
.section-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem;
}
.section-header h2 {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
    color: var(--text);
}
.section-label {
    font-family: var(--font); font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--gold);
}
.section-link {
    font-size: 0.88rem; color: var(--gold); font-weight: 500;
    opacity: 0.8; transition: opacity 0.2s;
}
.section-link:hover { opacity: 1; }

/* ══════════════════════════════════════════════════
   Hero — Dashboard
   ══════════════════════════════════════════════════ */
.hero {
    padding: 4.5rem 0 3rem;
    display: grid; grid-template-columns: 1fr; gap: 3rem;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute; top: -1rem; left: -4rem; right: -4rem; bottom: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 169, 110, 0.04), transparent);
    pointer-events: none;
}
.hero-title {
    font-family: var(--font-display);
    font-size: 3.2rem; font-weight: 500;
    line-height: 1.12; letter-spacing: -0.02em;
    color: var(--text);
}
.hero-accent {
    display: block;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright), #e8d4a0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    margin-top: 1.25rem;
    font-size: 1.1rem; color: var(--text-secondary);
    line-height: 1.75; max-width: 620px;
}
.hero-actions { margin-top: 2rem; display: flex; gap: 0.75rem; }

/* Stat bar — horizontal row */
.stat-bar {
    display: flex; gap: 2.5rem; padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 2rem;
}
.stat-item { text-align: left; }
.stat-item a { text-decoration: none; display: block; }
.stat-item a:hover .stat-num { color: var(--gold-bright); }
.stat-num {
    font-family: var(--font-display);
    font-size: 2.25rem; font-weight: 600;
    color: var(--gold); transition: color 0.2s;
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 600; margin-top: 0.35rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center;
    padding: 0.65rem 1.4rem; border-radius: var(--radius);
    font-size: 0.85rem; font-weight: 600; font-family: var(--font);
    border: none; cursor: pointer; transition: all 0.25s;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: var(--bg);
    box-shadow: 0 2px 12px rgba(201, 169, 110, 0.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: var(--bg); text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}
.btn-ghost {
    background: transparent; color: var(--gold);
    border: 1px solid var(--border-light);
}
.btn-ghost:hover { background: var(--surface2); text-decoration: none; border-color: var(--gold-dim); }

.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-fulfilled { background: var(--green); }
.dot-inprogress { background: var(--amber); }
.dot-partial { background: var(--orange); }
.dot-debated { background: var(--purple); }
.dot-unfulfilled { background: var(--text-dim); }

/* ══════════════════════════════════════════════════
   Donut Chart — Prophecy Status
   ══════════════════════════════════════════════════ */
.status-donut-wrap {
    display: flex; align-items: center; gap: 3rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem 2.5rem;
}
.donut-chart {
    position: relative; width: 160px; height: 160px; flex-shrink: 0;
}
.donut-svg {
    width: 160px; height: 160px;
    transform: rotate(0deg);
}
.donut-seg {
    transition: stroke-dasharray 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* pathLength workaround: SVG circle circumference = 2*pi*58 ≈ 364.4
       stroke-dasharray percentages are relative to circumference,
       but we use pathLength trick below */
}
/* Use pathLength="100" so dasharray values map directly to percentages */
.donut-svg circle { vector-effect: non-scaling-stroke; }
.donut-center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.donut-center-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem; font-weight: 600;
    color: var(--gold); line-height: 1;
}
.donut-center-label {
    display: block;
    font-size: 0.85rem; color: var(--text-secondary);
    margin-top: 0.25rem; line-height: 1.3;
}
.donut-legend {
    display: flex; flex-direction: column; gap: 0.65rem;
    flex: 1;
}
.donut-legend-item {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.95rem;
}
.donut-legend-item .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-legend-label { color: var(--text-secondary); flex: 1; }
.donut-legend-count {
    font-family: var(--font-mono); font-weight: 600;
    color: var(--text); font-size: 0.95rem;
}
.dot-unfulfilled { background: #3d4560; }

@media (max-width: 600px) {
    .status-donut-wrap { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
    .donut-legend { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
}

/* ══════════════════════════════════════════════════
   Featured Correlation — "Signal of the Day"
   ══════════════════════════════════════════════════ */
.featured-signal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    display: flex; gap: 1.5rem; align-items: flex-start;
    position: relative;
}
.featured-signal::after {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0; width: 200px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.02));
    pointer-events: none; border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.featured-score {
    position: relative; width: 56px; height: 56px; flex-shrink: 0;
}
.featured-body { flex: 1; min-width: 0; }
.featured-headline {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 600; line-height: 1.4;
    color: var(--text);
}
.featured-headline:hover { color: var(--gold); }
.featured-meta {
    font-size: 0.95rem; color: var(--text-secondary); margin-top: 0.3rem;
}
.featured-prophecy {
    display: inline-block; font-size: 1rem; color: var(--gold);
    margin-top: 0.4rem; font-weight: 500;
}
.featured-reasoning {
    font-size: 1rem; color: var(--text-secondary);
    margin-top: 0.6rem; line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   Correlation Cards
   ══════════════════════════════════════════════════ */
.correlation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 0.85rem;
}
.corr-card {
    display: flex; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
    transition: all 0.25s;
}
.corr-card:hover { border-color: var(--gold-dim); box-shadow: 0 4px 16px rgba(0,0,0,0.2); transform: translateY(-1px); }
.corr-score { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.score-ring { width: 48px; height: 48px; transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: var(--surface3); stroke-width: 3; }
.score-ring-fill { fill: none; stroke-width: 3; stroke-linecap: round; }
.score-num {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 0.8rem; font-weight: 700; color: var(--text);
    font-family: var(--font-mono);
}
.corr-body { flex: 1; min-width: 0; }
.corr-headline {
    display: block; font-weight: 600; font-size: 1rem; line-height: 1.4;
    color: var(--text);
}
.corr-headline:hover { color: var(--gold); }
.corr-meta { display: block; font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.2rem; }
.corr-prophecy { display: block; font-size: 0.95rem; color: var(--gold); margin-top: 0.3rem; font-weight: 500; }
.corr-reasoning {
    font-size: 0.95rem; color: var(--text-secondary);
    margin-top: 0.4rem; line-height: 1.65;
}

/* ══════════════════════════════════════════════════
   Catalog Filter
   ══════════════════════════════════════════════════ */
.catalog-filter { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.filter-btn {
    padding: 0.35rem 0.8rem; border-radius: 20px;
    background: transparent; border: 1px solid var(--border);
    color: var(--text-dim); font-size: 0.82rem; font-weight: 500;
    cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.filter-btn:hover { border-color: var(--gold-dim); color: var(--gold); }
.filter-btn.active { background: var(--gold-glow); border-color: var(--gold-dim); color: var(--gold); }

/* ══════════════════════════════════════════════════
   Badges
   ══════════════════════════════════════════════════ */
.badge {
    font-size: 0.78rem; padding: 3px 9px; border-radius: 3px;
    text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em;
    font-family: var(--font);
}
.badge-fulfilled, .badge-Fulfilled { background: var(--green-dim); color: var(--green); }
.badge-inprogress, .badge-In\ Progress { background: var(--amber-dim); color: var(--amber); }
.badge-partial, .badge-Partial, .badge-partiallyfulfilled, .badge-Partially\ Fulfilled { background: var(--orange-dim); color: var(--orange); }
.badge-unfulfilled, .badge-Unfulfilled { background: rgba(100, 116, 139, 0.1); color: var(--text-dim); border: 1px solid var(--border); }
.badge-debated, .badge-Debated { background: var(--purple-dim); color: var(--purple); }
.role-badge { font-size: 0.78rem; padding: 3px 7px; border-radius: 3px; font-weight: 600; }
.role-source { background: rgba(37, 99, 235, 0.15); color: #6b9ff7; }
.role-confirmation { background: rgba(22, 163, 74, 0.15); color: #5dba78; }
.role-parallel { background: rgba(147, 51, 234, 0.15); color: #b094d6; }
.role-supporting { background: rgba(202, 138, 4, 0.15); color: #d4a843; }
.source-badge {
    font-size: 0.78rem; padding: 2px 6px;
    background: var(--surface3); border-radius: 3px; color: var(--text-dim);
}

/* ══════════════════════════════════════════════════
   Timeline
   ══════════════════════════════════════════════════ */
.timeline-controls { padding-top: 2rem; }
.timeline-controls h1 {
    font-family: var(--font-display);
    font-size: 1.75rem; font-weight: 600;
}
.control-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1rem; flex-wrap: wrap; gap: 1rem;
}
.framework-toggle {
    display: flex; gap: 0.2rem;
    background: var(--surface); border-radius: var(--radius-sm); padding: 3px;
}
.fw-btn {
    padding: 0.4rem 1rem; border: none; background: transparent;
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 600;
    border-radius: 4px; cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.fw-btn:hover { color: var(--text); }
.fw-btn.active { background: var(--gold); color: var(--bg); }
.status-legend { display: flex; gap: 0.75rem; }

.framework-desc {
    margin-top: 0.75rem;
    font-size: 0.92rem; color: var(--text-secondary);
    line-height: 1.6; max-width: 700px;
}

.timeline-viewport-wrap {
    position: relative;
    margin-top: 1.5rem;
}
.timeline-viewport {
    overflow-x: auto; overflow-y: hidden;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); min-height: 520px;
    scrollbar-width: thin; scrollbar-color: var(--surface3) var(--surface);
}

/* Right-edge fade — only visible when content overflows AND not at end */
.timeline-edge-fade {
    position: absolute;
    top: 1px; right: 1px; bottom: 1px;
    width: 80px;
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--surface) 90%);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    opacity: 0;
    transition: opacity .25s ease;
}
.timeline-viewport-wrap.has-overflow:not(.at-end) .timeline-edge-fade {
    opacity: 1;
}

/* Scroll hint pill */
.timeline-scroll-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    background: rgba(11, 15, 26, 0.92);
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 3;
}
.timeline-viewport-wrap.has-overflow.at-start .timeline-scroll-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.timeline-scroll-arrow {
    display: inline-block;
    animation: scrollNudge 1.4s ease-in-out infinite;
}
@keyframes scrollNudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}
.timeline-viewport::-webkit-scrollbar { height: 6px; }
.timeline-viewport::-webkit-scrollbar-track { background: var(--surface); }
.timeline-viewport::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }
.timeline-canvas { min-width: 100%; }

.timeline-detail-panel {
    position: fixed; top: 0; right: -460px; width: 440px; height: 100vh;
    background: var(--bg2); border-left: 1px solid var(--border); z-index: 200;
    padding: 2rem; overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}
.timeline-detail-panel.open { right: 0; }
.panel-close {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--surface2); border: none; color: var(--text-secondary);
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}
.panel-close:hover { background: var(--surface3); color: var(--text); }
.panel-header { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
.panel-badge { font-size: 0.75rem; padding: 4px 10px; border-radius: 3px; color: #fff; font-weight: 700; }
.panel-cat { font-size: 0.9rem; color: var(--text-dim); }
.panel-title {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 600; margin-bottom: 0.75rem;
}
.panel-desc {
    font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem;
}
.panel-verses {
    font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0.75rem;
    padding: 0.75rem; background: var(--surface); border-radius: var(--radius-sm);
    line-height: 1.6;
}
.panel-framework {
    font-size: 0.95rem; color: var(--gold); margin-bottom: 0.75rem;
    padding: 0.75rem; background: var(--gold-subtle); border-radius: var(--radius-sm);
    line-height: 1.6; border: 1px solid rgba(201, 169, 110, 0.1);
}
.panel-correlations { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 1rem; }
.panel-link { display: inline-block; margin-top: 0.5rem; font-weight: 600; font-size: 1rem; }

/* Status Filter Buttons (Timeline) */
.legend-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: transparent; border: 1px solid var(--border); color: var(--text-dim);
    padding: 0.3rem 0.65rem; border-radius: 20px; font-size: 0.82rem;
    cursor: pointer; transition: all 0.2s ease; opacity: 0.6;
    font-family: var(--font);
}
.legend-btn.active {
    opacity: 1; color: var(--text); border-color: var(--gold-dim);
    background: var(--gold-subtle);
}
.legend-btn:hover { border-color: var(--gold-dim); opacity: 0.85; }
.legend-btn .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* ══════════════════════════════════════════════════
   Verse Display
   ══════════════════════════════════════════════════ */
.verse-list { display: flex; flex-direction: column; gap: 0.75rem; }
.verse-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
}
.verse-ref {
    margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem;
}
.verse-ref a {
    font-size: 1.1rem; font-weight: 600;
}
.kjv-text {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.95rem; line-height: 1.9; color: var(--text);
    font-weight: 300;
}
.kjv-text.large { font-size: 1.1rem; }
.original-text { font-size: 1.1rem; direction: ltr; margin-top: 0.5rem; color: var(--text-secondary); }
.original-text.hebrew { direction: rtl; font-family: 'SBL Hebrew', 'Ezra SIL', serif; font-size: 1.3rem; }
.original-text.greek { font-family: 'SBL Greek', 'GFS Didot', serif; }
.verse-notes { font-size: 0.82rem; color: var(--text-dim); font-style: italic; margin-top: 0.25rem; }

/* ══════════════════════════════════════════════════
   Inquire (unified Search + Ask)
   ══════════════════════════════════════════════════ */
.inquire-hero {
    padding: 3.5rem 0 2rem;
    text-align: center;
    position: relative;
}
.inquire-hero::before {
    content: '';
    position: absolute; top: -2rem; left: -4rem; right: -4rem; bottom: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(201, 169, 110, 0.05), transparent);
    pointer-events: none;
}
.inquire-hero h1 {
    font-family: var(--font-display);
    font-size: 2.6rem; font-weight: 500; color: var(--text);
}
.inquire-hero p {
    color: var(--text-secondary); max-width: 560px; margin: 0.75rem auto 0;
    font-size: 1.05rem; line-height: 1.7;
}

.inquire-form-wrap {
    max-width: 680px; margin: 0 auto 2rem;
}
.inquire-input-row {
    display: flex; gap: 0.5rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 0.5rem;
    transition: border-color 0.2s;
}
.inquire-input-row:focus-within { border-color: var(--gold-dim); }
.inquire-input {
    flex: 1; background: transparent; border: none;
    color: var(--text); padding: 0.75rem 1rem;
    font-size: 1rem; font-family: var(--font); resize: none; height: 52px;
}
.inquire-input:focus { outline: none; }
.inquire-input::placeholder { color: var(--text-dim); }
.inquire-submit {
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: var(--bg); border: none;
    padding: 0 1.5rem; border-radius: var(--radius);
    font-weight: 600; font-size: 0.85rem; font-family: var(--font);
    cursor: pointer; transition: all 0.2s; align-self: center;
    height: 40px; white-space: nowrap;
}
.inquire-submit:hover { background: linear-gradient(135deg, var(--gold), var(--gold-bright)); }
.inquire-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.inquire-hint {
    text-align: center; font-size: 0.85rem; color: var(--text-dim);
    margin-top: 0.5rem;
}
.inquire-hint a { color: var(--gold); }

.inquire-samples { text-align: center; margin-top: 1.25rem; }
.inquire-samples-label { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.sample-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.sample-btn {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-secondary); padding: 0.4rem 0.85rem; border-radius: 20px;
    font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
    font-family: var(--font);
}
.sample-btn:hover { border-color: var(--gold-dim); color: var(--gold); }

/* Mode toggle */
.inquire-mode {
    display: flex; gap: 0.2rem; justify-content: center; margin-bottom: 1.25rem;
    background: var(--surface); border-radius: var(--radius-sm); padding: 3px;
    width: fit-content; margin-left: auto; margin-right: auto;
}
.mode-btn {
    padding: 0.45rem 1.3rem; border: none; background: transparent;
    color: var(--text-secondary); font-size: 0.88rem; font-weight: 600;
    border-radius: 4px; cursor: pointer; transition: all 0.2s;
    font-family: var(--font);
}
.mode-btn:hover { color: var(--text); }
.mode-btn.active { background: var(--gold); color: var(--bg); }

/* Answer area */
.inquire-answer-wrap {
    max-width: 680px; margin: 0 auto 2rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.75rem;
    display: none;
}
.inquire-answer-wrap.visible { display: block; }
.inquire-answer-label {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--gold); font-weight: 700; margin-bottom: 0.75rem;
    font-family: var(--font);
}
.inquire-answer-text {
    font-family: var(--font);
    font-size: 1rem; line-height: 1.8; color: var(--text);
    white-space: pre-wrap;
}
.inquire-answer-text mark {
    background: rgba(201, 169, 110, 0.15); color: var(--gold-bright);
    padding: 0 2px; border-radius: 2px;
}
.inquire-answer-text h1, .inquire-answer-text h2, .inquire-answer-text h3 {
    font-family: var(--font-display); color: var(--gold);
    margin: 1.25rem 0 0.5rem; line-height: 1.3;
}
.inquire-answer-text h1 { font-size: 1.3rem; }
.inquire-answer-text h2 { font-size: 1.15rem; }
.inquire-answer-text h3 { font-size: 1.05rem; }
.inquire-answer-text p { margin-bottom: 0.75rem; }
.inquire-thinking {
    color: var(--text-dim); font-size: 0.88rem;
    font-family: var(--font); font-style: italic;
}
.inquire-cursor {
    display: inline-block; width: 2px; height: 1em;
    background: var(--gold); margin-left: 1px;
    animation: blink 0.7s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Sources */
.inquire-sources {
    margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem;
}
.inquire-sources-label {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-dim); margin-bottom: 0.75rem; font-family: var(--font);
}
.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.6rem;
}
.source-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.75rem; font-size: 0.8rem;
}
.source-card .src-type {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-dim); margin-bottom: 0.2rem; font-family: var(--font);
}
.source-card .src-title { font-weight: 600; color: var(--text); margin-bottom: 0.15rem; line-height: 1.3; font-size: 0.9rem; }
.source-card .src-title a { color: inherit; text-decoration: none; }
.source-card .src-title a:hover { color: var(--gold); }
.source-card .src-meta { color: var(--text-dim); font-size: 0.85rem; }
.source-card.src-verse { border-left: 2px solid var(--green); }
.source-card.src-prophecy { border-left: 2px solid var(--gold); }
.source-card.src-headline { border-left: 2px solid var(--amber); }

/* Search results within Inquire */
.search-results { max-width: 680px; margin: 0 auto; }
.search-results section { margin-bottom: 2rem; }
.search-results h2 {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
    color: var(--gold); margin-bottom: 0.75rem;
    padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.result-item { padding: 0.75rem 0; border-bottom: 1px solid rgba(36, 48, 73, 0.5); }
.result-item a { font-weight: 600; font-size: 1rem; }
.snippet { font-size: 0.95rem; color: var(--text-secondary); margin-top: 0.25rem; line-height: 1.65; }
.snippet mark { background: rgba(201, 169, 110, 0.2); color: var(--gold-bright); padding: 0 3px; border-radius: 2px; }
.no-results { color: var(--text-dim); font-style: italic; text-align: center; padding: 2rem 0; }

.inquire-limit-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; color: var(--text-dim);
    margin-bottom: 0.5rem;
}
.inquire-limit-badge .limit-count { font-weight: 700; color: var(--gold); }
.inquire-signin-cta {
    display: inline-block; margin-top: 0.25rem;
    padding: 0.4rem 1rem; border-radius: 4px;
    background: var(--gold); color: #0b0f1a;
    font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.inquire-signin-cta:hover { background: #e0bb82; }

/* ══════════════════════════════════════════════════
   Search (legacy compat)
   ══════════════════════════════════════════════════ */
.search-form { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.search-form input {
    flex: 1; padding: 0.85rem 1.25rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
    font-size: 1rem; font-family: var(--font); transition: border-color 0.2s;
}
.search-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.search-form button {
    padding: 0.85rem 1.75rem; background: var(--gold); color: var(--bg);
    border: none; border-radius: var(--radius); cursor: pointer;
    font-size: 0.9rem; font-weight: 600; font-family: var(--font); transition: background 0.2s;
}
.search-form button:hover { background: var(--gold-bright); }
.search-hint { font-size: 0.88rem; color: var(--text-dim); margin: 0.5rem 0 1.25rem; }

/* ══════════════════════════════════════════════════
   Headlines
   ══════════════════════════════════════════════════ */
.headline-list { display: flex; flex-direction: column; gap: 0.5rem; }
.headline-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); transition: border-color 0.25s;
}
.headline-row:hover { border-color: var(--gold-dim); }
.headline-main a { font-weight: 600; font-size: 1.05rem; }
.meta { display: block; font-size: 0.9rem; color: var(--text-dim); margin-top: 0.2rem; }
.score-pill {
    padding: 5px 12px; border-radius: 3px; font-size: 0.82rem;
    font-weight: 700; color: white; white-space: nowrap;
    font-family: var(--font-mono);
}
.score-pill.unscored { background: var(--surface3); color: var(--text-dim); }

/* ══════════════════════════════════════════════════
   Detail Pages
   ══════════════════════════════════════════════════ */
.breadcrumb { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 1rem; padding-top: 2rem; }
.breadcrumb a { color: var(--text-secondary); }
.prophecy-detail, .headline-detail, .verse-detail { margin-bottom: 2rem; }
.description {
    font-family: var(--font); font-size: 1.05rem; line-height: 1.8;
    margin: 1rem 0; color: var(--text-secondary);
}
.notes-box, .terms-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem; margin: 1rem 0;
}
.notes-box h3, .terms-box h3 {
    font-family: var(--font); font-size: 0.8rem; color: var(--gold);
    margin-bottom: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.terms { font-size: 1rem; line-height: 1.8; }
.meta-bar {
    display: flex; gap: 1rem; font-size: 0.95rem; color: var(--text-dim);
    flex-wrap: wrap; margin: 0.5rem 0 1.5rem;
}
.summary {
    font-family: var(--font); font-size: 1.05rem; line-height: 1.8;
    color: var(--text-secondary);
}
/* Correlation list (detail pages) */
.correlation-list { display: flex; flex-direction: column; gap: 0.75rem; }
.correlation-card {
    display: flex; gap: 1rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem;
}
.score-badge {
    min-width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.82rem; color: white; flex-shrink: 0;
    font-family: var(--font-mono);
}
.correlation-body { flex: 1; }
.headline-link { font-weight: 600; font-size: 1.05rem; }
.prophecy-link { display: block; color: var(--gold); font-size: 0.95rem; margin: 0.25rem 0; }
.reasoning { font-size: 1rem; color: var(--text-secondary); margin-top: 0.5rem; line-height: 1.7; }

/* ══════════════════════════════════════════════════
   Word Table
   ══════════════════════════════════════════════════ */
.word-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.word-table th {
    background: var(--surface2); padding: 0.6rem 0.75rem; text-align: left;
    font-size: 0.75rem; text-transform: uppercase; color: var(--text-dim);
    letter-spacing: 0.06em; font-weight: 700;
}
.word-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.word-table code { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); }
.word-table tr:hover td { background: var(--surface); }

/* ══════════════════════════════════════════════════
   Tracker Page
   ══════════════════════════════════════════════════ */

/* ── Tracker Layout ── */
.tracker-hero { padding: 2.5rem 0 1rem; }
.tracker-hero h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.tracker-hero p  { color: var(--text-dim); font-size: 0.95rem; }

.tracker-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.summary-card .s-num  { font-size: 2rem; font-weight: 800; line-height: 1; }
.summary-card .s-label{ font-size: 0.85rem; color: var(--text-dim); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: .05em; }
.summary-card .s-bar  { height: 4px; background: var(--border); border-radius: 2px; margin-top: 0.75rem; }
.summary-card .s-fill { height: 4px; border-radius: 2px; background: var(--gold); }

/* ── Tracker Filters ── */
.tracker-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.5rem; align-items: center;
}
.filter-label { font-size: 0.8rem; color: var(--text-dim); margin-right: 0.25rem; }
.tracker-filters .filter-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 0.3rem 0.85rem; border-radius: var(--radius-sm);
  font-size: 0.82rem; cursor: pointer; transition: all .15s;
}
.tracker-filters .filter-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.tracker-filters .filter-btn:hover:not(.active) { border-color: var(--gold); color: var(--gold); }
.filter-sep { width: 1px; height: 20px; background: var(--border); margin: 0 0.25rem; }

/* ── Tracker Card Grid ── */
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

/* ── Prophecy Card ── */
.p-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.p-card:hover { border-color: var(--gold-dim); transform: translateY(-1px); }

.p-card-header { padding: 1rem 1.1rem 0.75rem; }
.p-card-meta {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.5rem; flex-wrap: wrap;
}
.p-id    { font-size: 0.8rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.p-cat   { font-size: 0.8rem; background: rgba(99,102,241,.12); color: #a5b4fc;
           padding: 0.1rem 0.5rem; border-radius: 4px; }
.p-status{
  font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 4px;
  margin-left: auto;
}
.status-Fulfilled        { background: rgba(34,197,94,.15);  color: #4ade80; }
.status-Partial          { background: rgba(251,191,36,.12); color: #fbbf24; }
.status-Partially-Fulfilled { background: rgba(251,191,36,.15); color: #f59e0b; }
.status-In-Progress      { background: rgba(99,102,241,.15); color: #818cf8; }
.status-Debated          { background: rgba(156,163,175,.12); color: #9ca3af; }
.status-Unfulfilled      { background: rgba(239,68,68,.1);   color: #f87171; }
.status-Pending          { background: rgba(100,116,139,.12); color: #94a3b8; }

.p-title { font-size: 0.95rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.65rem; }
.p-title a { color: var(--text); text-decoration: none; }
.p-title a:hover { color: var(--gold); }

/* ── Progress Bar ── */
.p-progress { padding: 0 1.1rem 0.85rem; }
.p-bar-row  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.p-bar-label{ font-size: 0.85rem; color: var(--text-dim); }
.p-bar-pct  { font-size: 0.82rem; font-weight: 700; }
.p-bar      { height: 6px; background: var(--border); border-radius: 3px; }
.p-bar-fill { height: 6px; border-radius: 3px; transition: width 0.5s ease; }
.pct-100  { background: #22c55e; }
.pct-high { background: #84cc16; }
.pct-mid  { background: #f59e0b; }
.pct-low  { background: #6366f1; }
.pct-min  { background: #475569; }

/* ── Evidence Section ── */
.p-evidence { border-top: 1px solid var(--border); padding: 0.75rem 1.1rem; }
.p-evidence-toggle {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.p-evidence-label { font-size: 0.88rem; color: var(--text-dim); }
.p-evidence-counts { display: flex; gap: 1rem; }
.ev-count { font-size: 0.85rem; }
.ev-count strong { color: var(--text); }
.p-chevron { font-size: 0.7rem; color: var(--text-dim); transition: transform .2s; }
.p-chevron.open { transform: rotate(180deg); }

.p-headlines { display: none; margin-top: 0.65rem; }
.p-headlines.open { display: block; }
.headline-item {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
.headline-item:first-child { border-top: none; }
.hl-title { font-size: 0.88rem; font-weight: 500; margin-bottom: 0.15rem; }
.hl-title a { color: var(--text); text-decoration: none; }
.hl-title a:hover { color: var(--gold); }
.hl-meta  { display: flex; gap: 0.75rem; }
.hl-source{ font-size: 0.82rem; color: var(--text-dim); }
.hl-score { font-size: 0.8rem; font-weight: 600; padding: 0 0.35rem; border-radius: 3px; }
.score-strong { background: rgba(239,68,68,.15); color: #ef4444; }
.score-mod    { background: rgba(245,158,11,.15); color: #f59e0b; }
.score-weak   { background: rgba(99,102,241,.12); color: #818cf8; }
.hl-reasoning { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.25rem; font-style: italic; line-height: 1.4; }

.no-evidence { font-size: 0.88rem; color: var(--text-dim); font-style: italic; margin-top: 0.5rem; }

.p-verse-link {
  font-size: 0.85rem; color: var(--gold); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.5rem;
}
.p-verse-link:hover { text-decoration: underline; }

/* hidden card */
.p-card.hidden { display: none; }

/* ── Tiered sections ── */
.tracker-section {
  margin-top: 2.5rem;
}
.tracker-section:first-child { margin-top: 0; }
.tracker-section.hidden { display: none; }
.tracker-section .tracker-grid { margin-top: 0; }

/* Collapsed state — hide overflow cards */
.tracker-section.is-collapsed .p-card-overflow { display: none; }

/* Tier toggle button */
.tier-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.65rem 1.15rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.tier-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 110, 0.05);
}
.tier-toggle-chevron {
  display: inline-block;
  font-size: 0.85rem;
  transition: transform .2s ease;
}
.tracker-section.is-collapsed .tier-toggle-hide,
.tracker-section:not(.is-collapsed) .tier-toggle-show { display: none; }
.tracker-section:not(.is-collapsed) .tier-toggle-chevron { transform: rotate(180deg); }

/* ── Tier section headers ── */
.tier-header {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.5rem 0 1.5rem;
  position: relative;
}
.tracker-section:first-child .tier-header { padding-top: 0.5rem; }
.tier-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 88px;
  height: 2px;
  background: var(--gold);
}
.tracker-section:first-child .tier-header::before { display: none; }
.tier-header .tier-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.tier-header .tier-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.005em;
  margin: 0;
}
.tier-header .tier-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.15rem;
}
.tier-header .tier-meta strong {
  color: var(--gold);
  font-weight: 600;
}
.tier-header .tier-sep {
  color: var(--gold);
  opacity: 0.5;
  margin: 0 0.4rem;
}
.tier-header.tier-unfolding::before { background: #e6c98a; }
.tier-header.tier-unfolding .tier-eyebrow { color: #e6c98a; }
.tier-header.tier-watching::before { background: var(--text-secondary); opacity: 0.6; }
.tier-header.tier-watching .tier-eyebrow { color: var(--text-secondary); }
.tier-header.tier-watching .tier-meta strong { color: var(--text-secondary); }
.tier-header.hidden { display: none; }

@media (max-width: 600px) {
  .tier-header { padding: 2rem 0 1rem; }
  .tier-header .tier-title { font-size: 2rem; }
}

@media (max-width: 640px) {
  .tracker-summary { grid-template-columns: repeat(2, 1fr); }
  .tracker-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border); padding: 2rem; margin-top: 4rem;
}
.footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--text-dim);
}
.footer-brand {
    font-family: var(--font-display); font-weight: 600;
    color: var(--text-secondary);
}
.footer-sep { color: var(--border); }
.footer-link { color: var(--text-dim); transition: color 0.2s; }
.footer-link:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════
   Prophecy Detail — Language Badges + Compare
   ══════════════════════════════════════════════════ */
.section-header-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; gap: 1rem;
}
.section-header-row h2 { margin: 0; }
.lang-badges {
    display: flex; gap: 0.35rem; margin: 0.5rem 0;
}
.lang-btn {
    padding: 0.25rem 0.65rem; border-radius: 20px;
    background: transparent; border: 1px solid var(--border);
    color: var(--text-dim); font-family: var(--font);
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.03em;
    cursor: pointer; transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--border-light); color: var(--text-secondary); }
.lang-btn.active {
    background: var(--gold-subtle); border-color: var(--gold-dim); color: var(--gold);
}
.compare-verse-btn {
    margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem;
}
.compare-verse-btn svg { flex-shrink: 0; }
.verse-texts { margin-top: 0.4rem; }
.verse-text { margin-bottom: 0.5rem; }
.lang-label {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-dim); margin-bottom: 0.15rem;
}
.verse-notes {
    font-size: 0.88rem; color: var(--text-dim); font-style: italic;
    margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px solid var(--border);
}
.expand-btn {
    display: block; width: 100%; padding: 0.6rem;
    margin-top: 0.75rem; border-radius: var(--radius);
    background: transparent; border: 1px solid var(--border);
    color: var(--text-dim); font-family: var(--font); font-size: 0.85rem;
    cursor: pointer; transition: all 0.2s; text-align: center;
}
.expand-btn:hover { border-color: var(--gold-dim); color: var(--gold); }

/* Compare panel */
.verse-compare { margin-top: 0.75rem; }
.compare-panel {
    background: var(--surface); border: 1px solid var(--gold-dim);
    border-radius: var(--radius); margin-bottom: 1.5rem;
    overflow: hidden;
}
.compare-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border);
}
.compare-panel-header h3 {
    font-family: var(--font-display); font-size: 1.1rem; color: var(--gold);
    margin: 0;
}
.compare-close {
    background: none; border: none; color: var(--text-dim);
    font-size: 1.4rem; cursor: pointer; padding: 0 0.25rem;
    line-height: 1;
}
.compare-close:hover { color: var(--text); }
.compare-panel-body {
    padding: 1.25rem; color: var(--text-secondary);
    font-size: 0.95rem; line-height: 1.7;
}
.compare-panel-body p { margin-bottom: 0.75rem; }
.compare-panel-body strong { color: var(--text); }
.compare-panel-body em { color: var(--gold); }
.compare-panel-body h4.compare-section {
    font-family: var(--font-display, inherit);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.4rem 0 0.6rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}
.compare-panel-body h4.compare-section:first-child { margin-top: 0; }
.compare-panel-hint {
    padding: 0.5rem 1.25rem; font-size: 0.8rem; color: var(--text-dim);
    font-style: italic;
}
.compare-panel-hint a { color: var(--gold-dim); }
.compare-panel-hint a:hover { color: var(--gold); }
.compare-panel-footer {
    padding: 0.6rem 1.25rem; border-top: 1px solid var(--border);
    font-size: 0.85rem; color: var(--text-dim); text-align: center;
}

@media (max-width: 600px) {
    .section-header-row { flex-direction: column; align-items: flex-start; }
    .lang-badges { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════
   Market Sentiment Cards
   ══════════════════════════════════════════════════ */
.section-subtitle {
    color: var(--text-dim); font-size: 0.9rem; margin: -0.5rem 0 1.25rem;
}
.market-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.market-card {
    display: flex; align-items: flex-start; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.25rem;
    text-decoration: none; transition: all 0.2s;
}
.market-card:hover {
    border-color: var(--border-light); color: var(--text);
}
.market-prob {
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
    color: var(--gold); min-width: 56px; text-align: center;
    line-height: 1;
}
.market-body { flex: 1; min-width: 0; }
.market-question {
    font-size: 0.9rem; color: var(--text); line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.market-meta {
    display: flex; gap: 0.75rem; margin-top: 0.4rem;
    font-size: 0.78rem; color: var(--text-dim);
}

@media (max-width: 600px) {
    .market-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   About Page
   ══════════════════════════════════════════════════ */
.about-hero {
    text-align: center; padding: 3.5rem 0 2rem;
    max-width: 720px; margin: 0 auto;
}
.about-hero h1 {
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 600;
    line-height: 1.25;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-hero p {
    color: var(--text-secondary); font-size: 1.1rem; line-height: 1.75;
    margin-top: 1rem;
}
.about-section {
    max-width: 800px; margin: 0 auto 3.5rem;
}
.about-section h2 {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 600;
    color: var(--text); margin-bottom: 0.5rem;
}
.about-section-intro {
    color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75;
    margin-bottom: 2rem;
}
.about-texts-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.about-text-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
}
.about-text-card:hover { border-color: var(--border-light); }
.about-text-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--gold-glow); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; margin-bottom: 0.75rem;
}
.about-text-card h3 {
    font-family: var(--font-display); font-size: 1.15rem; color: var(--text);
    margin-bottom: 0.4rem;
}
.about-text-card p {
    color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6;
}
.about-stats-bar {
    display: flex; justify-content: center; gap: 3rem;
    padding: 1.5rem 0; margin-bottom: 1.5rem;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.about-stat { text-align: center; }
.about-stat-num {
    display: block; font-family: var(--font-display); font-size: 2rem;
    font-weight: 700; color: var(--gold);
}
.about-stat-label {
    font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase;
    letter-spacing: 0.04em;
}
.about-feature-block {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}
.about-feature-block h3 {
    font-family: var(--font-display); font-size: 1.15rem; color: var(--text);
    margin-bottom: 0.75rem;
}
.about-feature-list {
    list-style: none; padding: 0;
}
.about-feature-list li {
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
    padding: 0.5rem 0; border-bottom: 1px solid var(--border);
}
.about-feature-list li:last-child { border-bottom: none; }
.about-feature-list li strong { color: var(--text); }
.about-feature-list li em { color: var(--gold); font-style: italic; }
.about-roadmap {
    display: flex; flex-direction: column; gap: 1rem;
}
.about-roadmap-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
}
.about-roadmap-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem; border-radius: 3px;
    background: var(--gold-glow); color: var(--gold);
    margin-bottom: 0.5rem;
}
.about-roadmap-item h3 {
    font-family: var(--font-display); font-size: 1.15rem; color: var(--text);
    margin-bottom: 0.35rem;
}
.about-roadmap-item p {
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65;
}
.about-cta {
    text-align: center; padding: 3rem 0;
    max-width: 500px; margin: 0 auto 2rem;
}
.about-cta h2 {
    font-family: var(--font-display); font-size: 1.8rem; color: var(--text);
}
.about-cta p {
    color: var(--text-secondary); font-size: 1.05rem; margin: 0.5rem 0 1.5rem;
}
.about-cta-buttons {
    display: flex; gap: 0.75rem; justify-content: center;
}

@media (max-width: 600px) {
    .about-texts-grid { grid-template-columns: 1fr; }
    .about-stats-bar { gap: 1.5rem; }
    .about-hero h1 { font-size: 1.7rem; }
    .about-cta-buttons { flex-direction: column; }
}

/* ══════════════════════════════════════════════════
   Account Page
   ══════════════════════════════════════════════════ */
.account-hero {
    text-align: center; padding: 3rem 0 1.5rem;
}
.account-hero h1 {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
    color: var(--text);
}
.account-wrap {
    max-width: 520px; margin: 0 auto 3rem;
}
.account-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    margin-bottom: 1rem;
}
.account-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0; border-bottom: 1px solid var(--border);
}
.account-row:last-child { border-bottom: none; }
.account-label { font-size: 0.9rem; color: var(--text-dim); }
.account-value { font-size: 0.95rem; color: var(--text); }
.account-tier-badge {
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}
.account-tier-free { background: var(--surface2); color: var(--text-dim); }
.account-tier-pro { background: var(--gold-glow); color: var(--gold); }
.account-upgrade-card {
    background: var(--surface); border: 1px solid var(--gold-dim);
    border-radius: var(--radius); padding: 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
}
.account-upgrade-content h3 {
    font-family: var(--font-display); color: var(--gold); font-size: 1.2rem;
}
.account-upgrade-content p {
    color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════
   Pricing Page
   ══════════════════════════════════════════════════ */
.pricing-hero {
    text-align: center; padding: 3rem 0 2rem;
    max-width: 560px; margin: 0 auto;
}
.pricing-hero h1 {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-hero p {
    color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7;
    margin-top: 0.5rem;
}
.pricing-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; max-width: 720px; margin: 0 auto 3rem;
}
.pricing-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    display: flex; flex-direction: column;
}
.pricing-featured {
    border-color: var(--gold-dim);
    box-shadow: 0 0 30px rgba(201, 169, 110, 0.08);
}
.pricing-card-header { margin-bottom: 1.5rem; }
.pricing-card-header h3 {
    font-family: var(--font-display); font-size: 1.3rem; color: var(--text);
    margin-bottom: 0.5rem;
}
.pricing-price {
    font-family: var(--font-display); font-size: 3rem; font-weight: 700;
    color: var(--text); line-height: 1;
}
.pricing-featured .pricing-price { color: var(--gold); }
.pricing-period { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.pricing-features {
    list-style: none; flex: 1; margin-bottom: 1.5rem;
}
.pricing-features li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.4rem 0; font-size: 0.95rem; color: var(--text-secondary);
}
.pricing-features li svg { flex-shrink: 0; margin-top: 2px; }
.pricing-features li strong { color: var(--text); }
.pricing-coming-soon { color: var(--text-dim); }
.pricing-soon-tag {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-dim); background: var(--surface2);
    padding: 0.1rem 0.4rem; border-radius: 3px; margin-left: 0.3rem;
}
.pricing-cta-wrap { margin-top: auto; }
.pricing-current-badge {
    display: block; text-align: center; padding: 0.7rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text-dim); font-size: 0.9rem; font-weight: 500;
}

@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .account-upgrade-card { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════
   Login Page
   ══════════════════════════════════════════════════ */
.login-hero {
    text-align: center; padding: 3rem 0 1.5rem;
    max-width: 480px; margin: 0 auto;
}
.login-hero h1 {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-hero p {
    color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7;
    margin-top: 0.5rem;
}
.login-form-wrap {
    max-width: 420px; margin: 0 auto 3rem;
}
.auth-error-banner {
    background: var(--red-dim); border: 1px solid var(--red);
    color: var(--red); padding: 0.75rem 1rem; border-radius: var(--radius);
    font-size: 0.9rem; margin-bottom: 1.25rem; text-align: center;
}
.login-email-sent {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 2rem 1rem;
}
.login-email-sent h2 {
    font-family: var(--font-display); color: var(--text);
    margin: 1rem 0 0.5rem;
}
.login-email-sent p {
    color: var(--text-secondary); max-width: 360px; line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   Feedback Page
   ══════════════════════════════════════════════════ */
.feedback-hero {
    text-align: center; padding: 3rem 0 1.5rem;
    max-width: 600px; margin: 0 auto;
}
.feedback-hero h1 {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.feedback-hero p {
    color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7;
    margin-top: 0.5rem;
}
.feedback-form-wrap {
    max-width: 600px; margin: 0 auto 3rem;
}
.feedback-categories {
    display: flex; gap: 0.5rem; margin-bottom: 1.5rem;
}
.feedback-cat-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-secondary); font-family: var(--font); font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s;
}
.feedback-cat-btn:hover {
    border-color: var(--gold-dim); color: var(--text);
}
.feedback-cat-btn.active {
    border-color: var(--gold); color: var(--gold);
    background: var(--gold-subtle);
}
.feedback-cat-btn svg { flex-shrink: 0; }
.feedback-field { margin-bottom: 1.25rem; }
.feedback-label {
    display: block; font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 0.4rem;
}
.feedback-optional { color: var(--text-dim); font-weight: 400; }
.feedback-textarea {
    width: 100%; min-height: 140px; padding: 0.85rem 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-family: var(--font); font-size: 1rem; line-height: 1.6;
    resize: vertical; transition: border-color 0.2s;
}
.feedback-textarea:focus {
    outline: none; border-color: var(--gold-dim);
}
.feedback-textarea::placeholder { color: var(--text-dim); }
.feedback-char-count {
    text-align: right; font-size: 0.78rem; color: var(--text-dim);
    margin-top: 0.3rem;
}
.feedback-email-input {
    width: 100%; padding: 0.7rem 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-family: var(--font); font-size: 1rem;
    transition: border-color 0.2s;
}
.feedback-email-input:focus {
    outline: none; border-color: var(--gold-dim);
}
.feedback-email-input::placeholder { color: var(--text-dim); }
.feedback-submit {
    width: 100%; padding: 0.85rem;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: var(--bg); border: none; border-radius: var(--radius);
    font-family: var(--font); font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: all 0.2s; margin-top: 0.5rem;
}
.feedback-submit:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
}
.feedback-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.feedback-success {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 3rem 1rem;
}
.feedback-success h2 {
    font-family: var(--font-display); color: var(--text);
    margin: 1rem 0 0.5rem;
}
.feedback-success p {
    color: var(--text-secondary); max-width: 400px; line-height: 1.6;
}

@media (max-width: 768px) {
    .feedback-categories { flex-direction: column; }
}

/* ══════════════════════════════════════════════════
   Admin: Feedback Inbox
   ══════════════════════════════════════════════════ */
.admin-header {
    text-align: center; padding: 3rem 0 1rem;
}
.admin-header h1 {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
    color: var(--text);
}
.admin-subtitle {
    color: var(--text-dim); font-size: 1rem; margin-top: 0.25rem;
}
.admin-filters {
    display: flex; gap: 0.4rem; justify-content: center;
    flex-wrap: wrap; margin-bottom: 2rem;
}
.admin-sep {
    width: 1px; background: var(--border); margin: 0 0.5rem;
}
.admin-list {
    max-width: 720px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 0.75rem;
}
.admin-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
    transition: border-color 0.2s;
}
.admin-card:hover { border-color: var(--border-light); }
.admin-card-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.75rem;
}
.admin-card-badges { display: flex; gap: 0.4rem; }
.admin-cat-badge, .admin-status-badge {
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}
.admin-cat-topic { background: var(--purple-dim); color: var(--purple); }
.admin-cat-bug { background: var(--red-dim); color: var(--red); }
.admin-cat-suggestion { background: var(--amber-dim); color: var(--amber); }
.admin-status-new { background: var(--gold-glow); color: var(--gold); }
.admin-status-reviewed { background: rgba(93, 186, 120, 0.08); color: var(--green); }
.admin-status-done { background: var(--surface2); color: var(--text-dim); }
.admin-date { font-size: 0.85rem; color: var(--text-dim); }
.admin-message {
    color: var(--text); line-height: 1.65; white-space: pre-wrap;
    margin-bottom: 0.75rem;
}
.admin-email {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.75rem;
}
.admin-email svg { color: var(--text-dim); flex-shrink: 0; }
.admin-actions { display: flex; justify-content: flex-end; }
.admin-status-select {
    background: var(--surface2); border: 1px solid var(--border);
    color: var(--text-secondary); padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm); font-family: var(--font);
    font-size: 0.85rem; cursor: pointer;
}
.admin-status-select:focus { outline: none; border-color: var(--gold-dim); }
.admin-empty {
    text-align: center; padding: 3rem; color: var(--text-dim);
}

/* ══════════════════════════════════════════════════
   Focus States — Accessibility
   ══════════════════════════════════════════════════ */
.nav-link:focus-visible,
.filter-btn:focus-visible,
.fw-btn:focus-visible,
.legend-btn:focus-visible,
.mode-btn:focus-visible,
.sample-btn:focus-visible,
.ask-sample-btn:focus-visible,
.btn:focus-visible,
.feedback-cat-btn:focus-visible,
.feedback-submit:focus-visible,
.feedback-textarea:focus-visible,
.feedback-email-input:focus-visible,
.panel-close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════════════
   Animations — Entrance
   ══════════════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

/* ══════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero { gap: 2rem; }
    .hero-title { font-size: 2.2rem; }
    .stat-bar { flex-wrap: wrap; gap: 1.5rem; }
    .correlation-grid { grid-template-columns: 1fr; }
    .featured-signal { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--bg2); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 0.5rem;
    }
    .nav-links.open { display: flex; }
    .nav-mobile-toggle { display: flex; }
    .main { padding: 0 1rem 3rem; }
    .hero { padding: 2.5rem 0; }
    .hero-title { font-size: 1.8rem; }
    .stat-bar { gap: 1rem; }
    .stat-num { font-size: 1.5rem; }
    .prophecy-grid { grid-template-columns: 1fr; }
    .control-row { flex-direction: column; align-items: flex-start; }
    .status-legend { flex-wrap: wrap; }
    .timeline-detail-panel { width: 100%; right: -100%; }
    .headline-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .catalog-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
    .inquire-hero h1 { font-size: 1.8rem; }
    .inquire-input-row { flex-direction: column; }
    .inquire-submit { height: 44px; }
}

/* ── Hero Badge ───────────────────────────── */
.hero-badge {
    display: inline-block;
    background: rgba(201, 169, 110, 0.12);
    border: 1px solid rgba(201, 169, 110, 0.3);
    color: var(--gold);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

/* ── Newsletter (Footer) ─────────────────── */
.footer-top {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.footer-newsletter {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}
.footer-newsletter h3 {
    font-family: var(--heading);
    font-size: 1.15rem;
    color: var(--gold);
    margin: 0 0 0.4rem;
}
.footer-newsletter p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}
.newsletter-input {
    flex: 1;
    padding: 0.55rem 0.85rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
}
.newsletter-input::placeholder { color: var(--text-dim); }
.newsletter-input:focus {
    outline: none;
    border-color: var(--gold-dim);
}
.newsletter-btn {
    white-space: nowrap;
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}
.newsletter-msg {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── About: Story ────────────────────────── */
.about-story {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
}
.about-story p {
    font-family: var(--scripture);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}
.about-story p:last-of-type:not(.about-story-author) {
    margin-bottom: 1rem;
}
.about-story-author {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

/* ── Responsive: Newsletter ──────────────── */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-btn {
        width: 100%;
    }
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* ── Blog: Listing ───────────────────────── */
.blog-hero {
    text-align: center;
    padding: 3rem 0 1.5rem;
}
.blog-hero h1 {
    font-family: var(--heading);
    font-size: 2.5rem;
    color: var(--text);
    margin: 0 0 0.5rem;
}
.blog-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}
.blog-categories {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-2px);
}
.blog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.blog-card-category {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-card-date {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: var(--mono);
}
.blog-card-title {
    font-family: var(--heading);
    font-size: 1.25rem;
    color: var(--text);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}
.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 0.75rem;
    flex: 1;
}
.blog-card-read {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
}
.blog-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-dim);
}

/* ── Blog: Article ───────────────────────── */
.blog-article {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 3rem;
}
.blog-article-header {
    text-align: center;
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.blog-article-category {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}
.blog-article-category:hover { text-decoration: underline; }
.blog-article-header h1 {
    font-family: var(--heading);
    font-size: 2.2rem;
    color: var(--text);
    margin: 0.75rem 0 1rem;
    line-height: 1.25;
}
.blog-article-meta {
    font-size: 0.85rem;
    color: var(--text-dim);
}
.blog-meta-sep {
    margin: 0 0.5rem;
    opacity: 0.4;
}

/* Article body typography */
.blog-article-body {
    font-family: var(--font);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.blog-article-body h2 {
    font-family: var(--heading);
    font-size: 1.5rem;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.blog-article-body h3 {
    font-family: var(--heading);
    font-size: 1.2rem;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}
.blog-article-body p {
    margin: 0 0 1.25rem;
}
.blog-article-body strong {
    color: var(--text);
    font-weight: 600;
}
.blog-article-body em {
    font-family: var(--scripture);
    color: var(--gold);
}
.blog-article-body blockquote {
    border-left: 3px solid var(--gold);
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background: var(--surface2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--scripture);
}
.blog-article-body blockquote p {
    margin-bottom: 0.5rem;
}
.blog-article-body blockquote p:last-child {
    margin-bottom: 0;
}
.blog-article-body ul, .blog-article-body ol {
    margin: 0 0 1.25rem 1.5rem;
}
.blog-article-body li {
    margin-bottom: 0.5rem;
}
.blog-article-body a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(201, 169, 110, 0.3);
    text-underline-offset: 2px;
}
.blog-article-body a:hover {
    text-decoration-color: var(--gold);
}
.blog-article-body code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--surface3);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

/* In-article newsletter CTA */
.blog-article-cta {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}
.blog-article-cta h3 {
    font-family: var(--heading);
    font-size: 1.15rem;
    color: var(--gold);
    margin: 0 0 0.4rem;
}
.blog-article-cta p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}
.blog-article-cta .newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

/* Related posts */
.blog-related {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.blog-related h3 {
    font-family: var(--heading);
    font-size: 1.15rem;
    color: var(--text);
    margin: 0 0 1rem;
}
.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.blog-related-card {
    padding: 1rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: border-color 0.2s;
}
.blog-related-card:hover { border-color: var(--gold-dim); }
.blog-related-card h4 {
    font-family: var(--heading);
    font-size: 0.95rem;
    color: var(--text);
    margin: 0 0 0.35rem;
}
.blog-related-card p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.4;
}

/* ── Blog Admin ──────────────────────────── */
.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.blog-admin-title {
    font-family: var(--heading);
    font-size: 1.1rem;
    color: var(--text);
    margin: 0.5rem 0 0.25rem;
}
.blog-admin-excerpt {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0 0 0.75rem;
}
.blog-admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
}
.btn-danger {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ── Blog Editor ─────────────────────────── */
.blog-editor {
    margin-bottom: 3rem;
}
.editor-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}
.editor-field {
    margin-bottom: 1rem;
}
.editor-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}
.editor-input, .editor-textarea, .editor-select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
}
.editor-input:focus, .editor-textarea:focus, .editor-select:focus {
    outline: none;
    border-color: var(--gold-dim);
}
.editor-input-sm { font-size: 0.8rem; color: var(--text-dim); }
.editor-body {
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1.6;
    min-height: 400px;
    resize: vertical;
}
.editor-select {
    cursor: pointer;
}
.editor-sidebar {
    position: sticky;
    top: 80px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.editor-save {
    width: 100%;
    margin-top: 0.5rem;
}

/* Admin status badges for blog */
.admin-status-draft { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.admin-status-published { background: rgba(34, 197, 94, 0.15); color: #22c55e; }

@media (max-width: 768px) {
    .editor-row {
        grid-template-columns: 1fr;
    }
    .editor-sidebar {
        position: static;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-article-header h1 {
        font-size: 1.7rem;
    }
    .admin-header-row {
        flex-direction: column;
    }
}

/* ══════════════════════════════════════════════════
   Fulfilled Prophecy Page
   ══════════════════════════════════════════════════ */

.fulfilled-hero { max-width: var(--max-width); margin: 0 auto; padding: 80px 24px 48px; }
.fulfilled-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 2.5px; color: var(--gold); margin-bottom: 20px; font-weight: 600; }
.fulfilled-h1 { font-family: var(--font-display); font-size: 56px; font-weight: 500; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.5px; color: var(--text); }
.fulfilled-h1 em { color: var(--gold); font-style: italic; }
.fulfilled-lede { font-size: 20px; color: var(--text-secondary); max-width: 760px; line-height: 1.55; font-weight: 300; }
.fulfilled-lede strong { color: var(--text); font-weight: 500; }

.fulfilled-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; max-width: var(--max-width); margin: 0 auto 48px; }
.fulfilled-stat { background: var(--surface); padding: 28px 24px; text-align: center; }
.fulfilled-stat-num { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--gold); line-height: 1; }
.fulfilled-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.8px; color: var(--text-dim); margin-top: 10px; }

.fulfilled-filters { max-width: var(--max-width); margin: 0 auto 32px; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fulfilled-filter-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); margin-right: 8px; }
.fulfilled-chip { padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; background: transparent; font-family: var(--font); }
.fulfilled-chip:hover { border-color: var(--gold-dim); color: var(--text); }
.fulfilled-chip.active { background: var(--gold-subtle); border-color: var(--gold); color: var(--gold-bright); }

.fulfilled-disclaimer { max-width: var(--max-width); margin: 0 auto 48px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 6px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.fulfilled-disclaimer strong { color: var(--text); }

.fulfilled-grid { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; }

.fulfilled-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; position: relative; transition: all 0.2s; display: flex; flex-direction: column; }
.fulfilled-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.fulfilled-card-head { margin-bottom: 16px; }
.fulfilled-card-category { font-size: 10px; text-transform: uppercase; letter-spacing: 1.8px; color: var(--gold); font-weight: 600; }
.fulfilled-card-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.2; margin-top: 6px; color: var(--text); }

.fulfilled-verses { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.fulfilled-verse-tag { font-size: 13px; font-weight: 600; color: var(--gold-bright); background: var(--gold-subtle); padding: 5px 11px; border-radius: 4px; border: 1px solid var(--gold-dim); letter-spacing: 0.2px; }

.fulfilled-meta-row { display: flex; gap: 16px; margin: 14px 0 20px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fulfilled-meta-col { flex: 1; }
.fulfilled-meta-label { text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-dim); font-size: 11px; margin-bottom: 5px; font-weight: 600; }
.fulfilled-meta-val { color: var(--text); font-size: 16px; font-weight: 600; }

.fulfilled-block { margin-bottom: 16px; }
.fulfilled-block-label { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.8px; font-weight: 700; margin-bottom: 8px; }
.fulfilled-prophecy-label { color: var(--gold); }
.fulfilled-fulfillment-label { color: var(--green); }
.fulfilled-block-label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.fulfilled-block-body { font-size: 16px; color: var(--text); line-height: 1.7; font-weight: 400; }
.fulfilled-block-body strong { color: var(--gold-bright); font-weight: 700; }
.fulfilled-block-quote { font-size: 15px; color: var(--text); line-height: 1.65; font-weight: 500; padding: 12px 14px; background: var(--gold-subtle); border-left: 3px solid var(--gold); border-radius: 4px; margin-bottom: 10px; }

.fulfilled-sources { border-top: 1px solid var(--border); padding-top: 16px; margin-top: auto; }
.fulfilled-sources-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); margin-bottom: 10px; font-weight: 600; }
.fulfilled-sources ul { list-style: none; padding-left: 0; }
.fulfilled-sources li { font-size: 14px; color: var(--text-secondary); padding: 4px 0; line-height: 1.5; }
.fulfilled-sources li::before { content: "— "; color: var(--gold); margin-right: 4px; font-weight: 600; }

.fulfilled-note { margin-top: 16px; padding: 14px 16px; background: var(--bg2); border-left: 3px solid var(--amber); border-radius: 4px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.fulfilled-note-label { color: var(--amber); text-transform: uppercase; letter-spacing: 1.2px; font-size: 11px; font-weight: 700; margin-bottom: 6px; }

@media (max-width: 760px) {
  .fulfilled-h1 { font-size: 38px; }
  .fulfilled-stats { grid-template-columns: repeat(2, 1fr); }
  .fulfilled-grid { grid-template-columns: 1fr; }
}

/* ── Patristic notes and ancient refs (Task 4 content expansion) ─────── */
.patristic-notes, .ancient-refs {
  margin-top: 40px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.patristic-notes h2, .ancient-refs h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 18px 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.patristic-body {
  font-family: var(--font);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.ancient-group {
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.ancient-group summary {
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  padding: 6px 0;
  list-style: none;
}
.ancient-group summary::-webkit-details-marker { display: none; }
.ancient-group summary::before { content: "▸ "; color: var(--gold); transition: transform .15s; }
.ancient-group[open] summary::before { content: "▾ "; }
.ancient-group .count {
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 6px;
  font-size: 0.85rem;
}
.ancient-entry {
  margin: 14px 0 14px 22px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-dim);
}
.ancient-entry .cite {
  font-family: var(--font);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ancient-entry .passage {
  font-family: var(--font-scripture, Merriweather, serif);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 8px 0;
  font-style: italic;
}
.ancient-entry .anc-note {
  font-family: var(--font);
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .patristic-notes, .ancient-refs { padding: 18px; }
  .ancient-entry { margin-left: 10px; }
}

/* ── Daniel's 70th Week overlay (timeline page) ── */
.sw-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  fill: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sw-half {
  fill: var(--bg2);
  stroke: var(--border);
  stroke-width: 1;
}
.sw-half-0 { fill-opacity: 0.55; }
.sw-half-1 { fill-opacity: 0.85; }
.sw-half-label {
  font-family: var(--font);
  font-size: 0.78rem;
  fill: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.sw-midline {
  stroke: #c75450;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.7;
}
.sw-mid-label {
  font-family: var(--font);
  font-size: 0.7rem;
  fill: #c75450;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.sw-year-tick {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  fill: #6b7080;
  letter-spacing: 0.04em;
}
.sw-tier-label {
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.sw-tier-spine {
  stroke: var(--border);
  stroke-width: 1;
  opacity: 0.5;
}
.sw-marker {
  stroke: #0b0f1a;
  stroke-width: 1.5;
  transition: r 0.12s, filter 0.12s;
}
.sw-marker-group:hover .sw-marker {
  r: 12;
  filter: drop-shadow(0 0 6px currentColor);
}
.sw-marker-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  fill: #0b0f1a;
  font-weight: 700;
  pointer-events: none;
}
