/* ==========================================================================
   AstroCosmo — "Nebula Noir / Editorial Luxe" design system
   Single shared stylesheet for the whole platform.
   ========================================================================== */

/* Fonts are loaded via a parallel <link> in index.html (with preconnect) — a
   render-blocking @import here serialized the fetch behind this file and slowed
   first paint. Keep them in sync if the font list changes. */

:root {
  --bg:        #0e2129;
  --bg-2:      #142b35;
  --card:      #142b35;
  --card-2:    #1a3444;
  --card-3:    #1e3b48;
  --hairline:  rgba(20,213,194,.16);
  --hairline-soft: rgba(20,213,194,.09);

  --accent:        #14d5c2;
  --accent-deep:   #0f9e91;
  --accent-glow:   rgba(20,213,194,.38);
  --accent-wash:   rgba(20,213,194,.10);
  --cream:         #f2e6c4;

  --text:      #eaf3f3;
  --muted:     rgba(234,243,243,.82);
  --muted-2:   rgba(234,243,243,.95);

  --online:    #5BD0A0;
  --amber:     #E8C583;
  --danger:    #E88A8A;
  --pos:       #88D9B0;

  --radius:    16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --maxw:      1200px;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --slow: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--text);
  background: var(--bg); line-height: 1.5; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ambient backdrop ------------------------------------------------------- */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 42% at 20% 8%, rgba(20,213,194,.11), transparent 60%),
    radial-gradient(50% 46% at 86% 30%, rgba(44,230,211,.06), transparent 62%),
    radial-gradient(46% 50% at 50% 96%, rgba(14,43,53,.20), transparent 70%),
    #0e2129;
}
.ambient::after {
  content: ""; position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography ------------------------------------------------------------- */
h1,h2,h3,h4 { margin: 0; font-weight: 600; }
.display { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -.015em; }
.display.italic { font-style: italic; font-weight: 500; }
.serif { font-family: var(--serif); }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eyebrow .dot { color: var(--accent); margin-right: 7px; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.accent { color: var(--accent); }
a { color: inherit; text-decoration: none; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Layout helpers --------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 28px; position: relative; z-index: 1; }
.section { padding-block: 88px; position: relative; z-index: 1; }
.rule { height: 1px; background: var(--hairline-soft); border: 0; margin: 0; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .display { font-size: clamp(28px,4vw,44px); }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #04231f; }
.btn-primary:hover { background: #d8b9ff; }
.btn-ghost { background: transparent; border-color: var(--hairline); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: 6px; }
.btn-outline:hover { background: var(--accent-wash); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn .arr { width: 17px; height: 17px; }

/* Cards & surfaces ------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--hairline-soft); border-radius: var(--radius); }
.card-pad { padding: 24px; }
.surface { background: var(--card-2); border: 1px solid var(--hairline-soft); border-radius: var(--radius-sm); }

/* Chips & badges --------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--hairline); color: var(--muted-2); background: rgba(255,255,255,.015); }
.chip-pos { color: var(--pos); border-color: rgba(136,217,176,.3); background: rgba(136,217,176,.06); }
.chip-warn { color: var(--amber); border-color: rgba(232,181,131,.3); background: rgba(232,181,131,.06); }
.chip-accent { color: var(--accent); border-color: rgba(20,213,194,.22); background: var(--accent-wash); }
.badge { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; }
.badge-accent { background: var(--accent); color: #04231f; }
.badge-soft { background: var(--accent-wash); color: var(--accent); border: 1px solid rgba(20,213,194,.20); }
.badge-lock { background: rgba(255,255,255,.04); color: var(--muted-2); border: 1px solid var(--hairline); }
.price-tag { font-family: var(--serif); }

/* Forms ------------------------------------------------------------------ */
.field { display: block; margin-bottom: 16px; }
.field label { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.input, input[type=text], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--text);
  background: var(--card-2); border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.input:focus, input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.input::placeholder, input::placeholder, textarea::placeholder { color: var(--muted); }
.form-note { font-size: 12.5px; color: var(--muted); }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid var(--hairline); }
.alert-error { color: var(--danger); border-color: rgba(232,138,138,.34); background: rgba(232,138,138,.06); }
.alert-ok { color: var(--pos); border-color: rgba(136,217,176,.34); background: rgba(136,217,176,.06); }

/* Public nav ------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px);
  background: rgba(14,33,41,.80); border-bottom: 1px solid var(--hairline-soft); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .2px; }
.brand .mark { color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: 24px; font-size: 14.5px; color: #fff; }
.nav-links a { color: #fff; transition: color .2s; }
.nav-links a:hover { color: #14d5c2; }

/* /start path-chooser — no nav bar, just a floating Back + Log in. */
.start-floatbar { position: relative; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(18px, 4vw, 38px); }
/* Bright accent outline on the floating Back + Log in buttons so they stand out. */
.start-floatbar .btn { border: 1px solid rgba(20,213,194,.75); color: #eaf3f3;
  background: rgba(20,213,194,.08); box-shadow: 0 0 16px -6px rgba(20,213,194,.65); transition: all .2s; }
.start-floatbar .btn:hover { border-color: #14d5c2; background: rgba(20,213,194,.18); color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--hairline); border-radius: 10px; padding: 8px; color: var(--text); }
.mobile-menu { display: none; }

/* Footer ----------------------------------------------------------------- */
.footer { border-top: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(8,18,24,.35), rgba(8,18,24,.8)); box-shadow: 0 -1px 0 rgba(20,213,194,.06); padding-block: 56px 30px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer a { display: block; width: fit-content; color: var(--muted-2); font-size: 14px; padding: 5px 0; transition: color .2s, transform .2s; }
.footer a:hover { color: #14d5c2; transform: translateX(5px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hairline-soft); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.disclaimer { font-size: 12px; color: var(--muted); }

/* Preflight is off, so <button> keeps the UA light-grey ButtonFace background.
   Reset it to transparent — every button in this app sets its own background
   (.btn, tiles, gradients), and a transparent default lets semi-opacity tints
   sit over the dark page instead of a grey box (was making tile text unreadable). */
button { background-color: transparent; }

/* ==========================================================================
   APP SHELL (member dashboard)
   ========================================================================== */
.app-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; position: relative; z-index: 1;
  transition: grid-template-columns .34s cubic-bezier(.22,.61,.36,1); }
.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; border-right: 1px solid var(--hairline-soft);
  padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; background: rgba(14,33,41,.50);
  overflow-x: hidden; overflow-y: auto; min-width: 0; white-space: nowrap; transition: opacity .22s ease;
  scrollbar-width: thin; scrollbar-color: rgba(20,213,194,.3) transparent; }
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(20,213,194,.25); border-radius: 99px; }
.sidebar .brand { padding: 6px 10px 18px; }
.side-link { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: 11px; color: var(--muted-2); font-size: 14.5px; font-weight: 500; }
.side-link svg { width: 19px; height: 19px; opacity: .85; }
.side-link:hover { background: rgba(255,255,255,.03); color: var(--text); }
.side-link.active { background: var(--accent-wash); color: var(--text); }
.side-link.active svg { color: var(--accent); opacity: 1; }
.side-sep { height: 1px; background: var(--hairline-soft); margin: 12px 6px; }

/* Light ("white") sidebar — dark text + teal accents on a soft-white panel. */
.sidebar { background: #f5f7fa; border-right-color: rgba(0,0,0,.08); }
.sidebar .brand { color: #10222b; }
.sidebar .side-link { color: #46555f; }
.sidebar .side-link svg { opacity: .68; }
.sidebar .side-link:hover { background: rgba(20,213,194,.12); color: #0e2129; }
.sidebar .side-link:hover svg { opacity: 1; }
.sidebar .side-link.active { background: rgba(20,213,194,.16); color: #0e2129; }
.sidebar .side-link.active svg { color: var(--accent-deep, #0f9e91); opacity: 1; }
.sidebar .side-sep { background: rgba(0,0,0,.10); }
.side-coins { margin-top: auto; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px; }
.side-coins .bal { font-family: var(--serif); font-size: 24px; }

/* Admin pricing — number inputs styled for the dark panel (no default white box) */
.admin-num-input { width: 120px; background: rgba(255,255,255,.04); border: 1px solid var(--hairline); border-radius: 9px;
  color: var(--text); padding: 9px 12px; font-size: 14px; font-weight: 600; font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s; -moz-appearance: textfield; }
.admin-num-input:hover { border-color: rgba(255,255,255,.22); }
.admin-num-input:focus { outline: none; border-color: var(--accent); background: rgba(20,213,194,.06); box-shadow: 0 0 0 3px rgba(20,213,194,.16); }
.admin-num-input::-webkit-outer-spin-button, .admin-num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Coin-amount field — icon prefix + "coins" suffix, accent focus glow, no spinners */
.coin-input { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.04);
  border: 1px solid var(--hairline); border-radius: 11px; padding: 0 14px;
  transition: border-color .18s, box-shadow .18s, background .18s; }
.coin-input:hover { border-color: rgba(255,255,255,.22); }
.coin-input:focus-within { border-color: var(--accent); background: rgba(20,213,194,.07);
  box-shadow: 0 0 0 3px rgba(20,213,194,.16); }
.coin-input .coin-glyph { color: var(--accent); display: inline-flex; flex: 0 0 auto;
  filter: drop-shadow(0 0 7px rgba(20,213,194,.45)); }
.coin-input input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; padding: 13px 0;
  color: var(--text); font-size: 16px; font-weight: 700; letter-spacing: .01em; font-family: inherit; -moz-appearance: textfield; }
.coin-input input::placeholder { color: var(--muted); font-weight: 400; }
.coin-input input:focus { outline: none; }
.coin-input input::-webkit-outer-spin-button, .coin-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.coin-input .coin-suffix { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; flex: 0 0 auto; padding-left: 4px; border-left: 1px solid var(--hairline-soft); }

.app-topbar { display: flex; align-items: center; gap: 16px; padding: 12px 30px; border-bottom: 1px solid var(--hairline-soft);
  position: sticky; top: 0; z-index: 30; background: rgba(14,33,41,.78); backdrop-filter: blur(12px); }
.app-topbar .greet { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.app-topbar .greet b { font-family: var(--serif); font-size: 18px; color: var(--text); font-weight: 600; letter-spacing: .01em; }
.app-topbar .greet .greet-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-topbar .tb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.coin-pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: #f4c752;
  border: 1px solid rgba(244,199,82,.30); background: rgba(244,199,82,.10); border-radius: 999px; padding: 7px 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #140f22; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hairline); color: var(--muted-2); background: none; cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }

.app-main { padding: 30px; max-width: 1180px; margin: 0 auto; width: 100%; }
.app-mobile-top { display: none; }
.bottom-nav { display: none; }

/* Phone-frame member app (no sidebar, no bottom nav): the AstroRekha shell at
   every width — a slim header with a back arrow + page title + coins, and a
   centered content column. Hub-and-spoke: the dashboard launches pages, each
   page's back arrow returns to it. `.app-main` is unchanged so inner pages are
   untouched. */
.app-shell.app-phone { display: block; min-height: 100vh; }
/* Grid, not flex: the two 1fr side columns balance each other, so the title stays
   truly centred no matter how wide the right-hand group grows (chat adds a Clear
   chat button beside the coins). Columns are assigned explicitly so the home page,
   which renders no back arrow, doesn't shift the title into column 1. */
.app-shell.app-phone .app-mobile-top { display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px; padding: 13px 16px;
  position: sticky; top: 0; z-index: 30; background: rgba(14,33,41,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-soft); }
.app-shell.app-phone .ph-back { grid-column: 1; justify-self: start;
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--hairline-soft); background: rgba(255,255,255,.05);
  color: var(--text); cursor: pointer; transition: background .18s, border-color .18s; }
.app-shell.app-phone .ph-back:hover { background: rgba(255,255,255,.09); border-color: var(--accent); }
.app-shell.app-phone .ph-title { grid-column: 2; justify-self: center; min-width: 0;
  font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: .01em;
  /* A row so an optional titleIcon (chat's Elysia avatar) sits beside the text
     and the pair centres together. */
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.app-shell.app-phone .ph-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Right-hand group: optional icon action + the coin pill. */
.app-shell.app-phone .ph-actions { grid-column: 3; justify-self: end;
  display: flex; align-items: center; gap: 8px; }
.app-shell.app-phone .app-main { max-width: 560px; margin: 0 auto; padding: 22px 18px 40px; }

/* Dashboard cards -------------------------------------------------------- */
.elysia-card { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius-lg);
  border: 1px solid var(--hairline); background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-wash), transparent 55%), var(--card); position: relative; overflow: hidden; }
/* Elysia's face — real avatar image, fit exactly inside a circle with a soft
   ~10% golden glow behind so she reads as a real presence, not a placeholder. */
.elysia-av { width: 60px; height: 60px; border-radius: 50%; flex: none;
  background: #0a0e2a url('/assets/elysia.png') center/cover no-repeat;
  box-shadow: 0 0 22px 2px rgba(240, 200, 120, .10), 0 0 0 1px rgba(240, 200, 120, .28); }
/* The floating .elysia-pill and .chat-clear chips were removed: the app top bar
   already reads "Chat with Elysia", and being absolutely positioned they overlapped
   the first message. Their content now lives in the bar (.ph-elysia / .ph-action). */
@keyframes elysiaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.elysia-card h3 { font-family: var(--serif); font-size: 20px; display: flex; align-items: center; gap: 9px; }
.dot-online { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 8px var(--online); }
.sec-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 34px 0 14px; }

.insight-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.insight-card { position: relative; border: 1px solid var(--hairline-soft); border-radius: var(--radius); padding: 18px; background: var(--card);
  cursor: pointer; transition: border-color .2s, transform .15s, box-shadow .2s; min-height: 110px; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; }
.insight-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px -18px var(--accent-glow); }
/* "View →" affordance so it's clear each card opens more */
.insight-card .ins-more { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  padding: 4px 8px; border-radius: 999px; background: var(--accent-wash); border: 1px solid var(--hairline);
  transition: color .2s, background .2s, gap .2s; }
.insight-card:hover .ins-more { color: var(--accent); gap: 6px; }
.insight-card .ins-more svg { width: 13px; height: 13px; }
.insight-card .ic { font-size: 22px; }
.insight-card .k { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.insight-card .v { font-family: var(--serif); font-size: 30px; color: var(--accent); }

.horo-card, .summary-card { border: 1px solid var(--hairline-soft); border-radius: var(--radius); padding: 22px; background: var(--card); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--hairline); border-radius: 999px; }
.tab { padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--muted-2); cursor: pointer; border: 0; background: none; font-family: inherit; }
.tab.active { background: var(--accent-wash); color: var(--accent); }

.report-tile { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--hairline-soft);
  border-radius: var(--radius); background: var(--card); transition: border-color .2s, transform .15s; }
.report-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.report-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--accent);
  background: var(--accent-wash); border: 1px solid rgba(20,213,194,.15); }
