:root {
  --bg: #0d1028;
  --bg-2: #151634;
  --card: rgba(22, 24, 48, 0.74);
  --card-2: rgba(40, 42, 72, 0.86);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f4fb;
  --muted: #aeabc8;
  --faint: #77749a;
  --inset: rgba(0, 0, 0, 0.22);
  --hover: rgba(255, 255, 255, 0.06);
  --w-bg: rgba(12, 14, 34, 0.78);
  --w-tick: rgba(255, 255, 255, 0.3);
  --w-cusp: rgba(255, 255, 255, 0.24);
  --w-ink: #ffffff;
  --fire: #ff8a6a; --earth: #4fe0a8; --air: #ffd43b; --water: #6cbcff;
  --star: #ffffff;
  --sky: radial-gradient(1200px 620px at 78% -12%, rgba(124, 96, 255, 0.38), transparent 62%),
         radial-gradient(900px 520px at 8% 18%, rgba(40, 150, 210, 0.22), transparent 62%),
         radial-gradient(760px 520px at 55% 105%, rgba(214, 93, 177, 0.2), transparent 66%),
         linear-gradient(115deg, transparent 30%, rgba(190, 180, 255, 0.06) 48%, transparent 64%),
         linear-gradient(180deg, #0b1130 0%, #131036 48%, #0d0a1f 100%);
  --accent: #b6a4ff;
  --accent-2: #8a74ff;
  --gold: #f4b860;
  --orange: #f39c4a;
  --danger: #ff6b81;
  --ok: #58d68d;
  --w-line: rgba(255, 255, 255, 0.14);
  --radius: 28px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --glyph: 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
}
/* Light theme — a soft dawn sky */
:root[data-theme="light"] {
  --bg: #f3effc;
  --bg-2: #e9e3f8;
  --card: rgba(255, 255, 255, 0.8);
  --card-2: #ffffff;
  --border: rgba(40, 30, 100, 0.10);
  --border-strong: rgba(40, 30, 100, 0.2);
  --text: #1c1930;
  --muted: #5b5674;
  --faint: #8b86a4;
  --accent: #6b52ee;
  --accent-2: #6b52ee;
  --gold: #c27a14;
  --orange: #e0731c;
  --danger: #d6385a;
  --ok: #1f9d5c;
  --inset: rgba(60, 40, 140, 0.05);
  --hover: rgba(60, 40, 140, 0.06);
  --w-line: rgba(40, 30, 100, 0.22);
  --w-bg: rgba(255, 255, 255, 0.88);
  --w-tick: rgba(40, 30, 100, 0.35);
  --w-cusp: rgba(40, 30, 100, 0.25);
  --w-ink: #1c1930;
  --fire: #e8492a; --earth: #10a36b; --air: #c99700; --water: #1f7ae0;
  --star: #6b52ee;
  --shadow: 0 20px 50px -24px rgba(60, 40, 140, 0.35);
  --sky: radial-gradient(1100px 600px at 80% -10%, rgba(170, 150, 255, 0.45), transparent 62%),
         radial-gradient(900px 520px at 5% 20%, rgba(140, 200, 255, 0.35), transparent 62%),
         radial-gradient(800px 520px at 55% 105%, rgba(255, 190, 170, 0.45), transparent 66%),
         linear-gradient(180deg, #ece6ff 0%, #f6eef8 50%, #fdf0e6 100%);
}
:root[data-theme="light"] .stars { opacity: .25; }
:root[data-theme="light"] .topbar { background: rgba(243, 239, 252, 0.82); }
:root[data-theme="light"] .tabbar { background: rgba(255, 255, 255, 0.86); }
:root[data-theme="light"] .tooltip, :root[data-theme="light"] .suggest, :root[data-theme="light"] .acct-menu, :root[data-theme="light"] .toast { background: #ffffff; color: var(--text); }
:root[data-theme="light"] .w-sign { paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 2px; filter: saturate(1.2) brightness(.85); }
:root[data-theme="light"] .lunar-card { color: #fff; }
:root[data-theme="light"] .lunar-card .eyebrow, :root[data-theme="light"] .lunar-card .muted { color: rgba(255, 255, 255, .78); }
:root[data-theme="light"] .btn.primary, :root[data-theme="light"] .btn.gold { color: #fff; }
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { color-scheme: light; background-color: #fff !important; }
:root[data-theme="light"] .tc-num, :root[data-theme="light"] .tc-sym, :root[data-theme="light"] .tc-name { fill: #fff; }
.theme-btn, .lang-select { height: 36px; border-radius: 999px; border: 1px solid var(--border-strong); background-color: var(--card); color: var(--text); cursor: pointer; font: 600 .82rem var(--font); }
.theme-btn { width: 36px; display: grid; place-items: center; font-size: 1rem; padding: 0; }
.lang-select { width: auto !important; padding: 0 10px !important; }
@media (max-width: 520px) { .lang-select { width: 66px !important; padding: 0 0 0 12px !important; background-position: right 8px center !important; } .topbar .logo { font-size: 1.1rem; gap: 6px; } .top-tools { gap: 6px; } .nav-account .btn.sm { padding: 7px 12px; white-space: nowrap; } }
@media (max-width: 360px) { .topbar .logo { font-size: 1rem; } .logo-mark { width: 1.45em; height: 1.45em; } .top-tools { margin-left: 6px; } }
@media (max-width: 420px) { .acct-btn .plus-pill { display: none; } }
.top-tools { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
@media (max-width: 860px) { .top-tools { margin-left: auto; } .top-tools + .nav-account { margin-left: 8px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6;
  background: var(--sky), var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .8; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--star); box-shadow: 0 0 6px var(--star); animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .stars i { animation: none; opacity: .5; } html { scroll-behavior: auto; } }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #c4b5fd; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.g { font-family: var(--glyph); font-style: normal; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
main { min-height: 70vh; padding-top: 28px; padding-bottom: 64px; outline: none; z-index: 2; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(19, 19, 22, 0.8); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.logo.small { font-size: 1.1rem; }
.logo-mark { width: 1.6em; height: 1.6em; flex: none; }
:root { --logo-moon-1: #fbf4e2; --logo-moon-2: #cdb994; --logo-gold-1: #f6d98a; --logo-gold-2: #d4a24c; }
:root[data-theme="light"] { --logo-moon-1: #2a3a70; --logo-moon-2: #0f1a3d; --logo-gold-1: #e2b860; --logo-gold-2: #b8862f; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: .2s; white-space: nowrap; }
@media (max-width: 1180px) { .nav a { padding: 8px 9px; font-size: .88rem; } .acct-name { display: none; } }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.active { color: var(--text); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--border); }
.nav-drop { position: relative; display: flex; }
.nav-drop .caret { font-size: .7em; opacity: .7; margin-left: 2px; }
.nav-sub { position: absolute; top: 100%; left: -8px; min-width: 280px; padding: 8px; margin-top: 6px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .18s; z-index: 70; }
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); white-space: normal; }
.nav-sub a:hover { background: var(--hover); }
.nav-sub b { display: block; font-weight: 600; font-size: .92rem; }
.nav-sub small { display: block; color: var(--muted); font-size: .76rem; }
.ns-ico { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--hover); font-family: var(--glyph); }
:root[data-theme="light"] .nav-sub { background: #fff; }
.nav-sub-wide { min-width: 540px; display: grid; grid-template-columns: 1fr 1fr; left: auto; right: 0; }
.nav-sub .ns-all { grid-column: 1 / -1; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; margin-top: 4px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font: 600 .82rem var(--font); cursor: pointer; }
.back-btn:hover { color: var(--text); border-color: var(--border-strong); }
@media (max-width: 860px) {
  .nav { display: none; }
  .topbar-inner { height: 58px; }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}
/* Phone tab bar */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; padding: 6px; gap: 2px; border-radius: 26px; background: rgba(36, 36, 42, 0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--border-strong); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 20px; color: var(--faint); font: 600 .72rem var(--font); }
  .tabbar a .ti { font-family: var(--glyph); font-size: 1.3rem; line-height: 1.2; height: 1.4rem; display: grid; place-items: center; }
  .tabbar a.active { background: var(--hover); color: var(--text); }
  .tabbar a.active .ti { color: var(--orange); }
  .avatar.xs { width: 22px; height: 22px; font-size: .7rem; font-family: var(--font); }
}

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 600 .95rem var(--font); cursor: pointer; border: 1px solid var(--border-strong); background: var(--card); color: var(--text); transition: transform .15s, background .2s, box-shadow .2s; text-decoration: none; }
.btn:hover { background: var(--card-2); color: var(--text); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, #8a74ff, #b48cff); border-color: transparent; box-shadow: 0 10px 28px -12px rgba(138, 116, 255, .8); }
.btn.primary:hover { box-shadow: 0 14px 34px -12px rgba(138, 116, 255, 1); }
.btn.gold { background: linear-gradient(135deg, #f4c76b, #f59e0b); color: #1b1300; border-color: transparent; }
.btn.sm { padding: 8px 14px; font-size: .85rem; }
.btn.ghost { background: transparent; }
.btn:focus-visible, input:focus-visible, select:focus-visible, .tab:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; position: relative; }
.field label, .label { font-size: .85rem; font-weight: 600; color: var(--muted); }
input[type=text], input[type=email], input[type=date], input[type=datetime-local], input[type=time], input[type=number], input[type=search], select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--inset); color: var(--text); font: 500 1rem var(--font); color-scheme: dark; transition: border-color .2s;
}
input:focus, select:focus { border-color: var(--accent); outline: none; }
input:disabled { opacity: .45; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted); margin: -4px 0 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { font-size: .8rem; color: var(--faint); }
.place-meta { font-size: .8rem; color: var(--ok); min-height: 1.2em; }
.place-meta.err { color: var(--danger); }
.suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; list-style: none; margin: 4px 0 0; padding: 6px; background: #26262c; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow); display: none; max-height: 300px; overflow: auto; }
.suggest.show { display: block; }
.suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.suggest li small { color: var(--muted); display: block; font-size: .8rem; }
.suggest li:hover, .suggest li.hl { background: rgba(167, 139, 250, .18); }
details.advanced { margin: 4px 0 18px; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
details.advanced summary { cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 600; }
details.advanced[open] summary { margin-bottom: 12px; }
.form-error { color: var(--danger); font-size: .9rem; margin: -4px 0 12px; min-height: 1em; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.card.pad-lg { padding: 32px; }
.card h3 { margin-bottom: .4em; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .card { padding: 18px; } .card.pad-lg { padding: 22px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; display: block; font-family: var(--font); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.badge.retro { color: var(--danger); border-color: rgba(255, 107, 129, .35); background: rgba(255, 107, 129, .08); }
.badge.fire { color: var(--fire); } .badge.earth { color: var(--earth); } .badge.air { color: var(--air); } .badge.water { color: var(--water); }
.page-head { margin: 12px 0 28px; max-width: 760px; }
.page-head p { color: var(--muted); font-size: 1.08rem; }
.section { margin-top: 56px; }
.center { text-align: center; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 32px 0 20px; }
.hero h1 span { background: linear-gradient(120deg, #c4b5fd 10%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-wheel { position: relative; }
.hero-wheel .wheel { filter: drop-shadow(0 30px 60px rgba(124, 92, 245, .35)); animation: spin 240s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-wheel .wheel { animation: none; } }
.hero-wheel figcaption { text-align: center; color: var(--faint); font-size: .8rem; margin-top: 6px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-wheel { max-width: 420px; margin: 0 auto; } }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: .9rem; }
.trust span::before { content: '✓ '; color: var(--ok); font-weight: 700; }

.feature { transition: transform .2s, border-color .2s; display: block; color: var(--text); }
.feature:hover { transform: translateY(-3px); border-color: var(--border-strong); color: var(--text); }
.feature .ico { font-family: var(--glyph); font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, rgba(138, 116, 255, .28), rgba(243, 156, 74, .16)); margin-bottom: 14px; color: #fff; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.sky-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.sky-strip > div { padding: 20px 22px; border-right: 1px solid var(--border); }
.sky-strip > div:last-child { border-right: 0; }
.sky-strip .big { font-size: 1.35rem; font-family: var(--display); font-weight: 600; }
@media (max-width: 860px) { .sky-strip { grid-template-columns: 1fr 1fr; } .sky-strip > div:nth-child(2) { border-right: 0; } .sky-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }

.sign-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .sign-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .sign-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font: 500 .85rem var(--font); transition: .2s; text-align: center; }
.chip .g { font-size: 1.7rem; line-height: 1.2; }
.chip small { color: var(--faint); font-size: .7rem; }
.chip:hover { border-color: var(--border-strong); background: var(--card-2); color: var(--text); transform: translateY(-2px); }
.chip.active { border-color: var(--accent); background: rgba(167, 139, 250, .16); }
.chip.fire .g { color: var(--fire); } .chip.earth .g { color: var(--earth); } .chip.air .g { color: var(--air); } .chip.water .g { color: var(--water); }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--accent-2), #a855f7); }

/* Chart form layout */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }
.saved-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.saved-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--border); }
.saved-list a { color: var(--text); font-weight: 600; }
.saved-list .sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.icon-btn { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 1rem; padding: 6px; border-radius: 8px; }
.icon-btn:hover { color: var(--danger); background: var(--card); }

/* Chart result */
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.chart-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 6px; }
.chart-head .meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .95rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.big3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
@media (max-width: 760px) { .big3 { grid-template-columns: minmax(0, 1fr); } }
.b3 { position: relative; overflow: hidden; }
.b3 .glyph-bg { position: absolute; right: -10px; top: -18px; font-size: 7rem; opacity: .1; font-family: var(--glyph); pointer-events: none; }
.b3 .label { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.b3 .sign { font-family: var(--display); font-size: 1.9rem; font-weight: 600; margin: 4px 0 2px; display: flex; align-items: center; gap: 10px; }
.b3 .sign .g { font-size: 1.6rem; }
.b3 p { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .chart-grid { grid-template-columns: minmax(0, 1fr); } }
.wheel-card { padding: 14px; }
.wheel { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; font-size: .78rem; color: var(--muted); padding: 6px 4px 4px; }
.legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* Wheel SVG */
.w-bg { fill: var(--w-bg); stroke: var(--w-line); }
.w-ring { fill: none; stroke: var(--w-line); stroke-width: 1; }
.w-tick { stroke: var(--w-tick); stroke-width: .8; }
.w-sign { font-family: var(--glyph); font-size: 21px; text-anchor: middle; dominant-baseline: central; }
.w-cusp { stroke: var(--w-cusp); stroke-width: 1; }
.w-axis { stroke: var(--gold); stroke-width: 1.8; }
.w-house { fill: var(--faint); font: 600 11px var(--font); text-anchor: middle; dominant-baseline: central; }
.w-angle { fill: var(--gold); font: 700 10.5px var(--font); text-anchor: middle; dominant-baseline: central; }
.w-ptick { stroke: var(--w-ink); stroke-width: 1.4; }
.w-ptick.outer { stroke: var(--gold); }
.w-conn { stroke: var(--w-tick); stroke-width: .7; }
.w-pglyph { font-family: var(--glyph); font-size: 19px; fill: var(--w-ink); text-anchor: middle; dominant-baseline: central; }
.w-planet.outer .w-pglyph { fill: var(--gold); font-size: 16px; }
.w-pdeg { font: 600 9.5px var(--font); fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
.w-planet.outer .w-pdeg { fill: rgba(244, 199, 107, .8); font-size: 8.5px; }
.w-planet { cursor: default; }
.w-planet:hover .w-pglyph { fill: var(--accent); }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--inset); border-radius: 999px; border: 1px solid var(--border); overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; padding: 9px 16px; border-radius: 999px; border: 0; background: none; color: var(--muted); font: 600 .9rem var(--font); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tabpanel[hidden] { display: none; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.t td { white-space: nowrap; padding: 10px; border-bottom: 1px solid var(--hover); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t .g { font-size: 1.15rem; width: 1.4em; display: inline-block; text-align: center; }
table.t td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t th, table.t td { padding-left: 6px; padding-right: 6px; }
table.t { font-size: .88rem; }
table.t .mot { width: 30px; text-align: center; }
table.t .badge.retro { padding: 2px 7px; }
.chart-grid table.t td:first-child .pname { gap: 6px; }
.pname { display: flex; align-items: center; gap: 8px; font-weight: 600; }

.asp-grid { border-collapse: collapse; margin: 0 auto; }
.asp-grid td, .asp-grid th { width: 30px; height: 30px; text-align: center; padding: 0; font-family: var(--glyph); font-size: 15px; }
.asp-grid td { border: 1px solid var(--hover); }
.asp-grid td.diag { background: var(--hover); color: var(--text); font-size: 16px; }
.asp-grid td.empty { border: 0; }
.asp-grid td[data-tip] { cursor: help; transition: background .15s; }
.asp-grid td[data-tip]:hover, .asp-grid td[data-tip]:focus-visible { background: rgba(167, 139, 250, .22); outline: none; }

.tooltip { position: fixed; z-index: 200; max-width: 320px; padding: 14px 16px; border-radius: 14px; background: #2a2a31; border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: .86rem; line-height: 1.5; color: var(--text); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.tooltip.show { opacity: 1; transform: none; }
.tooltip .tt-h { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.tooltip .tt-sub { color: var(--muted); font-size: .78rem; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.tooltip .tt-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tooltip p { margin: 0 0 6px; color: var(--muted); }
.tooltip .tt-you { color: var(--text); }
.tooltip .tt-foot { margin: 0; font-size: .78rem; color: var(--gold); }

.asp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.asp-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--hover); }
.asp-list .ag { font-family: var(--glyph); font-size: 1.15rem; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; }
.asp-list .t1 { font-weight: 600; font-size: .92rem; }
.asp-list .t2 { font-size: .82rem; color: var(--muted); }
.asp-list .orb { margin-left: auto; font-size: .78rem; color: var(--faint); white-space: nowrap; }

/* Balance bars */
.bar-row { display: grid; grid-template-columns: 128px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 12px; font-size: .92rem; }
.bar-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.bar { height: 10px; border-radius: 999px; background: var(--hover); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; }
.bar-row .pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.callout { padding: 14px 16px; border-radius: 14px; background: rgba(167, 139, 250, .10); border: 1px solid rgba(167, 139, 250, .25); font-size: .93rem; }
.callout.warn { background: rgba(244, 199, 107, .08); border-color: rgba(244, 199, 107, .3); }

/* Reading */
.reading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .reading { grid-template-columns: minmax(0, 1fr); } }
.read-item { display: flex; gap: 16px; }
.read-item .rg { font-family: var(--glyph); font-size: 1.6rem; width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(124, 92, 245, .25), rgba(124, 92, 245, .05)); border: 1px solid var(--border); }
.read-item h3 { font-size: 1.08rem; margin-bottom: 2px; font-family: var(--font); font-weight: 700; }
.read-item .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.read-item p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Today / moon */
.moon-hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.moon-ball { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; filter: drop-shadow(0 0 40px rgba(220, 215, 255, .18)); }
@media (max-width: 560px) { .moon-hero { grid-template-columns: 1fr; text-align: center; } .moon-ball { margin: 0 auto; } }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.stat-row .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; }
.stat-row .v { font-weight: 600; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar input, .toolbar select { width: auto; }

/* Horoscope */
.horo-card { position: relative; overflow: hidden; }
.horo-card .glyph-bg { position: absolute; right: 10px; top: -30px; font-size: 13rem; opacity: .07; font-family: var(--glyph); pointer-events: none; }
.horo-card h2 { margin-bottom: 4px; }
.daynav { display: flex; gap: 6px; }

/* Match */
.score { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ring { --p: 50; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--hover) 0); position: relative; flex-shrink: 0; }
.ring::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg-2); }
.ring b { position: relative; z-index: 1; font-family: var(--display); font-size: 2.4rem; }
.ring b small { font-size: 1rem; color: var(--muted); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.vs .mid { color: var(--faint); font-size: .8rem; text-align: center; }
.pair-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.person-pick { margin-bottom: 14px; }

/* Learn */
.learn-card { display: flex; flex-direction: column; gap: 6px; }
.learn-card .top { display: flex; align-items: center; gap: 14px; }
.learn-card .lg { font-family: var(--glyph); font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--card-2); border: 1px solid var(--border); flex-shrink: 0; }
.learn-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.learn-card p { color: var(--muted); font-size: .93rem; margin: 6px 0 0; }
.learn-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .85rem; margin: 8px 0 0; }
.learn-card dt { color: var(--faint); font-weight: 600; }
.learn-card dd { margin: 0; color: var(--muted); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #2a2a31; border: 1px solid var(--border-strong); padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transition: .3s; z-index: 100; pointer-events: none; font-weight: 500; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Accounts ---------- */
[hidden] { display: none !important; }
code { font-size: .9em; background: var(--hover); padding: 1px 6px; border-radius: 6px; }
.nav-account { display: flex; align-items: center; margin-left: 10px; }
@media (max-width: 860px) { .nav-account { margin-left: auto; margin-right: 6px; order: 2; } .nav-toggle { order: 3; } }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent-2), #f472b6); flex-shrink: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: .85rem; }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: 600 .9rem var(--font); cursor: pointer; }
.acct-btn:hover { background: var(--card-2); }
@media (max-width: 560px) { .acct-name { display: none; } .acct-btn { padding-right: 3px; } }
.plus-pill, .pill-plus { font-size: .64rem; font-weight: 800; letter-spacing: .1em; color: #1b1300; background: linear-gradient(135deg, #f4c76b, #f59e0b); border-radius: 999px; padding: 2px 8px; vertical-align: middle; display: inline-block; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; padding: 8px; border-radius: 14px; background: #26262c; border: 1px solid var(--border-strong); box-shadow: var(--shadow); display: flex; flex-direction: column; z-index: 60; }
.acct-menu .acct-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: flex; flex-direction: column; }
.acct-menu .acct-head span { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; }
.acct-menu a, .acct-menu button { text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--text); background: none; border: 0; font: 500 .92rem var(--font); cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: rgba(167, 139, 250, .16); color: var(--text); }
.acct-menu .gold-link { color: var(--gold); }

.auth-wrap { display: grid; grid-template-columns: 1.05fr .95fr; padding: 0; overflow: hidden; }
.auth-art { padding: 48px 44px; background: radial-gradient(600px 400px at 30% 20%, rgba(124, 92, 245, .35), transparent 70%), radial-gradient(500px 400px at 80% 90%, rgba(244, 199, 107, .14), transparent 70%); border-right: 1px solid var(--border); }
.auth-art h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.grad { background: linear-gradient(120deg, #c4b5fd, #f4c76b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.perks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 16px; }
.perks li { display: flex; gap: 14px; }
.perks li b { display: block; }
.perks li span:not(.i) { color: var(--muted); font-size: .88rem; }
.perks .i { font-size: 1.25rem; width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--hover); border: 1px solid var(--border); }
.auth-form { display: grid; place-items: center; padding: 44px 32px; }
.auth-card { width: 100%; max-width: 380px; }
.sso { width: 100%; justify-content: center; gap: 12px; margin-bottom: 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .8rem; margin: 16px 0; }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--border); flex: 1; }
.dev-inbox { margin-top: 16px; font-size: .88rem; line-height: 1.8; }
.dev-code { font: 700 1.2rem var(--font); letter-spacing: .25em; color: var(--gold); margin: 0 6px; }
.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: minmax(0, 1fr); } .auth-art { border-right: 0; border-bottom: 1px solid var(--border); padding: 28px 22px; } .auth-art .perks { display: none; } .auth-form { padding: 28px 18px; } }

.greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 8px 0 22px; }
.greet h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0; }
.dash, .cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.today { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
.forecast-text { font-size: 1.03rem; }
@media (max-width: 980px) { .dash, .cal-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .today { grid-template-columns: minmax(0, 1fr); } }
.meter { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: center; font-size: .85rem; margin-bottom: 10px; color: var(--muted); }
.mbar { height: 8px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: 99px; }
.moon-mini { margin-top: 16px; text-align: center; }
.moon-mini .mi { font-size: 3.2rem; line-height: 1.1; }
.mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini3 div { text-align: center; padding: 12px 4px; border-radius: 14px; background: var(--inset); border: 1px solid var(--border); font-size: .9rem; }
.mini3 .g { font-size: 1.5rem; display: block; }
.mini3 small { color: var(--faint); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; }
.row-between a { font-family: var(--font); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--hover); }
.timeline li:last-child { border-bottom: 0; }
.timeline .d { text-align: center; border-radius: 12px; background: var(--inset); border: 1px solid var(--border); padding: 6px 0; line-height: 1.2; align-self: start; }
.timeline .d b { display: block; font-size: 1.25rem; font-family: var(--display); }
.timeline .d small { color: var(--faint); font-size: .68rem; text-transform: uppercase; }
.timeline .t1 { font-weight: 600; }
.timeline .t2 { color: var(--muted); font-size: .86rem; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.people li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--inset); border: 1px solid var(--hover); }
.people .person { display: flex; align-items: center; gap: 10px; color: var(--text); flex: 1; min-width: 0; }
.people .person b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people .sub { color: var(--muted); font-size: .76rem; }
.moods { display: flex; gap: 8px; margin: 10px 0; }
.moods span, .moods button { font-size: 1.3rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--inset); border: 1px solid var(--border); cursor: pointer; padding: 0; transition: .15s; }
.moods button:hover { transform: translateY(-2px); }
.moods .on { border-color: var(--accent); background: rgba(167, 139, 250, .25); }
textarea.journal { width: 100%; min-height: 80px; resize: vertical; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--inset); color: var(--text); font: 400 .9rem var(--font); padding: 12px; }
.jhist { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 12px; font-size: 1.05rem; }
.upsell { background: linear-gradient(135deg, rgba(124, 92, 245, .35), rgba(244, 199, 107, .16)); border-color: rgba(244, 199, 107, .35); }
.locked { position: relative; border-radius: 14px; overflow: hidden; min-height: 190px; }
.lock-blur { filter: blur(10px); opacity: .45; pointer-events: none; user-select: none; }
.lock-cta { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(138, 116, 255, .42), rgba(243, 156, 74, .22)); }
:root[data-theme="light"] .lock-cta { background: linear-gradient(135deg, rgba(216, 204, 255, .82), rgba(255, 228, 214, .82)); }
:root[data-theme="light"] .lock-blur { opacity: .25; }
.hl-grid .timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
@media (max-width: 640px) { .hl-grid .timeline { grid-template-columns: minmax(0, 1fr); } }
.rel-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font: 600 .66rem var(--font); letter-spacing: .04em; text-transform: uppercase; background: var(--hover); color: var(--muted); border: 1px solid var(--border); }
.rel-tag.rel-me { background: var(--accent-2); color: #fff; border-color: transparent; }
.rel-tag.rel-partner { color: #db2777; border-color: rgba(219, 39, 119, .3); }
.rel-tag.rel-family { color: #0d9488; border-color: rgba(13, 148, 136, .3); }
.rel-tag.rel-friend { color: #d97706; border-color: rgba(217, 119, 6, .3); }
.p-acts { display: flex; gap: 6px; margin-left: auto; flex-shrink: 0; }
.p-act { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--hover); border: 1px solid var(--border); color: var(--text); font-size: .9rem; transition: .15s; }
.p-act:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.drag-handle { cursor: grab; touch-action: none; user-select: none; color: var(--faint); font-size: 1.15rem; line-height: 1; padding: 6px 2px; border-radius: 8px; }
.drag-handle:hover { color: var(--accent); background: var(--hover); }
.sortable li { transition: box-shadow .15s, transform .15s; }
.sortable li.dragging { opacity: .85; transform: scale(1.02); box-shadow: 0 12px 30px -10px rgba(60, 40, 140, .45); border-color: var(--accent); cursor: grabbing; z-index: 2; position: relative; }
button.p-act { cursor: pointer; font: 700 .9rem var(--font); padding: 0; }
button.p-act:disabled { opacity: .3; cursor: default; transform: none; }
.people .person b { white-space: normal; }
.lock-cta h3 { font-size: 1.05rem; }
.lock-cta p { margin: 0 0 10px; }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: .7rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding-bottom: 4px; }
.cal .day { min-height: 88px; border-radius: 12px; background: var(--inset); border: 1px solid var(--hover); padding: 6px 7px; font-size: .8rem; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal .day.out { opacity: .3; }
.cal .day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal .day .n { font-weight: 700; color: var(--muted); }
.cal .ev { font-size: .68rem; border-radius: 6px; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.moon { background: rgba(244, 230, 180, .14); color: #f5e6b8; }
.ev.me { background: rgba(167, 139, 250, .22); color: #d8ccff; }
.ev.rx { background: rgba(255, 107, 129, .16); color: #ffb3c0; }
.ev.lucky { background: rgba(88, 214, 141, .16); color: #a6ecc3; }
:root[data-theme="light"] .ev.moon { background: #fdf0c8; color: #7a5a00; }
:root[data-theme="light"] .ev.me { background: #e7e0ff; color: #4b32c3; }
:root[data-theme="light"] .ev.rx { background: #ffe0e6; color: #b4233f; }
:root[data-theme="light"] .ev.lucky { background: #d6f5e3; color: #146c3d; }
:root[data-theme="light"] .cal .day { background: rgba(255, 255, 255, .75); }
.cal .day[data-tip] { cursor: help; }
.cal .day[data-tip]:hover { border-color: var(--accent); }
.timeline .t3 { margin-top: 6px; font-size: .8rem; color: var(--text); background: var(--hover); border-radius: 10px; padding: 6px 9px; line-height: 1.45; }
@media (max-width: 640px) { .cal { gap: 3px; } .cal .day { min-height: 58px; padding: 4px; } .cal .ev { font-size: 0; height: 6px; padding: 0; } }
.legend2 { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: 14px; }
.legend2 span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.tier { display: flex; flex-direction: column; gap: 6px; }
.tier.best { border-color: rgba(244, 199, 107, .5); background: linear-gradient(180deg, rgba(124, 92, 245, .22), var(--hover)); position: relative; }
.tier.best .flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); }
.tier .amt { font-family: var(--display); font-size: 2.5rem; font-weight: 700; }
.tier .amt small { font-size: 1rem; color: var(--muted); font-family: var(--font); font-weight: 500; }
.tier ul { list-style: none; padding: 0; margin: 12px 0 20px; display: flex; flex-direction: column; gap: 9px; font-size: .92rem; }
.tier li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 10px; }
.tier li.no { color: var(--faint); } .tier li.no::before { content: '–'; color: var(--faint); }
.tier .btn { margin-top: auto; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--inset); border: 1px solid var(--border); }
.toggle a { padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--muted); }
.toggle a.on { background: var(--card-2); color: var(--text); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.btn.danger { border-color: rgba(255, 107, 129, .5); color: #ffb3c0; }
.btn.danger:hover { background: rgba(255, 107, 129, .14); color: #ffd0d8; }
.chart-summary { margin: 14px 6px 4px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(138, 116, 255, .12), rgba(243, 156, 74, .08)); border: 1px solid var(--border); }
.chart-summary p { margin: 0 0 8px; font-size: .95rem; line-height: 1.65; }
.chart-summary b { font-weight: 700; }
.rel-mini { width: auto !important; padding: 4px 8px !important; font-size: .75rem !important; border-radius: 999px !important; flex-shrink: 0; }
.people li.is-me { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.view-as { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.view-as select { width: auto; padding: 6px 10px; font-size: .85rem; border-radius: 999px; }
.saved-list li { gap: 6px; }
.rel-select { width: auto; padding: 7px 12px; font-size: .85rem; border-radius: 999px; }

/* ---------- Moonly-inspired components ---------- */
.tipable { cursor: help; border-bottom: 1px dotted rgba(255, 255, 255, .25); }
.tipable:hover, .tipable:focus-visible { border-bottom-color: var(--accent); outline: none; }
.badge.tipable, .pname.tipable { border-bottom: 0; }
.w-hit { fill: transparent; }
.w-asphit { stroke: transparent; stroke-width: 9; pointer-events: stroke; }
.w-signseg, .w-hnum, .w-ang, .w-asp { cursor: help; }
.w-signseg:hover path { fill-opacity: .3; }
.w-hnum:hover .w-house, .w-ang:hover .w-angle { fill: var(--w-ink); }
.w-asp:hover line:first-child { stroke-width: 3; stroke-opacity: 1; }

.week-strip { position: relative; display: flex; align-items: center; gap: 4px; padding: 6px; margin: 2px 0 16px; border-radius: 24px; border: 1px solid var(--border);
  background: radial-gradient(500px 160px at 15% 0%, rgba(138, 116, 255, .35), transparent 70%), radial-gradient(500px 160px at 90% 100%, rgba(243, 156, 74, .22), transparent 70%), linear-gradient(120deg, #1d2350, #231a46); }
:root[data-theme="light"] .week-strip { background: linear-gradient(120deg, #e4dcff 0%, #f1e6fb 50%, #ffe7da 100%); border-color: rgba(120, 100, 200, .18); }
.ws-scroll { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.ws-scroll::-webkit-scrollbar { display: none; }
.ws-arrow { flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--card); color: var(--text); font: 600 1.2rem var(--font); cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.ws-arrow:hover { border-color: var(--accent); }
.wday { flex: 0 0 62px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px 8px; border-radius: 18px; color: var(--muted); font: 600 .78rem var(--font); transition: background .2s; }
.wday:hover { background: rgba(255, 255, 255, .14); color: var(--text); }
.wday.on { background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text); }
:root[data-theme="light"] .wday.on { background: rgba(255, 255, 255, .75); }
.wday.mstart { border-left: 1px dashed var(--border-strong); border-radius: 0 18px 18px 0; }
.wday:first-child.mstart { border-left: 0; border-radius: 18px; }
.wday .wmon { font: 800 .6rem var(--font); letter-spacing: .1em; color: var(--accent); min-height: .9em; }
.wday .wd { letter-spacing: .06em; font-size: .64rem; color: var(--faint); min-height: 1em; }
.wday.today .wd { color: var(--orange); font-size: .8rem; }
.wday .wn { font-size: .9rem; color: var(--text); font-weight: 700; }
@media (max-width: 640px) { .ws-arrow { display: none; } .wday { flex-basis: 54px; } }.moon-svg { display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }

.pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.pill { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--text); font: 700 1.05rem var(--display); }
.pill small { display: block; font: 600 .68rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pill:hover { background: var(--card-2); color: var(--text); }
.pill-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); font-family: var(--glyph); font-size: 1.2rem; flex-shrink: 0; }
@media (max-width: 560px) { .pills { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .pill { flex-direction: column; text-align: center; border-radius: 22px; padding: 12px 6px; font-size: .9rem; gap: 6px; } .pill small { font-size: .6rem; } }

.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sec-head h2, .sec-head h3 { margin: 0; }
.sec-head .eyebrow { margin-bottom: 2px; }
.sec-ico { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); font-family: var(--glyph); font-size: .95rem; }
.ex-go { margin-left: auto; font-size: 1.8rem; font-weight: 300; color: var(--text); line-height: 1; }
.lunar-card { display: block; color: var(--text); background: radial-gradient(500px 260px at 90% 110%, rgba(90, 120, 220, .35), transparent 70%), linear-gradient(160deg, #1f2a4d, #1a1f33); border-color: rgba(120, 150, 255, .18); overflow: hidden; }
.lunar-card:hover { color: var(--text); border-color: rgba(120, 150, 255, .35); }
.lunar-body { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.lunar-text { font: 700 1.25rem/1.35 var(--display); margin: 6px 0 10px; letter-spacing: -.01em; }
.lunar-moon { margin: 0 -40px -60px 0; }
.sky-mini .retro-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sky-mini .retro-row .eyebrow { width: 100%; margin: 6px 0 2px; }

.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcard { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px 0; overflow: hidden; cursor: help; transition: border-color .2s, transform .2s; }
.pcard:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pc-range { font: 600 .8rem var(--font); letter-spacing: .08em; color: var(--muted); }
.pcard h3 { font-size: 1.45rem; margin: 6px 0 14px; }
.pc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-k { display: block; font: 600 .7rem var(--font); letter-spacing: .08em; color: var(--muted); }
.pc-v { display: block; font: 700 1.08rem var(--display); }
.pc-desc { color: var(--muted); font-size: .86rem; margin: 12px 0 0; }
.pc-desc b { color: var(--text); font-weight: 600; }
.pc-personal { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--hover); border: 1px solid var(--border); }
.pc-personal .pc-k { color: var(--orange); }
.pc-personal p { margin: 4px 0 0; font-size: .88rem; color: var(--text); line-height: 1.55; }
.pc-arc { position: relative; margin: 8px -24px 0; height: 78px; }
.pc-arc .arc { width: 100%; height: 100%; display: block; }
.pc-left { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 700 .8rem var(--font); letter-spacing: .1em; color: var(--muted); }

.ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .ex-grid { grid-template-columns: minmax(0, 1fr); } }
.ex-tile { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 22px 18px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); color: var(--text); transition: transform .2s, border-color .2s; overflow: hidden; }
.ex-tile:hover { color: var(--text); transform: translateY(-2px); border-color: var(--border-strong); }
.ex-tile.big { flex-direction: column; align-items: stretch; padding: 0; }
.ex-tile.big .ex-art { width: 100%; height: 180px; border-radius: 0; }
.ex-tile.big .ex-body { padding: 18px 22px 22px; }
.ex-tile.big .ex-go { position: absolute; right: 20px; bottom: 22px; }
.ex-art { width: 120px; height: 90px; flex-shrink: 0; border-radius: 20px; background: radial-gradient(circle at 50% 30%, rgba(138, 116, 255, .3), var(--inset)); display: grid; place-items: center; overflow: hidden; }
.ex-art svg { width: 100%; height: 100%; }
.ex-tile:nth-child(2) .ex-art { background: linear-gradient(160deg, #1f2a4d, #141a30); }
.ex-tile:nth-child(3) .ex-art { background: radial-gradient(circle at 50% 50%, rgba(243, 156, 74, .25), var(--inset)); }
.ex-tile:nth-child(6) .ex-art { background: radial-gradient(circle, rgba(123, 196, 127, .2), var(--inset)); }
.ex-body h3 { margin: 0 0 4px; font-size: 1.3rem; }
.ex-body p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Tarot */
.spread-card { display: flex; flex-direction: column; color: var(--text); text-align: center; transition: transform .2s; }
.spread-card:hover { color: var(--text); transform: translateY(-3px); }
.spread-art { height: 170px; position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 14px; }
.spread-art span { position: absolute; width: 86px; transform: translateX(calc(var(--i) * 46px)) rotate(calc(var(--i) * 9deg)); transition: transform .3s; }
.spread-card:hover .spread-art span { transform: translateX(calc(var(--i) * 56px)) rotate(calc(var(--i) * 12deg)) translateY(-6px); }
.tcard-svg { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); }
.tcard-svg.rev { transform: rotate(180deg); }
.tc-num { font: 700 18px var(--display); fill: #fff; letter-spacing: 2px; }
.tc-sym { font: 400 64px var(--glyph); fill: #fff; }
.tc-name { font: 800 12px var(--font); fill: #fff; letter-spacing: 1.5px; }
.tarot-table { overflow: hidden; }
.pick-hint { margin: 24px 0 8px; color: var(--muted); }
.fan { position: relative; height: 240px; margin: 10px auto 0; max-width: 900px; }
.fan-card { position: absolute; left: 50%; bottom: 0; width: 92px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 160%;
  transform: translateX(-50%) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 5.2deg)); transition: transform .25s, opacity .3s; animation: deal .5s backwards; animation-delay: calc(var(--i) * 25ms); }
.fan-card:hover { transform: translateX(-50%) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 5.2deg)) translateY(-18px); }
.fan-card.picked { opacity: .15; transform: translateX(-50%) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 5.2deg)) translateY(-40px); pointer-events: none; }
@keyframes deal { from { opacity: 0; transform: translateX(-50%) translateY(60px) rotate(0); } }
@media (max-width: 640px) { .fan { height: 190px; } .fan-card { width: 64px; transform-origin: 50% 170%; } }
.reading-cards { display: grid; gap: 22px; margin: 10px 0 26px; }
.reading-cards.n1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.reading-cards.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .reading-cards.n3 { grid-template-columns: minmax(0, 1fr); } }
.rcard { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.reading-cards.n3 .rcard { grid-template-columns: minmax(0, 1fr); text-align: center; }
.reading-cards.n3 .rcard .flip { max-width: 180px; margin: 0 auto; }
.reading-cards.n3 .tags { justify-content: center; }
@media (max-width: 520px) { .rcard { grid-template-columns: minmax(0, 1fr); text-align: center; } .rcard .flip { max-width: 180px; margin: 0 auto; } .rcard .tags { justify-content: center; } }
.rmeta h3 { font-size: 1.4rem; margin-bottom: 6px; }
.rmeta .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.rmeta p { color: var(--muted); }
.flip { perspective: 900px; width: 100%; }
.flip-in { position: relative; transition: transform .8s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; transition-delay: var(--d, .3s); }
.flip.go .flip-in, .flip.done .flip-in { transform: rotateY(180deg); }
.flip.done .flip-in { transition: none; }
.flip-back, .flip-front { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front { position: absolute; inset: 0; transform: rotateY(180deg); }
.verdict { text-align: center; padding: 26px; border-radius: var(--radius); margin-bottom: 18px; background: var(--card); border: 1px solid var(--border); }
.verdict .vtext { font: 800 clamp(2rem, 6vw, 3.2rem) var(--display); }
.v-yes .vtext { color: #7fe3a5; } .v-no .vtext { color: #ff9aa8; } .v-maybe .vtext { color: var(--gold); }
.center-actions { justify-content: center; align-items: center; margin-top: 10px; }

/* Dreams */
.dream-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .dream-grid { grid-template-columns: minmax(0, 1fr); } }
.dream-input { width: 100%; min-height: 160px; resize: vertical; border-radius: 18px; border: 1px solid var(--border-strong); background: var(--inset); color: var(--text); font: 400 1.02rem/1.6 var(--font); padding: 16px; }
.dream-input:focus { border-color: var(--accent); outline: none; }
.mood-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mood-chip { flex-direction: row; gap: 6px; padding: 9px 14px; border-radius: 999px; font-size: .88rem; }
.mood-chip span { font-size: 1.1rem; }
.dream-result { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.sym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.sym { display: flex; gap: 12px; padding: 14px; border-radius: 18px; background: var(--hover); border: 1px solid var(--border); }
.sym .se { font-size: 1.8rem; line-height: 1; }
.sym p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.dj-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dj-list li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--hover); border: 1px solid var(--border); font-size: .88rem; }
.dj-list .sub { color: var(--muted); font-size: .8rem; margin-top: 2px; }

/* Solar return */
.theme-card { display: flex; gap: 14px; align-items: flex-start; cursor: default; }
.theme-card[data-tip] { cursor: help; }
.theme-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.theme-card p { margin: 0; }
.th-ico { font-size: 1.6rem; width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; border-radius: 16px; background: var(--hover); }

/* Astrocartography */
.acg-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.acg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.acg-chip { border: 1px solid var(--border-strong); background: var(--card); color: var(--muted); border-radius: 999px; padding: 6px 11px; font: 600 .8rem var(--font); cursor: pointer; opacity: .55; transition: .15s; }
.acg-chip.on { opacity: 1; color: var(--text); border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.acg-legend { display: flex; gap: 12px; font-size: .78rem; color: var(--muted); }
.acg-legend i { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--muted); vertical-align: middle; margin-right: 5px; }
.acg-legend .l-dsc { border-top-style: dashed; } .acg-legend .l-mc { border-top-width: 3px; } .acg-legend .l-ic { border-top-style: dotted; border-top-width: 3px; }
.acg-card { padding: 12px; }
.acg-map { width: 100%; overflow: hidden; border-radius: 18px; }
.acg-svg { width: 100%; height: auto; display: block; }
.acg-sea { fill: #dbe7f6; } :root:not([data-theme="light"]) .acg-sea { fill: #0f1e3d; }
.acg-land { fill: #f6f1e4; stroke: #c9bfa6; stroke-width: .6; } :root:not([data-theme="light"]) .acg-land { fill: #26324d; stroke: #3c4a6b; }
.acg-grid { stroke: rgba(80, 100, 140, .18); stroke-width: .6; } .acg-grid.eq { stroke-dasharray: 4 4; stroke: rgba(80, 100, 140, .35); }
.acg-line path:first-child { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.acg-line .l-dsc { stroke-dasharray: 7 5; } .acg-line .l-mc { stroke-width: 2.8; } .acg-line .l-ic { stroke-dasharray: 1.5 4.5; stroke-width: 3; }
.acg-hit { fill: none; stroke: transparent; stroke-width: 12; pointer-events: stroke; }
.acg-line[data-tip] { cursor: help; }
.acg-line[data-tip]:hover path:first-child { stroke-width: 4.5; }
.acg-line.off { display: none; }
.acg-lbl { font: 12px var(--glyph); fill: #fff; text-anchor: middle; }
.acg-city { fill: #fff; stroke: #333; stroke-width: .8; cursor: pointer; } .acg-city:hover { r: 5; fill: var(--orange); }
.acg-birth { cursor: pointer; } .acg-birth-c { fill: var(--orange); stroke: #fff; stroke-width: 1.5; } .acg-birth-t { font-size: 9px; fill: #fff; text-anchor: middle; }
.acg-pin { fill: none; stroke: var(--accent-2); stroke-width: 3; }
.acg-reloc { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--hover); border: 1px solid var(--border); }
.acg-reloc h4 { margin: 0 0 10px; font: 700 1.05rem var(--display); }
.acg-cities { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acg-cities li { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--hover); }
.acg-city-btn { background: none; border: 0; color: var(--text); font: 500 .92rem var(--font); cursor: pointer; padding: 0; }
.acg-city-btn:hover b { color: var(--accent); }
.acg-theme.intense { border-color: rgba(239, 68, 68, .3); }

/* Daily practice (Plus) */
.affirm-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 20, .6); backdrop-filter: blur(6px); animation: fade .3s ease both; }
.affirm-box { position: relative; max-width: 520px; width: 100%; text-align: center; padding: 34px 28px 26px; border-radius: 30px; color: #fff;
  background: radial-gradient(400px 240px at 50% 0%, rgba(182, 164, 255, .45), transparent 70%), radial-gradient(360px 260px at 100% 100%, rgba(243, 156, 74, .25), transparent 70%), linear-gradient(160deg, #1f2550, #17123a);
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); }
.affirm-box .eyebrow, .affirm-box .muted { color: rgba(255, 255, 255, .7); }
.affirm-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: rgba(255, 255, 255, .7); font-size: 1.1rem; cursor: pointer; }
.affirm-text { font: 800 clamp(1.4rem, 4vw, 1.9rem)/1.3 var(--display); letter-spacing: -.01em; margin: 14px 0 12px; }
.affirm-text.sm { font-size: 1.15rem; margin: 8px 0 14px; }
.practice-card { background: linear-gradient(160deg, rgba(138, 116, 255, .22), var(--card)); }
.med-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .med-layout { grid-template-columns: minmax(0, 1fr); } }
.med-card { text-align: center; padding: 34px 26px; }
.med-orb { width: 170px; height: 170px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; font-size: 3rem;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .5), rgba(182, 164, 255, .55) 45%, rgba(138, 116, 255, .2) 70%, transparent 72%);
  box-shadow: 0 0 80px rgba(138, 116, 255, .45); }
.med-orb.breathing { animation: breathe 13s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.82); box-shadow: 0 0 40px rgba(138, 116, 255, .3); } 40%, 55% { transform: scale(1.08); box-shadow: 0 0 110px rgba(138, 116, 255, .6); } }
@media (prefers-reduced-motion: reduce) { .med-orb.breathing { animation: none; } }
.med-bar { height: 6px; border-radius: 99px; background: var(--hover); overflow: hidden; margin: 22px 0 6px; }
.med-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--orange)); border-radius: 99px; transition: width .5s linear; }
.med-time { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.med-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0 10px; }
.med-play { width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, #8a74ff, #b48cff); box-shadow: 0 14px 34px -12px rgba(138, 116, 255, 1); }
.med-voice { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.med-voice select { width: auto; max-width: 280px; padding: 6px 10px; font-size: .82rem; border-radius: 999px; }
.med-now { min-height: 3em; color: var(--muted); font-style: italic; max-width: 520px; margin: 10px auto 0; }

.footer { border-top: 1px solid var(--border); padding: 36px 0; position: relative; z-index: 1; background: var(--inset); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.footer p { margin: 8px 0 0; font-size: .88rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } }
.fade-in { animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media print { .topbar, .footer, .stars, .actions { display: none; } body { background: #fff; color: #000; } }

/* ---------- phones: make iPhone (Safari) and Android (Chrome) behave the same ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, select, label, summary { -webkit-tap-highlight-color: transparent; }
/* iOS Safari ignores background-attachment:fixed (the sky stretches over the whole page), so paint the sky on a fixed layer instead. */
body { background: var(--bg); background-attachment: scroll; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--sky), var(--bg); }
/* One dropdown look everywhere instead of each phone's native style. */
select { -webkit-appearance: none; appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238f8aa8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
select.lang-select, .view-as select, .rel-select, .rel-mini, .med-voice select { padding-right: 28px !important; background-position: right 10px center; }
/* iOS shows date/time fields centered and shorter than text fields. */
input[type=date], input[type=time], input[type=datetime-local] { -webkit-appearance: none; appearance: none; min-height: 50px; text-align: left; display: block; }
input::-webkit-date-and-time-value { text-align: left; }
/* iOS zooms the whole page when you tap a field whose text is under 16px. */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }

.ex-moon { margin-bottom: 18px; }
.ex-section-title { font-size: 1.15rem; margin: 0 0 10px; }

/* Chart page: saved charts first */
.saved-section { margin-bottom: 26px; }
.saved-section .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.saved-section .section-head h2 { margin: 0; font-size: 1.3rem; }
.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.saved-card { display: flex; align-items: center; gap: 8px; padding: 12px 10px 12px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.saved-card:hover { background: var(--card-2); }
.saved-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--text); }
.saved-txt { display: flex; flex-direction: column; min-width: 0; }
.saved-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-txt .sub { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-title { font-size: 1.3rem; margin: 6px 0 12px; scroll-margin-top: 80px; }
.trial-note { font-weight: 700; color: var(--gold); margin: 0 0 10px; }

/* Relaxing sounds (Plus) */
.snd-player .snd-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.snd-player .med-orb { width: 74px; height: 74px; margin: 0; flex: none; font-size: 1.8rem; }
.snd-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.snd-meta b { font-size: 1.05rem; }
.snd-timer { display: flex; gap: 6px; margin-top: 4px; }
.snd-timer .chip { flex-direction: row; white-space: nowrap; padding: 5px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.snd-timer .chip.on, .snd.on { border-color: var(--accent); background: var(--hover); box-shadow: 0 0 0 1px var(--accent) inset; }
.snd-section { margin-top: 18px; }
.snd-section h3 { font-size: 1rem; margin: 0 0 10px; }
.snd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.snd { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; text-align: left; font: 500 .85rem var(--font); transition: .2s; }
.snd:hover { background: var(--card-2); }
.snd .snd-ico { font-size: 1.5rem; line-height: 1.3; }
.snd span:last-child { color: var(--muted); font-size: .75rem; }
.snd-vols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.snd-vols label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.snd-vols input[type=range] { width: 100%; accent-color: var(--accent); }
@media (max-width: 560px) { .snd-grid { grid-template-columns: 1fr 1fr; } .snd-vols { grid-template-columns: 1fr; } }

/* Personal horoscope */
.horo-card.personal { border-color: rgba(160, 140, 255, .35); background: radial-gradient(120% 120% at 0% 0%, rgba(138, 116, 255, .22), transparent 60%), var(--card); }
:root[data-theme="light"] .horo-card.personal { background: linear-gradient(135deg, #ece4ff 0%, #fff 60%); }
.transit-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; max-width: 720px; }
.transit-list li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.transit-list .g { font-size: 1.1rem; }
.transit-list .muted { flex-basis: 100%; padding-left: 26px; }
.horo-tip { max-width: 720px; margin: 10px 0; padding: 10px 14px; border-radius: 14px; background: var(--hover); font-size: .95rem; }
.quick-signs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.snd { position: relative; }
.snd .snd-hz { color: var(--muted); font-size: .75rem; }
.for-you { position: absolute; top: 8px; right: 8px; font: 800 .6rem var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; color: #1b1300; background: linear-gradient(135deg, #f4c76b, #f59e0b); }

/* Glossy chart wheel */
:root { --w-plate-1: rgba(70, 66, 140, 0.55); --w-plate-2: rgba(16, 16, 40, 0.0); }
:root[data-theme="light"] { --w-plate-1: #ffffff; --w-plate-2: rgba(236, 228, 255, 0.6); }
.w-sheen { opacity: .7; }
.hero-wheel .w-sheen { display: none; }
:root:not([data-theme="light"]) .w-sheen { opacity: .22; }
.w-rim { stroke: rgba(255, 255, 255, .85); stroke-width: 1.5; }
:root:not([data-theme="light"]) .w-rim { stroke: rgba(255, 255, 255, .3); }
.wheel { filter: drop-shadow(0 18px 34px rgba(110, 80, 220, .28)); }

/* Saved matches */
.avatar-pair { display: inline-flex; flex: none; }
.avatar-pair .avatar + .avatar { margin-left: -10px; background: linear-gradient(135deg, #f4b860, #f472b6); box-shadow: 0 0 0 2px var(--bg); }
.match-score { flex: none; font: 800 .95rem var(--display); color: var(--accent); padding: 0 4px; }

/* Legal pages */
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.legal-nav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: .85rem; font-weight: 600; }
.legal-nav a.on { background: var(--accent-2); color: #fff; border-color: transparent; }
.legal { max-width: 860px; line-height: 1.7; }
.legal h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 10px 0; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.legal-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 560px) { .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; } .legal-table thead { display: none; } .legal-table tr { padding: 8px 0; border-bottom: 1px solid var(--border); } .legal-table td { border: 0; padding: 2px 0; } .legal-table td:first-child { font-weight: 700; } }
.legal-foot { margin-top: 28px; }
.footer-legal a { color: var(--muted); }
.disclaimer { opacity: .85; }

/* Breathing room under the top bar (the .wrap padding rule was cancelling main's padding-top). */
main#app { padding-top: 14px; }
@media (max-width: 860px) { main#app { padding-top: 10px; } }
.trial-terms { margin: 8px 0 0; line-height: 1.45; }

/* Gradient headline words: deeper tones on light backgrounds so they read clearly */
:root[data-theme="light"] .grad, :root[data-theme="light"] .hero h1 span { background-image: linear-gradient(120deg, #6d4cf0 10%, #b5458f 55%, #d27a12 95%); }

/* Plus plan picker (Monthly / Yearly) on the Pricing page */
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.plan-pick a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--card); color: var(--text); text-align: center; }
.plan-pick a b { font-size: .95rem; }
.plan-pick a span { font-size: .82rem; color: var(--muted); }
.plan-pick a em { position: absolute; top: -9px; right: 8px; font: 800 .58rem var(--font); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; color: #1b1300; background: linear-gradient(135deg, #f4c76b, #f59e0b); }
.plan-pick a.on { border-color: var(--accent-2); background: var(--hover); box-shadow: 0 0 0 1px var(--accent-2) inset; }
.plan-pick a.on span { color: var(--text); }

/* "What you get with Plus" preview next to the birth-details form (free accounts) */
.plus-preview { text-align: left; }
.plus-preview h3 { margin: 10px 0 12px; }
.plus-preview .btn { width: 100%; }
.pp-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.pp-list li { display: flex; gap: 12px; align-items: flex-start; }
.pp-list b { display: block; font-size: .92rem; }
.pp-list span:not(.pp-ico) { font-size: .82rem; color: var(--muted); }
.pp-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--glyph); font-size: 1rem; color: #4a2fb0;
  background: radial-gradient(circle at 32% 26%, #fff 0, rgba(255, 255, 255, .9) 22%, #e1d6ff 62%, #b9a6ff 100%); box-shadow: inset 0 -3px 6px rgba(90, 60, 200, .25), 0 4px 10px -4px rgba(110, 80, 230, .5); }

/* "Your chart at a glance": highlighted, beginner-friendly summary under the wheel */
.chart-summary { margin: 16px 0 6px; padding: 20px 20px 18px; border-radius: 24px; border: 1px solid rgba(160, 140, 255, .35);
  background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .08) 45%, rgba(255, 255, 255, 0) 60%), linear-gradient(135deg, rgba(150, 120, 255, .28), rgba(255, 170, 210, .18) 55%, rgba(255, 196, 120, .2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 16px 36px -18px rgba(110, 80, 220, .55); }
:root:not([data-theme="light"]) .chart-summary { background: linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, 0) 60%), linear-gradient(135deg, rgba(130, 100, 255, .35), rgba(220, 110, 180, .2) 55%, rgba(240, 160, 90, .18)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 36px -18px rgba(0, 0, 0, .6); }
.cs-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font: 800 .68rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .1) 48%, rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, #a98cff, #7a5cf5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 14px -6px rgba(110, 80, 240, .7); }
.cs-title { margin: 10px 0 6px; font-size: 1.25rem; }
.cs-intro { margin: 0 0 12px; font-size: .95rem; }
.cs-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cs-chip { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.cs-glyph { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 1.35rem var(--glyph);
  background: radial-gradient(circle at 32% 26%, #fff 0, rgba(255, 255, 255, .9) 22%, #e8e0ff 62%, #c3b2ff 100%); box-shadow: inset 0 -3px 6px rgba(90, 60, 200, .22), 0 5px 12px -5px rgba(110, 80, 230, .55); }
.cs-chip.fire .cs-glyph { color: #e0532f; } .cs-chip.earth .cs-glyph { color: #1f9d6a; } .cs-chip.air .cs-glyph { color: #c08a00; } .cs-chip.water .cs-glyph { color: #2b7fd6; }
.cs-chip > div { display: flex; flex-direction: column; min-width: 0; }
.cs-label { font: 700 .66rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cs-chip b { font: 800 1.1rem var(--display); line-height: 1.2; }
.cs-role { font-size: .8rem; font-weight: 600; color: var(--accent); }
.cs-kw { font-size: .78rem; color: var(--muted); }
.cs-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.cs-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.5; }
.cs-bi { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font: .9rem var(--glyph); background: var(--hover); }
.cs-list li { font-size: .95rem; }
.cs-bi.cs-sign { width: 30px; height: 30px; font-size: 1.05rem;
  background: radial-gradient(circle at 32% 26%, #fff 0, rgba(255, 255, 255, .9) 22%, #e8e0ff 62%, #c3b2ff 100%); box-shadow: inset 0 -2px 5px rgba(90, 60, 200, .22), 0 4px 10px -5px rgba(110, 80, 230, .55); }
.cs-bi.cs-sign.fire { color: #e0532f; } .cs-bi.cs-sign.earth { color: #1f9d6a; } .cs-bi.cs-sign.air { color: #c08a00; } .cs-bi.cs-sign.water { color: #2b7fd6; }
.cs-list i { font-style: normal; color: var(--accent); font-weight: 600; }

/* Compact Big Three snapshot (three small cards in one row, even on phones) */
.big3 { gap: 10px; margin-bottom: 18px; }
@media (max-width: 860px) { .big3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.b3-mini { padding: 12px 10px; text-align: center; }
.b3-mini .label { justify-content: center; font-size: .62rem; gap: 4px; }
.b3-mini .sign { justify-content: center; font-size: 1.15rem; margin: 6px 0 0; gap: 6px; flex-wrap: wrap; }
.b3-mini .sign .g { font-size: 1.3rem; }
.b3-mini .sign.fire .g { color: var(--fire); } .b3-mini .sign.earth .g { color: var(--earth); } .b3-mini .sign.air .g { color: var(--air); } .b3-mini .sign.water .g { color: var(--water); }
:root[data-theme="light"] .b3-mini .sign.fire .g { color: #e0532f; } :root[data-theme="light"] .b3-mini .sign.earth .g { color: #1f9d6a; } :root[data-theme="light"] .b3-mini .sign.air .g { color: #c08a00; } :root[data-theme="light"] .b3-mini .sign.water .g { color: #2b7fd6; }
@media (max-width: 420px) { .b3-mini .sign { font-size: 1rem; flex-direction: column; gap: 2px; } }
/* compact Big Three keeps the faded sign watermark and a see-through card */
.b3-mini { overflow: hidden; }
.b3-mini .glyph-bg { right: 12px; top: 50%; transform: translateY(-50%); font-size: 3rem; line-height: 1; opacity: .14; }
.b3-mini .label, .b3-mini .sign, .b3-mini p { position: relative; }
:root[data-skin="glossy"][data-theme="light"] .b3-mini { background-color: rgba(255, 255, 255, .42); }
:root[data-skin="glossy"]:not([data-theme="light"]) .b3-mini { background-color: rgba(36, 34, 78, .45); }
@media (max-width: 560px) { .b3-mini .glyph-bg { font-size: 2.2rem; right: 6px; } }
.b3-mini.tipable { cursor: help; }
.b3-mini.tipable:hover, .b3-mini.tipable:focus-visible { transform: translateY(-2px); box-shadow: var(--gloss-edge, none), 0 14px 30px -16px rgba(110, 80, 220, .55); outline: none; }
.sr-summary { margin: 0 0 20px; }
.sr-takeaway { margin: 4px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--hover); font-weight: 600; font-size: .95rem; }

/* Your year together (Plus) */
#yearTogether .chart-summary h4 { margin: 18px 0 8px; font-size: 1rem; }
.yt-pick { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; flex-wrap: wrap; }
.yt-pick label { font-weight: 600; font-size: .9rem; }
.yt-mood { margin: 4px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--hover); font-size: .95rem; }
.yt-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.yt-timeline li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.yt-timeline p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.yt-tag { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; background: radial-gradient(circle at 32% 26%, #fff 0, rgba(255, 255, 255, .9) 22%, #ece4ff 62%, #cdbfff 100%); box-shadow: 0 4px 10px -5px rgba(110, 80, 230, .5); }
.yt-best { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--hover); }
.yt-best p { margin: 2px 0; font-size: .92rem; }
.yt-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.yt-m { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--card); font-size: 1.2rem; }
.yt-m b { font-size: .75rem; }

/* Sneak peek above a locked Plus block: the first row is real and readable, the rest is blurred */
.lock-peek { position: relative; margin-bottom: 6px; }
.lock-peek .timeline, .lock-peek .yt-timeline, .lock-peek .cs-list { margin-bottom: 0; }
.locked.has-peek { margin-top: 0; }
.locked.has-peek .lock-blur { max-height: 260px; overflow: hidden; }

/* Fading sneak peek (paywall style): reads normally, then fades away; CTA underneath */
.lock-fade { position: relative; }
.lf-content { max-height: 84px; overflow: hidden; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 22%, rgba(0, 0, 0, .12) 55%, transparent 78%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 22%, rgba(0, 0, 0, .12) 55%, transparent 78%); }
.lf-content > div[aria-hidden] { filter: blur(3px); }
.lf-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -6px; padding: 12px 14px; border-radius: 16px; background: var(--hover); border: 1px dashed rgba(160, 130, 255, .45); }
.lf-cta > div { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.lf-cta b { font-size: .95rem; }
.lf-cta span:not(.pill-plus) { font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) { .lf-cta .btn { width: 100%; } }
/* Forecast: only about half a line of the next sentence, already fading */
.lf-short .lf-content { max-height: 26px; max-width: 440px; -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .2) 50%, transparent 85%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .2) 50%, transparent 85%); }
.lf-short + .lf-cta { margin-top: 2px; }
/* Card headings with a button: keep the button on one line */
.row-between { gap: 12px; }
.row-between > .btn { white-space: nowrap; flex: none; }
.row-between > h3 { min-width: 0; }

/* Phones: the spinning home wheel's square frame (transparent corners) grew ~1.4x wider at 45deg,
   making the page slide sideways every few seconds. Clip it horizontally; round wheel is unaffected. */
.hero-wheel { overflow-x: clip; }
/* Safety net: nothing can make the page pan sideways. 'clip' (not 'hidden') keeps the sticky top bar working. */
html, body { overflow-x: clip; max-width: 100%; }

/* chart at a glance: life areas + actions */
.chart-summary .cs-sub { margin: 16px 0 6px; font-size: .95rem; letter-spacing: .02em; }
.chart-summary .cs-k { margin-right: 4px; color: var(--accent-2); }
:root:not([data-theme="light"]) .chart-summary .cs-k { color: var(--gold); }
.chart-summary .cs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* footer: social links */
.mms-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 6px; }
.mms-follow-lbl { font-size: .85rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.mms-fbtn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: .88rem; font-weight: 600; text-decoration: none; transition: transform .15s ease, border-color .15s ease, color .15s ease; }
.mms-fbtn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.mms-fbtn svg { flex: none; }
@media (max-width: 520px) {
  .mms-fbtn { padding: 0; width: 42px; height: 42px; justify-content: center; }
  .mms-fbtn span { display: none; }
}
.badge.warn { color: #c27a14; border-color: rgba(244, 184, 96, .45); background: rgba(244, 184, 96, .12); }

/* "View in Spanish / Russian?" offer for visitors whose browser prefers that language (i18n.js) */
.lang-offer { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 22px; background: var(--card-2, #fff); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-weight: 600; animation: lang-offer-in .35s ease-out; }
.lang-offer span { flex: 1 1 100%; text-align: center; }
@media (min-width: 521px) { .lang-offer span { flex: 0 1 auto; } }
@media (max-width: 860px) { .lang-offer { bottom: calc(92px + env(safe-area-inset-bottom)); } }
@keyframes lang-offer-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Guest reminder near the top of the chart / compatibility forms */
.callout.guest-save { margin: 0 0 16px; font-size: .9rem; }
/* Compatibility result → "Your year together" suggestion */
.year-nudge { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 18px; border-radius: 18px; background: var(--card); border: 1px dashed var(--border-strong); color: var(--text); }
.year-nudge:hover { background: var(--card-2); color: var(--text); }
.year-nudge .yn-ico { font-size: 1.5rem; flex-shrink: 0; }
.year-nudge .yn-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.year-nudge .yn-txt span { color: var(--muted); font-size: .88rem; }
.year-nudge .yn-go { font-weight: 700; color: var(--accent); white-space: nowrap; font-size: .9rem; }
@media (max-width: 560px) { .year-nudge { flex-wrap: wrap; } .year-nudge .yn-go { width: 100%; text-align: right; } }

/* Tarot: Past · Present · Future story, one line per card */
.story-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.story-list li { display: flex; gap: 8px; align-items: baseline; }
.story-list .st-ico { flex-shrink: 0; }
/* Your year together: a do / don't under each month */
.yt-timeline .yt-dd { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; font-size: .86rem; color: var(--muted); }
.yt-timeline .yt-dd b { color: var(--text); font-weight: 600; }

/* Narrow phones: keep a longer sign-in label (e.g. "Iniciar sesión") inside the header */
@media (max-width: 420px) { .topbar .acct .btn.sm { padding: 7px 10px; font-size: .8rem; white-space: nowrap; } .topbar-inner { padding-left: 14px; padding-right: 14px; } .topbar .logo { font-size: 1.02rem; gap: 6px; } }

/* Sign in with Apple: black button, Apple's look (website and iPhone app) */
.sso.apple { background: #000; color: #fff; border-color: #000; }
.sso.apple:hover { background: #1a1a1a; color: #fff; }
[data-theme="dark"] .sso.apple { background: #fff; color: #000; border-color: #fff; }
[data-theme="dark"] .sso.apple svg { fill: #000; }

/* Phone apps: Plus screen with Apple in-app purchase (site/js/native.js) */
.iap { max-width: 520px; margin: 0 auto 24px; }
.iap h1 { margin: 4px 0 14px; }
.iap-feats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.iap-feats li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.iap-feats li span { font-size: 1.15rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--hover); border: 1px solid var(--border); flex-shrink: 0; }
.iap-plans { display: grid; gap: 10px; margin-bottom: 14px; }
.iap-plan { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--border-strong); background: var(--card); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.iap-plan.on { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset; background: var(--hover); }
.iap-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; }
.iap-plan.on .iap-radio { border: 6px solid var(--accent-2); }
.iap-txt { display: flex; flex-direction: column; gap: 2px; }
.iap-txt span { font-size: .85rem; color: var(--muted); }
.iap-plan em { margin-left: auto; font: 800 .62rem var(--font); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: #1b1300; background: linear-gradient(135deg, #f4c76b, #f59e0b); white-space: nowrap; }
.iap-cta { width: 100%; }
.iap-fine { margin-top: 10px; line-height: 1.45; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-2); cursor: pointer; text-decoration: underline; }

/* My Sky: forecast card in three columns (forecast · today's energy · daily affirmation). Each column ends in its own
   vertical "Keep reading with Plus" box; the boxes line up at the bottom. Stacks into one column on phones. */
.today .forecast-text { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.today.today3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.today3 .t-col { display: flex; flex-direction: column; min-width: 0; }
.today3 .t-col + .t-col { border-left: 1px solid var(--border); padding-left: 22px; }
.today3 .t-col > .eyebrow { margin-bottom: 10px; }
.today3 .t-moon { margin: 0 0 12px; }
.today3 .lock-fade { margin-bottom: 12px; }
.today3 .lf-cta { margin-top: auto; flex-direction: column; align-items: stretch; text-align: left; gap: 8px; }
.today3 .lf-cta > div { min-width: 0; }
.today3 .lf-cta .pill-plus { align-self: flex-start; }
.today3 .lf-cta .btn { width: 100%; }
.today3 .affirm-text.sm { font-size: .98rem; line-height: 1.4; margin: 0 0 12px; }
/* Compact, level columns: small black title, reading at the same size as the "Moon in …" line */
.today3 h2 { font-size: 1.02rem; font-weight: 800; color: var(--text); margin: 0 0 4px; }
/* Title, Moon sign/house and Moon phase flow together in one block */
.today3 .t-head { margin: 0 0 10px; line-height: 1.45; }
.today3 .t-sub { font: 400 .875rem var(--font); color: var(--muted); }
.today3 .forecast-text { font-size: .875rem; color: var(--text); hyphens: manual; -webkit-hyphens: manual; margin-bottom: 6px; }
.today3 .callout { font-size: .875rem !important; background: none; border: 0; padding: 0; margin: 6px 0 0; color: var(--muted); }
.today3 .t-go { margin-top: 2px; align-self: flex-start; white-space: nowrap; }
.today3 .lf-short .forecast-text { text-align: left; }
@media (max-width: 760px) {
  .today.today3 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .today3 .t-col + .t-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 18px; }
}

/* Locked Plus blocks grow to fit their text and button (longer in Spanish and Russian) instead of cutting them off. */
.locked { display: grid; }
.locked > .lock-blur, .locked > .lock-cta { grid-area: 1 / 1; }
.lock-cta { position: relative; inset: auto; }
.lock-cta .btn, .lf-cta .btn { white-space: normal; text-align: center; max-width: 100%; }

/* "Download on the App Store" button (website only; hidden inside the apps) */
.app-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 6px; }
.hero-app { margin-top: 18px; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--text) !important; border-radius: 999px; padding: 8px 24px 8px 20px; text-decoration: none !important; border: 1.5px solid color-mix(in srgb, var(--text) 30%, transparent); transition: transform .15s, border-color .15s; }
.app-badge:hover { border-color: var(--text); }
.app-badge:hover { transform: translateY(-1px); }
.app-badge svg { width: 26px; height: 26px; }
.app-badge span { display: flex; flex-direction: column; font: 600 1.2rem/1.05 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.01em; }
.app-badge small { font-size: .66rem; font-weight: 400; letter-spacing: 0; }
.is-native .app-row, .is-native .app-badge { display: none !important; }
