﻿/* =========================================================
   Numbers By Robbyn — ကိန်းပညာ — Mystic Dark theme (gold + deep purple)
   Mobile-first.
   ========================================================= */
:root {
    --bg-0: #0d0820;
    --bg-1: #150b2e;
    --bg-2: #1e1140;
    --panel: rgba(38, 22, 74, 0.72);
    --panel-solid: #241445;
    --line: rgba(212, 175, 55, 0.22);
    --line-strong: rgba(212, 175, 55, 0.55);
    --gold: #e8c46a;
    --gold-2: #d4af37;
    --gold-soft: #f4e3b0;
    --text: #ece7fb;
    --muted: #a99fce;
    --good: #6fe39a;
    --warn: #ff8a8a;
    --mixed: #ffd479;
    --neutral: #9db4e6;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --font-mm: "Noto Sans Myanmar", "Padauk", system-ui, sans-serif;
    --font-display: "Cinzel", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    font-family: var(--font-mm);
    color: var(--text);
    line-height: 1.75;
    background:
        radial-gradient(1200px 600px at 50% -10%, #3a2070 0%, transparent 60%),
        radial-gradient(800px 500px at 90% 10%, #5a2a86 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 86px; /* room for bottom nav */
    -webkit-font-smoothing: antialiased;
}

/* twinkling starfield */
.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,.7), transparent),
        radial-gradient(1.2px 1.2px at 70% 20%, rgba(255,255,255,.5), transparent),
        radial-gradient(1.6px 1.6px at 40% 70%, rgba(255,255,255,.6), transparent),
        radial-gradient(1.1px 1.1px at 85% 60%, rgba(255,255,255,.45), transparent),
        radial-gradient(1.3px 1.3px at 10% 80%, rgba(255,255,255,.5), transparent),
        radial-gradient(1.2px 1.2px at 55% 45%, rgba(255,255,255,.4), transparent);
    opacity: .5;
}

a { color: var(--gold); text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(13,8,32,.95), rgba(13,8,32,.78));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark {
    font-size: 26px;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(232,196,106,.6);
}
.brand-text strong {
    display: block;
    font-size: 18px;
    letter-spacing: .3px;
    color: var(--gold-soft);
}
.brand-text small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.lang-toggle {
    border: 1px solid var(--line-strong);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    background: rgba(212,175,55,.08);
}

/* ---------- Layout ---------- */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 18px 16px 8px;
}

.section-title {
    font-family: var(--font-display);
    color: var(--gold-soft);
    font-size: 20px;
    margin: 26px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: "";
    width: 22px; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---------- Cards / panels ---------- */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    margin-bottom: 16px;
}
.card.glow { border-color: var(--line-strong); box-shadow: 0 0 28px rgba(212,175,55,.12), var(--shadow); }
.card h2, .card h3 { font-family: var(--font-display); color: var(--gold-soft); margin: 0 0 10px; }

.hero {
    text-align: center;
    padding: 26px 18px 22px;
    background:
        radial-gradient(400px 200px at 50% 0%, rgba(212,175,55,.16), transparent 70%),
        var(--panel);
    border: 1px solid var(--line-strong);
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 26px;
    margin: 6px 0 6px;
    color: var(--gold-soft);
    letter-spacing: .5px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.hero p { color: var(--muted); margin: 0; font-size: 14px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--gold-soft); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=date], input[type=number], select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(13,8,32,.6);
    color: var(--text);
    font-family: var(--font-mm);
    font-size: 16px; /* prevents iOS zoom */
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus {
    border-color: var(--gold-2);
    box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }

/* ---------- Mobile hardening: no horizontal shift, no overflow ---------- */
body { overflow-x: clip; }                 /* clip (not hidden) keeps sticky nav working */
img, svg, video, canvas, iframe, table, pre { max-width: 100%; height: auto; }
input, select, textarea, button { max-width: 100%; }
.letterstrip { flex-wrap: wrap; }          /* Chaldean letters wrap instead of overflowing */

