/* ── Layout ────────────────────────────────────────────────── */
.mo-page { max-width: 980px; margin: 0 auto; padding: 28px 20px 80px; }

/* ── Hero ───────────────────────────────────────────────────── */
.mo-hero {
    background: linear-gradient(145deg, #0d1117 0%, #111827 60%, #0f1923 100%);
    border: 1px solid rgba(34,197,94,0.15);
    border-radius: 16px;
    padding: 36px 40px 32px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.mo-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(34,197,94,0.6) 40%, rgba(59,130,246,0.4) 70%, transparent 100%);
}
.mo-hero::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(34,197,94,0.05) 0%, transparent 65%);
    pointer-events: none;
}
.mo-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.mo-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #22c55e;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    padding: 5px 14px;
    border-radius: 999px;
}
.mo-live-dot {
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: mopulse 2s ease-in-out infinite;
}
@keyframes mopulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.mo-updated-tag {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}
.mo-hero h1 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    color: #f1f5f9;
    margin: 0 0 10px;
    letter-spacing: -0.04em;
}
.mo-hero h1 .day-accent {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mo-hero-sub {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 600px;
}
.mo-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.mo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid;
}
.mo-pill-date {
    color: #22c55e;
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.2);
}
.mo-pill-data {
    color: #818cf8;
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.2);
}
.mo-pill-free {
    color: #60a5fa;
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.2);
}

/* ── Desk Take ─────────────────────────────────────────────── */
.mo-desk-take {
    background: linear-gradient(135deg, rgba(34,197,94,0.06) 0%, rgba(16,185,129,0.03) 100%);
    border: 1px solid rgba(34,197,94,0.2);
    border-left: 3px solid #22c55e;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.mo-desk-take-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #22c55e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mo-desk-take-text {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.55;
    font-style: italic;
}