.report-tile h4 { font-size: 15.5px; font-weight: 600; }
.report-tile p { font-size: 13px; color: var(--muted); margin: 3px 0 0; }
.report-tile .state { margin-left: auto; text-align: right; flex: none; }

/* Coin packages ---------------------------------------------------------- */
.coin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.coin-card { position: relative; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 18px; text-align: center; background: var(--card); }
.coin-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-wash); }
.coin-card .coins { font-family: var(--serif); font-size: 30px; }
.coin-card .price { font-size: 18px; font-weight: 600; margin: 4px 0 14px; }
.coin-card .badge { position: absolute; top: 12px; right: 12px; }

/* Chat ------------------------------------------------------------------- */
/* Fixed-height column: header pinned on top, stream scrolls, input stays put. */
/* Lock the window scroll on the chat page so only the message stream scrolls. */
body.chat-lock { overflow: hidden; }
/* Chat is the one page that must fill the frame EXACTLY — the composer rests on
   the bottom edge and only the stream scrolls. Size it off the flex shell rather
   than a guessed `100dvh - Npx`: the old offsets left the composer floating in a
   ~75px dead band above the bottom of the screen. */
/* min-height MUST be reset: the base .app-phone rule sets 100vh, which on mobile
   is the URL-bar-EXPANDED height and would beat `height: 100dvh` — pushing the
   composer back below the fold whenever the browser chrome is showing. */