/* ---------- About: author photo card (smart animation) ---------- */
.author-card {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
@media (min-width: 460px) {
    .author-card { flex-wrap: nowrap; text-align: left; }
}
.author-photo {
    position: relative;
    flex: 0 0 auto;
    width: 132px; height: 132px;
    display: grid; place-items: center;
    border-radius: 50%;
    animation: authorFloat 5.5s ease-in-out infinite;
}
.author-photo::before {                 /* rotating gold/violet bezel */
    content: "";
    position: absolute; inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--gold-2), #fff3c4, var(--gold), #7c4dc4, var(--gold-2));
    box-shadow: 0 0 22px rgba(212,175,55,.30);
    animation: authorSpin 7s linear infinite;
    z-index: 0;
}
.author-photo::after {                  /* dark gap ring between bezel and photo */
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--panel);
    z-index: 1;
}
.author-fallback { position: absolute; z-index: 2; font-size: 46px; color: var(--gold); }
.author-photo img {
    position: relative;
    z-index: 3;
    width: 116px; height: 116px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.author-meta { min-width: 0; }
.author-kicker { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-soft); }
.author-name { font-family: var(--font-display); color: var(--gold-soft); margin: 4px 0 6px; font-size: 22px; }
.author-bio { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.7; }
@keyframes authorSpin  { to { transform: rotate(360deg); } }
@keyframes authorFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
    .author-photo, .author-photo::before { animation: none; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-mm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #2a1c00;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold-2));
    box-shadow: 0 8px 22px rgba(212,175,55,.28);
    transition: transform .1s ease, filter .2s;
}
.btn:active { transform: translateY(1px); }
.btn.secondary {
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--line-strong);
    box-shadow: none;
}

/* ---------- Number orbs ---------- */
.orb {
    --size: 92px;
    width: var(--size); height: var(--size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-soft);
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), transparent 45%),
        radial-gradient(circle at 50% 50%, #3a2070, #1a0f38 75%);
    border: 1.5px solid var(--line-strong);
    box-shadow: 0 0 26px rgba(212,175,55,.22), inset 0 0 18px rgba(0,0,0,.5);
    position: relative;
}
.orb .num { font-size: calc(var(--size) * .42); line-height: 1; }
.orb.small { --size: 54px; }
.orb.tiny { --size: 40px; }
.orb.big { --size: 120px; }

/* Result hero trio */
.trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
    margin-top: 8px;
}
.trio .label { font-size: 12px; color: var(--muted); margin-top: 8px; }
.trio .pname { font-size: 12px; color: var(--gold); }

/* ---------- Key/value & chips ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 4px 0; }
.kv dt { color: var(--gold-soft); font-size: 14px; white-space: nowrap; }
.kv dd { margin: 0; color: var(--text); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    border: 1px solid var(--line);
    background: rgba(212,175,55,.06);
    color: var(--text);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 13px;
}
.chip.gold { border-color: var(--line-strong); color: var(--gold-soft); }

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid currentColor;
}
.tag-good { color: var(--good); }
.tag-warn { color: var(--warn); }
.tag-mixed { color: var(--mixed); }
.tag-neutral { color: var(--neutral); }

/* swatches for colours */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.swatch i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: inline-block; }

/* ---------- Library grids ---------- */
.num-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.num-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    text-align: center;
    transition: transform .12s, border-color .2s;
}
.num-tile:active { transform: scale(.97); }
.num-tile .pn { font-size: 12px; color: var(--gold); }
.num-tile small { font-size: 11px; color: var(--muted); }

.comp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.comp-card {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
}
.comp-card .cn { font-family: var(--font-display); font-size: 22px; color: var(--gold-soft); }
.comp-card .nm { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; min-height: 28px; }

.list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    margin-bottom: 10px;
}
.list-link .t { font-weight: 500; }
.list-link .t small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.list-link .arr { color: var(--gold); }

