: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: #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: 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; }
.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; 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); }
.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 { background: linear-gradient(135deg, #c4b5fd, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.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: 100px 1fr 44px; gap: 12px; align-items: center; margin-bottom: 12px; font-size: .92rem; }
.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: flex-start; padding-left: 20px; gap: 14px; 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(7px); opacity: .55; 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: .35; }
.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; } }