.app-shell.app-phone:has(.chat-page) { display: flex; flex-direction: column; height: 100dvh; min-height: 0; }
.app-shell.app-phone:has(.chat-page) .app-main { flex: 1 1 auto; min-height: 0; padding-top: 10px; padding-bottom: 0; }
/* Three static rows — banner? / stream / composer. Nothing is absolutely
   positioned, so nothing can overlap anything at any width.

   The old layout floated the header and the footer over the stream and kept them
   clear with hardcoded `padding-top: 60px` / `padding-bottom: 128px`. Those
   numbers were already wrong: the header measured 61px at 393px wide, and above
   420px the "your cosmic guide" caption reappeared and made it taller still — so
   the pill sat on top of the first message. Elysia's avatar and Clear chat now
   live in the app's top bar instead (.ph-elysia / .ph-action in this file), which
   also stops the bar's "Chat with Elysia" title repeating the pill's name. */
.chat-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-page .chat-stream { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; }
.chat-page .chat-foot, .chat-page .low-bal { flex: 0 0 auto; }

/* Composer: ONE bordered card holding the suggestion chips and the input, so it
   reads as a container rather than controls floating loose over the messages. */
.chat-page .chat-foot { display: flex; flex-direction: column; gap: 10px;
  margin-top: 12px; margin-bottom: env(safe-area-inset-bottom, 0px);
  padding: 12px; border-radius: 18px; border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--card-2) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .7); }