/* ---------- Prose (articles) ---------- */
.prose { font-size: 15.5px; }
.prose p { margin: 0 0 14px; }
.prose h2, .prose h3 { font-family: var(--font-display); color: var(--gold-soft); }
.prose-list { list-style: none; padding: 0; margin: 0 0 14px; }
.prose-list li {
    padding: 7px 12px;
    border-left: 2px solid var(--line-strong);
    background: rgba(212,175,55,.05);
    border-radius: 0 8px 8px 0;
    margin-bottom: 6px;
}
.callout {
    border: 1px solid var(--line-strong);
    background: radial-gradient(300px 120px at 0% 0%, rgba(212,175,55,.12), transparent 70%), var(--panel);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 14px 0;
}
.callout .lead { color: var(--gold-soft); font-weight: 700; margin-bottom: 4px; }

/* letter -> value strip on the name breakdown */
.letterstrip { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.letterstrip .lt {
    display: flex; flex-direction: column; align-items: center;
    min-width: 30px; padding: 5px 6px; border-radius: 9px;
    background: rgba(13,8,32,.6); border: 1px solid var(--line);
}
.letterstrip .lt b { color: var(--gold-soft); font-size: 15px; line-height: 1; font-family: var(--font-display); }
.letterstrip .lt i { color: var(--muted); font-size: 11px; font-style: normal; }

.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 13px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 18px 0; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--gold); }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(13,8,32,.82), rgba(13,8,32,.97));
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 1px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
    border-radius: 12px;
}
.nav-item svg { width: 23px; height: 23px; }
.nav-item.is-active { color: var(--gold); }
.nav-item.is-active svg { filter: drop-shadow(0 0 6px rgba(232,196,106,.55)); }

.to-top {
    position: fixed;
    right: 14px;
    bottom: 92px;
    z-index: 25;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: none;
    place-items: center;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    color: var(--gold);
    font-size: 12px;
}
.to-top.show { display: grid; }

.page-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 22px 16px;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    margin-top: 16px;
}
.page-footer p { margin: 4px 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
    .num-grid { grid-template-columns: repeat(3, 1fr); }
    .comp-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 30px; }
}
@media (min-width: 860px) {
    body { padding-bottom: 0; }
    .bottom-nav {
        position: sticky;
        top: 0;
        bottom: auto;
        max-width: 720px;
        margin: 0 auto 0;
        border-radius: 0 0 16px 16px;
        grid-template-columns: repeat(5, max-content);
        justify-content: center;
        gap: 16px;
        border-top: none;
    }
    .nav-item { flex-direction: row; font-size: 14px; }
    .to-top { bottom: 24px; }
}

/* small helpers */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Compatibility ---------- */
.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 10px; text-align: center; }
.pair .vs { color: var(--gold); font-size: 22px; align-self: center; }
.pair .label { margin-top: 8px; font-weight: 500; color: var(--text); }
.pair .pname { color: var(--gold); }
.score-big { font-family: var(--font-display); font-size: 42px; color: var(--gold-soft); line-height: 1; }
.meter {
    height: 12px; border-radius: 999px; overflow: hidden;
    background: rgba(13,8,32,.6); border: 1px solid var(--line);
    margin: 12px 0 14px;
}
.meter > i { display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-2), var(--gold-soft)); }

/* ==========================================================
   "You and Your Star" â€” zodiac section (mobile-first)
   ========================================================== */

/* Hero */
.star-hero {
    text-align: center;
    background:
        radial-gradient(120% 120% at 50% -20%, rgba(124,77,196,.45), transparent 60%),
        linear-gradient(180deg, rgba(38,22,74,.85), rgba(21,11,46,.7));
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}
.star-hero.compact { padding: 22px 16px; }
.star-emblem {
    font-size: 40px; color: var(--gold);
    text-shadow: 0 0 18px rgba(232,196,106,.6);
    animation: starSpin 26s linear infinite;
}
@keyframes starSpin { to { transform: rotate(360deg); } }
.hero-sub { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* Lookup form */
.lookup-card { padding-top: 16px; }
.lookup-title { font-family: var(--font-display); color: var(--gold-soft); margin: 0 0 14px; font-size: 19px; }
.star-form-row { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.star-form .field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.star-form .field > span { font-size: 13px; color: var(--gold-soft); }
.star-form select {
    width: 100%; appearance: none;
    background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e8c46a' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px;
    padding: 12px 34px 12px 14px; font-family: var(--font-mm); font-size: 15px;
}
.star-form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,196,106,.15); }