/* ── Snapshot Bar ───────────────────────────────────────────── */
.mo-snapshot {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.mo-snap-card {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.15s;
}
.mo-snap-card:hover { border-color: rgba(255,255,255,0.14); transform: translateY(-1px); }
.mo-snap-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 2px;
    border-radius: 0 0 10px 10px;
}
.mo-snap-card:nth-child(1)::after { background: linear-gradient(90deg,#22c55e,#10b981); }
.mo-snap-card:nth-child(2)::after { background: linear-gradient(90deg,#3b82f6,#60a5fa); }
.mo-snap-card:nth-child(3)::after { background: linear-gradient(90deg,#8b5cf6,#a78bfa); }
.mo-snap-card:nth-child(4)::after { background: linear-gradient(90deg,#f97316,#fb923c); }
.mo-snap-card:nth-child(5)::after { background: linear-gradient(90deg,#14b8a6,#2dd4bf); }
.mo-snap-card:nth-child(6)::after { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.snap-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 7px;
}
.snap-value {
    font-size: 18px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.03em;
    margin-bottom: 3px;
    font-variant-numeric: tabular-nums;
}
.snap-change { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.snap-change.up { color: #22c55e; }
.snap-change.down { color: #ef4444; }
.snap-change.flat { color: #475569; }
.mo-snap-note { font-size: 11px; color: #64748b; margin: 8px 0 0; text-align: center; }
/* Server-rendered report body: markdown becomes real elements, including the
   pipe tables the report writes, which previously reached the page as raw text. */
.mo-rendered p { margin: 0 0 12px; line-height: 1.7; }
.mo-rendered ul, .mo-rendered ol { margin: 0 0 12px; padding-left: 22px; line-height: 1.7; }
.mo-rendered li { margin-bottom: 5px; }
.mo-rendered h3, .mo-rendered h4 { color: #e2e8f0; font-size: 15px; margin: 18px 0 8px; }
.mo-rendered strong { color: #f1f5f9; }
.mo-rendered blockquote {
    margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid #22c55e;
    background: rgba(34,197,94,.06); border-radius: 0 6px 6px 0;
}
.mo-rendered table {
    width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 13px;
    display: block; overflow-x: auto;
}
.mo-rendered th, .mo-rendered td {
    padding: 8px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07);
    white-space: nowrap;
}
.mo-rendered thead th {
    color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
    font-weight: 700; background: rgba(255,255,255,.03);
}
.mo-rendered tbody tr:last-child td { border-bottom: none; }
.mo-rendered code {
    background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; font-size: 12px;
}

/* ── Section Accordion ──────────────────────────────────────── */
.mo-sections { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.mo-section {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.mo-section:hover { border-color: rgba(255,255,255,0.12); }
.mo-section.mo-open { border-color: rgba(255,255,255,0.11); }

.mo-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.mo-section-head:hover { background: rgba(255,255,255,0.02); }

.mo-sec-num {
    font-size: 10px;
    font-weight: 800;
    color: #1e293b;
    background: #1e293b;
    width: 24px; height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0;
}
.mo-sec-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mo-sec-title-block { flex: 1; min-width: 0; }
.mo-section-head h2 {
    font-size: 14px;
    font-weight: 700;
    color: #cbd5e1;
    margin: 0;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mo-sec-tag {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    margin-top: 2px;
    letter-spacing: 0.3px;
}
.mo-chevron {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    color: #334155;
    flex-shrink: 0;
}
.mo-section.mo-open .mo-chevron { transform: rotate(180deg); }
.mo-section-body {
    padding: 0 24px 24px;
    font-size: 14px;
    line-height: 1.8;
    color: #94a3b8;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.mo-section.mo-open .mo-section-body { display: block; padding-top: 20px; }

/* ── Section body typography ────────────────────────────────── */
.mo-section-body h3 {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    margin: 20px 0 10px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mo-section-body h3:first-child { margin-top: 0; }
.mo-section-body h3::before {
    content: '';
    display: inline-block;
    width: 3px; height: 13px;
    background: var(--accent, #22c55e);
    border-radius: 2px;
    flex-shrink: 0;
}
.mo-section-body ul { list-style: none; padding: 0; margin: 10px 0; }
.mo-section-body ul li {
    padding: 5px 0 5px 20px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.mo-section-body ul li:last-child { border-bottom: none; }
.mo-section-body ul li::before {
    content: '';
    position: absolute;
    left: 6px; top: 14px;
    width: 5px; height: 5px;
    background: #22c55e;
    border-radius: 50%;
    opacity: 0.6;
}
.mo-section-body strong { color: #e2e8f0; font-weight: 700; }
.mo-section-body em { color: #a78bfa; font-style: italic; }
.mo-section-body p { margin: 10px 0; }
.mo-section-body a { color: #60a5fa; text-decoration: none; }
.mo-section-body code {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.15);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #22c55e;
    font-family: monospace;
}

/* ── Tables ─────────────────────────────────────────────────── */
.mo-section-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13px;
}
.mo-section-body thead tr { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mo-section-body thead th {
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #475569;
}
.mo-section-body tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.12s;
}
.mo-section-body tbody tr:last-child { border-bottom: none; }
.mo-section-body tbody tr:hover { background: rgba(255,255,255,0.02); }
.mo-section-body tbody td {
    padding: 9px 12px;
    color: #94a3b8;
    vertical-align: top;
}
.mo-section-body tbody td:first-child { color: #e2e8f0; font-weight: 600; }

/* ── Scenarios ──────────────────────────────────────────────── */
.mo-scenario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}
.mo-scenario-card {
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}
.mo-scenario-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
}
.mo-scenario-card.bullish {
    background: rgba(34,197,94,0.04);
    border-color: rgba(34,197,94,0.18);
}
.mo-scenario-card.bullish::before { background: linear-gradient(90deg,#22c55e,#10b981); }
.mo-scenario-card.bearish {
    background: rgba(239,68,68,0.04);
    border-color: rgba(239,68,68,0.18);
}
.mo-scenario-card.bearish::before { background: linear-gradient(90deg,#ef4444,#f87171); }
.mo-scenario-card.base {
    background: rgba(59,130,246,0.04);
    border-color: rgba(59,130,246,0.18);
}
.mo-scenario-card.base::before { background: linear-gradient(90deg,#3b82f6,#60a5fa); }

.sc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sc-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.mo-scenario-card.bullish .sc-label { color: #22c55e; }
.mo-scenario-card.bearish .sc-label { color: #ef4444; }
.mo-scenario-card.base .sc-label { color: #60a5fa; }

.sc-prob {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.05em;
}
.mo-scenario-card.bullish .sc-prob { color: #22c55e; }
.mo-scenario-card.bearish .sc-prob { color: #ef4444; }
.mo-scenario-card.base .sc-prob { color: #60a5fa; }

.sc-prob-bar {
    height: 3px;
    border-radius: 2px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.sc-prob-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.mo-scenario-card.bullish .sc-prob-fill { background: linear-gradient(90deg,#22c55e,#10b981); }
.mo-scenario-card.bearish .sc-prob-fill { background: linear-gradient(90deg,#ef4444,#f87171); }
.mo-scenario-card.base .sc-prob-fill { background: linear-gradient(90deg,#3b82f6,#60a5fa); }

.sc-body { font-size: 12.5px; line-height: 1.7; color: #64748b; }
.sc-body strong { color: #94a3b8; font-weight: 600; }

/* ── Desk Take (inline) ────────────────────────────────────── */
.mo-inline-take {
    background: linear-gradient(135deg, rgba(34,197,94,0.06) 0%, rgba(16,185,129,0.03) 100%);
    border: 1px solid rgba(34,197,94,0.15);
    border-left: 3px solid #22c55e;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 10px;
}
.mo-inline-take-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #22c55e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mo-inline-take-text {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.55;
    font-style: italic;
}

/* ── Meta Footer ────────────────────────────────────────────── */
.mo-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 14px 20px;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    font-size: 12px;
    color: #475569;
    margin-bottom: 32px;
}
.mo-meta-item { display: flex; align-items: center; gap: 6px; }
.mo-meta-item strong { color: #64748b; font-weight: 600; }

/* ── Sources ────────────────────────────────────────────────── */
.mo-sources {
    margin-top: 12px;
    padding: 16px 20px;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}
.mo-sources-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: 10px;
}
.mo-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}
.mo-source-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
    overflow: hidden;
}
.mo-source-chip:hover {
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}
.mo-source-num {
    font-size: 10px;
    font-weight: 700;
    color: #22c55e;
    flex-shrink: 0;
    width: 16px;
}
.mo-source-name {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Loading state ──────────────────────────────────────────── */
.mo-empty {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 64px 32px;
    text-align: center;
    margin-bottom: 16px;
}
.mo-spinner {
    width: 40px; height: 40px;
    border: 2px solid rgba(34,197,94,0.15);
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: mospin 0.8s linear infinite;
    margin: 0 auto 18px;
}
@keyframes mospin { to { transform: rotate(360deg); } }

/* ── Archive ────────────────────────────────────────────────── */
.mo-archive { margin-top: 32px; }
.mo-archive-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mo-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}
.mo-archive-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 9px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.mo-archive-link:hover {
    border-color: rgba(34,197,94,0.25);
    color: #e2e8f0;
    background: rgba(34,197,94,0.04);
    transform: translateX(2px);
}
.mo-archive-link svg { flex-shrink: 0; opacity: 0.35; }
.mo-archive-link:hover svg { opacity: 0.7; color: #22c55e; }

/* ── FAQ ────────────────────────────────────────────────────── */
.mo-faq { margin-top: 40px; }
.mo-faq-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: 12px;
}
.mo-faq-item {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 9px;
    padding: 18px 20px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.mo-faq-item:hover { border-color: rgba(255,255,255,0.11); }
.mo-faq-item h3 { font-size: 14px; font-weight: 600; color: #cbd5e1; margin: 0 0 8px; }
.mo-faq-item p { font-size: 13px; color: #64748b; line-height: 1.7; margin: 0; }

/* ── SEO + Related ──────────────────────────────────────────── */
.mo-seo {
    margin-top: 32px;
    padding: 24px;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
}
.mo-seo h2 { font-size: 16px; font-weight: 700; color: #cbd5e1; margin: 0 0 12px; letter-spacing: -0.01em; }
.mo-seo p { font-size: 13px; color: #475569; line-height: 1.8; margin: 0 0 12px; }
.mo-seo p:last-child { margin-bottom: 0; }
.mo-seo a { color: #22c55e; text-decoration: none; }

.mo-related { margin-top: 28px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mo-related-card {
    display: block;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
}
.mo-related-card:hover {
    border-color: rgba(34,197,94,0.2);
    background: rgba(34,197,94,0.03);
    transform: translateY(-2px);
}
.rc-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.rc-title { font-size: 14px; font-weight: 700; color: #cbd5e1; margin-bottom: 6px; letter-spacing: -0.01em; }
.rc-desc { font-size: 12px; color: #475569; line-height: 1.6; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 760px) {
    .mo-page { padding: 12px 12px 60px; }
    .mo-hero { padding: 24px 18px 20px; }
    .mo-hero h1 { font-size: 24px; }
    .mo-snapshot { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .snap-value { font-size: 16px; }
    .mo-scenario-grid { grid-template-columns: 1fr; }
    .mo-related { grid-template-columns: 1fr; }
    .mo-archive-grid { grid-template-columns: 1fr; }
    .mo-meta { gap: 12px; }
    .mo-section-body table { font-size: 12px; }
    .mo-section-body thead th, .mo-section-body tbody td { padding: 7px 8px; }
}
@media (max-width: 480px) {
    .mo-snapshot { grid-template-columns: repeat(2, 1fr); }
    .mo-hero-top { flex-direction: column; align-items: flex-start; }
}