/* Chips scroll horizontally INSIDE the card and fade at its inner edge, instead
   of being sliced off at the column edge. */
.chat-page .chat-suggest { overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); }
.chat-page .chat-suggest::-webkit-scrollbar { display: none; }

/* Elysia avatar + online dot in the app top bar. `.elysia-av` is a <span>, and its
   width/height only ever applied because its old parent (.elysia-pill) was an
   inline-flex container that blockified it. This wrapper is not a flex container,
   so the avatar must be made a block explicitly or it collapses to 0x0 and only
   its ring shows. */
.ph-elysia { position: relative; width: 26px; height: 26px; flex: none; }
.ph-elysia .elysia-av { display: block; width: 26px; height: 26px; }
.ph-elysia .dot-online { position: absolute; right: -1px; bottom: -1px; width: 7px; height: 7px;
  border: 1.5px solid var(--bg); box-sizing: content-box; }
/* Icon action in the app top bar (chat's Clear chat). */
.ph-action { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--hairline); background: transparent; color: var(--muted); cursor: pointer;
  transition: color .18s, border-color .18s, background .18s; }
.ph-action:hover { color: var(--text); border-color: var(--accent); background: rgba(255,255,255,.06); }
.ph-action svg { width: 17px; height: 17px; }
/* Styled, subtle scrollbar for the message stream. */
.chat-stream { scrollbar-width: thin; scrollbar-color: rgba(120,205,195,.28) transparent; }
.chat-stream::-webkit-scrollbar { width: 9px; }
.chat-stream::-webkit-scrollbar-track { background: transparent; }
.chat-stream::-webkit-scrollbar-thumb { background: rgba(120,205,195,.24); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.chat-stream::-webkit-scrollbar-thumb:hover { background: rgba(120,205,195,.45); background-clip: padding-box; }
.chat-stream { display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 76%; padding: 13px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; }
.bubble.user { align-self: flex-end; background: var(--accent-wash); border: 1px solid rgba(20,213,194,.18); border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; background: linear-gradient(180deg, #1d3a49, #16303b);
  border: 1px solid rgba(20,213,194,.16); border-bottom-left-radius: 5px;
  box-shadow: inset 3px 0 0 rgba(20,213,194,.4); }
/* Elysia typing indicator (three bouncing dots) */
.typing-bubble { padding: 15px 18px; }
.typing-dots { display: inline-flex; align-items: center; gap: 5px; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block;
  opacity: .35; animation: typingDot 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .18s; }
.typing-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-suggest { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.chat-suggest::-webkit-scrollbar { display: none; }
.chat-suggest .chip { white-space: nowrap; cursor: pointer; flex: 0 0 auto;
  background: color-mix(in srgb, var(--card-2) 52%, transparent);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
.chat-input { display: flex; gap: 10px; align-items: center; }
.chat-input input { flex: 1; background: color-mix(in srgb, var(--card-2) 64%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }

/* Tables (admin) --------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--hairline-soft); color: var(--muted-2); }
.table tr:hover td { background: rgba(255,255,255,.015); }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat { border: 1px solid var(--hairline-soft); border-radius: var(--radius); padding: 20px; background: var(--card); }
.stat .n { font-family: var(--serif); font-size: 30px; }
.stat .l { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

/* Modal ------------------------------------------------------------------ */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(4,4,6,.72); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 22px; animation: modalFade .22s ease; }
.modal-back.open { display: flex; }
.modal { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 26px;
  animation: modalPop .38s cubic-bezier(.32,1.2,.4,1); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(22px) scale(.94); } to { opacity: 1; transform: none; } }
.toast { position: fixed; bottom: 24px; top: auto; left: 50%; transform: translateX(-50%); z-index: 120; max-width: 92%;
  background: var(--card); border: 1px solid var(--accent); border-radius: 999px; padding: 12px 22px; font-size: 14px;
  box-shadow: 0 12px 40px -12px #000; }

/* Reveal + motion -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--slow), transform .8s var(--slow); }
.reveal.in { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tw { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-links, .nav-cta.desktop { display: none; }
  .nav-toggle { display: grid; }
  .mobile-menu.open { display: block; padding: 10px 0 18px; border-top: 1px solid var(--hairline-soft); }
  .mobile-menu a { display: block; padding: 13px 4px; color: var(--muted-2); border-bottom: 1px solid var(--hairline-soft); }
  .section { padding-block: 60px; }

  /* dashboard -> single full-width column with bottom nav.
     Use block (not grid) so no sidebar column track can survive and push
     content sideways — the shell must sit strictly inside the screen. */
  .app-shell { display: block; }
  .app-shell > * { min-width: 0; max-width: 100%; }
  .app-main { min-width: 0; max-width: 100%; overflow-x: clip; }
  .sidebar { display: none; }
  .app-topbar { display: none; }
  .app-mobile-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; position: sticky; top: 0; z-index: 30;
    background: rgba(14,33,41,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline-soft); }
  .app-mobile-top .tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .app-main { padding: 20px 16px 96px; }
  .insight-grid { gap: 10px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: rgba(14,33,41,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--hairline); padding: 8px 4px env(safe-area-inset-bottom); justify-content: space-around; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); padding: 6px 3px; min-width: 0; flex: 1 1 0; text-align: center; letter-spacing: -0.01em; }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.active { color: var(--accent); }
  .coin-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .insight-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .bubble { max-width: 86%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* First-run walkthrough — mobile coach marks with a spotlight ring */
.tour { position: fixed; inset: 0; z-index: 9999; }
.tour-dim { position: fixed; inset: 0; background: rgba(4,10,14,.82); }
.tour-spot { position: fixed; border-radius: 50%; border: 2px solid var(--accent);
  box-shadow: 0 0 0 9999px rgba(4,10,14,.82), 0 0 22px 4px var(--accent-glow);
  pointer-events: none; transition: all .32s cubic-bezier(.4,0,.2,1); }
.tour-tip { position: fixed; left: 18px; right: 18px; margin: 0 auto; max-width: 340px;
  background: var(--card-2, #0f1f24); border: 1px solid var(--hairline, rgba(255,255,255,.1));
  border-radius: 16px; padding: 18px 18px 16px; box-shadow: 0 20px 50px -16px rgba(0,0,0,.7);
  animation: tourpop .3s ease; }
@keyframes tourpop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tour-tip .tour-step { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.tour-tip h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; color: var(--text); }
.tour-tip p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; }
.tour-tip .tour-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-tip .btn { padding: 9px 16px; font-size: 13px; }
.tour-skip { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 6px 4px; min-width: 34px; text-align: left; }

/* ── Collapsible sidebar (desktop) + light-sidebar polish ── */
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 14px; }
.sidebar .side-head .brand { padding: 0; }
.side-collapse { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid rgba(0,0,0,.09); background: #fff; color: #46555f; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.side-collapse:hover { background: rgba(20,213,194,.12); color: #0f9e91; border-color: rgba(20,213,194,.4); }
/* Collapsed: animate the sidebar track to 0 (don't display:none, or the content
   would jump into the empty first track and squeeze to min-content). The sidebar
   stays in the grid, clipped by overflow:hidden, and fades as it shrinks. */
.app-shell.side-collapsed { grid-template-columns: 0px minmax(0, 1fr); }
.app-shell.side-collapsed .sidebar { opacity: 0; pointer-events: none; }
.side-open { display: none; flex: none; width: 40px; height: 40px; border-radius: 11px; margin-right: 8px;
  border: 1px solid var(--hairline); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; place-items: center; transition: border-color .2s, color .2s; }
.side-open:hover { border-color: var(--accent); color: var(--accent); }
.app-shell.side-collapsed .side-open { display: inline-grid; }

/* light sidebar — cleaner links + active pill */
.sidebar .side-link { border-radius: 12px; transition: background .18s, color .18s; }
.sidebar .side-link.active { background: rgba(20,213,194,.15); color: #0e2129; font-weight: 600; box-shadow: 0 1px 3px rgba(15,158,145,.14); }
.sidebar .side-head .brand { color: #10222b; font-size: 19px; }

/* ── Premium light sidebar ── */
.sidebar { padding: 20px 14px 16px; gap: 2px; background: linear-gradient(180deg, #fbfcfe, #f2f5f9); border-right: 1px solid rgba(16,34,43,.07); }
.side-head { padding: 2px 4px 16px; }
.sidebar .side-head .brand { font-size: 18px; color: #10222b; letter-spacing: .01em; }
.sidebar .brand img.mark { border-radius: 8px; }
.side-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9aa6b2; padding: 4px 12px 6px; }
.sidebar .side-link { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #465561; transition: background .16s, color .16s; }
.sidebar .side-link .side-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #6b7a86; background: transparent; transition: background .18s, color .18s, box-shadow .18s; flex: none; }
.sidebar .side-link .side-ic svg { width: 18px; height: 18px; opacity: 1; }
.sidebar .side-link:hover { background: #eaeff4; color: #10222b; }
.sidebar .side-link:hover .side-ic { color: #0f9e91; }
.sidebar .side-link.active { background: linear-gradient(90deg, rgba(20,213,194,.15), rgba(20,213,194,.05)); color: #0c1f27; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(20,213,194,.22); }
.sidebar .side-link.active .side-ic { background: linear-gradient(135deg, #14d5c2, #0f9e91); color: #fff; box-shadow: 0 5px 12px -3px rgba(15,158,145,.5); }
.sidebar .side-sep { display: none; }
.sidebar .btn-primary { background: linear-gradient(135deg, #14d5c2, #0f9e91); color: #04231f; border-radius: 12px; font-weight: 700;
  box-shadow: 0 12px 24px -12px rgba(15,158,145,.65); margin: 16px 8px 6px; }
.sidebar .btn-primary:hover { background: linear-gradient(135deg, #19e3cf, #11a99a); filter: brightness(1.02); }
.side-collapse { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(16,34,43,.10); background: #fff; color: #5a6772; box-shadow: 0 1px 2px rgba(16,34,43,.06); }
.side-collapse:hover { background: rgba(20,213,194,.10); color: #0f9e91; border-color: rgba(20,213,194,.35); }

/* Tarot icon: one card at rest, fans a matching second card out on hover.
   Used in the sidebar (.side-link-tarot) and the dashboard tile (.tile-tarot).
   The second card is a mini tarot card (rounded rect + ✦) so both cards match. */
.side-link-tarot .side-ic,
.tile-tarot .report-ic { position: relative; overflow: visible; }
.side-link-tarot .side-ic svg,
.tile-tarot .report-ic svg { position: relative; z-index: 1; transition: transform .34s cubic-bezier(.22,.61,.36,1); }
.side-link-tarot .side-ic::before,
.tile-tarot .report-ic::before {
  content: "\2726"; position: absolute; left: 50%; top: 50%; width: 14px; height: 18px; margin: -9px 0 0 -7px;
  display: grid; place-items: center; font-size: 8px; line-height: 1; color: currentColor;
  border-radius: 3px; border: 1.7px solid currentColor; background: transparent;
  opacity: 0; transform-origin: bottom right; transform: rotate(0deg) translate(0, 0);
  transition: transform .36s cubic-bezier(.22,.61,.36,1), opacity .26s; }
.side-link-tarot:hover .side-ic svg,
.tile-tarot:hover .report-ic svg { transform: rotate(9deg) translateX(2px); }
.side-link-tarot:hover .side-ic::before,
.tile-tarot:hover .report-ic::before { opacity: .95; transform: rotate(-20deg) translate(-4px, -2px); }
.side-link-tarot.active .side-ic::before { border-color: rgba(255,255,255,.9); }

/* Sidebar locked track links (unified dashboard) */
.sidebar .side-link-locked { color: #97a3ae; }
.sidebar .side-link-locked .side-ic { opacity: .6; }
.sidebar .side-link .side-lock { margin-left: auto; display: inline-flex; color: #b0b9c1; }
.sidebar .side-link-locked:hover .side-lock { color: #0f9e91; }

/* Reports section switcher (unified dashboard) */
.rpt-switch { position: relative; display: inline-block; margin-bottom: 18px; z-index: 6; }
.rpt-switch-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--hairline); color: var(--text); cursor: pointer; font-family: var(--sans); }
.rpt-switch-btn:hover { border-color: var(--accent); }
.rpt-switch-ey { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rpt-switch-cur { font-weight: 600; font-size: 14px; }
.rpt-switch-caret { display: inline-flex; transform: rotate(90deg); transition: transform .2s; color: var(--muted); }
.rpt-switch-caret.up { transform: rotate(-90deg); }
.rpt-switch-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--card-2);
  border: 1px solid var(--hairline); border-radius: 13px; padding: 6px; box-shadow: 0 22px 46px -18px rgba(0,0,0,.72); }
.rpt-switch-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 9px; background: transparent; border: 0; color: var(--muted-2); cursor: pointer;
  font-family: var(--sans); font-size: 14px; text-align: left; }
.rpt-switch-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.rpt-switch-item.on { color: var(--accent); }
.rpt-switch-item.locked { color: var(--muted); }

/* Sidebar expandable "Reports" group + sub-links */
.side-group { display: contents; }
.side-link-reports { width: 100%; }
.side-link-reports .side-caret { margin-left: auto; display: inline-flex; color: #9aa6b2; transition: transform .25s var(--ease, ease); }
.side-link-reports .side-caret.open { transform: rotate(180deg); }
.side-sub { display: flex; flex: none; flex-direction: column; gap: 1px; padding-left: 20px; margin: 0;
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height .34s cubic-bezier(.22,.61,.36,1), opacity .26s ease, margin .26s; }
.side-sub .side-sublink { flex: none; }
.side-sub.open { max-height: 240px; opacity: 1; margin: 2px 0 4px; }
.side-sub .side-sublink { transform: translateX(-6px); opacity: 0; transition: transform .3s ease, opacity .3s ease, background .15s, color .15s; }
.side-sub.open .side-sublink { transform: none; opacity: 1; }
.side-sub.open .side-sublink:nth-child(1) { transition-delay: .06s; }
.side-sub.open .side-sublink:nth-child(2) { transition-delay: .12s; }
.side-sub.open .side-sublink:nth-child(3) { transition-delay: .18s; }
.sidebar .side-sublink { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 9px; font-size: 13px; color: #56646f; transition: background .15s, color .15s; }
.sidebar .side-sublink:hover { background: #eaeff4; color: #10222b; }
.sidebar .side-sublink .side-subdot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; flex: none; }
.sidebar .side-sublink .side-subtxt { flex: 1; }
.sidebar .side-sublink.locked { color: #98a4ae; }
.sidebar .side-sublink .side-lock { display: inline-flex; margin-left: auto; opacity: .85; }

/* ── Motion & polish ─────────────────────────────────────────────────────── */
/* Reports toggle: clean button — no user-agent border/outline box */
.side-link-reports { border: 0; background: none; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.side-link-reports:focus { outline: none; }
.side-link-reports:focus-visible { outline: 2px solid rgba(20,213,194,.55); outline-offset: 2px; }

/* Section "build-in": content blocks rise + fade on every page / route change */
@keyframes acRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.app-main > * { animation: acRise .55s cubic-bezier(.22,.61,.36,1) both; }
.app-main > *:nth-child(1) { animation-delay: .02s; } .app-main > *:nth-child(2) { animation-delay: .08s; }
.app-main > *:nth-child(3) { animation-delay: .14s; } .app-main > *:nth-child(4) { animation-delay: .20s; }
.app-main > *:nth-child(5) { animation-delay: .26s; } .app-main > *:nth-child(n+6) { animation-delay: .32s; }

/* Chat bubbles pop in */
@keyframes acBubbleIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-stream .bubble { animation: acBubbleIn .3s cubic-bezier(.22,.61,.36,1) both; }

/* Interactive micro-motion */
.coin-pill, .avatar, .icon-btn, .report-tile, .rpt-tile { transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s; }
.coin-pill:hover, .avatar:hover, .icon-btn:hover { transform: translateY(-1px); }
.report-tile:hover, .rpt-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px var(--accent-glow); }
.btn { transition: transform .16s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s, filter .2s; }
.btn:not(.btn-block):hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .app-main > *, .chat-stream .bubble, .side-sub, .side-sub .side-sublink { animation: none !important; }
  .app-main > *, .side-sub .side-sublink { opacity: 1 !important; transform: none !important; }
}

/* Horoscope loading shimmer (shown while a period is AI-generated) */
.horo-shimmer { height: 14px; border-radius: 7px; margin: 0 0 10px;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(20,213,194,.14) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%; animation: horoShimmer 1.3s ease-in-out infinite; }
@keyframes horoShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