/* Buttons (modifiers on existing .btn) */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #2a1c05; border: none; font-weight: 700;
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost {
    background: rgba(255,255,255,.04); color: var(--gold-soft);
    border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); }
.btn-block { display: block; width: 100%; text-align: center; }

/* Alerts */
.alert { padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; font-size: 14px; }
.alert-warn { background: rgba(255,138,138,.12); border: 1px solid rgba(255,138,138,.4); color: var(--warn); }
.alert-cusp { background: rgba(124,77,196,.14); border: 1px solid var(--line-strong); color: var(--gold-soft); }

/* Star quick-facts panel */
.quickfacts {
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 4px 0 16px;
    background: rgba(212,175,55,.05);
}
.qf-head { font-family: var(--font-display); color: var(--gold-soft); font-size: 14px; letter-spacing: .04em; margin-bottom: 8px; }
.qf-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); }
.qf-item:first-of-type { border-top: 0; }
.qf-ico { color: var(--gold); font-size: 16px; line-height: 1.4; flex: none; }
.qf-body { display: flex; flex-direction: column; }
.qf-label { color: var(--gold); font-size: 12px; font-weight: 700; }
.qf-text { font-size: 14px; }

/* Mahabote chart */
.mb-chart { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
@media (min-width: 560px) { .mb-chart { grid-template-columns: repeat(4, 1fr); } }
.mb-cell {
    border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px;
    display: flex; flex-direction: column; gap: 2px; position: relative;
}
.mb-cell.mb-good  { background: rgba(63,174,107,.12); border-color: rgba(63,174,107,.4); }
.mb-cell.mb-mixed { background: rgba(212,175,55,.10); border-color: var(--line-strong); }
.mb-cell.mb-warn  { background: rgba(255,138,138,.10); border-color: rgba(255,138,138,.4); }
.mb-cell.is-birth { box-shadow: 0 0 0 2px var(--gold-2); }
.mb-pos { position: absolute; top: 6px; right: 8px; font-size: 11px; color: var(--gold); opacity: .8; }
.mb-house { font-family: var(--font-display); color: var(--gold-soft); font-size: 14px; }
.mb-planet { font-size: 15px; font-weight: 700; }
.mb-gloss { font-size: 11px; color: var(--muted, #9aa0b4); line-height: 1.3; }
span.mb-good  { background: rgba(63,174,107,.18); }
span.mb-mixed { background: rgba(212,175,55,.18); }
span.mb-warn  { background: rgba(255,138,138,.18); }

/* Result card */
.result-card { border-color: var(--line-strong); box-shadow: 0 0 26px rgba(124,77,196,.18), var(--shadow); }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.zsign { display: flex; flex-direction: column; }
.zsym { font-size: 30px; color: var(--gold); line-height: 1; }
.zname { font-family: var(--font-display); color: var(--gold-soft); font-size: 18px; margin-top: 4px; }
.zdates { font-size: 12.5px; color: var(--muted); }
.rnum { text-align: center; min-width: 64px; }
.rnum-v {
    display: block; font-family: var(--font-display); font-size: 46px; line-height: 1;
    color: var(--gold); text-shadow: 0 0 16px rgba(232,196,106,.4);
}
.rnum-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip-day { border-color: var(--line-strong); color: var(--gold-soft); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.result-actions .btn { flex: 1 1 auto; text-align: center; }

/* Structured prose: subsection headings */
.star-prose .prose-sub {
    font-family: var(--font-display); color: var(--gold);
    font-size: 16px; margin: 22px 0 8px;
    padding-bottom: 6px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 8px;
}
.star-prose .prose-sub::before { content: "\2726"; font-size: 12px; color: var(--gold-2); }
.star-prose p { margin: 0 0 13px; }

/* Section heading */
.section-head { margin: 26px 4px 12px; }
.section-head h2 { font-family: var(--font-display); color: var(--gold-soft); margin: 0 0 4px; font-size: 20px; }
.section-head p { margin: 0; font-size: 13px; }

/* Zodiac grid (browse by month) */
.zodiac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.zcard {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 16px 8px; border-radius: 16px; text-align: center;
    background: var(--panel); border: 1px solid var(--line);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.zcard:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.zcard-sym { font-size: 30px; color: var(--gold); line-height: 1; }
.zcard-month { font-size: 14px; color: var(--gold-soft); font-weight: 600; }
.zcard-sign { font-size: 12px; color: var(--muted); }

/* Intro banner */
.intro-banner {
    display: flex; align-items: center; gap: 14px; margin: 22px 0 8px;
    padding: 16px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(124,77,196,.22), rgba(38,22,74,.5));
    border: 1px solid var(--line-strong);
}
.intro-banner-ico { font-size: 26px; color: var(--gold); }
.intro-banner-txt { flex: 1; display: flex; flex-direction: column; }
.intro-banner-txt strong { color: var(--gold-soft); font-size: 15px; }
.intro-banner-txt small { color: var(--muted); font-size: 12.5px; }
.intro-banner-arr { font-size: 22px; color: var(--gold); }

/* Month page â€” zodiac header */
.zhero-card { padding-bottom: 8px; }
.zhero { display: flex; align-items: center; gap: 16px; }
.zhero-sym {
    font-size: 54px; color: var(--gold); line-height: 1;
    text-shadow: 0 0 18px rgba(232,196,106,.45); flex-shrink: 0;
}
.zhero-info h1 { font-family: var(--font-display); color: var(--gold-soft); margin: 0; font-size: 26px; }
.zhero-sign { color: var(--muted); font-size: 14px; margin-top: 2px; }
.zmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px;
    background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.zmeta-item { background: var(--panel-solid); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.zmeta-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.zmeta-v { font-size: 14px; color: var(--gold-soft); }
.card-title { font-family: var(--font-display); color: var(--gold-soft); margin: 0 0 12px; font-size: 19px; }

/* Reading list rows */
.reading-list { display: flex; flex-direction: column; gap: 8px; }
.rrow {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
    transition: border-color .15s, transform .12s;
}
.rrow:hover { border-color: var(--gold); transform: translateX(2px); }
.rrow-num {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--font-display);
    font-size: 20px; color: var(--gold);
    background: radial-gradient(circle at 30% 30%, rgba(232,196,106,.18), transparent);
    border: 1px solid var(--line-strong);
}
.rrow-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rrow-dates { color: var(--gold-soft); font-size: 15px; font-weight: 600; }
.rrow-planets { color: var(--muted); font-size: 12.5px; }
.rrow-arr { color: var(--gold); font-size: 22px; }

/* Pagers */
.month-pager, .reading-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 8px; }
.reading-pager .pager-mid { flex: 0 1 auto; font-size: 12.5px; }
.month-pager .btn, .reading-pager .btn { font-size: 13px; }

/* Reading detail header */
.reading-card { border-color: var(--line-strong); }
.reading-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.reading-hero-left { display: flex; align-items: center; gap: 12px; }
.reading-zsym { font-size: 36px; color: var(--gold); line-height: 1; }
.reading-zsign { font-family: var(--font-display); color: var(--gold-soft); font-size: 17px; }
.reading-zmonth { color: var(--muted); font-size: 13px; }
.reading-bignum {
    font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--gold);
    text-shadow: 0 0 18px rgba(232,196,106,.4);
}
.reading-title { font-family: var(--font-display); color: var(--gold-soft); font-size: 20px; margin: 16px 0 12px; line-height: 1.4; }
.reading-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* CTA */
.cta-center { text-align: center; margin: 24px 0 10px; }

/* Wider screens */
@media (min-width: 640px) {
    .zodiac-grid { grid-template-columns: repeat(4, 1fr); }
    .zmeta { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 360px) {
    .zodiac-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-item span { font-size: 9px; }
}

