/* ═══════════════════════════════════════════════════════════════
   Spiritual Portal — Brand palette
   Anchors: Parchment #f5efe2 · Leather Dark #14100a
   Gold (voice): Sanctum #c89545 · Ritual #d9a85a · Halo #f0cc73 · Aurora #f6e1a2
   Supports: Vellum #fbf6e9 · Aged Cream #ede4cf · Sanguine #7a2b1a · Incense #6b6041
   Themes: "sanctum" (dark, default) · "parchment" (light)
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Anchors */
  --bg: #14100a;                 /* Leather Dark */
  --bg-deep: #0a0805;
  --panel: rgba(27, 22, 13, 0.62);
  --panel-strong: rgba(33, 27, 16, 0.82);
  --surface: #1b160d;

  /* Text */
  --text: #f5efe2;               /* Parchment */
  --text-soft: #f6e1a2;          /* Aurora highlight */
  --muted: rgba(245, 239, 226, 0.64);

  /* Gold voice */
  --gold: #f0cc73;               /* Halo (primary on dark) */
  --gold-soft: #f6e1a2;          /* Aurora */
  --gold-mid: #d9a85a;           /* Ritual */
  --gold-deep: #c89545;          /* Sanctum */

  /* Sacred & neutral */
  --sanguine: #7a2b1a;
  --incense: #6b6041;

  /* Legacy aliases (mapped to new palette) */
  --primary: #d9a85a;            /* Ritual replaces violet */
  --pink: #c89545;               /* Sanctum replaces magenta */

  /* Lines & shadow */
  --line: rgba(240, 204, 115, 0.14);
  /* Borda de destaque — o mesmo dourado, so que visivel. Antes cada componente
     inventava a sua opacidade (0.22, 0.30, 0.32, 0.34...) e nada casava. */
  --line-strong: rgba(240, 204, 115, 0.32);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.55);

  /* ── ESCALA DE ESPACO E FORMA ────────────────────────────────────────────
     O app tinha 10 valores diferentes de border-radius e um padding por
     componente (20, 18, 16, 15, 14/10, 12/14...). Nada disso foi decidido —
     foi cada tela sendo feita num dia diferente. Daqui pra frente:

       --pad-card    caixa grande (card de conteudo)
       --pad-tile    caixa pequena (item de lista, bilhete, plano)
       --r-card / --r-tile / --r-chip   os tres unicos raios de canto
       --gap-block   respiro entre blocos de uma tela
       --gap-item    respiro dentro de um bloco

     Os valores sao os que o app JA usava mais — a escala nao muda a cara do
     produto, so para de deixar cada componente escolher sozinho.
     ⚠️ Componente novo usa os tokens. Numero cru em padding/radius e sinal de
     que alguem esta abrindo uma 11a excecao. */
  --pad-card: 18px;
  --pad-tile: 14px;
  --r-card: 20px;
  --r-tile: 16px;
  --r-chip: 999px;
  --gap-block: 18px;
  --gap-item: 10px;

  /* Geometry */
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-bottom-buffer: 12px;
  --tabbar-reserved-space: calc(108px + var(--safe-area-bottom));
}

[data-theme="parchment"] {
  --bg: #f5efe2;                 /* Parchment */
  --bg-deep: #ede4cf;            /* Aged Cream */
  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: rgba(251, 246, 233, 0.88);
  --surface: #fbf6e9;            /* Vellum */

  --text: #14100a;               /* Leather Dark */
  --text-soft: #3a2a14;
  --muted: rgba(20, 16, 10, 0.66);

  --gold: #c89545;               /* Sanctum (primary on light) */
  --gold-soft: #d9a85a;          /* Ritual */
  --gold-mid: #d9a85a;
  --gold-deep: #7a2b1a;          /* Sanguine accents in light */

  --sanguine: #7a2b1a;
  --incense: #6b6041;

  --primary: #c89545;
  --pink: #7a2b1a;

  --line: rgba(20, 16, 10, 0.12);
  --shadow: 0 18px 42px rgba(122, 43, 26, 0.14);
}

* {
  box-sizing: border-box;
  /* Mata o ZOOM POR DUPLO-TOQUE no app inteiro (atrapalha a sensacao de app).
     'manipulation' desliga so o double-tap-to-zoom — mantem scroll e pinca.
     Listas/sliders com regra propria (touch-action: pan-y) tem especificidade
     maior e continuam valendo normalmente. */
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
}

/* A trava contra rolagem lateral mora no html, NAO no body. No body ela torna
   o BODY um scroll container, e a partir dai todo `position: sticky` de dentro
   para de grudar — foi o que fazia a barra do "Back" sumir ao rolar a Loja e a
   tela do Veu. No html a trava funciona igual e o sticky volta a viver. */
html { overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 110%, rgba(122, 43, 26, 0.14), transparent 36%),
    linear-gradient(180deg, #14100a 0%, #0e0a05 60%, #060402 100%);
  transition: background 0.4s ease, color 0.4s ease;
}

/* ─── PWA Install Bar ─────────────────────────────────────────
   Aparece no topo só quando o cliente está no browser (não no PWA).
   beforeinstallprompt salva o evento — clique no CTA dispara o
   modal nativo "Adicionar à tela inicial". iOS Safari não tem essa
   API; mostramos um pequeno tutorial inline em vez do botão.
   ═══════════════════════════════════════════════════════════════ */
.pwa-install-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.96) 0%, rgba(14, 10, 5, 0.96) 100%);
  border-bottom: 1px solid rgba(240, 204, 115, 0.25);
  color: var(--text);
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  animation: pwa-bar-slide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pwa-install-bar[hidden] { display: none; }
/* A barra de "Instalar" não deve aparecer na tela de login: a pessoa
   ainda nem entrou no app. Sem isto, o overlay translúcido do login
   (.auth-screen, mesmo z-index 200) deixava a barra "vazar" no fundo,
   parecendo um bug. Só reaparece depois que o usuário entra. */
body.is-auth-pending .pwa-install-bar { display: none; }
/* Mesmo motivo, agora para os pop-ups translúcidos que abrem DEPOIS do login
   (notificações, preferência de tratamento, "selo revelado" e "ao vivo"):
   a barra ficava vazando borrada atrás deles. Escondemos a barra enquanto
   qualquer um deles estiver aberto. (Subir o z-index NÃO resolve: o fundo
   translúcido deixa a barra aparecer por trás de qualquer jeito.) */
body:has(#push-prompt:not([hidden])) .pwa-install-bar,
body:has(#treatment-prompt:not([hidden])) .pwa-install-bar,
body:has(#sealing-reveal:not([hidden])) .pwa-install-bar,
body:has(#live-reveal:not([hidden])) .pwa-install-bar {
  display: none;
}
@keyframes pwa-bar-slide {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.pwa-install-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 16px;
}
.pwa-install-bar__logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
.pwa-install-bar__name {
  flex: 1;
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
}
.pwa-install-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  color: #14100a;
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow:
    0 4px 14px rgba(240, 204, 115, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  animation: pwa-cta-pulse 2.4s ease-in-out infinite;
  position: relative;
}
.pwa-install-bar__cta svg { color: #14100a; }
.pwa-install-bar__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 6px 20px rgba(240, 204, 115, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -1px 0 rgba(0, 0, 0, 0.22) inset;
}
.pwa-install-bar__cta:active { transform: translateY(0); }
@keyframes pwa-cta-pulse {
  0%, 100% { box-shadow:
    0 4px 14px rgba(240, 204, 115, 0.32),
    0 0 0 0 rgba(240, 204, 115, 0.0),
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset; }
  50%      { box-shadow:
    0 4px 14px rgba(240, 204, 115, 0.32),
    0 0 0 6px rgba(240, 204, 115, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset; }
}
@media (prefers-reduced-motion: reduce) {
  .pwa-install-bar__cta { animation: none; }
}
.pwa-install-bar__close {
  background: transparent;
  border: none;
  padding: 6px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.18s ease, background 0.18s ease;
}
.pwa-install-bar__close:hover { color: var(--text); background: rgba(245, 239, 226, 0.06); }

/* Empurra o conteúdo da página pra baixo quando a barra está visível.
   Usa CSS custom property setada pelo JS pra refletir a altura real. */
body.has-pwa-install-bar {
  padding-top: var(--pwa-install-bar-height, 60px);
}

@media (max-width: 480px) {
  .pwa-install-bar__inner { padding: 9px 12px; gap: 10px; }
  .pwa-install-bar__name { font-size: 14.5px; letter-spacing: 0.04em; }
  .pwa-install-bar__cta { padding: 8px 16px; font-size: 12.5px; }
}

/* ── Install helper · tela de boas-vindas ───────────────────────────
   Card que convida a pôr o Celestino na tela inicial + overlay com o
   tutorial visual (iPhone Safari / dentro de app / Android / desktop).
   Casado com o tema dourado-no-escuro do altar. */
.install-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 18px auto 6px;
  padding: 20px 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(240, 204, 115, 0.32);
  background: linear-gradient(180deg, rgba(40, 31, 16, 0.92), rgba(20, 16, 10, 0.96));
  box-shadow:
    0 18px 50px -28px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(246, 225, 162, 0.12) inset;
  overflow: hidden;
  text-align: center;
}
.install-card[hidden] { display: none; }
.install-card__glow {
  position: absolute;
  left: 20%;
  right: 20%;
  top: -60px;
  height: 150px;
  background: radial-gradient(closest-side, rgba(240, 204, 115, 0.22), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
.install-card__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold-soft);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.18s ease, background 0.18s ease;
}
.install-card__close:hover { opacity: 1; background: rgba(240, 204, 115, 0.10); }
.install-card__body { position: relative; z-index: 1; }
.install-card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 14px;
  color: #14100a;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 60%, var(--gold-mid));
  box-shadow: 0 8px 20px -8px rgba(240, 204, 115, 0.6);
}
.install-card__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.install-card__title {
  margin: 0.25rem 0 0.4rem;
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.24rem;
  line-height: 1.2;
  color: var(--gold-soft);
}
.install-card__copy {
  margin: 0 auto 0.9rem;
  max-width: 340px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(245, 239, 226, 0.82);
}
.install-card__video { margin: 0 0 0.9rem; }
.install-card__video[hidden] { display: none; }
.install-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
  padding: 13px 18px;
  border: 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #14100a;
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: 0 12px 26px -12px rgba(240, 204, 115, 0.7);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.install-card__cta:hover { filter: brightness(1.05); }
.install-card__cta:active { transform: translateY(1px); }
.install-card__cta svg { color: #14100a; }
.install-card__reassure {
  margin: 0.6rem 0 0;
  font-size: 0.76rem;
  color: rgba(246, 225, 162, 0.6);
}

/* Overlay com o tutorial visual */
.install-guide {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.install-guide[hidden] { display: none; }
.install-guide__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 2, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.install-guide__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 10px 14px;
  padding: 26px 22px 20px;
  border-radius: 22px 22px 18px 18px;
  border: 1px solid rgba(240, 204, 115, 0.30);
  background: linear-gradient(180deg, #1f1810, #14100a);
  box-shadow: 0 -10px 50px -20px rgba(0, 0, 0, 0.9);
  text-align: left;
  animation: install-sheet-up 0.28s ease;
}
@keyframes install-sheet-up {
  from { transform: translateY(26px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.install-guide__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold-soft);
  opacity: 0.7;
  cursor: pointer;
}
.install-guide__close:hover { opacity: 1; background: rgba(240, 204, 115, 0.10); }
.install-guide__title {
  margin: 0 0 14px;
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  color: var(--gold-soft);
  text-align: center;
}
.install-guide__copy {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(245, 239, 226, 0.82);
  text-align: center;
}
.install-guide__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.install-guide__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: rgba(245, 239, 226, 0.92);
}
.install-guide__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  color: #14100a;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-mid));
}
.install-guide__step-text { flex: 1; }
.install-guide__share-icon { flex: 0 0 auto; color: var(--gold); }
.install-guide__arrow--down {
  margin: 16px auto 0;
  width: max-content;
  color: var(--gold);
  animation: install-bounce 1.1s ease-in-out infinite;
}
@keyframes install-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.install-guide__done {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 20px auto 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: inherit;
  color: #14100a;
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
}
body.install-guide-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .install-guide__sheet { animation: none; }
  .install-guide__arrow--down { animation: none; }
}

/* ── Passo de instalação pós-quiz (tela cheia) ─────────────────────── */
.install-step {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  background: radial-gradient(120% 80% at 50% 0%, #1f1810 0%, #14100a 55%, #0a0805 100%);
  overflow-y: auto;
}
.install-step[hidden] { display: none; }
.install-step__inner {
  width: 100%;
  max-width: 420px;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: install-step-rise 0.4s ease;
}
@keyframes install-step-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.install-step__brand { display: flex; align-items: center; gap: 9px; color: var(--gold); margin-bottom: 18px; }
.install-step__sigil { width: 30px; height: 30px; }
.install-step__brand-name { font-family: 'Cinzel', Georgia, serif; font-size: 15px; letter-spacing: 0.18em; color: var(--gold-soft); }
.install-step__eyebrow { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.install-step__title { margin: 0.3rem 0 0.5rem; font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; line-height: 1.2; color: var(--gold-soft); }
.install-step__copy { margin: 0 auto 1.1rem; max-width: 340px; font-size: 0.95rem; line-height: 1.55; color: rgba(245, 239, 226, 0.82); }
.install-step__video { width: 100%; margin: 0 0 1.1rem; }
.install-step__video[hidden] { display: none; }
.install-step__hint {
  margin: 0 auto 1.2rem; max-width: 350px;
  font-size: 0.98rem; line-height: 1.55; color: var(--gold-soft);
  background: rgba(240, 204, 115, 0.08);
  border: 1px solid rgba(240, 204, 115, 0.22);
  border-radius: 14px; padding: 13px 16px;
}
.install-step__hint:empty { display: none; }
.install-step__cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 320px; padding: 15px 18px; margin-bottom: 12px;
  border: 0; border-radius: 14px; font-size: 1.05rem; font-weight: 700; font-family: inherit;
  color: #14100a; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: 0 12px 26px -12px rgba(240, 204, 115, 0.7);
}
.install-step__cta[hidden] { display: none; }
.install-step__cta:active { transform: translateY(1px); }
.install-step__skip {
  width: 100%; max-width: 320px; padding: 13px 18px;
  background: transparent; border: 1px solid rgba(240, 204, 115, 0.4); border-radius: 14px;
  cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--gold-soft);
}
.install-step__skip:hover { background: rgba(240, 204, 115, 0.08); }
body.is-install-step-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .install-step__inner { animation: none; } }

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(ellipse 60% 50% at 15% 18%, rgba(255, 240, 140, 0.5) 0%, rgba(253, 232, 146, 0.3) 22%, rgba(246, 225, 162, 0.12) 45%, transparent 70%),
    radial-gradient(ellipse 65% 55% at 90% 78%, rgba(253, 232, 146, 0.45) 0%, rgba(246, 225, 162, 0.22) 25%, rgba(240, 204, 115, 0.08) 48%, transparent 72%);
  filter: blur(22px);
  animation: aura-drift 40s ease-in-out infinite alternate;
  opacity: 1;
}

body::after {
  background:
    radial-gradient(circle at 50% 78%, rgba(122, 43, 26, 0.06), transparent 42%);
  animation: aura-drift 24s ease-in-out infinite alternate;
}

[data-theme="parchment"] body {
  background:
    radial-gradient(circle at 18% 16%, rgba(200, 149, 69, 0.1), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(122, 43, 26, 0.06), transparent 20%),
    radial-gradient(circle at 50% 108%, rgba(217, 168, 90, 0.1), transparent 36%),
    linear-gradient(180deg, #faf3e3 0%, #f5efe2 52%, #ede4cf 100%);
}

[data-theme="parchment"] body::before,
[data-theme="parchment"] body::after {
  opacity: 0.18;
  filter: invert(1) hue-rotate(20deg);
}

body.is-auth-pending .app-shell {
  visibility: hidden;
}

/* Modo de teste do card de instalação (?installdemo=): revela o app SEM precisar
   logar — vence o is-auth-pending e esconde a tela de login. Só entra quando a URL
   tem ?installdemo=..., então NUNCA afeta o cliente real. */
body.is-install-demo .app-shell { visibility: visible !important; }
body.is-install-demo #auth-screen { display: none !important; }

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.1;
}

p {
  margin: 0;
}

.eyebrow,
.daily-card__label,
.tarot-reading__tag {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: rgba(245, 239, 226, 0.95);
}

/* Veredito da semana (topo da leitura): "good" (oportunidade) ou "caution". */
.tarot-omen {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; gap: 11px;
  margin: 2px 0 16px; padding: 13px 15px; border-radius: 16px;
  border: 1px solid rgba(240, 204, 115, 0.4);
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.14), rgba(240, 204, 115, 0.04));
}
.tarot-omen[hidden] { display: none; }
.tarot-omen__icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.95rem; font-weight: 800; margin-top: 1px; }
.tarot-omen__body { display: flex; flex-direction: column; gap: 3px; }
.tarot-omen__eyebrow { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.tarot-omen__text { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.18rem; line-height: 1.34; color: #f5ecd6; }
.tarot-omen[data-tone="good"] { border-color: rgba(111, 207, 127, 0.42); background: linear-gradient(135deg, rgba(111, 207, 127, 0.16), rgba(240, 204, 115, 0.05)); }
.tarot-omen[data-tone="good"] .tarot-omen__eyebrow { color: #8fe0a0; }
.tarot-omen[data-tone="good"] .tarot-omen__icon { background: rgba(111, 207, 127, 0.2); color: #8fe0a0; }
.tarot-omen[data-tone="good"] .tarot-omen__icon::before { content: "✦"; }
.tarot-omen[data-tone="caution"] { border-color: rgba(240, 184, 96, 0.5); background: linear-gradient(135deg, rgba(240, 168, 80, 0.18), rgba(122, 60, 20, 0.06)); }
.tarot-omen[data-tone="caution"] .tarot-omen__eyebrow { color: #f0c070; }
.tarot-omen[data-tone="caution"] .tarot-omen__icon { background: rgba(240, 184, 96, 0.22); color: #f5cf80; }
.tarot-omen[data-tone="caution"] .tarot-omen__icon::before { content: "!"; }

.app-shell {
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top, 18px)) 0 var(--tabbar-reserved-space);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0 24px;
}

body:not(.is-home-screen) .topbar {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   CRYSTALS — saldo virtual (badge fixo no topo-direito, todas as telas)
   ═══════════════════════════════════════════════════════════════ */
.crystals-badge {
  position: fixed;
  top: max(16px, calc(env(safe-area-inset-top, 0px) + 10px));
  right: max(14px, calc((100vw - 1040px) / 2 + 14px));
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(240, 204, 115, 0.34);
  background: linear-gradient(180deg, rgba(40, 32, 18, 0.92), rgba(20, 16, 10, 0.94));
  color: var(--gold);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.crystals-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 204, 115, 0.6);
}

.crystals-badge:active {
  transform: scale(0.96);
}

.crystals-badge:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 204, 115, 0.34), 0 6px 18px rgba(0, 0, 0, 0.34);
}

/* O cristal dentro de um texto (tabela de chances, preco na loja, legenda...).
   Acompanha o tamanho da fonte de quem o contem — assim ele nunca fica grande
   demais num rotulo pequeno nem sumido num numero grande — e usa a cor dourada
   como o badge do topo, pra ser sempre o mesmo simbolo aos olhos do cliente. */
.crystal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin-left: 0.28em;
  color: var(--gold);
  vertical-align: -0.09em;
  flex: none;
}
.crystal-mark svg { width: 100%; height: 100%; display: block; }

.crystals-badge__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 5px rgba(240, 204, 115, 0.5));
}

.crystals-badge__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.crystals-badge__value {
  display: inline-flex;
  align-items: center;
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(1px);
  color: var(--gold);
}

/* "+" ao lado do saldo — afford de "adicionar cristais" (clica no badge → loja) */
.crystals-badge__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(240, 204, 115, 0.16);
  border: 1px solid rgba(240, 204, 115, 0.45);
  color: var(--gold);
}

.crystals-badge__add svg {
  display: block;
}

[data-theme="parchment"] .crystals-badge__add {
  background: rgba(122, 43, 26, 0.06);
  border-color: rgba(122, 43, 26, 0.3);
  color: var(--gold-deep);
}

/* Esconde o badge antes do login / na própria loja / em takeovers imersivos / export */
body.is-auth-pending .crystals-badge,
body.is-credits-screen .crystals-badge,
body.is-treatment-pending .crystals-badge,
body.is-music-immersive-open .crystals-badge,
body.is-prayer-immersive-open .crystals-badge,
body.is-covenant-fullscreen .crystals-badge,
body.is-covenant-exporting .crystals-badge {
  display: none;
}

/* Toast "pagamento em cristais em breve" (checkout placeholder) */
.crystals-toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + var(--safe-area-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  z-index: 600;
  max-width: min(90vw, 360px);
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(240, 204, 115, 0.4);
  background: linear-gradient(180deg, rgba(40, 32, 18, 0.96), rgba(20, 16, 10, 0.97));
  color: var(--gold-soft, #f6e1a2);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.crystals-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-theme="parchment"] .crystals-toast {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 246, 233, 0.97));
  border-color: rgba(122, 43, 26, 0.24);
  color: var(--gold-deep);
  box-shadow: 0 14px 30px rgba(122, 43, 26, 0.16);
}

/* ═══ Pop-up "Parabéns, você recebeu X cristais" + animação ═══ */
.crystals-congrats {
  position: fixed;
  inset: 0;
  z-index: 4300;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(120, 86, 38, 0.5), transparent 70%),
    rgba(8, 6, 3, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.crystals-congrats.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.crystals-congrats__sparkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.crystals-congrats__spark {
  position: absolute;
  top: -8%;
  width: var(--size, 18px);
  height: var(--size, 18px);
  color: var(--gold);
  opacity: 0;
  animation: congrats-fall var(--dur, 2.4s) linear var(--delay, 0s) infinite;
  filter: drop-shadow(0 0 6px rgba(240, 204, 115, 0.5));
}

.crystals-congrats__spark svg { width: 100%; height: 100%; display: block; }

@keyframes congrats-fall {
  0%   { transform: translateY(-10vh) rotate(0deg) scale(0.7); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translateY(112vh) rotate(420deg) scale(1); opacity: 0; }
}

.crystals-congrats__card {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 34px 28px 26px;
  border-radius: 28px;
  border: 1px solid rgba(240, 204, 115, 0.4);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(240, 204, 115, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(32, 25, 14, 0.96), rgba(18, 13, 7, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: center;
}

.crystals-congrats.is-visible .crystals-congrats__card {
  animation: congrats-pop 560ms cubic-bezier(0.18, 0.9, 0.3, 1.2) both;
}

@keyframes congrats-pop {
  0%   { transform: scale(0.82) translateY(8px); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.crystals-congrats__gem {
  width: 64px;
  height: 64px;
  color: var(--gold);
  display: inline-flex;
  filter: drop-shadow(0 0 16px rgba(240, 204, 115, 0.6));
  animation: congrats-gem 2.6s ease-in-out infinite;
}

.crystals-congrats__gem svg { width: 100%; height: 100%; display: block; }

@keyframes congrats-gem {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
}

.crystals-congrats__eyebrow {
  margin-top: 8px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 225, 162, 0.85);
}

.crystals-congrats__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  color: #fff;
}

.crystals-congrats__amount {
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(180deg, #f6e1a2 0%, #f0cc73 45%, #d9a85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(240, 204, 115, 0.4));
}

.crystals-congrats__sub {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(245, 239, 226, 0.7);
}

.crystals-congrats__btn {
  margin-top: 16px;
  min-height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.96), rgba(200, 149, 69, 0.92));
  color: #1a140b;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.crystals-congrats__btn:hover { transform: translateY(-1px); }
.crystals-congrats__btn:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .crystals-congrats.is-visible .crystals-congrats__card,
  .crystals-congrats__gem { animation: none; }
}

/* ═══ Chat — roster (seleção de cartomante) + conversa ═══ */
#screen-chat[data-chat-view="roster"] .chat-conversation { display: none; }
#screen-chat[data-chat-view="conversation"] .chat-roster { display: none; }

.chat-conversation { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.chat-roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px calc(86px + var(--safe-area-bottom, 0px));
}
.chat-roster .screen-back { margin-bottom: 2px; }
.chat-roster__eyebrow {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(240, 204, 115, 0.8);
}
.chat-roster__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem; font-weight: 600;
  line-height: 1.05; color: #f3e7c8; margin-bottom: 10px;
}
.chat-roster__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.advisor-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px; padding: 18px 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(240, 204, 115, 0.16);
  background: linear-gradient(180deg, rgba(38, 30, 16, 0.6), rgba(18, 14, 8, 0.66));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
.advisor-card.is-offline { opacity: 0.6; }

.advisor-card__avatar {
  position: relative;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--gold);
  padding: 3px; margin-bottom: 4px;
}
.advisor-card.is-offline .advisor-card__avatar { border-color: rgba(245, 239, 226, 0.25); }
.advisor-card__avatar > .chat-av__img,
.advisor-card__avatar > .chat-av__initial { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.advisor-card__dot {
  position: absolute; bottom: 0; right: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: #57d06a; border: 2px solid #14100a;
  box-shadow: 0 0 6px rgba(87, 208, 106, 0.9);
}
.advisor-card__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem; font-weight: 700; line-height: 1.1; color: #f3e7c8;
}
.advisor-card__role {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(240, 204, 115, 0.75);
}
.advisor-card__price {
  display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 10px;
  font-size: 0.72rem; font-weight: 600; color: rgba(245, 239, 226, 0.82);
}
.advisor-card__price--free { color: #6fcf7f; font-weight: 700; }
.advisor-card__price .chat-gem-mini { color: var(--gold); }
.advisor-card__btn {
  width: 100%; min-height: 38px; border: none; border-radius: 12px;
  background: linear-gradient(180deg, #f0cc73, #c89545);
  color: #1a140b; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  transition: transform 150ms ease, filter 150ms ease;
}
.advisor-card__btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.advisor-card__btn:active { transform: scale(0.97); }
.advisor-card__btn--off {
  background: rgba(255, 255, 255, 0.06); color: rgba(245, 239, 226, 0.4);
  cursor: not-allowed; box-shadow: none;
}

.chat-gem-mini { width: 13px; height: 13px; flex-shrink: 0; }

/* Avatar interno: foto (Celestino) ou inicial (demais) */
.chat-av__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-av__initial {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: "Cinzel", "Times New Roman", serif; font-weight: 700;
  color: #f3e2b0; font-size: 1.5rem;
}
.chat-av__initial--love  { background: radial-gradient(circle at 32% 26%, #6a2937, #2a1018); }
.chat-av__initial--money { background: radial-gradient(circle at 32% 26%, #6a5126, #241a0a); }
.chat-av__initial--paths { background: radial-gradient(circle at 32% 26%, #423a5e, #1a1626); }
.chat-av__initial--d     { background: radial-gradient(circle at 32% 26%, #4a3a1e, #1f1810); }
.chat-contact__avatar-slot .chat-av__initial { font-size: 1.05rem; }
.chat-contact__avatar-slot { overflow: hidden; display: block; }

/* Medidor de cobrança por minuto (na conversa) */
.chat-billing {
  display: inline-flex; align-items: center; gap: 8px; align-self: center;
  margin: 0 0 8px; padding: 5px 14px; border-radius: 999px;
  background: rgba(240, 204, 115, 0.1); border: 1px solid rgba(240, 204, 115, 0.3);
  font-size: 0.72rem; font-weight: 700; color: var(--gold);
}
.chat-billing__rate { display: inline-flex; align-items: center; gap: 4px; }
.chat-billing__left { color: var(--muted); font-weight: 600; }
.chat-billing.is-out { border-color: rgba(122, 43, 26, 0.5); background: rgba(122, 43, 26, 0.18); color: #f0b8a8; }
.chat-billing__cta {
  border: none; border-radius: 999px; padding: 5px 14px;
  background: linear-gradient(180deg, #f0cc73, #c89545); color: #1a140b;
  font-weight: 700; font-size: 0.72rem; cursor: pointer;
}
.chat-billing__cta:hover { filter: brightness(1.05); }

[data-theme="parchment"] .advisor-card {
  background: linear-gradient(180deg, #fbf6e9, #f3ead6);
  border-color: rgba(122, 43, 26, 0.18);
}
[data-theme="parchment"] .advisor-card__name { color: #2a1d0e; }

[data-theme="parchment"] .crystals-badge {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.28)),
    rgba(251, 246, 233, 0.94);
  border-color: rgba(122, 43, 26, 0.22);
  color: var(--gold-deep);
  box-shadow: 0 6px 16px rgba(122, 43, 26, 0.12);
}

[data-theme="parchment"] .crystals-badge__value {
  color: var(--gold-deep);
}

@media (prefers-reduced-motion: reduce) {
  .crystals-badge {
    transition: none;
  }
}

/* Card de cristais no perfil */
.profile__crystals {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(240, 204, 115, 0.28);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(240, 204, 115, 0.14), transparent 60%),
    rgba(27, 22, 13, 0.6);
}

.profile__crystals-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: var(--gold);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(240, 204, 115, 0.55));
}

.profile__crystals-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.profile__crystals-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile__crystals-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile__crystals-value {
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--gold);
}

[data-theme="parchment"] .profile__crystals {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(200, 149, 69, 0.16), transparent 60%),
    rgba(251, 246, 233, 0.7);
  border-color: rgba(122, 43, 26, 0.18);
}

[data-theme="parchment"] .profile__crystals-icon,
[data-theme="parchment"] .profile__crystals-value {
  color: var(--gold-deep);
}

/* ═══════════════════════════════════════════════════════════════
   ONBOARDING QUIZ — first-access guided questions
   ═══════════════════════════════════════════════════════════════ */
.onboarding-quiz {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 60% 40% at 20% 18%, rgba(240, 204, 115, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 82% 84%, rgba(217, 168, 90, 0.18), transparent 55%),
    linear-gradient(180deg, #1a140b 0%, #14100a 50%, #0a0805 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.onboarding-quiz[hidden] {
  display: none;
}

.onboarding-quiz__inner {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: quiz-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes quiz-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-quiz__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 0;
}

.onboarding-quiz__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.onboarding-quiz__sigil {
  width: 32px;
  height: 32px;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(240, 204, 115, 0.45));
}

.onboarding-quiz__brand-name {
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.onboarding-quiz__step {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.onboarding-quiz__progress {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: rgba(240, 204, 115, 0.12);
  overflow: hidden;
}

.onboarding-quiz__progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-mid));
  box-shadow: 0 0 8px rgba(240, 204, 115, 0.55);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.onboarding-quiz__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 4px 0;
}

.onboarding-quiz__body.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.onboarding-quiz__body.is-entering {
  animation: quiz-question-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes quiz-question-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-quiz__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.95;
}

.onboarding-quiz__question {
  margin: 0;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.45rem, 5.2vw, 1.85rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--text);
}

.onboarding-quiz__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.onboarding-quiz__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 14px 18px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(33, 27, 16, 0.7), rgba(20, 16, 10, 0.85));
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.onboarding-quiz__option:hover,
.onboarding-quiz__option:focus-visible {
  transform: translateX(2px);
  border-color: rgba(240, 204, 115, 0.55);
  background: linear-gradient(180deg, rgba(48, 38, 22, 0.85), rgba(28, 22, 13, 0.95));
  box-shadow: 0 10px 24px rgba(240, 204, 115, 0.14);
  outline: none;
}

.onboarding-quiz__option:active {
  transform: scale(0.985);
}

.onboarding-quiz__option-marker {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 204, 115, 0.45);
  background: rgba(240, 204, 115, 0.08);
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.onboarding-quiz__option:hover .onboarding-quiz__option-marker,
.onboarding-quiz__option:focus-visible .onboarding-quiz__option-marker {
  background: var(--gold);
  color: #14100a;
  border-color: var(--gold);
}

.onboarding-quiz__option.is-selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(240, 204, 115, 0.22), rgba(122, 43, 26, 0.16));
  box-shadow: 0 14px 30px rgba(240, 204, 115, 0.22);
}

.onboarding-quiz__option.is-selected .onboarding-quiz__option-marker {
  background: var(--gold);
  color: #14100a;
  border-color: var(--gold);
}

.onboarding-quiz__option-text {
  flex: 1;
  min-width: 0;
}

.onboarding-quiz__foot {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.onboarding-quiz__skip {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(245, 239, 226, 0.25);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.onboarding-quiz__skip:hover,
.onboarding-quiz__skip:focus-visible {
  color: var(--gold);
  text-decoration-color: rgba(240, 204, 115, 0.6);
  outline: none;
}

/* Final thank you screen */
.onboarding-quiz__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px 8px 8px;
  animation: quiz-question-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.onboarding-quiz__done-glow {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 225, 162, 0.5) 0%, rgba(240, 204, 115, 0.18) 40%, transparent 75%);
  filter: blur(2px);
  animation: quiz-done-pulse 2.4s ease-in-out infinite;
}

@keyframes quiz-done-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

.onboarding-quiz__done h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 5.2vw, 1.95rem);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.18;
}

.onboarding-quiz__done p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1rem;
}

.onboarding-quiz__done-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6e1a2 0%, #f0cc73 50%, #d9a85a 100%);
  color: #14100a;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.04rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(240, 204, 115, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.onboarding-quiz__done-cta:hover,
.onboarding-quiz__done-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(240, 204, 115, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  outline: none;
}

/* Simulation step — interactive altar explanation */
.quiz-simulation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 4px 4px 8px;
  animation: quiz-question-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-simulation__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.quiz-simulation__title {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 1.7rem);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quiz-simulation__sigil {
  position: relative;
  width: min(220px, 60vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 6px auto 4px;
}

.quiz-sim__aura {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.22) 0%, rgba(122, 43, 26, 0.08) 35%, transparent 70%);
  filter: blur(14px);
  animation: quiz-sim-aura 5s ease-in-out infinite;
}

@keyframes quiz-sim-aura {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.quiz-sim__svg {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.quiz-sim__core {
  transform-origin: 110px 110px;
  animation: quiz-sim-core 3.4s ease-in-out infinite;
  filter:
    drop-shadow(0 0 6px rgba(240, 204, 115, 0.85))
    drop-shadow(0 0 12px rgba(217, 168, 90, 0.45));
}

@keyframes quiz-sim-core {
  0%, 100% { opacity: 0.9; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

.quiz-sim__orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.quiz-sim__particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%) rotate(var(--qsa, 0deg));
  animation:
    quiz-sim-orbit var(--qsd, 30s) linear infinite,
    quiz-sim-enter 1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes quiz-sim-orbit {
  from { transform: translate(-50%, -50%) rotate(var(--qsa, 0deg)); }
  to   { transform: translate(-50%, -50%) rotate(calc(var(--qsa, 0deg) + 360deg)); }
}

@keyframes quiz-sim-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.quiz-sim__dot {
  position: absolute;
  top: 50%;
  left: calc(min(220px, 60vw) * var(--qsr, 0.3));
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbed 0%, #f6e1a2 40%, #f0cc73 75%, transparent 100%);
  box-shadow:
    0 0 6px rgba(246, 225, 162, 0.95),
    0 0 14px rgba(240, 204, 115, 0.6),
    0 0 22px rgba(217, 168, 90, 0.3);
  animation: quiz-sim-twinkle 2.4s ease-in-out infinite;
}

@keyframes quiz-sim-twinkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}

.quiz-simulation__caption {
  min-height: 3.6em;
  max-width: 28ch;
  margin: 10px auto 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--text);
  opacity: 1;
  transition: opacity 0.38s ease;
}

.quiz-simulation__cta {
  margin-top: 8px;
}

@media (max-width: 380px) {
  .onboarding-quiz { padding: 18px 14px; }
  .onboarding-quiz__option { min-height: 56px; padding: 12px 14px 12px 14px; font-size: 0.94rem; }
  .onboarding-quiz__option-marker { width: 26px; height: 26px; font-size: 0.84rem; }
  .quiz-simulation__sigil { width: 200px; }
  .quiz-sim__dot { left: calc(200px * var(--qsr, 0.3)); }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-simulation,
  .quiz-sim__aura,
  .quiz-sim__core,
  .quiz-sim__particle,
  .quiz-sim__dot {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-quiz__inner,
  .onboarding-quiz__body.is-entering,
  .onboarding-quiz__done,
  .onboarding-quiz__done-glow,
  .onboarding-quiz__progress-fill,
  .onboarding-quiz__option {
    animation: none;
    transition: none;
  }
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar__theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(240, 204, 115, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(20, 16, 10, 0.7);
  color: var(--gold);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.topbar__theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 204, 115, 0.55);
  color: var(--gold-soft);
}

.topbar__theme-toggle:active {
  transform: scale(0.95);
}

.topbar__theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 204, 115, 0.32), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.topbar__theme-toggle-icon {
  display: block;
  transition: opacity 180ms ease, transform 240ms ease;
}

.topbar__theme-toggle-icon--moon { display: none; }
.topbar__theme-toggle-icon--sun { display: block; }

[data-theme="parchment"] .topbar__theme-toggle-icon--moon { display: block; }
[data-theme="parchment"] .topbar__theme-toggle-icon--sun { display: none; }

[data-theme="parchment"] .topbar__theme-toggle {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2)),
    rgba(251, 246, 233, 0.92);
  border-color: rgba(122, 43, 26, 0.22);
  color: var(--gold-deep);
  box-shadow: 0 6px 16px rgba(122, 43, 26, 0.1);
}

.topbar__help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(240, 204, 115, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(20, 16, 10, 0.78);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
  flex-shrink: 0;
}

[data-theme="parchment"] .topbar__help {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2)),
    rgba(251, 246, 233, 0.92);
  border-color: rgba(122, 43, 26, 0.22);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(122, 43, 26, 0.1);
}

.topbar__help:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 204, 115, 0.55);
}

.topbar__help:active {
  transform: scale(0.97);
}

.topbar__help:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 204, 115, 0.35), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.topbar__help svg {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .topbar__help {
    padding: 8px 12px;
    font-size: 0.92rem;
  }
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  line-height: 1;
  color: var(--gold);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

[data-theme="parchment"] .brand-mark {
  color: #14100a;
  filter: drop-shadow(0 4px 10px rgba(122, 43, 26, 0.12));
}

.brand-mark__sigil {
  flex-shrink: 0;
  width: clamp(44px, 10vw, 52px);
  height: clamp(44px, 10vw, 52px);
  color: var(--gold);
}

[data-theme="parchment"] .brand-mark__sigil {
  color: #14100a;
}

.brand-mark__wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-mark__name {
  font-family: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  letter-spacing: 0.005em;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

[data-theme="parchment"] .brand-mark__name {
  background: linear-gradient(180deg, #14100a 0%, #14100a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark__tagline {
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: clamp(0.55rem, 1.4vw, 0.62rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  opacity: 0.78;
  font-weight: 600;
}

[data-theme="parchment"] .brand-mark__tagline {
  color: #14100a;
  opacity: 0.62;
}

@media (max-width: 480px) {
  .brand-mark { gap: 8px; }
  .brand-mark__sigil { width: 38px; height: 38px; }
  .brand-mark__tagline { display: none; }
}

.topbar-badge {
  position: relative;
  display: inline-grid;
  gap: 2px;
  justify-items: end;
  min-width: 112px;
  padding: 11px 18px 13px;
  border: 1px solid rgba(240, 204, 115, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 78% 20%, rgba(240, 204, 115, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(20, 16, 10, 0.92), rgba(10, 8, 5, 0.76)),
    radial-gradient(circle at top, rgba(240, 204, 115, 0.12), transparent 62%);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 24px rgba(240, 204, 115, 0.06);
  overflow: hidden;
}

.topbar-badge--interactive {
  appearance: none;
  align-items: end;
  text-align: right;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.topbar-badge--interactive:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 204, 115, 0.4);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 28px rgba(240, 204, 115, 0.1);
}

.topbar-badge--interactive:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(240, 204, 115, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.36),
    inset 0 0 28px rgba(240, 204, 115, 0.1);
}

.topbar-badge.is-empty {
  border-color: rgba(200, 149, 69, 0.34);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 30px rgba(200, 149, 69, 0.1);
}

.topbar-badge::before,
.topbar-badge::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 72%);
  opacity: 0.8;
}

.topbar-badge::before {
  top: 8px;
  left: 12px;
}

.topbar-badge::after {
  right: 10px;
  bottom: 8px;
}

.topbar-badge__label,
.topbar-badge__summary,
.topbar-badge__value,
.topbar-badge__plus {
  position: relative;
  z-index: 1;
}

.topbar-badge__summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-badge__label {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(246, 225, 162, 0.92);
  padding-left: 0.28em;
}

.topbar-badge__value {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: transparent;
  background: linear-gradient(180deg, #f6e1a2 0%, #f0cc73 42%, #d9a85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.topbar-badge__plus {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.28), rgba(200, 149, 69, 0.34));
  box-shadow: inset 0 0 0 1px rgba(246, 225, 162, 0.2);
  color: rgba(245, 239, 226, 0.96);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.brand-mark__word--bottom::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 204, 115, 0.88), transparent);
}

.auth-screen {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(200, 149, 69, 0.16), transparent 28%),
    rgba(5, 2, 11, 0.8);
  backdrop-filter: blur(16px);
  z-index: 200;
}

.auth-screen.is-visible {
  display: grid;
}

.push-prompt {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(240, 204, 115, 0.16), transparent 26%),
    rgba(5, 2, 11, 0.78);
  backdrop-filter: blur(16px);
  z-index: 200;
}

.push-prompt[hidden] {
  display: none;
}

.treatment-prompt {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  place-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(217, 168, 90, 0.18), transparent 26%),
    rgba(5, 2, 11, 0.82);
  backdrop-filter: blur(16px);
  z-index: 200;
}

.treatment-prompt[hidden] {
  display: none;
}

.push-prompt__card {
  width: min(460px, 100%);
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(200, 149, 69, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(240, 204, 115, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(33, 27, 16, 0.97), rgba(10, 8, 5, 0.97));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(240, 204, 115, 0.08);
}

.treatment-prompt__card {
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(200, 149, 69, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(217, 168, 90, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(33, 27, 16, 0.97), rgba(10, 8, 5, 0.98));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(240, 204, 115, 0.08);
}

.push-prompt__copy,
.push-prompt__note,
.push-prompt__feedback,
.treatment-prompt__copy,
.treatment-form__feedback,
.treatment-option__copy {
  color: var(--muted);
  line-height: 1.68;
}

.push-prompt__copy {
  margin-top: 14px;
}

.treatment-prompt__copy {
  margin-top: 14px;
}

.push-prompt__note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.push-prompt__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.push-prompt__button {
  min-height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(217, 168, 90, 0.22);
}

.push-prompt__button--ghost {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.push-prompt__feedback {
  min-height: 24px;
  margin-top: 14px;
}

.treatment-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.treatment-option {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(217, 168, 90, 0.08), transparent 40%);
  cursor: pointer;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 240ms ease,
    box-shadow 240ms ease,
    background 240ms ease;
}

.treatment-option:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 204, 115, 0.22);
}

.treatment-option:focus-within {
  border-color: rgba(240, 204, 115, 0.34);
  box-shadow: 0 0 0 4px rgba(240, 204, 115, 0.08);
}

.treatment-option:has(input:checked) {
  border-color: rgba(240, 204, 115, 0.34);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(240, 204, 115, 0.12);
  background:
    linear-gradient(180deg, rgba(240, 204, 115, 0.12), rgba(217, 168, 90, 0.12)),
    radial-gradient(circle at top right, rgba(200, 149, 69, 0.1), transparent 40%);
}

.treatment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.treatment-option__label {
  font-weight: 700;
  color: var(--text);
}

.treatment-form button {
  padding: 14px 18px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(240, 204, 115, 0.92), rgba(217, 168, 90, 0.88) 46%, rgba(200, 149, 69, 0.92));
  color: white;
  font-weight: 700;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(246, 225, 162, 0.32);
}

.treatment-form__feedback {
  min-height: 24px;
}

.auth-screen__panel,
.hero-panel,
.panel,
.daily-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-screen__panel {
  width: min(460px, 100%);
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 14%, rgba(240, 204, 115, 0.12), transparent 20%),
    radial-gradient(circle at top right, rgba(200, 149, 69, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(33, 27, 16, 0.96), rgba(10, 8, 5, 0.96));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(240, 204, 115, 0.08);
}

.auth-screen__tag {
  margin-bottom: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: rgba(246, 225, 162, 0.9);
}

.auth-screen__copy,
.hero-panel__text,
.direction-panel__lead,
.direction-panel__prayer,
.daily-card p,
.auth-form__feedback,
.prayer-card__focus {
  color: var(--muted);
  line-height: 1.72;
}

.auth-screen__copy {
  margin-top: 14px;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 204, 115, 0.12);
}

.auth-switch__button {
  min-height: 42px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
}

.auth-switch__button.is-active {
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.14), rgba(217, 168, 90, 0.22));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(240, 204, 115, 0.12);
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-form label {
  font-weight: 700;
  font-size: 0.92rem;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(240, 204, 115, 0.04), transparent 38%);
  color: var(--text);
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(240, 204, 115, 0.38);
  box-shadow: 0 0 0 4px rgba(240, 204, 115, 0.08);
}

.auth-form button,
.hero-actions__button,
.prayer-card,
.playlist-card,
.tabbar__item,
.tarot-flip {
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 240ms ease,
    color 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease,
    opacity 240ms ease;
}

.auth-form button {
  padding: 14px 18px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(240, 204, 115, 0.92), rgba(217, 168, 90, 0.88) 46%, rgba(200, 149, 69, 0.92));
  color: white;
  font-weight: 700;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(246, 225, 162, 0.32);
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

#screen-home {
  width: 100%;
}

.hero-panel,
.panel {
  animation: rise-fade 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px 22px 30px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 6%, rgba(200, 149, 69, 0.18), transparent 36%),
    radial-gradient(circle at 6% 100%, rgba(217, 168, 90, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(27, 22, 13, 0.94), rgba(10, 8, 5, 0.92));
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero-panel__copy {
  position: relative;
  z-index: 2;
}

.hero-panel__ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
  color: rgba(240, 204, 115, 0.85);
}

.hero-panel__ornament-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 204, 115, 0.5), transparent);
}

.hero-panel__ornament-star {
  font-size: 0.82rem;
  color: rgba(240, 204, 115, 0.95);
  text-shadow: 0 0 12px rgba(240, 204, 115, 0.55);
}

.hero-panel__eyebrow {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(246, 225, 162, 0.96);
  margin: 0;
}

.hero-panel__text {
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(245, 239, 226, 0.8);
  display: block;
}

.hero-panel__name {
  font-weight: 700;
  color: transparent;
  background: linear-gradient(180deg, #f6e1a2 0%, #f0cc73 60%, #d9a85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 0.01em;
}

.hero-panel__tagline {
  display: block;
  margin-top: 6px;
  color: rgba(245, 239, 226, 0.85);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-panel__word {
  margin-top: 24px;
}

.hero-panel__word-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.hero-panel__word-line {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 204, 115, 0.35), transparent);
}

.hero-panel__word-label {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: rgba(246, 225, 162, 0.92);
  margin: 0;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
    gap: 28px;
    min-height: 430px;
    padding: 44px;
    border-radius: 32px;
    text-align: left;
  }
  .hero-panel__ornament { justify-content: flex-start; width: auto; }
  .hero-panel__ornament-line:last-child { display: none; }
  .hero-panel__text { margin-left: 0; margin-right: 0; font-size: 1.1rem; }
  .hero-panel__tagline { font-size: 1rem; }
  .hero-panel__word-head { justify-content: flex-start; width: auto; }
  .hero-panel__word-line:last-child { display: none; }
  .hero-panel__word { border-top: 0; padding-top: 0; }
}

/* Section header — ceremonial divider between hero and nav grid */
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 16px;
  padding: 0 4px;
}

.home-section-head__line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 204, 115, 0.32), transparent);
}

.home-section-head__label {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(246, 225, 162, 0.92);
  margin: 0;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .home-section-head { margin: 36px 0 18px; }
  .home-section-head__line { max-width: 220px; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions__button {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-panel__motivation {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.6rem, 7vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 6px 0 0 0;
  color: transparent;
  background: linear-gradient(180deg, #f6e1a2 0%, #f0cc73 42%, #d9a85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 28px rgba(215, 173, 69, 0.32);
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-panel__motivation {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.12em;
  }
}

.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
  align-items: stretch;
}

.home-section-head + .home-nav-grid {
  margin-top: 0;
}

@media (min-width: 768px) {
  .home-nav-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.nav-card {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid rgba(217, 168, 90, 0.18);
  background: var(--bg-deep);
  background-image:
    linear-gradient(to top, rgba(10, 8, 5, 0.96) 0%, rgba(27, 22, 13, 0.55) 48%, rgba(33, 27, 16, 0.12) 100%),
    var(--bg-url);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 10px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease, border-color 260ms ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-card:active {
  transform: scale(0.97);
}

@keyframes fire-glow-bg {
  0% { background-position: 0% 0%, 0% 50%; }
  100% { background-position: 0% 0%, 300% 50%; }
}

/* Decorative fire border — desktop only (expensive on mobile GPUs) */
@media (min-width: 768px) and (hover: hover) {
  .nav-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background:
      repeating-linear-gradient(60deg, #05020b, #05020b 3px, transparent 3px, transparent 7px),
      linear-gradient(90deg, #ff4500 0%, #ffaa00 30%, #ffee00 50%, #ffaa00 70%, #ff4500 100%);
    background-size: 100% 100%, 300% auto;
    animation: fire-glow-bg 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
    opacity: 0.85;
    mix-blend-mode: color-dodge;
    transition: opacity 500ms ease;
  }
  .nav-card {
    padding: 20px 14px;
    border-radius: 20px;
  }
  .nav-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 204, 0, 0.7);
    box-shadow:
      0 18px 44px rgba(217, 168, 90, 0.22),
      0 0 32px rgba(255, 204, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  .nav-card:hover::after {
    opacity: 1;
    animation-duration: 2s;
  }
  .nav-card:hover .nav-card__icon {
    transform: rotate(8deg) scale(1.08);
    background: rgba(217, 168, 90, 0.4);
  }
  .nav-card:hover .nav-card__label {
    transform: translateY(-1px);
  }
}

.nav-card__icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 16, 10, 0.72);
  backdrop-filter: blur(10px);
  color: rgba(246, 225, 162, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), background 380ms;
}

.nav-card__icon svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 768px) {
  .nav-card__icon {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
  }
  .nav-card__icon svg {
    width: 16px;
    height: 16px;
  }
}

.nav-card__label {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f6e1a2;
  text-align: center;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(217, 168, 90, 0.6);
  line-height: 1.18;
  position: relative;
  z-index: 2;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .nav-card__label {
    font-size: clamp(1rem, 3.8vw, 1.25rem);
  }
}

.nav-card--certificate {
  border-color: rgba(212, 175, 55, 0.42);
  background-image:
    linear-gradient(to top, rgba(35, 18, 5, 0.94) 0%, rgba(67, 42, 12, 0.58) 48%, rgba(255, 235, 168, 0.14) 100%),
    var(--bg-url);
}

.nav-card--certificate .nav-card__icon {
  color: #fff5c8;
  border-color: rgba(255, 231, 158, 0.32);
  background: rgba(84, 54, 13, 0.72);
}

.hero-actions__button:hover,
.prayer-card:hover,
.tarot-flip:hover {
  transform: translateY(-2px);
}

.hero-panel__sigil {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
}

@media (min-width: 768px) {
  .hero-panel__sigil {
    min-height: 320px;
  }
}

.orbit,
.orbit-star,
.sigil-core {
  position: absolute;
  border-radius: 50%;
}

.orbit {
  border: 1px solid rgba(246, 225, 162, 0.14);
  box-shadow: inset 0 0 16px rgba(240, 204, 115, 0.04);
  will-change: transform;
}

.orbit-stars-ring-1,
.orbit-stars-ring-2 {
  will-change: transform;
}

.orbit--outer {
  width: 200px;
  height: 200px;
  animation: spin 18s linear infinite;
}

.orbit--middle {
  width: 150px;
  height: 150px;
  animation: spin-reverse 13s linear infinite;
}

.orbit--inner {
  width: 82px;
  height: 82px;
  animation: spin 9s linear infinite;
}

@media (min-width: 768px) {
  .orbit--outer { width: 310px; height: 310px; }
  .orbit--middle { width: 228px; height: 228px; }
  .orbit--inner { width: 118px; height: 118px; }
}

.orbit-stars-ring-1,
.orbit-stars-ring-2 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.orbit-stars-ring-1 {
  animation: spin 18s linear infinite;
}

.orbit-stars-ring-2 {
  animation: spin-reverse 13s linear infinite;
}

.orbit-star {
  width: 10px;
  height: 10px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(240, 204, 115, 0.8);
}

.orbit-star--top {
  top: 30px;
}

.orbit-star--right {
  right: 68px;
  background: #f6e1a2;
  box-shadow: 0 0 18px rgba(240, 204, 115, 0.88);
}

.orbit-star--bottom {
  bottom: 36px;
}

.orbit-star--left {
  left: 68px;
  background: #f6e1a2;
  box-shadow: 0 0 18px rgba(240, 204, 115, 0.88);
}

.sigil-core {
  width: 82px;
  height: 82px;
  background:
    radial-gradient(circle, rgba(246, 225, 162, 0.98) 0 18%, rgba(240, 204, 115, 0.9) 32%, rgba(217, 168, 90, 0.28) 54%, transparent 74%);
  box-shadow:
    0 0 22px rgba(240, 204, 115, 0.58),
    0 0 46px rgba(217, 168, 90, 0.26);
  animation: glow-pulse 4.8s ease-in-out infinite;
}

.hero-stars span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.68);
  animation: twinkle 3s ease-in-out infinite;
}

.hero-stars span:nth-child(1) {
  top: 40px;
  left: 58px;
}

.hero-stars span:nth-child(2) {
  top: 88px;
  right: 54px;
  animation-delay: 0.5s;
}

.hero-stars span:nth-child(3) {
  bottom: 64px;
  right: 84px;
  animation-delay: 1s;
}

.hero-stars span:nth-child(4) {
  bottom: 40px;
  left: 86px;
  animation-delay: 1.5s;
}

.hero-stars span:nth-child(5) {
  top: 146px;
  left: 50%;
  animation-delay: 2s;
}

.panel {
  padding: 26px;
  border-radius: 28px;
  background: var(--panel);
}

.panel--wide {
  padding: 30px;
}

.panel--tarot {
  background: var(--panel-strong);
}

.direction-panel {
  margin-top: 30px;
}

/* ── Liwei screen ── */
.liwei-screen {
  position: relative;
  padding: 18px 16px calc(32px + var(--safe-area-bottom));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.liwei-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(217, 168, 90, 0.22);
  background: rgba(20, 16, 10, 0.6);
  color: #f0cc73;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.liwei-back:active { transform: scale(0.94); }

.liwei-hero {
  position: relative;
  text-align: center;
  padding: 26px 10px 10px;
  isolation: isolate;
}

.liwei-hero__orb {
  position: absolute;
  inset: -20% auto auto 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.28) 0%, rgba(156, 39, 176, 0.15) 40%, transparent 70%);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}

.liwei-hero__eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: rgba(246, 225, 162, 0.85);
}

.liwei-hero__title {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 12px;
  color: transparent;
  background: linear-gradient(180deg, #f6e1a2 0%, #f0cc73 58%, #d9a85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 26px rgba(215, 173, 69, 0.22);
}

.liwei-hero__subtitle {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.liwei-section {
  position: relative;
  padding: 20px 16px;
  border-radius: 20px;
  border: 1px solid rgba(217, 168, 90, 0.18);
  background: linear-gradient(180deg, rgba(33, 27, 16, 0.82), rgba(10, 8, 5, 0.9));
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.7);
}

.liwei-section__head { margin-bottom: 16px; }

.liwei-section__title {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.25rem, 4.2vw, 1.55rem);
  margin: 0 0 10px;
  color: transparent;
  background: linear-gradient(180deg, #f6e1a2 0%, #f0cc73 60%, #d9a85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1.25;
}

.liwei-section__text {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.liwei-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: rgba(246, 225, 162, 0.82);
  font-style: italic;
}

.liwei-mantras {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.liwei-mantra {
  border-radius: 16px;
  border: 1px solid rgba(217, 168, 90, 0.2);
  background: linear-gradient(180deg, rgba(122, 43, 26, 0.28), rgba(20, 16, 10, 0.7));
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.liwei-mantra.is-open {
  border-color: rgba(240, 204, 115, 0.55);
  box-shadow: 0 18px 44px -22px rgba(240, 204, 115, 0.35);
}

.liwei-mantra__trigger {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease;
}

.liwei-mantra__trigger:active { transform: scale(0.985); }

.liwei-mantra__tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(240, 204, 115, 0.32);
  color: #f0cc73;
  background: rgba(240, 204, 115, 0.08);
}

.liwei-mantra__name {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.3rem;
  margin: 4px 0 4px;
  color: transparent;
  background: linear-gradient(180deg, #f6e1a2 0%, #f0cc73 60%, #d9a85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1.2;
}

.liwei-mantra__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.liwei-mantra__play {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f0cc73;
  letter-spacing: 0.04em;
}

.liwei-mantra.is-open .liwei-mantra__play { color: #fff; }

/* Player nativo de áudio (mantras locais via /api/audio/ — sem YouTube) */
.liwei-mantra__player {
  width: 100%;
  padding: 10px 14px 14px;
  background: var(--bg-deep);
}

.liwei-mantra__player audio {
  width: 100%;
  display: block;
}

.liwei-bonus {
  border-color: rgba(240, 204, 115, 0.32);
  background:
    radial-gradient(circle at top right, rgba(240, 204, 115, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(122, 43, 26, 0.45), rgba(20, 16, 10, 0.9));
}

.liwei-bonus__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #1a0528;
  background: linear-gradient(120deg, #f0cc73, #d9a85a);
  font-weight: 700;
  margin-bottom: 12px;
}

.liwei-mantra--bonus { margin-top: 14px; }

.liwei-elements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.liwei-element {
  padding: 16px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 16, 10, 0.55);
  text-align: center;
  transition: transform 220ms ease, border-color 220ms ease;
}

.liwei-element:active { transform: scale(0.97); }

.liwei-element__icon {
  display: block;
  font-size: 1.9rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 10px rgba(240, 204, 115, 0.35));
}

.liwei-element__name {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: #f0cc73;
}

.liwei-element__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.liwei-tip {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 3px solid #f0cc73;
  background: rgba(240, 204, 115, 0.08);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.liwei-manuals {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.liwei-manual {
  border-radius: 14px;
  border: 1px solid rgba(217, 168, 90, 0.18);
  background: rgba(20, 16, 10, 0.6);
  overflow: hidden;
}

.liwei-manual[open] {
  border-color: rgba(240, 204, 115, 0.42);
}

.liwei-manual__summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.liwei-manual__summary::-webkit-details-marker { display: none; }

.liwei-manual__icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 10px rgba(240, 204, 115, 0.3));
}

.liwei-manual__title {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.05rem;
  margin: 0 0 2px;
  color: #f0cc73;
  line-height: 1.25;
}

.liwei-manual__hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.64);
}

.liwei-manual__chevron {
  color: #f0cc73;
  font-size: 1rem;
  transition: transform 220ms ease;
}

.liwei-manual[open] .liwei-manual__chevron {
  transform: rotate(180deg);
}

.liwei-manual__body {
  padding: 0 18px 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.65;
}

.liwei-manual__body h4 {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1rem;
  margin: 18px 0 8px;
  color: #f0cc73;
}

.liwei-manual__body p { margin: 8px 0; }
.liwei-manual__body ul {
  margin: 8px 0;
  padding-left: 20px;
}
.liwei-manual__body li { margin-bottom: 6px; }
.liwei-manual__body strong { color: rgba(246, 225, 162, 0.95); }
.liwei-manual__closer {
  margin-top: 14px;
  text-align: center;
  color: rgba(246, 225, 162, 0.88);
}

@media (min-width: 768px) {
  .liwei-screen { padding: 28px 24px calc(40px + var(--safe-area-bottom)); gap: 36px; }
  .liwei-section { padding: 28px 26px; }
  .liwei-mantras { grid-template-columns: repeat(2, 1fr); }
  .liwei-elements { grid-template-columns: repeat(4, 1fr); }
}

/* ── Home Live Invite (above Support) — inbox-style horizontal card ── */
.home-live-invite {
  position: relative;
  display: block;
  margin-top: 26px;
  padding: 22px 24px 22px 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), rgba(10, 8, 5, 0.95));
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(240, 204, 115, 0.04);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.home-live-invite[hidden] {
  display: none !important;
}

.home-live-invite:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 204, 115, 0.28);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(240, 204, 115, 0.14);
}

.home-live-invite__edge {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--gold) 28%, var(--gold) 72%, transparent);
  opacity: 0.85;
  z-index: 1;
}

.home-live-invite__aura {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.16), transparent 65%);
  filter: blur(48px);
  pointer-events: none;
  animation: home-live-aura-soft 5.5s ease-in-out infinite;
  z-index: 0;
}

@keyframes home-live-aura-soft {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

.home-live-invite__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-live-invite__portrait {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.home-live-invite__ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(240, 204, 115, 0.55);
  animation: home-live-ring-soft 2.6s ease-out infinite;
}

@keyframes home-live-ring-soft {
  0% { transform: scale(0.92); opacity: 0.85; }
  80% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.home-live-invite__portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240, 204, 115, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.home-live-invite__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.home-live-invite__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-live-invite__name {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.005em;
}

.home-live-invite__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(240, 204, 115, 0.12);
  border: 1px solid rgba(240, 204, 115, 0.32);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.home-live-invite__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(240, 204, 115, 0.95);
  animation: home-live-pill-dot 1.4s ease-in-out infinite;
}

@keyframes home-live-pill-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.65); }
}

.home-live-invite__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.home-live-invite__divider {
  position: relative;
  z-index: 1;
  display: block;
  height: 1px;
  margin: 18px 0 16px;
  background: linear-gradient(90deg, transparent, rgba(240, 204, 115, 0.3), transparent);
}

.home-live-invite__body {
  position: relative;
  z-index: 1;
  display: block;
}

.home-live-invite__title {
  display: block;
  font-size: clamp(1.22rem, 4.4vw, 1.46rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.005em;
  background: linear-gradient(135deg, var(--gold), var(--text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-live-invite__copy {
  display: block;
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.home-live-invite__footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
}

.home-live-invite__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  min-height: 52px;
  border-radius: 14px;
  background: var(--gold);
  color: #1a0c2e;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.005em;
  box-shadow:
    0 12px 26px rgba(240, 204, 115, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-live-invite__cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
  animation: home-live-shimmer 3.4s ease-in-out infinite;
}

@keyframes home-live-shimmer {
  0% { left: -120%; }
  55%, 100% { left: 220%; }
}

.home-live-invite:hover .home-live-invite__cta {
  transform: translateY(-1px);
  box-shadow:
    0 18px 32px rgba(240, 204, 115, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.home-live-invite__cta-label {
  position: relative;
  z-index: 1;
}

.home-live-invite__cta svg {
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}

.home-live-invite:hover .home-live-invite__cta svg {
  transform: translateX(4px);
}

.home-live-invite__hint {
  font-size: 0.76rem;
  color: rgba(245, 239, 226, 0.5);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .home-live-invite {
    padding: 20px 20px 22px 24px;
  }
  .home-live-invite__cta {
    width: 100%;
    align-self: stretch;
  }
  .home-live-invite__footer {
    align-items: stretch;
  }
  .home-live-invite__hint {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-live-invite,
  .home-live-invite__aura,
  .home-live-invite__ring,
  .home-live-invite__dot,
  .home-live-invite__cta::before {
    animation: none;
  }
}

.support-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  justify-items: center;
  text-align: center;
  margin-top: 18px;
  padding: clamp(18px, 2vw, 22px);
  border: 1px solid rgba(240, 204, 115, 0.14);
  background:
    radial-gradient(circle at top right, rgba(240, 204, 115, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(200, 149, 69, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(27, 22, 13, 0.94), rgba(10, 8, 5, 0.96));
  overflow: hidden;
}

@media (min-width: 768px) {
  .support-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 18px;
  }
}

.support-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.support-card__content,
.support-card__actions {
  position: relative;
  z-index: 1;
}

.support-card__content {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.support-card__title {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.22;
}

.support-card__body {
  max-width: 560px;
  color: rgba(245, 239, 226, 0.92);
  font-size: 1.02rem;
  line-height: 1.55;
}

.support-card__actions {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.support-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(240, 204, 115, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
    rgba(20, 16, 10, 0.84);
  color: #f5efe2;
  font-weight: 700;
  font-size: 1.04rem;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.support-card__cta:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 204, 115, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 34px rgba(0, 0, 0, 0.26);
}

.support-card__cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(240, 204, 115, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 34px rgba(0, 0, 0, 0.26);
}

.support-card__email {
  color: rgba(246, 225, 162, 1);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  word-break: break-word;
  font-weight: 500;
}

.direction-panel__lead {
  margin-top: 16px;
  font-size: 1.04rem;
  color: rgba(245, 239, 226, 0.92);
}

.direction-panel__prayer {
  max-width: 760px;
  margin-top: 14px;
}

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.screen-head--center {
  justify-content: center;
  text-align: center;
}

.music-intro {
  max-width: 540px;
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(245, 239, 226, 0.84);
}

.tarot-status {
  max-width: 420px;
  margin: 10px auto 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(245, 239, 226, 0.95);
}

/* Prayer selection — single-column tappable cards */
.screen-intro {
  margin-top: 10px;
  font-size: 1.04rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 580px;
}

.prayer-cards {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prayer-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.prayer-card:hover,
.prayer-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 204, 115, 0.45);
  background: linear-gradient(140deg, rgba(240, 204, 115, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 18px 38px rgba(240, 204, 115, 0.12);
  outline: none;
}

.prayer-card:active {
  transform: translateY(0);
}

.prayer-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.26), rgba(240, 204, 115, 0.05));
  border: 1px solid rgba(240, 204, 115, 0.28);
}

.prayer-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prayer-card__title {
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.96);
}

.prayer-card__focus {
  display: block;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

.prayer-card__cta {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(240, 204, 115, 0.22);
  color: rgba(246, 225, 162, 1);
  border: 1px solid rgba(240, 204, 115, 0.5);
  white-space: nowrap;
  font-weight: 700;
}

@media (max-width: 540px) {
  .prayer-card {
    grid-template-columns: 54px 1fr;
    padding: 18px;
    gap: 14px;
  }
  .prayer-card__icon {
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
  }
  .prayer-card__cta {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
    padding: 9px 14px;
  }
  .prayer-card__title {
    font-size: 1.08rem;
  }
  .prayer-card__focus {
    font-size: 0.98rem;
  }
}

/* =========================================================
   SONGS — Immersive meditation player
   ========================================================= */

.panel--music {
  padding-bottom: 140px;
}

.music-browse__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 28px;
}

.music-browse__head .eyebrow {
  letter-spacing: 0.24em;
}

.music-browse__head h2 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.music-intro {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.playlist {
  display: grid;
  gap: 14px;
}

.playlist--cards {
  grid-template-columns: 1fr;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Browse cards ---------- */
.playlist-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(33, 27, 16, 0.82), rgba(20, 16, 10, 0.9));
  color: var(--text);
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 280ms ease,
    box-shadow 280ms ease;
}

.playlist-card:hover,
.playlist-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(200, 149, 69, 0.3);
  box-shadow: 0 18px 44px -28px rgba(217, 168, 90, 0.65);
}

.playlist-card:focus-visible {
  outline: 2px solid rgba(240, 204, 115, 0.5);
  outline-offset: 3px;
}

.playlist-card__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.7;
  background:
    radial-gradient(circle at 12% 20%, var(--card-accent-a, rgba(217, 168, 90, 0.35)) 0%, transparent 46%),
    radial-gradient(circle at 92% 86%, var(--card-accent-b, rgba(200, 149, 69, 0.28)) 0%, transparent 52%);
  transition: opacity 400ms ease, transform 6s ease;
}

.playlist-card:hover .playlist-card__bg {
  opacity: 0.95;
  transform: scale(1.04);
}

.playlist-card__body {
  display: grid;
  gap: 8px;
}

.playlist-card__tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 225, 162, 0.96);
  background: var(--card-tag-bg, rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.playlist-card__title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  color: white;
}

.playlist-card__desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 46ch;
}

.playlist-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.playlist-card__duration {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.playlist-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.88), rgba(200, 149, 69, 0.88));
  color: #1a0a22;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Per-mood accent palette (also used by the immersive overlay) */
.playlist-card[data-mood="meditation"] { --card-accent-a: rgba(217, 168, 90, 0.42); --card-accent-b: rgba(200, 149, 69, 0.32); --card-tag-bg: rgba(217, 168, 90, 0.32); }
.playlist-card[data-mood="expansion"]  { --card-accent-a: rgba(217, 168, 90, 0.42);  --card-accent-b: rgba(217, 168, 90, 0.3);  --card-tag-bg: rgba(217, 168, 90, 0.3); }
.playlist-card[data-mood="frequency"]  { --card-accent-a: rgba(240, 204, 115, 0.42); --card-accent-b: rgba(255, 160, 96, 0.32);  --card-tag-bg: rgba(240, 204, 115, 0.34); }
.playlist-card[data-mood="contemplation"] { --card-accent-a: rgba(200, 149, 69, 0.42); --card-accent-b: rgba(122, 43, 26, 0.4); --card-tag-bg: rgba(200, 149, 69, 0.3); }
.playlist-card[data-mood="purification"]  { --card-accent-a: rgba(217, 168, 90, 0.38); --card-accent-b: rgba(217, 168, 90, 0.3); --card-tag-bg: rgba(217, 168, 90, 0.28); }
.playlist-card[data-mood="ritual"]         { --card-accent-a: rgba(200, 149, 69, 0.46); --card-accent-b: rgba(240, 140, 80, 0.32);  --card-tag-bg: rgba(200, 149, 69, 0.32); }

/* =========================================================
   Immersive overlay
   ========================================================= */

.music-immersive {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: max(32px, env(safe-area-inset-top, 24px)) 24px calc(36px + env(safe-area-inset-bottom, 0px));
  color: white;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 480ms ease, transform 480ms ease, visibility 0s linear 480ms;
  background-color: #14100a;
  overflow: hidden;
  isolation: isolate;
}

.music-immersive.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 480ms ease, transform 480ms ease, visibility 0s linear 0s;
}

.music-immersive.is-dim > :not(.music-immersive__bg):not(.music-immersive__aura):not(.breath-orb):not(.session-timer-sheet) {
  opacity: 0.35;
  transition: opacity 1200ms ease;
}

.music-immersive__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(66% 46% at 50% 43%, rgba(152, 110, 50, 0.5) 0%, rgba(152, 110, 50, 0) 62%),
    radial-gradient(140% 112% at 50% 40%, rgba(20, 14, 8, 0) 28%, rgba(6, 4, 2, 0.95) 76%),
    #0b0805;
}

@keyframes im-kenburns {
  0%   { transform: scale(1.08) translate(0, 0); }
  50%  { transform: scale(1.16) translate(-2%, -1.2%); }
  100% { transform: scale(1.12) translate(1.5%, 1.5%); }
}

.music-immersive__aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: none;
}

.music-immersive__aura span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: im-drift 28s ease-in-out infinite;
  background: var(--im-accent-a, rgba(217, 168, 90, 0.55));
}

.music-immersive__aura span:nth-child(1) { top: -12%; left: -10%; width: 52vmin; height: 52vmin; animation-delay: -4s; }
.music-immersive__aura span:nth-child(2) { bottom: -14%; right: -8%; width: 60vmin; height: 60vmin; background: var(--im-accent-b, rgba(200, 149, 69, 0.48)); animation-delay: -12s; }
.music-immersive__aura span:nth-child(3) { top: 28%; right: -18%; width: 44vmin; height: 44vmin; background: var(--im-accent-c, rgba(240, 204, 115, 0.32)); animation-delay: -18s; }
.music-immersive__aura span:nth-child(4) { bottom: 10%; left: -12%; width: 40vmin; height: 40vmin; background: var(--im-accent-a, rgba(217, 168, 90, 0.38)); animation-delay: -22s; }

@keyframes im-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(3%, 2%) scale(1.1); }
  66%      { transform: translate(-2%, 3%) scale(0.95); }
}

/* Per-mood accents on the overlay */
.music-immersive[data-mood="meditation"]    { --im-accent-a: rgba(217, 168, 90, 0.6); --im-accent-b: rgba(200, 149, 69, 0.5); --im-accent-c: rgba(240, 204, 115, 0.3); }
.music-immersive[data-mood="expansion"]     { --im-accent-a: rgba(217, 168, 90, 0.6);  --im-accent-b: rgba(217, 168, 90, 0.5); --im-accent-c: rgba(246, 225, 162, 0.3); }
.music-immersive[data-mood="frequency"]     { --im-accent-a: rgba(240, 204, 115, 0.6); --im-accent-b: rgba(255, 160, 96, 0.5);  --im-accent-c: rgba(255, 220, 140, 0.35); }
.music-immersive[data-mood="contemplation"] { --im-accent-a: rgba(200, 149, 69, 0.62); --im-accent-b: rgba(107, 96, 65, 0.55); --im-accent-c: rgba(246, 225, 162, 0.3); }
.music-immersive[data-mood="purification"]  { --im-accent-a: rgba(217, 168, 90, 0.55); --im-accent-b: rgba(217, 168, 90, 0.4); --im-accent-c: rgba(246, 225, 162, 0.3); }
.music-immersive[data-mood="ritual"]        { --im-accent-a: rgba(200, 149, 69, 0.62); --im-accent-b: rgba(240, 140, 80, 0.5);  --im-accent-c: rgba(255, 200, 140, 0.3); }

.music-immersive__close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top, 16px));
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  transition: background 240ms ease, transform 240ms ease;
}

.music-immersive__close:hover { background: rgba(255, 255, 255, 0.14); transform: scale(1.05); }

.music-immersive__meta {
  text-align: center;
  max-width: 520px;
  margin-top: 16px;
}

.music-immersive__tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(246, 225, 162, 0.94);
}

.music-immersive__title {
  margin-top: 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: white;
}

.music-immersive__timer {
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.music-immersive__hint {
  max-width: 420px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
  line-height: 1.65;
  margin-bottom: 14px;
}

.music-immersive.is-breath-off .music-immersive__hint { opacity: 0.2; }

/* ---------- Breath orb ---------- */
.breath-orb {
  position: relative;
  width: clamp(220px, 46vmin, 360px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin: 8px auto;
  --breath-duration: 10s;
}

.breath-orb__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--im-accent-a, rgba(255, 255, 255, 0.5)) 0%, transparent 62%);
  animation: breathe var(--breath-duration) ease-in-out infinite;
  will-change: transform, opacity;
}

/* Halos externos: brilho dourado suave (não mais branco, pra não lavar a tela) */
.breath-orb__halo--outer { inset: -10%; opacity: 0.26; animation-delay: 0s; background: radial-gradient(circle, var(--im-accent-a, rgba(240, 204, 115, 0.4)) 0%, transparent 60%); }
.breath-orb__halo--mid   { inset:  2%; opacity: 0.32; animation-delay: 0.3s; background: radial-gradient(circle, var(--im-accent-b, rgba(217, 168, 90, 0.4)) 0%, transparent 62%); }

/* Halo interno: ANEL dourado metálico (conic-gradient + máscara vazada no centro) */
.breath-orb__halo--inner {
  inset: 4%;
  opacity: 1;
  animation: breathe-ring var(--breath-duration) ease-in-out infinite;
  background: conic-gradient(from 140deg,
    #c89545 0deg,
    #f6e1a2 55deg,
    #fff7e0 92deg,
    #f0cc73 140deg,
    #b9863c 212deg,
    #7c5e2a 284deg,
    #c89545 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 63%, #000 66%, #000 85%, transparent 88%);
  mask: radial-gradient(circle, transparent 0 63%, #000 66%, #000 85%, transparent 88%);
  filter: drop-shadow(0 0 16px rgba(240, 204, 115, 0.4));
}

.breath-orb__label {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(246, 225, 162, 0.92);
  text-shadow: 0 0 18px rgba(240, 204, 115, 0.45);
  transition: opacity 400ms ease;
}

@keyframes breathe {
  0%   { transform: scale(0.82); opacity: 0.55; }
  40%  { transform: scale(1.12); opacity: 1; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(0.82); opacity: 0.55; }
}

/* Anel dourado: só escala (sem fade), pra manter o anel sempre nítido */
@keyframes breathe-ring {
  0%   { transform: scale(0.84); }
  40%  { transform: scale(1.06); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(0.84); }
}

.music-immersive.is-breath-off .breath-orb__halo {
  animation-play-state: paused;
  transform: scale(1);
  opacity: 0.5;
}

.music-immersive.is-breath-off .breath-orb__label { opacity: 0; }

.music-immersive.is-paused .breath-orb__halo { animation-play-state: paused; }

/* ---------- Controls ---------- */
.music-immersive__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(20, 16, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px -30px rgba(0, 0, 0, 0.8);
}

.im-ctrl {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 60px;
  padding: 6px 4px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 240ms ease, transform 240ms ease;
  cursor: pointer;
}

.im-ctrl:hover { color: white; transform: translateY(-1px); }

.im-ctrl__label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.im-ctrl--primary {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.96), rgba(200, 149, 69, 0.96));
  color: #1a0e08;
  box-shadow: 0 12px 40px -12px rgba(200, 149, 69, 0.55);
}

.im-ctrl--primary:hover { transform: scale(1.04); color: #1a0e08; }

.im-ctrl__icon--play { display: none; }
.music-immersive.is-paused .im-ctrl__icon--play { display: block; }
.music-immersive.is-paused .im-ctrl__icon--pause { display: none; }

.im-ctrl[aria-pressed="false"] { color: rgba(255, 255, 255, 0.4); }

/* ---------- Timer sheet ---------- */
.session-timer-sheet {
  position: absolute;
  left: 50%;
  bottom: 140px;
  transform: translate(-50%, 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(20, 16, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px -30px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.session-timer-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.session-timer-sheet__title {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.session-timer-sheet__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 280px;
}

.session-timer-sheet__options button {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.session-timer-sheet__options button:hover { background: rgba(255, 255, 255, 0.12); }
.session-timer-sheet__options button.is-active {
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.35), rgba(200, 149, 69, 0.35));
  border-color: rgba(240, 204, 115, 0.5);
}

/* ---------- Toast (body-level so it's visible even when overlay is closed) ---------- */
.music-toast {
  position: fixed;
  top: max(28px, env(safe-area-inset-top, 24px));
  left: 50%;
  transform: translate(-50%, -8px);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(20, 16, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease, transform 400ms ease;
  white-space: nowrap;
  z-index: 200;
  box-shadow: 0 22px 60px -30px rgba(0, 0, 0, 0.8);
}

.music-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   Prayer immersive (ritual overlay)
   ========================================================= */
.prayer-immersive {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(28px, env(safe-area-inset-top, 24px)) 22px calc(28px + env(safe-area-inset-bottom, 0px));
  color: white;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease, visibility 0s linear 520ms;
  background-color: #1a0d05;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
  --pr-accent-a: rgba(240, 204, 115, 0.85);
  --pr-accent-b: rgba(255, 224, 168, 0.75);
  --pr-accent-c: rgba(240, 160, 140, 0.55);
  --pr-accent-glow: rgba(240, 204, 115, 0.35);
}

.prayer-immersive.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease, visibility 0s linear 0s;
}

.prayer-immersive__bg {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background-image: url("prayer_bg.webp");
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.46) saturate(1.15) sepia(0.18);
  transform: scale(1.08);
  animation: im-kenburns 52s ease-in-out infinite alternate;
  will-change: transform;
}

.prayer-immersive__aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.prayer-immersive__aura span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: im-drift 28s ease-in-out infinite;
  background: var(--pr-accent-a);
}

.prayer-immersive__aura span:nth-child(1) { top: -12%; left: -10%; width: 52vmin; height: 52vmin; animation-delay: -4s; }
.prayer-immersive__aura span:nth-child(2) { bottom: -14%; right: -8%; width: 60vmin; height: 60vmin; background: var(--pr-accent-b); animation-delay: -12s; }
.prayer-immersive__aura span:nth-child(3) { top: 28%; right: -18%; width: 44vmin; height: 44vmin; background: var(--pr-accent-c); animation-delay: -18s; }
.prayer-immersive__aura span:nth-child(4) { bottom: 10%; left: -12%; width: 40vmin; height: 40vmin; background: var(--pr-accent-a); animation-delay: -22s; }

/* Mood palettes — warm side of the spectrum */
.prayer-immersive[data-mood="warmth"]  { --pr-accent-a: rgba(240, 204, 115, 0.85); --pr-accent-b: rgba(255, 220, 160, 0.75); --pr-accent-c: rgba(240, 160, 140, 0.5);  --pr-accent-glow: rgba(240, 204, 115, 0.35); }
.prayer-immersive[data-mood="clarity"] { --pr-accent-a: rgba(250, 230, 180, 0.85); --pr-accent-b: rgba(246, 225, 162, 0.55); --pr-accent-c: rgba(255, 240, 200, 0.6); --pr-accent-glow: rgba(250, 230, 180, 0.35); }
.prayer-immersive[data-mood="comfort"] { --pr-accent-a: rgba(240, 160, 140, 0.75); --pr-accent-b: rgba(255, 200, 180, 0.65); --pr-accent-c: rgba(240, 204, 115, 0.5);  --pr-accent-glow: rgba(240, 160, 140, 0.35); }
.prayer-immersive[data-mood="lift"]    { --pr-accent-a: rgba(255, 200, 120, 0.85); --pr-accent-b: rgba(255, 230, 180, 0.70); --pr-accent-c: rgba(250, 180, 120, 0.55); --pr-accent-glow: rgba(255, 200, 120, 0.38); }
.prayer-immersive[data-mood="calm"]    { --pr-accent-a: rgba(245, 239, 226, 0.75); --pr-accent-b: rgba(246, 225, 162, 0.65); --pr-accent-c: rgba(217, 168, 90, 0.55); --pr-accent-glow: rgba(246, 225, 162, 0.3); }
.prayer-immersive[data-mood="bond"]    { --pr-accent-a: rgba(245, 160, 180, 0.75); --pr-accent-b: rgba(255, 200, 190, 0.65); --pr-accent-c: rgba(240, 180, 160, 0.55); --pr-accent-glow: rgba(245, 160, 180, 0.35); }

.prayer-immersive__close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top, 16px));
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  transition: background 240ms ease, transform 240ms ease;
  cursor: pointer;
}

.prayer-immersive__close:hover { background: rgba(255, 255, 255, 0.14); transform: scale(1.05); }

/* Scroll container centers prayer body and lets long text scroll. The scroll
   lives HERE, not on .prayer-immersive — otherwise the absolute-positioned bg
   and aura layers would scroll with the content and leave the bottom of the
   screen uncovered. */
.prayer-immersive__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 640px;
  margin: 4vh auto 0;
  padding-bottom: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.prayer-immersive__meta {
  text-align: center;
  max-width: 560px;
}

.prayer-immersive__focus {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(246, 225, 162, 0.94);
}

.prayer-immersive__title {
  margin-top: 16px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: white;
}

/* Full prayer body — large, readable, self-paced */
.prayer-immersive__body {
  max-width: 580px;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  line-height: 1.75;
  color: rgba(255, 248, 235, 0.94);
  text-align: center;
  text-shadow: 0 0 24px rgba(240, 204, 115, 0.14);
  white-space: pre-wrap;
  opacity: 0;
  animation: pr-body-in 460ms ease 120ms forwards;
}

@keyframes pr-body-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Amen — the single primary CTA, pinned at the bottom of the popup.
   margin-top: auto pushes the button to the bottom of the flex scroll. */
.prayer-immersive__amen-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.prayer-amen-btn {
  min-width: 220px;
  height: 64px;
  padding: 0 36px;
  border-radius: 999px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3a1d05;
  border: 1px solid rgba(255, 220, 180, 0.6);
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.98), rgba(255, 220, 160, 0.98));
  box-shadow: 0 22px 60px -18px var(--pr-accent-glow);
  cursor: pointer;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.prayer-amen-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 28px 70px -18px var(--pr-accent-glow);
}
.prayer-amen-btn:active { transform: scale(0.97); }
.prayer-amen-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

@media (max-height: 720px) {
  .prayer-immersive__scroll { margin-top: 4vh; gap: 18px; }
  .prayer-immersive__title { font-size: clamp(1.3rem, 5vw, 1.6rem); margin-top: 12px; }
  .prayer-immersive__body { font-size: clamp(1rem, 2.4vw, 1.15rem); line-height: 1.65; }
}

@media (max-width: 480px) {
  .prayer-immersive { padding-left: 18px; padding-right: 18px; }
  .prayer-amen-btn { min-width: 180px; height: 58px; font-size: 1.04rem; padding: 0 28px; }
  .prayer-immersive__close { top: max(16px, env(safe-area-inset-top, 12px)); right: 16px; width: 42px; height: 42px; }
}

/* Streak badge (shown inside Prayers screen) */
.prayer-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(240, 204, 115, 0.12);
  border: 1px solid rgba(240, 204, 115, 0.35);
  color: rgba(255, 230, 190, 0.95);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin: 4px 0 18px;
  box-shadow: 0 14px 40px -24px rgba(240, 204, 115, 0.6);
}

.prayer-streak-badge.is-hidden { display: none; }

.prayer-streak-badge__flame { font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
  .prayer-immersive__body { animation: none; opacity: 1; transform: none; }
  .prayer-immersive__bg { animation: none; }
  .prayer-immersive__aura > span { animation: none; }
}

/* =========================================================
   Mini player (persistent when immersive is closed)
   ========================================================= */
.mini-player {
  display: none !important;
}

.mini-player.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 320ms ease, transform 320ms ease, visibility 0s linear 0s;
}

.mini-player__expand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 6px 4px;
  background: transparent;
  border: none;
  color: white;
  text-align: left;
  cursor: pointer;
}

.mini-player__pulse {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.95), rgba(200, 149, 69, 0.8) 60%, transparent 72%);
  animation: breathe 10s ease-in-out infinite;
}

.mini-player__info {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.mini-player__tag {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.mini-player__title {
  font-size: 0.92rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player__stop {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.mini-player__stop:hover { background: rgba(200, 149, 69, 0.18); color: white; }

/* Mobile tweaks */
@media (max-width: 640px) {
  .panel--music { padding-bottom: 120px; }
  .music-immersive { padding-top: max(48px, env(safe-area-inset-top, 40px)); }
  .music-immersive__controls { gap: 18px; padding: 12px 16px; }
  .im-ctrl { width: 54px; }
  .im-ctrl--primary { width: 60px; height: 60px; }
  .breath-orb { width: min(62vw, 300px); }
  .session-timer-sheet { bottom: 124px; }
  .mini-player { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .music-immersive__bg { animation: none; }
  .music-immersive__aura span { animation: none; }
  .breath-orb__halo { animation: none; transform: scale(1); opacity: 0.7; }
  .mini-player__pulse { animation: none; }
}

.tarot-stack {
  display: grid;
  gap: 24px;
  padding-top: 12px;
  justify-items: center;
  perspective: 1400px;
  -webkit-perspective: 1400px;
}

.tarot-flip {
  width: 100%;
  max-width: 358px;
  margin-top: -18px;
  padding: 0;
  background: transparent;
  perspective: 1400px;
  -webkit-perspective: 1400px;
  perspective-origin: center;
  -webkit-perspective-origin: center;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform, filter;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 280ms ease, filter 280ms ease;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.34));
}

.tarot-flip:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 36px 48px rgba(0, 0, 0, 0.42));
}

.tarot-flip:focus-visible {
  outline: none;
}

.tarot-flip.is-busy {
  pointer-events: none;
  opacity: 0.84;
}

.tarot-flip__inner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.66;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tarot-flip.is-revealed .tarot-flip__inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* Dedicated Player Screen */
.player-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #0a0805;
  overflow: hidden;
}

.tarot-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 32px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  overflow: hidden;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tarot-face--back {
  transform: rotateY(0deg) translateZ(1px);
  -webkit-transform: rotateY(0deg) translateZ(1px);
  background:
    radial-gradient(circle at 50% 14%, rgba(200, 149, 69, 0.34), transparent 24%),
    radial-gradient(circle at 50% 76%, rgba(122, 43, 26, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(10, 8, 5, 0.98), rgba(27, 22, 13, 0.98) 48%, rgba(10, 8, 5, 1));
  border: 1px solid rgba(229, 196, 106, 0.34);
}

.tarot-face--back::before,
.tarot-face--back::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 26px;
}

.tarot-face--back::before {
  border: 1px solid rgba(233, 203, 116, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(20, 16, 10, 0.68),
    inset 0 0 42px rgba(122, 43, 26, 0.22);
}

.tarot-face--back::after {
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(200, 149, 69, 0.08), transparent 46%),
    radial-gradient(circle at 50% 16%, rgba(255, 229, 160, 0.09), transparent 14%);
  animation: tarot-aura 7s ease-in-out infinite alternate;
}

.tarot-back__glow {
  position: absolute;
  inset: 8%;
  border-radius: 30px;
  background: radial-gradient(circle at center, rgba(217, 168, 90, 0.3), transparent 62%);
  filter: blur(18px);
  opacity: 0.88;
}

.tarot-back__image {
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  background-image: url("cardvirada.webp");
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 179, 0.18),
    0 0 24px rgba(122, 43, 26, 0.34);
}

.tarot-face--front {
  transform: rotateY(180deg) translateZ(1px);
  -webkit-transform: rotateY(180deg) translateZ(1px);
  justify-content: space-between;
  padding: 24px 24px 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 248, 218, 0.95), rgba(255, 248, 218, 0.2) 26%, transparent 27%),
    linear-gradient(180deg, #fffaf0 0%, #f7ebcc 42%, #ecd29d 100%);
  border: 2px solid rgba(229, 196, 106, 0.8);
  color: #2a1e10;
}

.tarot-face--front::before,
.tarot-face--front::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
}

.tarot-face--front::before {
  border: 1px solid rgba(170, 118, 24, 0.38);
  box-shadow:
    inset 0 0 0 6px rgba(245, 239, 226, 0.42),
    inset 0 0 0 7px rgba(216, 174, 71, 0.18);
}

.tarot-face--front::after {
  inset: -35% -10%;
  background: linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.38) 48%, transparent 72%);
  opacity: 0.45;
  transform: translateX(-48%) rotate(8deg);
  animation: tarot-shine 5.2s ease-in-out infinite;
}

.tarot-face__halo {
  position: absolute;
  top: 88px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 196, 106, 0.28), rgba(229, 196, 106, 0.06) 46%, transparent 72%);
  filter: blur(10px);
  animation: tarot-halo 4.6s ease-in-out infinite alternate;
}

.tarot-card__frame,
.tarot-card__eyebrow,
.tarot-card__symbol,
.tarot-card__name,
.tarot-card__quote,
.tarot-card__subtitle {
  position: relative;
  z-index: 1;
}

.tarot-card__frame {
  position: absolute;
  inset: 28px;
  border-radius: 24px;
  border: 1px solid rgba(173, 122, 27, 0.26);
  pointer-events: none;
}

.tarot-card__frame::before,
.tarot-card__frame::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(173, 122, 27, 0.48);
  border-radius: 50%;
  opacity: 0.6;
}

.tarot-card__frame::before {
  top: 22px;
  left: 22px;
}

.tarot-card__frame::after {
  right: 22px;
  bottom: 22px;
}

.tarot-card__eyebrow {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(126, 82, 12, 0.78);
}

.tarot-card__symbol {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid rgba(164, 116, 26, 0.36);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.12) 26%, transparent 30%),
    radial-gradient(circle, rgba(255, 244, 208, 0.86), rgba(232, 202, 113, 0.9) 58%, rgba(160, 110, 19, 0.94) 100%);
  box-shadow:
    inset 0 0 0 7px rgba(245, 239, 226, 0.32),
    0 12px 28px rgba(188, 134, 31, 0.16);
  font-size: clamp(2rem, 6vw, 3rem);
  color: #7a4b00;
  letter-spacing: 0.04em;
}

.tarot-card__name {
  padding: 0 18px;
  text-align: center;
  color: #2e1d0e;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 2.65rem);
  line-height: 1.04;
  text-shadow: 0 3px 16px rgba(255, 255, 255, 0.3);
}

.tarot-card__quote {
  max-width: 250px;
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(67, 39, 90, 0.92);
  font-style: italic;
}

.tarot-card__subtitle {
  max-width: 220px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 250, 236, 0.46);
  border: 1px solid rgba(164, 116, 26, 0.18);
  color: #9b7b2e;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  font-size: 0.68rem;
}

.daily-card {
  width: min(100%, 760px);
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.daily-card--ornate {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 204, 115, 0.18);
  background:
    radial-gradient(circle at 50% 0, rgba(240, 204, 115, 0.1), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(217, 168, 90, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(27, 22, 13, 0.96), rgba(10, 8, 5, 0.98));
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.daily-card--ornate::before,
.daily-card--ornate::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.daily-card--ornate::before {
  inset: 14px;
  border-radius: 18px;
  border: 1px solid rgba(240, 204, 115, 0.12);
}

.daily-card--ornate::after {
  top: -120px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.12), transparent 70%);
  filter: blur(4px);
}

.daily-card--ornate h3 {
  position: relative;
  z-index: 1;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.daily-card.is-hidden {
  display: none;
}

.daily-card__divider {
  width: 92px;
  height: 1px;
  margin: 18px 0 20px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.tarot-reading__grid {
  display: grid;
  gap: 14px;
}

.tarot-reading__block {
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(240, 204, 115, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tarot-reading__block p:last-child {
  line-height: 1.7;
  color: rgba(245, 239, 226, 0.92);
}

.tarot-reading__tag {
  margin-bottom: 8px;
  color: var(--gold);
}

.covenant-screen-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(240, 204, 115, 0.16), transparent 22%),
    radial-gradient(circle at 86% 16%, rgba(200, 149, 69, 0.1), transparent 20%),
    rgba(20, 16, 10, 0.84);
}

.covenant-screen-head {
  margin-bottom: 22px;
}

.covenant-certificate-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow-x: auto;
  padding: 6px 0 2px;
}

.covenant-certificate {
  position: relative;
  width: min(100%, 794px);
  aspect-ratio: 210 / 297;
  min-height: 980px;
  padding: clamp(22px, 4vw, 42px);
  color: #2b2010;
  background-color: #f5efe0;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(119, 88, 28, 0.08) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 36%, rgba(119, 88, 28, 0.07) 0 1px, transparent 1.4px),
    radial-gradient(circle at 42% 74%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.8px),
    linear-gradient(90deg, rgba(95, 65, 20, 0.05), transparent 18%, rgba(255, 255, 255, 0.18) 52%, transparent 82%),
    #f5efe0;
  background-size: 26px 26px, 34px 34px, 22px 22px, 100% 100%, auto;
  border: 2px solid #c9a84a;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    inset 0 0 0 10px rgba(201, 168, 74, 0.24),
    inset 0 0 0 13px rgba(90, 59, 12, 0.16);
  font-family: "Cormorant Garamond", Georgia, serif;
  isolation: isolate;
}

.covenant-certificate::before,
.covenant-certificate::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.covenant-certificate::before {
  inset: 22px;
  border: 4px double #c9a84a;
}

.covenant-certificate::after {
  inset: 34px;
  border: 1px solid rgba(104, 72, 19, 0.34);
}

.covenant-certificate__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 42px) clamp(20px, 4vw, 50px);
  text-align: center;
}

.covenant-certificate__header {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.covenant-certificate__overline {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8f6417;
}

.covenant-certificate h2 {
  max-width: 94%;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.9rem, 4.4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3b2608;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.covenant-certificate__rule {
  display: block;
  width: min(300px, 72%);
  height: 1px;
  margin: 2px auto;
  background: linear-gradient(90deg, transparent, #8d681f, #d4af37, #8d681f, transparent);
}

.covenant-certificate__rule--short {
  width: min(240px, 58%);
  margin: 12px auto 8px;
}

.covenant-certificate__body {
  display: grid;
  justify-items: center;
  gap: 7px;
  font-size: clamp(1rem, 1.8vw, 1.26rem);
  line-height: 1.26;
}

.covenant-certificate__body > p:not(.covenant-certificate__date, .covenant-certificate__name, .covenant-certificate__angel, .covenant-certificate__reference, .covenant-certificate__issued) {
  max-width: 560px;
}

.covenant-certificate__date,
.covenant-certificate__name,
.covenant-certificate__signature span {
  font-family: "Pinyon Script", "Great Vibes", cursive;
  color: #3d2407;
}

.covenant-certificate__date {
  margin: 2px 0 0;
  font-size: clamp(2.45rem, 6.2vw, 4.25rem);
  line-height: 0.98;
}

.covenant-certificate__name {
  max-width: 620px;
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 5.35rem);
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.covenant-certificate__celestino {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 2px 0;
}

.covenant-certificate__celestino strong {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.25rem, 2.35vw, 1.72rem);
  letter-spacing: 0.08em;
  color: #4b310a;
}

.covenant-certificate__celestino span {
  max-width: 280px;
  font-style: italic;
  line-height: 1.15;
  color: #5f4722;
}

.covenant-certificate__angel {
  margin-top: 2px;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.12rem, 2.35vw, 1.68rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3f2808;
  text-transform: uppercase;
}

.covenant-certificate__reference {
  margin-top: -6px;
  font-size: clamp(0.94rem, 1.6vw, 1.12rem);
  color: #71531d;
}

.covenant-certificate__number-block {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0 0 4px;
}

.covenant-certificate__number-block span {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.76rem, 1.5vw, 0.94rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a5819;
}

.covenant-certificate__number-block strong {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: clamp(0.95rem, 2vw, 1.24rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #2c2113;
}

.covenant-certificate__quote {
  display: grid;
  justify-items: center;
  gap: 4px;
  max-width: 430px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  font-style: italic;
  color: #4d391a;
}

.covenant-certificate__quote p {
  font-size: clamp(0.96rem, 1.65vw, 1.08rem);
  line-height: 1.24;
}

.covenant-certificate__quote cite {
  font-size: clamp(0.9rem, 1.6vw, 1.08rem);
  color: #795613;
}

.covenant-certificate__issued {
  max-width: 430px;
  font-size: clamp(0.78rem, 1.28vw, 0.9rem);
  font-style: italic;
  color: #6f5528;
}

.covenant-certificate__signature {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-top: 0;
}

.covenant-certificate__signature span {
  font-family: "Great Vibes", "Pinyon Script", cursive;
  font-size: clamp(2.1rem, 4.35vw, 3.22rem);
  line-height: 0.94;
}

.covenant-certificate__signature small {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.62rem, 1.1vw, 0.78rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a641c;
}

.covenant-seal {
  position: absolute;
  z-index: 3;
  width: clamp(76px, 11vw, 108px);
  height: clamp(76px, 11vw, 108px);
  color: #d4af37;
  overflow: visible;
  filter:
    drop-shadow(0 8px 8px rgba(81, 45, 3, 0.32))
    drop-shadow(0 -1px 0 rgba(255, 246, 196, 0.72));
}

.covenant-seal__base {
  fill: #d4af37;
  stroke: rgba(95, 62, 8, 0.58);
  stroke-width: 0.22;
}

.covenant-seal__ring {
  fill: none;
  stroke: rgba(255, 247, 203, 0.88);
  stroke-width: 0.42;
}

.covenant-seal__cross-shadow,
.covenant-seal__cross {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.covenant-seal__cross-shadow {
  stroke: rgba(77, 45, 5, 0.72);
  stroke-width: 1.32;
}

.covenant-seal__cross {
  stroke: #fff3b4;
  stroke-width: 0.64;
}

.covenant-seal--top {
  top: clamp(40px, 5.4vw, 66px);
  right: clamp(32px, 4.4vw, 54px);
  transform: rotate(7deg);
}

.covenant-seal--bottom {
  left: clamp(34px, 5vw, 62px);
  bottom: clamp(34px, 5vw, 62px);
  transform: rotate(-10deg) scale(0.92);
}

.covenant-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px auto 0;
}

.covenant-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgba(240, 204, 115, 0.35);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(27, 22, 13, 0.86);
  color: #fff3cc;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.covenant-action:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 204, 115, 0.68);
}

.covenant-action:active {
  transform: scale(0.98);
}

.covenant-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.covenant-feedback {
  min-height: 1.4em;
  margin-top: 12px;
  text-align: center;
  color: rgba(255, 243, 204, 0.82);
}

@media (max-width: 760px) {
  .covenant-certificate {
    min-height: 1180px;
    padding: 18px;
  }

  .covenant-certificate::before {
    inset: 14px;
  }

  .covenant-certificate::after {
    inset: 23px;
  }

  .covenant-certificate__inner {
    padding: 34px 20px;
  }

  .covenant-certificate__body {
    gap: 7px;
    line-height: 1.25;
  }

  .covenant-certificate__date {
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .covenant-certificate__name {
    font-size: clamp(2.75rem, 12vw, 4.2rem);
  }

  .covenant-seal {
    width: 72px;
    height: 72px;
  }

  .covenant-seal--top {
    top: 28px;
    right: 28px;
  }

  .covenant-seal--bottom {
    left: 28px;
    bottom: 28px;
  }
}

.tabbar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + var(--safe-area-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: auto;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 6px;
  border-radius: 24px;
  /* Barra OPACA (acessibilidade). Era rgba(...,0.62) + blur: o texto da pagina
     passava por tras e se misturava aos rotulos — dificil de ler, sobretudo
     pra quem tem vista cansada. Fundo solido + borda mais firme separam a
     barra da pagina sem depender de blur (que ainda por cima custa GPU). */
  background: #241c11;
  border: 1px solid rgba(240, 204, 115, 0.34);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.72),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  z-index: 10;
  transition: background 0.4s ease, border-color 0.4s ease;
}

body.is-prayer-immersive-open .tabbar,
body.is-music-immersive-open .tabbar {
  display: none;
}

[data-theme="parchment"] .tabbar {
  background: #fbf6e9;
  border: 1px solid rgba(20, 16, 10, 0.14);
  box-shadow:
    0 20px 48px rgba(122, 43, 26, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 2px 7px;
  min-height: 58px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: rgba(245, 239, 226, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  font-family: inherit;
}

[data-theme="parchment"] .tabbar__item {
  color: rgba(20, 16, 10, 0.55);
}

.tabbar__item:hover {
  color: var(--text);
}

.tabbar__item.is-active {
  background: transparent;
  color: var(--gold);
  box-shadow: none;
}

[data-theme="parchment"] .tabbar__item.is-active {
  color: var(--gold-deep);
}

.tabbar__icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.tabbar__icon-svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  transition: stroke-width 0.2s ease, transform 0.25s ease, filter 0.25s ease;
}

.tabbar__item.is-active .tabbar__icon-svg {
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(240, 204, 115, 0.5));
}

.tabbar__item {
  position: relative;
}

.tabbar__item.is-active::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: tabbar-indicator-in 0.3s ease-out;
}

@keyframes tabbar-indicator-in {
  from { opacity: 0; transform: translateX(-50%) scaleX(0.4); }
  to { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

[data-theme="parchment"] .tabbar__item.is-active::before {
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

[data-theme="parchment"] .tabbar__item.is-active .tabbar__icon-svg {
  filter: drop-shadow(0 0 4px rgba(200, 149, 69, 0.35));
}

.tabbar__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: inherit;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5 itens na tabbar: em telas estreitas encolhe label/padding pra todos caberem. */
@media (max-width: 420px) {
  .tabbar__label { font-size: 0.62rem; letter-spacing: 0; }
  .tabbar__item { padding-left: 1px; padding-right: 1px; }
}

.panel.is-refreshing,
.hero-panel.is-refreshing,
.daily-card.is-refreshing {
  animation: rise-fade 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.988);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tarot-aura {
  from {
    opacity: 0.5;
    transform: scale(0.98);
  }

  to {
    opacity: 0.88;
    transform: scale(1.03);
  }
}

@keyframes tarot-halo {
  from {
    opacity: 0.56;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes tarot-shine {
  0%,
  18% {
    opacity: 0;
    transform: translateX(-56%) rotate(8deg);
  }

  36%,
  58% {
    opacity: 0.55;
    transform: translateX(12%) rotate(8deg);
  }

  100% {
    opacity: 0;
    transform: translateX(62%) rotate(8deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.24);
  }
}

@keyframes aura-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -12px, 0) scale(1.03);
  }
}

@keyframes star-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-80px, 36px, 0);
  }
}

@media (max-width: 900px) {

  .hero-panel,
  .support-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: 100%;
    padding: 14px 12px calc(92px + var(--safe-area-bottom));
  }

  .topbar {
    gap: 10px;
  }

  .brand-mark {
    padding: 10px 16px 12px;
  }

  .brand-mark__word--top {
    letter-spacing: 0.32em;
    padding-left: 0.32em;
  }

  .topbar-badge {
    min-width: 88px;
    padding: 10px 14px 12px;
  }

  .topbar-badge__label {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }

  .auth-screen__panel,
  .panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-panel__sigil {
    transform: translateZ(0);
  }

  .tabbar__item {
    min-height: 56px;
    padding: 8px 2px 6px;
  }

  .tabbar__icon {
    width: 24px;
    height: 24px;
  }

  .tabbar__icon-svg {
    width: 22px;
    height: 22px;
  }

  .tabbar__label {
    font-size: 0.72rem;
  }
}

/* Dedicated Player Screen */
.player-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0805;
  overflow: hidden;
}

.player-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(58, 28, 113, 0.8), rgba(215, 109, 119, 0.2), rgba(255, 175, 123, 0.1));
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.player-topbar,
.player-main,
.player-controls {
  position: relative;
  z-index: 1;
}

.player-topbar {
  padding: 24px;
  display: flex;
  align-items: center;
}

.player-icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}

.player-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.player-icon-btn--small {
  color: rgba(255, 255, 255, 0.6);
}

.player-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.player-title {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.player-center-btn {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: transparent;
  color: var(--primary);
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  margin-bottom: 30px;
  transition: transform 0.2s, text-shadow 0.2s;
  filter: drop-shadow(0 0 15px rgba(217, 168, 90, 0.4));
}

.player-center-btn:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 25px rgba(217, 168, 90, 0.8));
}

.player-center-btn svg {
  width: 48px;
  height: 48px;
}

.player-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
}

.player-visualizer span {
  width: 4px;
  background: var(--primary);
  border-radius: 4px;
  height: 10%;
  animation: equalize 1.2s ease-in-out infinite alternate;
  transform-origin: center;
  opacity: 0.8;
  box-shadow: 0 0 8px var(--primary);
}

.player-visualizer.is-paused span {
  animation-play-state: paused;
  height: 10% !important;
}

.player-visualizer span:nth-child(even) {
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  animation-delay: 0.3s;
}

.player-visualizer span:nth-child(3n) {
  animation-delay: 0.6s;
  animation-duration: 1.5s;
}

.player-actions-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  max-width: 320px;
}

.player-controls {
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.player-circle-timer {
  position: relative;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
}

.progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring__bg {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 4;
}

.progress-ring__bar {
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 289;
  /* 2 * pi * r (46) approx 289 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 4px var(--primary));
}

.player-time-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
}

/* Celestino Chat */

#screen-chat.is-active {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
}

.panel--chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(122, 43, 26, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(240, 204, 115, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(20, 16, 10, 0.6) 0%, transparent 80%),
    linear-gradient(175deg, #1a140b 0%, #14100a 35%, #0e0a05 65%, #0a0805 100%);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

[data-theme="parchment"] .panel--chat {
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(217, 168, 90, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(122, 43, 26, 0.08) 0%, transparent 70%),
    linear-gradient(175deg, #faf3e3 0%, #f5efe2 50%, #ede4cf 100%);
}

.chat-back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.chat-back-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.chat-back-button:active {
  transform: scale(0.92);
}

.chat-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 5, 0.95);
  flex-shrink: 0;
}

.chat-contact__avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.chat-contact__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(240, 204, 115, 0.32);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.chat-contact__status-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6df7b0;
  box-shadow: 0 0 0 2px rgba(20, 16, 10, 0.95), 0 0 8px rgba(109, 247, 176, 0.55);
}

.chat-contact__meta {
  display: grid;
  gap: 2px;
}

.chat-contact__eyebrow {
  display: none;
}

.chat-message__label {
  display: none;
}

.chat-contact__name {
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 600;
}

.chat-contact__status {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
  font-size: 0.86rem;
}

.chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-feed::before {
  content: "";
  flex: 1;
}

.chat-feed::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 25% 35%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1px 1px at 40% 10%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(1px 1px at 70% 25%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1px 1px at 85% 55%, rgba(255, 255, 255, 0.14), transparent),
    radial-gradient(1px 1px at 15% 65%, rgba(255, 255, 255, 0.18), transparent),
    radial-gradient(1px 1px at 50% 75%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 30% 85%, rgba(255, 255, 255, 0.16), transparent),
    radial-gradient(1px 1px at 75% 70%, rgba(255, 255, 255, 0.13), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 60% 60%, rgba(246, 225, 162, 0.18), transparent),
    radial-gradient(1.5px 1.5px at 20% 50%, rgba(246, 225, 162, 0.15), transparent);
}

.chat-feed > * {
  position: relative;
  z-index: 1;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 80%;
  animation: rise-fade 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-system-notice {
  align-self: center;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 90%;
  margin: 4px 0;
  padding: 12px 16px;
  background: rgba(180, 90, 90, 0.12);
  border: 1px solid rgba(220, 120, 120, 0.35);
  border-radius: 14px;
  color: rgba(255, 220, 220, 0.92);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: left;
  animation: rise-fade 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-system-notice__icon {
  font-size: 16px;
  line-height: 1;
  margin-top: 1px;
  color: rgba(255, 180, 180, 0.95);
  flex-shrink: 0;
}

.chat-system-notice__text {
  flex: 1;
  word-break: break-word;
}

.chat-message + .chat-message:not(.chat-message--group-start) {
  margin-top: 4px;
}

.chat-message.chat-message--group-start {
  margin-top: 14px;
}

.chat-message--user {
  align-self: flex-end;
  justify-content: flex-end;
}

.chat-message--user .chat-message__body {
  align-items: flex-end;
}

.chat-message--ai {
  align-self: flex-start;
}

.chat-message__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(240, 204, 115, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.chat-message__avatar--hidden {
  visibility: hidden;
}

.chat-message__avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chat-message__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}

.chat-message--user .chat-message__body {
  align-items: flex-end;
}

.chat-message--ai .chat-message__body {
  align-items: flex-start;
}

.chat-message__bubble {
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  word-wrap: break-word;
  max-width: 100%;
}

.chat-message--user .chat-message__bubble {
  background: linear-gradient(135deg, rgba(217, 168, 90, 0.95), rgba(200, 149, 69, 0.92));
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 18px rgba(217, 168, 90, 0.18);
  color: #fff;
}

.chat-message--ai .chat-message__bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
}

.chat-message__link {
  color: #f4cf6b;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  word-break: break-all;
}

.chat-message__link:hover,
.chat-message__link:focus-visible {
  color: #ffd984;
  text-decoration-thickness: 2px;
}

.chat-message--user .chat-message__link {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.chat-message__time {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
  padding: 0 4px;
}

.chat-message--user .chat-message__time {
  text-align: right;
}

.chat-input-area {
  padding: 10px 14px 14px;
  background: rgba(20, 16, 10, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.chat-form__input {
  width: 100%;
  min-height: 46px;
  max-height: 180px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 12px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  overflow-y: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-form__input:focus {
  outline: none;
  border-color: rgba(240, 204, 115, 0.38);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(240, 204, 115, 0.06);
}

.chat-form__input:disabled {
  opacity: 0.65;
  cursor: wait;
}

.chat-form__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.chat-form__submit {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(217, 168, 90, 0.2);
}

.chat-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(200, 149, 69, 0.24);
}

.chat-form__submit:active {
  transform: translateY(1px);
}

.chat-form__submit:disabled {
  opacity: 0.56;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.chat-credit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-credit-bar.is-low-balance {
  border-color: rgba(200, 149, 69, 0.2);
  background:
    radial-gradient(circle at right top, rgba(200, 149, 69, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.04);
}

.chat-credit-note {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(245, 239, 226, 0.72);
}

.chat-credit-action {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.94), rgba(200, 149, 69, 0.86));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.icon-send {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(-1px);
}

.chat-message__bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
}

.typing-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.credits-hub {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  min-height: calc(100vh - 188px);
  padding: clamp(22px, 4vw, 34px);
  border-radius: 34px;
  border: 1px solid rgba(240, 204, 115, 0.14);
  background:
    radial-gradient(circle at top, rgba(240, 204, 115, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(217, 168, 90, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(20, 16, 10, 0.96), rgba(10, 8, 5, 0.98));
  box-shadow: var(--shadow);
}

.credits-hub__hero {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

/* Barra do topo da loja: voltar (esquerda) + saldo de cristais (direita) */
.credits-hub__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credits-hub__bar .screen-back {
  flex-shrink: 0;
  height: 44px;
  margin: 0;
}

.credits-balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(240, 204, 115, 0.34);
  background: linear-gradient(180deg, rgba(40, 32, 18, 0.92), rgba(20, 16, 10, 0.94));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.credits-balance-chip__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--gold);
  filter: drop-shadow(0 0 5px rgba(240, 204, 115, 0.5));
}

.credits-balance-chip__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.credits-balance-chip__value {
  display: inline-flex;
  align-items: center;
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1.12rem;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(1px);
  color: var(--gold);
}

[data-theme="parchment"] .credits-balance-chip {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.28)),
    rgba(251, 246, 233, 0.94);
  border-color: rgba(122, 43, 26, 0.22);
  box-shadow: 0 6px 16px rgba(122, 43, 26, 0.12);
}

[data-theme="parchment"] .credits-balance-chip__icon,
[data-theme="parchment"] .credits-balance-chip__value {
  color: var(--gold-deep);
}

/* Estado "em breve / indisponível" dos planos (checkout ainda é placeholder) */
.credits-plan--soon {
  opacity: 0.9;
}

.credits-plan__button.is-soon {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(240, 204, 115, 0.28);
  color: rgba(246, 225, 162, 0.78);
  box-shadow: none;
  cursor: not-allowed;
  gap: 7px;
}

.credits-plan__lock {
  flex-shrink: 0;
  opacity: 0.85;
}

[data-theme="parchment"] .credits-plan__button.is-soon {
  background: rgba(20, 16, 10, 0.05);
  border-color: rgba(122, 43, 26, 0.22);
  color: var(--gold-deep);
}

.credits-balance-card {
  width: min(100%, 620px);
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(200, 149, 69, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(240, 204, 115, 0.05);
}

.credits-balance-card__label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: rgba(246, 225, 162, 0.92);
}

.credits-balance-card__value {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.96;
  color: transparent;
  background: linear-gradient(180deg, #f6e1a2 0%, #f0cc73 42%, #d9a85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.credits-balance-card__copy {
  color: rgba(245, 239, 226, 0.76);
  line-height: 1.66;
}

.credits-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 22px);
}

.credits-plan {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.035)),
    rgba(20, 16, 10, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 34px rgba(0, 0, 0, 0.2);
}

.credits-plan.is-featured {
  border-color: rgba(240, 204, 115, 0.26);
  background:
    radial-gradient(circle at top, rgba(240, 204, 115, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(20, 16, 10, 0.94);
  transform: translateY(-6px);
}

.credits-plan.is-best-value {
  border-color: rgba(200, 149, 69, 0.26);
  background:
    radial-gradient(circle at top right, rgba(200, 149, 69, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(20, 16, 10, 0.94);
}

.credits-plan__topline,
.credits-plan__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credits-plan__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 225, 162, 0.96);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credits-plan__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.credits-plan__title {
  font-size: 1.55rem;
}

.credits-plan__credits {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 2rem;
  color: transparent;
  background: linear-gradient(180deg, #f6e1a2 0%, #f0cc73 42%, #d9a85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.credits-plan__meta,
.credits-plan__copy {
  color: rgba(245, 239, 226, 0.72);
  line-height: 1.6;
}

.credits-plan__features {
  display: grid;
  gap: 8px;
}

.credits-plan__feature,
.credits-plan__note {
  color: rgba(245, 239, 226, 0.84);
  line-height: 1.55;
}

.credits-plan__note {
  color: rgba(246, 225, 162, 0.92);
  font-weight: 700;
}

.credits-plan__button,
.credits-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.94), rgba(200, 149, 69, 0.9));
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.credits-back-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.credits-hub__footer {
  display: flex;
  justify-content: center;
}

.credits-plan__foot {
  margin-top: auto;
}

.credits-plan__foot .credits-plan__button {
  width: 100%;
}

a.credits-plan__button {
  text-decoration: none;
}

body.is-credits-screen .tabbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

body.is-chat-screen .topbar {
  display: none !important;
}
/* Tabbar some só DENTRO da conversa; no roster (seleção) fica visível embaixo.
   :has() lê o estado canônico do data-chat-view (não desincroniza). No roster
   (data-chat-view="roster") a regra não bate -> tabbar aparece embaixo. */
body:has(#screen-chat.is-active[data-chat-view="conversation"]) .tabbar {
  display: none !important;
}

/* No roster (seleção de cartomante) força a tabbar visível, clicável e ACIMA
   do conteúdo full-screen do chat (resolve tanto display quanto z-index). */
body:has(#screen-chat.is-active[data-chat-view="roster"]) .tabbar {
  display: grid !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  z-index: 500 !important;
}

body.is-chat-screen .app-shell {
  padding: 0;
  width: 100%;
}

@media (max-width: 720px) {
  .chat-contact {
    padding: 8px 10px;
    gap: 8px;
  }

  .chat-back-button {
    width: 44px;
    height: 44px;
  }

  .chat-contact__avatar-wrap {
    width: 40px;
    height: 40px;
  }

  .chat-contact__name {
    font-size: 1.08rem;
  }

  .chat-feed {
    padding: 10px;
  }

  .chat-message {
    max-width: 90%;
  }

  .chat-message__avatar {
    width: 26px;
    height: 26px;
  }

  .chat-input-area {
    padding: 8px 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .chat-form__input {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
  }

  .chat-form__submit {
    width: 48px;
    height: 48px;
  }

  .chat-credit-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-credit-action {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .credits-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .credits-hub {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
    gap: 14px;
  }

  .credits-hub__hero {
    gap: 12px;
  }

  .credits-balance-card {
    padding: 16px 18px;
    border-radius: 20px;
    gap: 6px;
  }

  .credits-balance-card__value {
    font-size: 2.3rem;
  }

  .credits-balance-card__copy {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .credits-plans {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .credits-plan {
    padding: 15px 16px;
    gap: 9px;
    border-radius: 20px;
  }

  .credits-plan.is-featured {
    transform: none;
  }

  .credits-plan__title {
    font-size: 1.25rem;
  }

  .credits-plan__credits {
    font-size: 1.6rem;
  }

  .credits-plan__copy,
  .credits-plan__feature,
  .credits-plan__note {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .credits-plan__features {
    gap: 6px;
  }

  /* topline fica em LINHA (selo à esquerda, preço à direita) — não esticar */
  .credits-plan__foot {
    margin-top: 4px;
  }

  .credits-plan__button {
    width: 100%;
    min-height: 46px;
  }

  .credits-back-button {
    width: 100%;
  }
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.admin-shell {
  width: min(1440px, calc(100% - clamp(16px, 3vw, 32px)));
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 28px) 0 clamp(40px, 7vw, 72px);
  box-sizing: border-box;
  height: 100vh;
  display: grid;
  grid-template-columns: clamp(240px, 24vw, 290px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
}

body.admin-page {
  overflow-x: clip;
  overflow-y: hidden;
  height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: clamp(16px, 2vw, 24px);
  padding: clamp(18px, 2.2vw, 28px) clamp(16px, 2vw, 24px);
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.admin-sidebar__brand,
.admin-sidebar__nav,
.admin-sidebar__group,
.admin-sidebar__footer,
.admin-content,
.admin-main {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.admin-content {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  max-height: 100%;
}

.admin-main {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.admin-content,
.admin-main,
.admin-view,
.admin-panel,
.admin-view > *,
.admin-two-column,
.admin-toolbar,
.admin-screen-visual,
.admin-user-grid,
.admin-presets-grid,
.admin-table-wrap {
  min-width: 0;
}

.admin-sidebar__item {
  width: 100%;
  padding: clamp(12px, 1.4vw, 14px) clamp(14px, 1.8vw, 18px);
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: clamp(0.94rem, 1.1vw, 1rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition:
    transform 220ms ease,
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.admin-sidebar__item.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(217, 168, 90, 0.28), rgba(200, 149, 69, 0.22));
  border-color: rgba(200, 149, 69, 0.3);
}

.admin-sidebar__footer {
  margin-top: 10px;
}

.admin-content__header {
  padding: clamp(20px, 2.8vw, 30px) clamp(18px, 3vw, 34px);
  display: flex;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 28px);
  align-items: flex-start;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.admin-view {
  display: none;
  gap: clamp(20px, 2.8vw, 32px);
}

.admin-view.is-active {
  display: grid;
}

.admin-panel {
  padding: clamp(20px, 3vw, 38px);
  overflow: hidden;
}

.admin-panel__head {
  display: flex;
  justify-content: space-between;
  gap: clamp(14px, 1.8vw, 22px);
  align-items: flex-start;
  margin-bottom: clamp(18px, 2.2vw, 28px);
  flex-wrap: wrap;
}

.admin-panel__head--compact {
  margin-bottom: clamp(14px, 1.8vw, 18px);
}

.admin-dashboard-filter {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.admin-segmented-control {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-segmented-control__item {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.admin-segmented-control__item.is-active {
  color: #fff;
  border-color: rgba(217, 168, 90, 0.36);
  background: rgba(217, 168, 90, 0.18);
}

.admin-dashboard-filter__custom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 12px;
  align-items: end;
}

.admin-dashboard-filter__custom[hidden] {
  display: none !important;
}

.admin-panel__hint,
.admin-status,
.admin-warning,
.admin-empty-state,
.admin-user-card__meta,
.admin-activity-item span,
.admin-top-user-card span {
  color: var(--muted);
  line-height: 1.6;
}

.admin-summary-grid,
.admin-micro-grid,
.admin-notification-summary {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.admin-dashboard-hero {
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  align-items: stretch;
  background:
    radial-gradient(circle at top left, rgba(240, 204, 115, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(200, 149, 69, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(27, 22, 13, 0.92), rgba(10, 8, 5, 0.96));
}

.admin-dashboard-hero__content,
.admin-dashboard-hero__aside,
.admin-dashboard-hero__headline,
.admin-dashboard-hero__metrics,
.admin-insights-list {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
  min-width: 0;
}

.admin-dashboard-hero__content {
  align-content: start;
}

.admin-dashboard-hero__headline {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.admin-dashboard-hero__metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}

.admin-hero-card,
.admin-hero-metric,
.admin-insight-card {
  position: relative;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
}

.admin-hero-card {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(8, 7, 20, 0.56);
}

.admin-hero-card--primary {
  background:
    radial-gradient(circle at top left, rgba(240, 204, 115, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 7, 20, 0.62);
}

.admin-hero-card--secondary {
  background:
    radial-gradient(circle at top right, rgba(200, 149, 69, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 7, 20, 0.62);
}

.admin-hero-card__eyebrow,
.admin-insight-card__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.8);
}

.admin-hero-card__title,
.admin-hero-metric strong,
.admin-insight-card__value {
  overflow-wrap: anywhere;
}

.admin-hero-card__title {
  font-size: clamp(1.3rem, 2.2vw, 2.2rem);
  line-height: 1.08;
}

.admin-hero-card__copy,
.admin-insight-card__detail {
  color: var(--muted);
  line-height: 1.65;
}

.admin-hero-metric {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.admin-hero-metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-hero-metric strong {
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.15;
}

.admin-insight-card {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(217, 168, 90, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.04);
}

.admin-insight-card__value {
  font-size: clamp(1.02rem, 1.6vw, 1.35rem);
  line-height: 1.2;
}

.admin-stat-card,
.admin-metric-pill,
.admin-top-user-card,
.admin-user-card,
.admin-preset-card,
.admin-campaign-card,
.admin-activity-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.admin-stat-card {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.2vw, 24px) clamp(16px, 2vw, 22px);
  min-height: clamp(98px, 14vw, 122px);
}

.admin-stat-card__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 239, 226, 0.82);
}

.admin-stat-card__value {
  font-size: clamp(1.15rem, 2vw, 2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.admin-two-column {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-bar-list,
.admin-top-users,
.admin-activity-list,
.admin-campaign-list,
.admin-ranking-list {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.admin-ranking-card,
.admin-webhook-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.admin-ranking-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
}

.admin-ranking-card__head,
.admin-webhook-card__row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.admin-ranking-card__head span,
.admin-webhook-card__row span,
.admin-webhook-card__url span {
  color: var(--muted);
}

.admin-webhook-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.admin-webhook-card__url {
  display: grid;
  gap: 8px;
}

.admin-webhook-card code {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 24, 0.48);
  color: rgba(246, 225, 162, 0.96);
  font-size: 0.84rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff7df;
  background: rgba(255, 255, 255, 0.08);
}

.admin-status-pill--approved {
  background: rgba(80, 208, 140, 0.18);
  border-color: rgba(80, 208, 140, 0.36);
  color: #d8ffe9;
}

.admin-status-pill--pending {
  background: rgba(240, 204, 115, 0.18);
  border-color: rgba(240, 204, 115, 0.34);
  color: #fff4c3;
}

.admin-status-pill--rejected,
.admin-status-pill--refunded {
  background: rgba(255, 126, 183, 0.18);
  border-color: rgba(255, 126, 183, 0.34);
  color: #ffe0ee;
}

.admin-status-pill--unknown {
  background: rgba(217, 168, 90, 0.16);
  border-color: rgba(217, 168, 90, 0.32);
}

.admin-bar-list + .admin-top-users {
  margin-top: 28px;
}

.admin-top-user-list {
  display: grid;
  gap: 14px;
}

.admin-top-user-list__header {
  display: grid;
  gap: 6px;
}

.admin-top-user-list__header h4 {
  font-size: 1.1rem;
  line-height: 1.15;
}

.admin-top-user-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at left top, rgba(217, 168, 90, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.03);
}

.admin-top-user-row__rank {
  min-width: 48px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 239, 226, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.admin-top-user-row__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-top-user-row__name,
.admin-top-user-row__email,
.admin-top-user-row__value {
  overflow-wrap: anywhere;
}

.admin-top-user-row__name {
  font-size: 0.98rem;
  line-height: 1.25;
}

.admin-top-user-row__email {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-top-user-row__value {
  justify-self: end;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.18), rgba(200, 149, 69, 0.18));
  border: 1px solid rgba(240, 204, 115, 0.16);
  color: #fff7df;
  font-size: 0.84rem;
  white-space: nowrap;
}

.admin-screen-visual {
  display: grid;
  gap: clamp(18px, 2vw, 24px);
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  align-items: center;
}

.admin-screen-donut-wrap {
  display: grid;
  place-items: center;
  padding: 12px;
}

.admin-screen-donut {
  position: relative;
  width: clamp(160px, 20vw, 188px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(8, 5, 22, 0.98) 0 46%, transparent 47%),
    conic-gradient(var(--screen-donut));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.admin-screen-donut::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  filter: blur(10px);
}

.admin-screen-donut__center {
  position: absolute;
  inset: 28%;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(27, 22, 13, 0.96), rgba(10, 8, 5, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.admin-screen-donut__center span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-screen-donut__center strong {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1;
}

.admin-screen-legend {
  display: grid;
  gap: clamp(10px, 1.5vw, 14px);
}

.admin-screen-legend__item {
  display: grid;
  gap: 8px;
  padding: clamp(12px, 1.6vw, 14px) clamp(12px, 1.8vw, 16px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.admin-screen-legend__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-screen-legend__head strong,
.admin-screen-legend__head span,
.admin-screen-legend__count {
  overflow-wrap: anywhere;
}

.admin-screen-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legend-color);
  box-shadow: 0 0 12px var(--legend-color);
}

.admin-screen-legend__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.admin-screen-legend__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--legend-color), rgba(255, 255, 255, 0.92));
}

.admin-screen-legend__count {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-user-usage-chart {
  display: grid;
  gap: clamp(12px, 1.8vw, 16px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  align-items: end;
}

.admin-user-usage-card {
  padding: clamp(14px, 1.8vw, 16px) clamp(12px, 1.6vw, 14px) clamp(16px, 1.9vw, 18px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top, rgba(217, 168, 90, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 12px;
  min-height: clamp(220px, 28vw, 260px);
  min-width: 0;
}

.admin-user-usage-card__rank {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 239, 226, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.admin-user-usage-card__bar-shell {
  height: clamp(88px, 14vw, 118px);
  display: grid;
  align-items: end;
  padding: 0 10px;
}

.admin-user-usage-card__bar {
  display: block;
  width: 100%;
  border-radius: 18px 18px 8px 8px;
  background:
    linear-gradient(180deg, #f6e1a2 0%, #d9a85a 55%, #7a2b1a 100%);
  box-shadow:
    0 10px 24px rgba(217, 168, 90, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.admin-user-usage-card__name {
  font-size: clamp(0.94rem, 1.2vw, 1rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-user-usage-card__email,
.admin-user-usage-card__value {
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.84rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-bar-row {
  display: grid;
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.admin-bar-row__label,
.admin-bar-row__value {
  font-size: 0.92rem;
}

.admin-bar-row__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.admin-bar-row__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--pink));
}

.admin-bar-row__fill--alt {
  background: linear-gradient(90deg, var(--gold), var(--pink));
}

.admin-metric-pill,
.admin-top-user-card,
.admin-activity-item,
.admin-campaign-card {
  padding: clamp(14px, 1.8vw, 18px) clamp(14px, 2vw, 20px);
}

.admin-metric-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.admin-top-user-card {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-top-user-card strong,
.admin-top-user-card span {
  overflow-wrap: anywhere;
}

.admin-toolbar,
.admin-inline-form,
.admin-actions-row,
.admin-campaign-grid {
  display: grid;
  gap: clamp(12px, 1.8vw, 16px);
}

.admin-actions-row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

.admin-campaign-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.admin-inline-form {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  align-items: center;
}

.admin-search-field {
  position: relative;
  display: grid;
  align-items: center;
}

.admin-search-field__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}

.admin-toolbar {
  margin-bottom: 26px;
  grid-template-columns: minmax(0, 1fr);
}

.admin-inline-form input,
.admin-inline-form select,
.admin-inline-form textarea,
.admin-user-card input,
.admin-preset-card input,
.admin-preset-card textarea,
.admin-campaign-form input,
.admin-campaign-form select,
.admin-campaign-form textarea {
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.admin-search-field input {
  padding-left: 44px;
}

.admin-inline-form input:focus,
.admin-inline-form select:focus,
.admin-user-card input:focus,
.admin-preset-card input:focus,
.admin-preset-card textarea:focus,
.admin-campaign-form input:focus,
.admin-campaign-form select:focus,
.admin-campaign-form textarea:focus {
  border-color: rgba(217, 168, 90, 0.52);
  box-shadow: 0 0 0 4px rgba(217, 168, 90, 0.1);
}

.admin-inline-form--compact {
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-grid,
.admin-presets-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.admin-user-card,
.admin-preset-card {
  padding: clamp(16px, 2vw, 22px);
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  min-width: 0;
}

.admin-user-card__fields {
  display: grid;
  gap: 14px;
}

.admin-user-card__meta {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-user-card .admin-actions-row {
  margin-top: 8px;
}

.admin-button {
  padding: clamp(12px, 1.6vw, 14px) clamp(16px, 2vw, 20px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  min-height: 48px;
  width: 100%;
  justify-content: center;
  text-align: center;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.admin-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.admin-button--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.admin-button--danger {
  background: linear-gradient(135deg, #9d2946, #ef5f8a);
}

.admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-campaign-form {
  display: grid;
  gap: clamp(14px, 2vw, 18px);
  margin-top: 18px;
}

.admin-campaign-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.admin-activity-item {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-notification-summary {
  margin-bottom: 24px;
}

.admin-presets-grid {
  margin-top: 18px;
}

.admin-actions-row {
  margin-top: 18px;
}

.admin-campaign-list {
  margin-top: 26px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  margin-top: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table th,
.admin-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table th {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.82);
}

.admin-table td {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-table__empty {
  text-align: center;
}

.admin-trend-chart {
  display: grid;
  gap: 22px;
  padding-top: 8px;
  min-width: 0;
}

.admin-trend-chart__surface {
  padding: 20px 20px 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top left, rgba(200, 149, 69, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.admin-trend-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}

.admin-trend-chart__grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.admin-trend-chart__area {
  fill: url(#trend-area-fill);
}

.admin-trend-chart__line {
  fill: none;
  stroke: url(#trend-line-stroke);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 18px rgba(217, 168, 90, 0.22));
}

.admin-trend-chart__dot {
  fill: #fdf7ff;
  stroke: #ff8ec8;
  stroke-width: 3;
}

.admin-trend-chart__dot-halo {
  fill: rgba(200, 149, 69, 0.1);
}

.admin-trend-chart__label {
  fill: rgba(245, 239, 226, 0.72);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.admin-trend-chart__footer {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin-top: 6px;
}

.admin-trend-stat {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 8px;
}

.admin-trend-stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-trend-stat strong {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  overflow-wrap: anywhere;
}

.admin-status {
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  text-align: right;
}

.admin-view-title,
.admin-view-description,
.admin-panel h2,
.admin-panel h3,
.admin-content__header h2 {
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  body.admin-page {
    overflow-y: auto;
    height: auto;
  }

  .admin-shell {
    height: auto;
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }

  .admin-sidebar__nav {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    align-items: start;
  }

  .admin-content,
  .admin-main {
    max-height: none;
    overflow: visible;
  }

  .admin-sidebar__footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .admin-two-column {
    grid-template-columns: 1fr;
  }

  .admin-screen-visual {
    grid-template-columns: 1fr;
  }

  .admin-content__header {
    align-items: stretch;
  }

  .admin-status {
    text-align: left;
  }

  .admin-user-usage-chart {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  }
}

@media (max-width: 720px) {
  .admin-panel {
    padding: 20px;
  }

  .admin-content__header,
  .admin-panel__head,
  .admin-campaign-card__head,
  .admin-ranking-card__head,
  .admin-webhook-card__row {
    flex-direction: column;
  }

  .admin-sidebar {
    padding: 18px 16px;
  }

  .admin-dashboard-filter {
    justify-items: stretch;
  }

  .admin-segmented-control {
    justify-content: flex-start;
  }

  .admin-dashboard-filter__custom {
    grid-template-columns: 1fr;
  }

  .admin-sidebar__nav,
  .admin-sidebar__footer,
  .admin-inline-form,
  .admin-inline-form--compact,
  .admin-actions-row,
  .admin-campaign-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-grid,
  .admin-presets-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-hero__headline,
  .admin-dashboard-hero__metrics {
    grid-template-columns: 1fr;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .admin-table td {
    padding: 10px 0;
    border: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: rgba(245, 239, 226, 0.82);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .admin-table__empty {
    text-align: left;
  }

  .admin-button,
  .admin-inline-form input,
  .admin-inline-form select,
  .admin-campaign-form input,
  .admin-campaign-form select,
  .admin-campaign-form textarea {
    width: 100%;
  }

  .push-prompt__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-shell {
    width: min(100%, calc(100% - 12px));
  }

  .admin-content__header,
  .admin-panel {
    border-radius: 22px;
  }

  .admin-screen-donut {
    width: 152px;
  }

  .admin-screen-legend__head {
    grid-template-columns: auto 1fr;
  }

  .admin-screen-legend__head span:last-child {
    grid-column: 2;
  }

  .admin-top-user-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-top-user-row__value {
    justify-self: start;
  }

  .admin-dashboard-hero,
  .admin-content__header,
  .admin-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
}

body.admin-page {
  --admin-bg: #f3f5f7;
  --admin-surface: #ffffff;
  --admin-surface-muted: #f8fafc;
  --admin-border: #d9e0e7;
  --admin-border-strong: #c4ced8;
  --admin-text: #0f172a;
  --admin-text-muted: #5b6776;
  --admin-accent: #2563eb;
  --admin-success: #0f766e;
  --admin-warning: #b45309;
  --admin-danger: #b42318;
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

body.admin-page::before,
body.admin-page::after {
  display: none;
}

body.admin-page.admin-user-detail-open {
  overflow: hidden;
}

.admin-page .auth-screen {
  background: linear-gradient(180deg, rgba(243, 245, 247, 0.96), rgba(236, 240, 244, 0.96));
  backdrop-filter: none;
}

.admin-page .auth-screen__panel,
.admin-page .panel {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: none;
}

.admin-page .auth-screen__panel {
  max-width: 460px;
  border-radius: 20px;
}

.admin-page .auth-screen__tag,
.admin-page .eyebrow,
.admin-page .admin-stat-card__label,
.admin-page .admin-hero-card__eyebrow,
.admin-page .admin-insight-card__label {
  color: var(--admin-text-muted);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.admin-page .auth-screen__copy,
.admin-page .admin-panel__hint,
.admin-page .admin-status,
.admin-page .admin-empty-state,
.admin-page .admin-user-card__meta,
.admin-page .admin-activity-item span,
.admin-page .admin-top-user-row__email,
.admin-page .admin-screen-legend__count,
.admin-page .admin-hero-card__copy,
.admin-page .admin-insight-card__detail,
.admin-page .admin-hero-metric span {
  color: var(--admin-text-muted);
}

.admin-page h1,
.admin-page h2,
.admin-page h3,
.admin-page h4,
.admin-page strong,
.admin-page .admin-stat-card__value,
.admin-page .admin-top-user-row__name,
.admin-page .admin-screen-legend__head strong,
.admin-page .admin-trend-stat strong,
.admin-page .admin-overview-metric strong {
  color: var(--admin-text);
}

.admin-page .brand-mark {
  border-radius: 16px;
  border-color: var(--admin-border);
  background: var(--admin-surface-muted);
  box-shadow: none;
}

.admin-page .brand-mark::before,
.admin-page .brand-mark::after,
.admin-page .brand-mark__word--bottom::after {
  display: none;
}

.admin-page .brand-mark__word--top {
  color: var(--admin-text-muted);
  letter-spacing: 0.16em;
}

.admin-page .brand-mark__word--bottom {
  background: none;
  color: var(--admin-text);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
}

.admin-page .admin-shell {
  width: min(1540px, calc(100% - 32px));
  padding-top: 24px;
}

.admin-page .admin-sidebar {
  border-radius: 20px;
  gap: 20px;
}

.admin-page .admin-sidebar__item {
  border-color: transparent;
  background: transparent;
  color: var(--admin-text-muted);
  font-weight: 500;
}

.admin-page .admin-sidebar__item:hover {
  background: var(--admin-surface-muted);
  color: var(--admin-text);
  transform: none;
}

.admin-page .admin-sidebar__item.is-active {
  background: #eef4ff;
  border-color: #cfe0ff;
  color: #123a8c;
}

.admin-page .admin-content__header {
  border-radius: 20px;
  margin-bottom: 0;
}

.admin-page .admin-panel {
  border-radius: 20px;
}

.admin-page .admin-panel__head {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-page .admin-panel__head--compact {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-page .admin-overview-strip {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: start;
}

.admin-page .admin-overview-strip__content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-page .admin-overview-strip__content h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
}

.admin-page .admin-overview-strip__meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-page .admin-overview-metric {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: var(--admin-surface-muted);
  min-width: 0;
}

.admin-page .admin-overview-metric span {
  color: var(--admin-text-muted);
  font-size: 0.78rem;
}

.admin-page .admin-overview-metric strong {
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-page .admin-dashboard-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
}

.admin-page .admin-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-page .admin-stat-card__delta {
  font-size: 0.8rem;
  line-height: 1.4;
}

.admin-page .admin-stat-card__delta--positive {
  color: var(--admin-success);
}

.admin-page .admin-stat-card__delta--negative {
  color: var(--admin-danger);
}

.admin-page .admin-stat-card__delta--neutral {
  color: var(--admin-text-muted);
}

.admin-page .admin-stat-card,
.admin-page .admin-metric-pill,
.admin-page .admin-user-card,
.admin-page .admin-preset-card,
.admin-page .admin-campaign-card,
.admin-page .admin-activity-item,
.admin-page .admin-ranking-card,
.admin-page .admin-webhook-card {
  background: var(--admin-surface);
  border-color: var(--admin-border);
  box-shadow: none;
}

.admin-page .admin-stat-card {
  min-height: 0;
  gap: 8px;
  border-radius: 16px;
}

.admin-page .admin-stat-card__value {
  font-size: 1.5rem;
}

.admin-page .admin-metric-pill {
  border-radius: 14px;
  padding: 14px 16px;
}

.admin-page .admin-insights-list {
  gap: 12px;
}

.admin-page .admin-clients-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.admin-page .admin-user-grid--list {
  gap: 12px;
  grid-template-columns: 1fr;
}

.admin-page .admin-user-list-item,
.admin-page .admin-user-detail,
.admin-page .admin-user-metric-card,
.admin-page .admin-detail-panel {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
}

.admin-page .admin-user-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.admin-page .admin-user-list-item:hover,
.admin-page .admin-user-list-item.is-selected {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.admin-page .admin-user-list-item__avatar,
.admin-page .admin-user-detail__avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e8eef8;
  color: #163b71;
  font-weight: 700;
}

.admin-page .admin-user-list-item__body,
.admin-page .admin-user-list-item__head,
.admin-page .admin-user-list-item__meta,
.admin-page .admin-user-detail,
.admin-page .admin-user-detail__header,
.admin-page .admin-user-detail__identity,
.admin-page .admin-user-detail__badges,
.admin-page .admin-user-detail__editor,
.admin-page .admin-user-detail__metrics,
.admin-page .admin-user-detail__grid,
.admin-page .admin-detail-panel__head,
.admin-page .admin-mini-bars,
.admin-page .admin-compact-list,
.admin-page .admin-user-detail__activity {
  display: grid;
  gap: 12px;
}

.admin-page .admin-user-list-item__head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.admin-page .admin-user-list-item__head p,
.admin-page .admin-user-detail__identity p {
  color: var(--admin-text-muted);
  overflow-wrap: anywhere;
}

.admin-page .admin-user-list-item__status,
.admin-page .admin-user-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-page .admin-user-list-item__meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: var(--admin-text-muted);
  font-size: 0.86rem;
}

.admin-page .admin-inline-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--admin-border);
  background: #f8fafc;
  color: var(--admin-text);
  font-size: 0.78rem;
  white-space: nowrap;
}

.admin-page .admin-inline-pill--active,
.admin-page .admin-inline-pill--high {
  background: #ecfdf3;
  border-color: #b7e4c7;
  color: #166534;
}

.admin-page .admin-inline-pill--warm,
.admin-page .admin-inline-pill--medium {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.admin-page .admin-inline-pill--idle,
.admin-page .admin-inline-pill--low {
  background: #f8fafc;
  border-color: var(--admin-border);
  color: var(--admin-text-muted);
}

.admin-page .admin-user-detail {
  padding: 20px;
  border-radius: 18px;
  position: sticky;
  top: 24px;
}

.admin-page .admin-user-detail__header,
.admin-page .admin-user-detail__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.admin-page .admin-user-detail__identity {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.admin-page .admin-user-detail__editor {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.admin-page .admin-actions-row--detail {
  margin-top: 0;
}

.admin-page .admin-user-detail__metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-page .admin-user-metric-card,
.admin-page .admin-detail-panel {
  padding: 16px;
  border-radius: 16px;
}

.admin-page .admin-user-metric-card {
  display: grid;
  gap: 6px;
  background: var(--admin-surface-muted);
}

.admin-page .admin-user-metric-card span,
.admin-page .admin-user-metric-card small,
.admin-page .admin-detail-panel__head span,
.admin-page .admin-mini-bars__label,
.admin-page .admin-mini-bars__value,
.admin-page .admin-compact-list__row span,
.admin-page .admin-user-activity-row span {
  color: var(--admin-text-muted);
}

.admin-page .admin-user-metric-card strong {
  font-size: 1.35rem;
}

.admin-page .admin-detail-panel__head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-page .admin-mini-bars {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  min-height: 180px;
}

.admin-page .admin-mini-bars__item {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.admin-page .admin-mini-bars__track {
  width: 100%;
  height: 108px;
  border-radius: 999px;
  background: #eef2f7;
  display: grid;
  align-items: end;
  padding: 6px;
}

.admin-page .admin-mini-bars__fill {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  min-height: 8px;
}

.admin-page .admin-compact-list__row,
.admin-page .admin-user-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--admin-border);
}

.admin-page .admin-user-activity-row {
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto) auto;
}

.admin-page .admin-compact-list__row:last-child,
.admin-page .admin-user-activity-row:last-child {
  border-bottom: 0;
}

.admin-page .admin-insight-card {
  padding: 16px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: var(--admin-surface);
}

.admin-page .admin-insight-card--positive {
  border-left: 4px solid #0f766e;
}

.admin-page .admin-insight-card--warning {
  border-left: 4px solid #b45309;
}

.admin-page .admin-insight-card--danger {
  border-left: 4px solid #b42318;
}

.admin-page .admin-top-user-row,
.admin-page .admin-screen-legend__item,
.admin-page .admin-trend-stat {
  border-color: var(--admin-border);
  background: var(--admin-surface-muted);
}

.admin-page .admin-top-user-row__rank,
.admin-page .admin-top-user-row__value,
.admin-page .admin-status-pill,
.admin-page .admin-user-usage-card__rank {
  background: #eef2f7;
  border-color: var(--admin-border);
  color: var(--admin-text);
}

.admin-page .admin-top-user-row__value {
  white-space: normal;
}

.admin-page .admin-screen-visual {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
}

.admin-page .admin-screen-donut {
  box-shadow: none;
}

.admin-page .admin-screen-donut__center {
  background: var(--admin-surface);
  border-color: var(--admin-border);
  box-shadow: none;
}

.admin-page .admin-trend-chart__surface,
.admin-page .admin-table-wrap {
  background: var(--admin-surface-muted);
  border-color: var(--admin-border);
}

.admin-page .admin-trend-chart__grid {
  stroke: #dbe4ee;
}

.admin-page .admin-trend-chart__label {
  fill: #64748b;
}

.admin-page .admin-table th {
  color: var(--admin-text-muted);
}

.admin-page .admin-table td {
  color: var(--admin-text);
}

.admin-page .admin-table tbody tr:hover {
  background: #f8fafc;
}

.admin-page .admin-button {
  background: #111827;
  color: #ffffff;
  box-shadow: none;
}

.admin-page .admin-button:hover {
  transform: none;
  filter: none;
  background: #1f2937;
}

.admin-page .admin-button--ghost {
  background: var(--admin-surface);
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
}

.admin-page .admin-button--danger {
  background: #b42318;
}

.admin-page .admin-select-inline {
  display: grid;
  gap: 6px;
  min-width: 160px;
}

.admin-page .admin-select-inline span {
  color: var(--admin-text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-page .admin-select-inline select,
.admin-page .admin-select-inline input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: var(--admin-text);
  outline: none;
}

.admin-page .admin-select-inline select:focus,
.admin-page .admin-select-inline input:focus {
  border-color: #8fb6ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.admin-page .admin-inline-form input,
.admin-page .admin-inline-form select,
.admin-page .admin-inline-form textarea,
.admin-page .admin-user-card input,
.admin-page .admin-preset-card input,
.admin-page .admin-preset-card textarea,
.admin-page .admin-campaign-form input,
.admin-page .admin-campaign-form select,
.admin-page .admin-campaign-form textarea,
.admin-page .auth-form input {
  background: #ffffff;
  color: var(--admin-text);
  border-color: var(--admin-border);
}

.admin-page #admin-user-search-form {
  grid-template-columns: minmax(260px, 1.4fr) minmax(190px, 0.8fr);
  align-items: end;
}

.admin-page .admin-search-field__icon {
  color: var(--admin-text-muted);
}

.admin-page .admin-search-field input {
  background: var(--admin-surface-muted);
}

.admin-page .admin-inline-form input:focus,
.admin-page .admin-inline-form select:focus,
.admin-page .admin-user-card input:focus,
.admin-page .admin-preset-card input:focus,
.admin-page .admin-preset-card textarea:focus,
.admin-page .admin-campaign-form input:focus,
.admin-page .admin-campaign-form select:focus,
.admin-page .admin-campaign-form textarea:focus,
.admin-page .auth-form input:focus {
  border-color: #8fb6ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.admin-page .auth-form button {
  background: #111827;
  box-shadow: none;
}

.admin-page .admin-status-pill--approved {
  background: #ecfdf3;
  border-color: #b7e4c7;
  color: #166534;
}

.admin-page .admin-status-pill--pending {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.admin-page .admin-status-pill--rejected,
.admin-page .admin-status-pill--refunded {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.admin-page .admin-status-pill--unknown {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.admin-page .admin-summary-grid {
  gap: 14px;
}

.admin-page .admin-stat-card {
  padding: 18px;
  border-radius: 14px;
}

.admin-page .admin-metric-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-surface-muted);
}

.admin-page .admin-metric-card__label,
.admin-page .admin-watchlist-row__label {
  color: var(--admin-text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-page .admin-metric-card__value,
.admin-page .admin-watchlist-row__value {
  font-size: 1rem;
  line-height: 1.3;
}

.admin-page .admin-metric-card__note,
.admin-page .admin-watchlist-row__detail {
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-page .admin-watchlist-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--admin-border);
}

.admin-page .admin-watchlist-row:last-child {
  border-bottom: 0;
}

.admin-page .admin-watchlist-row__marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  background: #94a3b8;
}

.admin-page .admin-watchlist-row--positive .admin-watchlist-row__marker {
  background: #15803d;
}

.admin-page .admin-watchlist-row--warning .admin-watchlist-row__marker {
  background: #d97706;
}

.admin-page .admin-watchlist-row--danger .admin-watchlist-row__marker {
  background: #dc2626;
}

.admin-page .admin-trend-chart__surface {
  background: #fbfcfe;
}

.admin-page .admin-trend-chart__area {
  fill: rgba(37, 99, 235, 0.08);
}

.admin-page .admin-trend-chart__line {
  stroke: #2563eb;
  filter: none;
}

.admin-page .admin-trend-chart__dot {
  fill: #ffffff;
  stroke: #2563eb;
}

.admin-page .admin-trend-chart__dot-halo {
  fill: rgba(37, 99, 235, 0.08);
}

.admin-page .admin-ranked-list {
  display: grid;
  gap: 12px;
}

.admin-page .admin-ranked-list__row {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-surface-muted);
}

.admin-page .admin-ranked-list__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-page .admin-ranked-list__rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e8eef8;
  color: #163b71;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-page .admin-ranked-list__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-page .admin-ranked-list__body span {
  color: var(--admin-text-muted);
}

.admin-page .admin-ranked-list__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #e5eaf0;
  overflow: hidden;
}

.admin-page .admin-ranked-list__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.admin-page .admin-list-shell {
  display: grid;
  gap: 10px;
}

.admin-page .admin-list-header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.6fr) minmax(220px, 0.7fr);
  gap: 16px;
  padding: 0 6px 8px;
  color: var(--admin-text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-page .admin-user-list-item {
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.6fr) minmax(220px, 0.7fr);
  align-items: center;
}

.admin-page .admin-user-list-item__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.admin-page .admin-user-list-item__snapshot {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  color: var(--admin-text-muted);
  font-size: 0.84rem;
}

.admin-page .admin-user-detail__header--dense {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-page .admin-user-detail {
  gap: 18px;
}

.admin-page .admin-user-detail__metrics {
  gap: 12px;
}

.admin-page .admin-user-metric-card {
  border-radius: 14px;
}

.admin-page .admin-detail-panel {
  gap: 14px;
}

.admin-page .admin-user-activity-row strong,
.admin-page .admin-compact-list__row strong {
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .admin-page .admin-overview-strip,
  .admin-page .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-clients-layout,
  .admin-page .admin-user-detail__header,
  .admin-page .admin-user-detail__grid,
  .admin-page .admin-user-detail__metrics,
  .admin-page .admin-user-detail__editor {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-user-detail {
    position: static;
  }
}

@media (max-width: 720px) {
  .admin-page .admin-overview-strip__meta {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-list-header,
  .admin-page .admin-user-list-item {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-user-list-item__head,
  .admin-page .admin-user-list-item__meta,
  .admin-page .admin-mini-bars,
  .admin-page .admin-user-activity-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 768px) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  body::after,
  .tarot-back__glow,
  .tarot-face__halo,
  .loading-dots span,
  .chat-credit-action::after {
    animation: none !important;
  }

  .hero-panel,
  .panel,
  .daily-card,
  .chat-message,
  .tarot-reading,
  .tarot-flip__inner,
  .topbar-badge,
  .nav-card {
    transition: none !important;
  }

  .auth-screen,
  .push-prompt,
  .treatment-prompt,
  .panel,
  .credits-plan,
  .chat-credit-bar,
  .tabbar {
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit,
  .orbit-stars-ring-1,
  .orbit-stars-ring-2,
  .hero-stars span,
  .sigil-core {
    animation: none !important;
  }
}

body.admin-page {
  --admin-bg: #0a0f1a;
  --admin-surface: #111827;
  --admin-surface-muted: #0f1728;
  --admin-surface-soft: #162033;
  --admin-border: #25324a;
  --admin-border-strong: #334564;
  --admin-text: #e6edf7;
  --admin-text-muted: #97a6c0;
  --admin-accent: #7aa2ff;
  --admin-accent-strong: #4f7cff;
  --admin-success: #37c38f;
  --admin-warning: #e6b15a;
  --admin-danger: #f07d7d;
  color-scheme: dark;
  background:
    radial-gradient(circle at top left, rgba(200, 149, 69, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(31, 41, 55, 0.44), transparent 22%),
    linear-gradient(180deg, #09111f 0%, #0a0f1a 100%);
  color: var(--admin-text);
}

body.admin-page::before,
body.admin-page::after {
  display: none;
}

.admin-page,
.admin-page .panel,
.admin-page .admin-panel,
.admin-page .admin-content__header,
.admin-page .admin-sidebar,
.admin-page .admin-user-detail,
.admin-page .admin-detail-panel,
.admin-page .admin-user-metric-card,
.admin-page .admin-stat-card,
.admin-page .admin-metric-card,
.admin-page .admin-metric-pill,
.admin-page .admin-activity-item,
.admin-page .admin-ranked-list__row,
.admin-page .admin-top-user-row,
.admin-page .admin-webhook-card {
  color: var(--admin-text);
}

.admin-page .panel,
.admin-page .admin-panel,
.admin-page .admin-content__header,
.admin-page .admin-sidebar,
.admin-page .admin-user-detail,
.admin-page .admin-detail-panel,
.admin-page .admin-user-metric-card,
.admin-page .admin-stat-card,
.admin-page .admin-metric-card,
.admin-page .admin-metric-pill,
.admin-page .admin-activity-item,
.admin-page .admin-ranked-list__row,
.admin-page .admin-top-user-row,
.admin-page .admin-webhook-card,
.admin-page .admin-trend-chart__surface,
.admin-page .admin-table-wrap {
  background: rgba(20, 16, 10, 0.92);
  border-color: var(--admin-border);
  box-shadow: none;
}

.admin-page .admin-sidebar,
.admin-page .admin-main,
.admin-page .admin-table-wrap,
.admin-page .admin-user-detail,
.admin-page .admin-user-detail__activity {
  scrollbar-width: none;
  scrollbar-color: rgba(217, 168, 90, 0.72) rgba(20, 16, 10, 0.92);
}

.admin-page .admin-sidebar.admin-scroll-active,
.admin-page .admin-main.admin-scroll-active,
.admin-page .admin-table-wrap.admin-scroll-active,
.admin-page .admin-user-detail.admin-scroll-active,
.admin-page .admin-user-detail__activity.admin-scroll-active {
  scrollbar-width: thin;
}

.admin-page .admin-sidebar::-webkit-scrollbar,
.admin-page .admin-main::-webkit-scrollbar,
.admin-page .admin-table-wrap::-webkit-scrollbar,
.admin-page .admin-user-detail::-webkit-scrollbar,
.admin-page .admin-user-detail__activity::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.admin-page .admin-sidebar::-webkit-scrollbar-track,
.admin-page .admin-main::-webkit-scrollbar-track,
.admin-page .admin-table-wrap::-webkit-scrollbar-track,
.admin-page .admin-user-detail::-webkit-scrollbar-track,
.admin-page .admin-user-detail__activity::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.admin-page .admin-sidebar::-webkit-scrollbar-thumb,
.admin-page .admin-main::-webkit-scrollbar-thumb,
.admin-page .admin-table-wrap::-webkit-scrollbar-thumb,
.admin-page .admin-user-detail::-webkit-scrollbar-thumb,
.admin-page .admin-user-detail__activity::-webkit-scrollbar-thumb {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
}

.admin-page .admin-sidebar.admin-scroll-active::-webkit-scrollbar-track,
.admin-page .admin-main.admin-scroll-active::-webkit-scrollbar-track,
.admin-page .admin-table-wrap.admin-scroll-active::-webkit-scrollbar-track,
.admin-page .admin-user-detail.admin-scroll-active::-webkit-scrollbar-track,
.admin-page .admin-user-detail__activity.admin-scroll-active::-webkit-scrollbar-track {
  background: rgba(20, 16, 10, 0.9);
}

.admin-page .admin-sidebar.admin-scroll-active::-webkit-scrollbar-thumb,
.admin-page .admin-main.admin-scroll-active::-webkit-scrollbar-thumb,
.admin-page .admin-table-wrap.admin-scroll-active::-webkit-scrollbar-thumb,
.admin-page .admin-user-detail.admin-scroll-active::-webkit-scrollbar-thumb,
.admin-page .admin-user-detail__activity.admin-scroll-active::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(200, 149, 69, 0.72), rgba(217, 168, 90, 0.52));
  border: 2px solid rgba(20, 16, 10, 0.9);
}

.admin-page .admin-sidebar.admin-scroll-active::-webkit-scrollbar-thumb:hover,
.admin-page .admin-main.admin-scroll-active::-webkit-scrollbar-thumb:hover,
.admin-page .admin-table-wrap.admin-scroll-active::-webkit-scrollbar-thumb:hover,
.admin-page .admin-user-detail.admin-scroll-active::-webkit-scrollbar-thumb:hover,
.admin-page .admin-user-detail__activity.admin-scroll-active::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(217, 168, 90, 0.88), rgba(200, 149, 69, 0.68));
}

.admin-page .admin-sidebar::-webkit-scrollbar-corner,
.admin-page .admin-main::-webkit-scrollbar-corner,
.admin-page .admin-table-wrap::-webkit-scrollbar-corner,
.admin-page .admin-user-detail::-webkit-scrollbar-corner,
.admin-page .admin-user-detail__activity::-webkit-scrollbar-corner {
  background: transparent;
}

.admin-page .admin-shell {
  width: min(1600px, calc(100% - 32px));
}

.admin-page .admin-sidebar,
.admin-page .admin-content__header,
.admin-page .admin-panel {
  border-radius: 22px;
}

.admin-page .admin-sidebar {
  background: rgba(20, 16, 10, 0.96);
}

.admin-page .admin-sidebar__item {
  color: var(--admin-text-muted);
}

.admin-page .admin-sidebar__item:hover {
  background: rgba(217, 168, 90, 0.08);
  color: var(--admin-text);
}

.admin-page .admin-sidebar__item.is-active {
  background: rgba(217, 168, 90, 0.14);
  border-color: rgba(217, 168, 90, 0.24);
  color: #dce7ff;
}

@media (min-width: 1201px) {
  .admin-page .admin-sidebar {
    top: 12px;
    height: calc(100vh - 24px);
    padding: 16px 16px 18px;
    gap: 16px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .admin-page .admin-sidebar__brand {
    gap: 12px;
  }

  .admin-page .admin-sidebar__nav {
    gap: 14px;
    align-content: start;
  }

  .admin-page .admin-sidebar__group {
    gap: 9px;
  }

  .admin-page .admin-sidebar .brand-mark {
    gap: 1px;
    padding: 8px 16px 9px;
    border-radius: 14px;
  }

  .admin-page .admin-sidebar .brand-mark__word--top {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    padding-left: 0.2em;
  }

  .admin-page .admin-sidebar .brand-mark__word--bottom {
    font-size: 1.18rem;
    letter-spacing: 0.08em;
  }

  .admin-page .admin-sidebar .admin-panel__hint,
  .admin-page .admin-sidebar .eyebrow {
    font-size: 0.66rem;
    line-height: 1.3;
  }

  .admin-page .admin-sidebar__item {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.84rem;
    line-height: 1.24;
  }

  .admin-page .admin-sidebar__footer {
    gap: 11px;
    margin-top: 0;
  }

  .admin-page .admin-sidebar__footer .admin-button {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

.admin-page .admin-segmented-control__item {
  border-color: var(--admin-border);
  background: rgba(20, 16, 10, 0.92);
  color: var(--admin-text-muted);
}

.admin-page .admin-segmented-control__item:hover {
  color: var(--admin-text);
  border-color: rgba(217, 168, 90, 0.28);
}

.admin-page .admin-segmented-control__item.is-active {
  color: #dce7ff;
  border-color: rgba(217, 168, 90, 0.32);
  background: rgba(217, 168, 90, 0.16);
}

.admin-page .brand-mark,
.admin-page .admin-overview-metric,
.admin-page .admin-metric-card,
.admin-page .admin-user-metric-card,
.admin-page .admin-top-user-row,
.admin-page .admin-ranked-list__row,
.admin-page .admin-activity-item {
  background: rgba(20, 16, 10, 0.92);
  border-color: var(--admin-border);
}

.admin-page .brand-mark__word--top,
.admin-page .eyebrow,
.admin-page .admin-panel__hint,
.admin-page .admin-status,
.admin-page .admin-empty-state,
.admin-page .admin-user-card__meta,
.admin-page .admin-activity-item span,
.admin-page .admin-top-user-row__email,
.admin-page .admin-watchlist-row__detail,
.admin-page .admin-metric-card__note,
.admin-page .admin-metric-card__label,
.admin-page .admin-select-inline span,
.admin-page .admin-list-header,
.admin-page .admin-user-row__email,
.admin-page .admin-user-row__meta,
.admin-page .admin-user-row__archetype,
.admin-page .admin-user-row__metric span,
.admin-page .admin-user-list-item__meta,
.admin-page .admin-user-list-item__snapshot,
.admin-page .admin-user-metric-card span,
.admin-page .admin-user-metric-card small,
.admin-page .admin-detail-panel__head span,
.admin-page .admin-mini-bars__label,
.admin-page .admin-mini-bars__value,
.admin-page .admin-compact-list__row span,
.admin-page .admin-user-activity-row span,
.admin-page .admin-trend-chart__label,
.admin-page .admin-table th,
.admin-page .admin-table__empty {
  color: var(--admin-text-muted);
}

.admin-page h1,
.admin-page h2,
.admin-page h3,
.admin-page h4,
.admin-page strong,
.admin-page .admin-stat-card__value,
.admin-page .admin-watchlist-row__value,
.admin-page .admin-metric-card__value,
.admin-page .admin-user-row__metric strong,
.admin-page .admin-user-row__title strong,
.admin-page .admin-ranked-list__body strong,
.admin-page .admin-screen-legend__head strong,
.admin-page .admin-top-user-row__name,
.admin-page .admin-table td {
  color: var(--admin-text);
}

.admin-page .admin-button {
  background: #dbe7ff;
  color: #0d1728;
}

.admin-page .admin-button:hover {
  background: #edf3ff;
}

.admin-page .admin-button--ghost {
  background: rgba(20, 16, 10, 0.92);
  color: var(--admin-text);
  border-color: var(--admin-border);
}

.admin-page .admin-button--danger {
  background: #9f2f2f;
  color: #fff3f3;
}

.admin-page .admin-select-inline select,
.admin-page .admin-inline-form input,
.admin-page .admin-inline-form select,
.admin-page .admin-inline-form textarea,
.admin-page .admin-user-card input,
.admin-page .admin-preset-card input,
.admin-page .admin-preset-card textarea,
.admin-page .admin-campaign-form input,
.admin-page .admin-campaign-form select,
.admin-page .admin-campaign-form textarea,
.admin-page .auth-form input {
  background: #0d1525;
  color: var(--admin-text);
  border-color: var(--admin-border);
}

.admin-page .admin-select-inline select:focus,
.admin-page .admin-inline-form input:focus,
.admin-page .admin-inline-form select:focus,
.admin-page .admin-user-card input:focus,
.admin-page .admin-preset-card input:focus,
.admin-page .admin-preset-card textarea:focus,
.admin-page .admin-campaign-form input:focus,
.admin-page .admin-campaign-form select:focus,
.admin-page .admin-campaign-form textarea:focus,
.admin-page .auth-form input:focus {
  border-color: rgba(217, 168, 90, 0.75);
  box-shadow: 0 0 0 4px rgba(217, 168, 90, 0.12);
}

.admin-page .admin-summary-grid,
.admin-page .admin-dashboard-grid,
.admin-page .admin-two-column,
.admin-page .admin-clients-layout {
  gap: 24px;
}

.admin-page .admin-clients-layout {
  grid-template-columns: 1fr;
}

.admin-page .admin-list-shell {
  gap: 12px;
}

.admin-page .admin-list-header {
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 0.9fr) minmax(320px, 1fr);
  padding: 0 8px;
}

.admin-page .admin-list-shell .admin-user-list-item {
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(20, 16, 10, 0.94);
}

.admin-page .admin-list-shell .admin-user-list-item:hover,
.admin-page .admin-list-shell .admin-user-list-item.is-selected {
  background: rgba(19, 31, 52, 0.98);
  border-color: rgba(217, 168, 90, 0.38);
}

.admin-page .admin-list-shell .admin-user-list-item:focus-visible {
  outline: 2px solid rgba(217, 168, 90, 0.55);
  outline-offset: 2px;
}

.admin-page .admin-user-row__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.admin-page .admin-user-row__content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-page .admin-user-row__title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  min-width: 0;
}

.admin-page .admin-user-row__title strong,
.admin-page .admin-user-row__email,
.admin-page .admin-user-row__meta span,
.admin-page .admin-user-row__archetype {
  overflow-wrap: anywhere;
}

.admin-page .admin-user-row__email {
  margin: 0;
}

.admin-page .admin-user-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.84rem;
}

.admin-page .admin-user-row__archetype {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(217, 168, 90, 0.18);
  background: rgba(217, 168, 90, 0.08);
  font-size: 0.74rem;
}

.admin-page .admin-user-row__signals,
.admin-page .admin-user-list-item__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
}

.admin-page .admin-inline-pill {
  background: rgba(20, 16, 10, 0.96);
  border-color: var(--admin-border-strong);
  color: var(--admin-text);
}

.admin-page .admin-inline-pill--active,
.admin-page .admin-inline-pill--high {
  background: rgba(55, 195, 143, 0.12);
  border-color: rgba(55, 195, 143, 0.3);
  color: #9fe4c8;
}

.admin-page .admin-inline-pill--warm,
.admin-page .admin-inline-pill--medium {
  background: rgba(230, 177, 90, 0.12);
  border-color: rgba(230, 177, 90, 0.3);
  color: #f5d598;
}

.admin-page .admin-inline-pill--idle,
.admin-page .admin-inline-pill--low {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.22);
  color: #b3bfd3;
}

.admin-page .admin-user-row__snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.admin-page .admin-user-row__metric {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: rgba(10, 8, 5, 0.86);
  text-align: left;
  min-width: 0;
}

.admin-page .admin-user-list-item__avatar,
.admin-page .admin-user-detail__avatar,
.admin-page .admin-ranked-list__rank,
.admin-page .admin-top-user-row__rank {
  background: rgba(217, 168, 90, 0.12);
  color: #dce7ff;
  border: 1px solid rgba(217, 168, 90, 0.18);
}

.admin-page .admin-user-detail {
  position: static;
  gap: 20px;
  padding: 0;
  background: transparent;
  border: 0;
}

.admin-page .admin-user-detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.admin-page .admin-user-detail-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.admin-page .admin-user-detail-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.66);
  backdrop-filter: blur(4px);
}

.admin-page .admin-user-detail-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(820px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.98) 0%, rgba(20, 16, 10, 0.98) 100%);
  border-left: 1px solid var(--admin-border);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.32);
  transform: translateX(32px);
  transition: transform 180ms ease;
}

.admin-page .admin-user-detail-drawer.is-open .admin-user-detail-drawer__panel {
  transform: translateX(0);
}

.admin-page .admin-user-detail-drawer__topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--admin-border);
  background: rgba(20, 16, 10, 0.96);
}

.admin-page .admin-user-detail-drawer__topbar h3 {
  font-size: 1.1rem;
}

.admin-page .admin-user-detail-drawer .admin-user-detail {
  height: 100%;
  overflow: auto;
  padding: 24px 28px 32px;
}

.admin-page .admin-user-detail__header--dense,
.admin-page .admin-detail-panel__head,
.admin-page .admin-panel__head {
  border-bottom-color: var(--admin-border);
}

.admin-page .admin-user-detail__metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-page .admin-user-metric-card {
  background: rgba(10, 8, 5, 0.88);
}

.admin-page .admin-detail-panel {
  background: rgba(20, 16, 10, 0.96);
}

.admin-page .admin-mini-bars__track,
.admin-page .admin-ranked-list__track {
  background: rgba(37, 50, 74, 0.9);
}

.admin-page .admin-mini-bars__fill,
.admin-page .admin-ranked-list__fill {
  background: linear-gradient(180deg, #7aa2ff 0%, #4f7cff 100%);
}

.admin-page .admin-trend-chart__surface {
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.96) 0%, rgba(20, 16, 10, 0.96) 100%);
}

.admin-page .admin-trend-chart__grid {
  stroke: rgba(151, 166, 192, 0.16);
}

.admin-page .admin-trend-chart__area {
  fill: url(#trend-area-fill);
}

.admin-page .admin-trend-chart__line {
  stroke: url(#trend-line-stroke);
}

.admin-page .admin-trend-chart__dot {
  fill: #0f1728;
  stroke: #7aa2ff;
}

.admin-page .admin-trend-chart__dot-halo {
  fill: rgba(217, 168, 90, 0.14);
}

.admin-page .admin-top-user-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(20, 16, 10, 0.94);
}

.admin-page .admin-top-user-row__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-page .admin-top-user-row__name,
.admin-page .admin-top-user-row__email {
  overflow-wrap: anywhere;
}

.admin-page .admin-top-user-row__value {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 168, 90, 0.18);
  background: rgba(217, 168, 90, 0.08);
  color: #dce7ff;
}

.admin-page .admin-table tbody tr:hover {
  background: rgba(217, 168, 90, 0.06);
}

.admin-page .admin-watchlist-row,
.admin-page .admin-compact-list__row,
.admin-page .admin-user-activity-row {
  border-bottom-color: var(--admin-border);
}

.admin-page .admin-empty-state {
  padding: 24px;
  border: 1px dashed rgba(151, 166, 192, 0.2);
  border-radius: 16px;
  background: rgba(20, 16, 10, 0.72);
}

@media (max-width: 1280px) {
  .admin-page .admin-list-header {
    display: none;
  }

  .admin-page .admin-user-detail__metrics {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-list-shell .admin-user-list-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .admin-page .admin-user-row__snapshot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-page .admin-clients-layout,
  .admin-page .admin-user-detail__grid,
  .admin-page .admin-user-detail__editor,
  .admin-page .admin-user-detail__metrics {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-user-detail__header,
  .admin-page .admin-user-detail-drawer__topbar,
  .admin-page .admin-top-user-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-page .admin-list-header {
    display: none;
  }

  .admin-page .admin-user-detail-drawer__panel {
    width: 100%;
    max-width: 100%;
  }

  .admin-page .admin-list-shell .admin-user-list-item {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-user-row__snapshot {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-page .admin-mini-bars,
  .admin-page .admin-user-activity-row {
    grid-template-columns: 1fr;
  }
}

.admin-page .admin-presets-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: start;
}

.admin-page .admin-preset-card {
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(20, 16, 10, 0.94);
}

.admin-page .admin-preset-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.admin-page .admin-preset-card__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-page .admin-preset-card__title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-page .admin-preset-card__identity strong,
.admin-page .admin-preset-card__title span,
.admin-page .admin-preset-card__summary {
  overflow-wrap: anywhere;
}

.admin-page .admin-preset-card__title span,
.admin-page .admin-preset-card__summary {
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-page .admin-preset-card__summary {
  margin: 0;
}

.admin-page .admin-preset-card__slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 168, 90, 0.2);
  background: rgba(217, 168, 90, 0.08);
  color: #dce7ff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-page .admin-toggle {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
  justify-self: end;
}

.admin-page .admin-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-page .admin-toggle__switch {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(20, 16, 10, 0.96);
  transition: background 180ms ease, border-color 180ms ease;
}

.admin-page .admin-toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c8d3e7;
  transition: transform 180ms ease, background 180ms ease;
}

.admin-page .admin-toggle input:checked + .admin-toggle__switch {
  background: rgba(55, 195, 143, 0.18);
  border-color: rgba(55, 195, 143, 0.35);
}

.admin-page .admin-toggle input:checked + .admin-toggle__switch::after {
  transform: translateX(22px);
  background: #9fe4c8;
}

.admin-page .admin-toggle input:focus-visible + .admin-toggle__switch {
  outline: 2px solid rgba(217, 168, 90, 0.5);
  outline-offset: 2px;
}

.admin-page .admin-toggle__copy {
  display: grid;
  gap: 2px;
  min-width: 152px;
}

.admin-page .admin-toggle__copy strong {
  font-size: 0.9rem;
}

.admin-page .admin-toggle__copy small {
  color: var(--admin-text-muted);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .admin-page .admin-preset-card__top {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-toggle {
    justify-self: start;
  }

  .admin-page .admin-toggle__copy {
    min-width: 0;
  }
}

.admin-page .admin-ai-hero {
  margin-bottom: 18px;
}

.admin-page .admin-ai-hero__card,
.admin-page .admin-ai-opportunity-card,
.admin-page .admin-ai-pattern-card,
.admin-page .admin-ai-segment-row,
.admin-page .admin-ai-journey-row {
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: rgba(20, 16, 10, 0.94);
}

.admin-page .admin-ai-hero__card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.admin-page .admin-ai-hero__eyebrow,
.admin-page .admin-ai-opportunity-card__area,
.admin-page .admin-ai-pattern-card span {
  color: var(--admin-text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-page .admin-ai-hero__card p,
.admin-page .admin-ai-opportunity-card p,
.admin-page .admin-ai-pattern-card p,
.admin-page .admin-ai-segment-row p,
.admin-page .admin-ai-journey-row span,
.admin-page .admin-ai-list__row span {
  color: var(--admin-text-muted);
  line-height: 1.6;
}

.admin-page .admin-ai-hero__highlight {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(217, 168, 90, 0.18);
  background: rgba(217, 168, 90, 0.08);
}

.admin-page .admin-ai-opportunities,
.admin-page .admin-ai-segment-list,
.admin-page .admin-ai-journey-list {
  display: grid;
  gap: 14px;
}

.admin-page .admin-ai-opportunity-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-page .admin-ai-opportunity-card__head,
.admin-page .admin-ai-opportunity-card__footer,
.admin-page .admin-ai-opportunity-card__impact {
  display: grid;
  gap: 6px;
}

.admin-page .admin-ai-opportunity-card__head {
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
}

.admin-page .admin-ai-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-page .admin-ai-priority--alta {
  background: rgba(240, 125, 125, 0.14);
  border: 1px solid rgba(240, 125, 125, 0.24);
  color: #ffb1b1;
}

.admin-page .admin-ai-priority--media {
  background: rgba(230, 177, 90, 0.14);
  border: 1px solid rgba(230, 177, 90, 0.24);
  color: #ffd696;
}

.admin-page .admin-ai-priority--baixa {
  background: rgba(217, 168, 90, 0.14);
  border: 1px solid rgba(217, 168, 90, 0.24);
  color: #dbe7ff;
}

.admin-page .admin-ai-pattern-grid {
  display: grid;
  gap: 16px;
}

.admin-page .admin-ai-pattern-grid__cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-page .admin-ai-pattern-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-page .admin-ai-pattern-card strong,
.admin-page .admin-ai-segment-row strong,
.admin-page .admin-ai-journey-row strong,
.admin-page .admin-ai-list__row strong {
  color: var(--admin-text);
}

.admin-page .admin-ai-list {
  display: grid;
  gap: 16px;
}

.admin-page .admin-ai-list__section {
  display: grid;
  gap: 10px;
}

.admin-page .admin-ai-list__row,
.admin-page .admin-ai-segment-row,
.admin-page .admin-ai-journey-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.admin-page .admin-ai-segment-row__metrics {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.admin-page .admin-ai-journey-row__rank {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(217, 168, 90, 0.12);
  border: 1px solid rgba(217, 168, 90, 0.18);
  color: #dce7ff;
  font-weight: 700;
}

.admin-page .admin-ai-journey-row {
  grid-template-columns: auto minmax(0, 1fr);
}

.admin-page .admin-ai-journey-row__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

@media (max-width: 900px) {
  .admin-page .admin-ai-list__row,
  .admin-page .admin-ai-segment-row,
  .admin-page .admin-ai-journey-row,
  .admin-page .admin-ai-opportunity-card__head {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-ai-segment-row__metrics {
    justify-items: start;
  }
}

/* ── Sealing Reveal (Post-Tarot Modal) ── */

.sealing-reveal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(240, 204, 115, 0.2), transparent 26%),
    rgba(5, 2, 11, 0.85);
  backdrop-filter: blur(16px);
  z-index: 200;
}

.sealing-reveal[hidden] {
  display: none;
}

.sealing-reveal__card {
  position: relative;
  overflow: hidden;
  width: min(500px, 100%);
  padding: 34px 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(240, 204, 115, 0.14), transparent 28%),
    radial-gradient(circle at top left, rgba(200, 149, 69, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(33, 27, 16, 0.97), rgba(10, 8, 5, 0.97));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(240, 204, 115, 0.08);
  text-align: center;
}

.sealing-reveal__glow {
  position: absolute;
  top: -30%;
  left: 50%;
  translate: -50% 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.3), transparent 70%);
  filter: blur(30px);
  animation: sealing-glow 4.8s ease-in-out infinite;
  pointer-events: none;
}

.sealing-reveal__card h2 {
  margin-top: 10px;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  background: linear-gradient(135deg, var(--gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sealing-reveal__body {
  color: var(--muted);
  line-height: 1.72;
  margin-top: 16px;
}

.sealing-reveal__body--emphasis {
  color: var(--gold);
  font-weight: 600;
  margin-top: 14px;
}

.sealing-reveal__actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.sealing-reveal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(240, 204, 115, 0.22);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sealing-reveal__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(240, 204, 115, 0.32);
}

.sealing-reveal__button--ghost {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.sealing-reveal__button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

/* ── Live Reveal (First-access popup) ── */
.live-reveal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 60, 80, 0.18), transparent 30%),
    rgba(5, 2, 11, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 300;
  animation: live-reveal-fade 0.35s ease-out both;
}

.live-reveal[hidden] { display: none; }

@keyframes live-reveal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.live-reveal__card {
  position: relative;
  overflow: hidden;
  width: min(440px, 100%);
  padding: 34px 26px 28px;
  border-radius: 28px;
  border: 1px solid rgba(240, 204, 115, 0.28);
  background:
    radial-gradient(circle at top right, rgba(240, 204, 115, 0.18), transparent 30%),
    radial-gradient(circle at top left, rgba(255, 60, 80, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(33, 27, 16, 0.98), rgba(10, 8, 5, 0.98));
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(240, 204, 115, 0.1);
  text-align: center;
  animation: live-reveal-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes live-reveal-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.live-reveal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.live-reveal__close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.live-reveal__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  translate: -50% 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.32), transparent 70%);
  filter: blur(34px);
  pointer-events: none;
  animation: sealing-glow 4.8s ease-in-out infinite;
}

.live-reveal__avatar {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 6px auto 18px;
}

.live-reveal__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(240, 204, 115, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 2;
}

.live-reveal__avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(240, 204, 115, 0.55);
  animation: live-ring 2s ease-out infinite;
}

@keyframes live-ring {
  0% { transform: scale(0.92); opacity: 0.9; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

.live-reveal__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3d57, #ff6a7a);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(255, 61, 87, 0.38);
}

.live-reveal__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: live-dot 1.2s ease-in-out infinite;
}

@keyframes live-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.live-reveal__title {
  margin: 18px 0 10px;
  font-size: clamp(1.35rem, 4.5vw, 1.7rem);
  line-height: 1.25;
  background: linear-gradient(135deg, var(--gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.live-reveal__body {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
  margin: 0 auto;
  max-width: 34ch;
}

.live-reveal__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.live-reveal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(240, 204, 115, 0.3);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: live-cta-pulse 2.2s ease-in-out infinite;
}

.live-reveal__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(240, 204, 115, 0.42);
}

@keyframes live-cta-pulse {
  0%, 100% { box-shadow: 0 16px 30px rgba(240, 204, 115, 0.3); }
  50% { box-shadow: 0 16px 38px rgba(240, 204, 115, 0.55); }
}

.live-reveal__dismiss {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.2s;
}

.live-reveal__dismiss:hover { color: #fff; }

/* ── Accessibility & Performance ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Pausa TODAS as animações quando o navegador indica que a página está
   invisível (app em segundo plano). Economiza CPU/bateria e evita o aparelho
   esquentar à toa. Antes pausava só as 2 auras de fundo (body::before/after);
   agora cobre partículas, símbolo, brilhos etc. — tudo, já que está oculto. */
.animations-paused *,
.animations-paused *::before,
.animations-paused *::after {
  animation-play-state: paused !important;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    width: 210mm;
    min-height: 297mm;
    background: #ffffff !important;
  }

  body::before,
  body::after {
    display: none !important;
  }

  body * {
    visibility: hidden !important;
  }

  #covenant-certificate,
  #covenant-certificate * {
    visibility: visible !important;
  }

  .topbar,
  .tabbar,
  .screen-head,
  .covenant-actions,
  .covenant-feedback,
  .push-prompt,
  .auth-screen,
  .music-immersive,
  .prayer-immersive,
  .mini-player {
    display: none !important;
  }

  .app-shell,
  .screen-stack,
  #screen-covenant-certificate,
  .covenant-screen-panel,
  .covenant-certificate-wrap {
    display: block !important;
    width: 210mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .screen {
    display: none !important;
  }

  #screen-covenant-certificate {
    display: block !important;
  }

  #covenant-certificate {
    position: fixed !important;
    inset: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-width: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ALTAR HOME — "The altar is open" layout
   Sigil grande + greeting + CTA principal + grid 2×2 de módulos
   ═══════════════════════════════════════════════════════════════ */

.altar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
  padding: 2px 0 12px;
  position: relative;
}

/* ── Meta (date row) ─────────────────────────────────── */
.altar-meta {
  display: flex;
  justify-content: flex-end;
  padding: 2px 4px 0;
}

.altar-meta__date {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

/* ── Sigil central ──────────────────────────────────── */
.altar-sigil {
  --sigil-size: min(168px, 46vw);
  position: relative;
  display: grid;
  place-items: center;
  margin: 4px auto 18px;
  width: var(--sigil-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    rgba(0, 0, 0, 0.12) 70%,
    transparent 88%
  );
}

.altar-sigil__aura {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.2) 0%, rgba(122, 43, 26, 0.08) 32%, transparent 65%);
  filter: blur(32px);
  animation: altar-aura-pulse 6s ease-in-out infinite;
  z-index: 0;
}

.altar-sigil__aura--inner {
  inset: 18%;
  background: radial-gradient(circle, rgba(246, 225, 162, 0.32) 0%, rgba(240, 204, 115, 0.1) 40%, transparent 80%);
  filter: blur(16px);
  animation: altar-aura-pulse-inner 4.5s ease-in-out infinite;
}

@keyframes altar-aura-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes altar-aura-pulse-inner {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.08); }
}

.altar-sigil__svg {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

@keyframes altar-rotate {
  to { transform: rotate(360deg); }
}

.altar-sigil__ring {
  transform-origin: 120px 120px;
  animation: altar-rotate 56s linear infinite;
}

.altar-sigil__core {
  transform-origin: 120px 120px;
  animation: altar-core-pulse 3.4s ease-in-out infinite;
  filter:
    drop-shadow(0 0 6px rgba(240, 204, 115, 0.85))
    drop-shadow(0 0 14px rgba(217, 168, 90, 0.5));
}

/* 8 light points on the boundary circle */
.altar-sigil__points circle {
  fill: #fffbed;
  filter:
    drop-shadow(0 0 3px rgba(246, 225, 162, 1))
    drop-shadow(0 0 6px rgba(240, 204, 115, 0.7))
    drop-shadow(0 0 12px rgba(240, 204, 115, 0.32));
  animation: altar-point-twinkle 3.2s ease-in-out infinite;
  transform-origin: center;
}

.altar-sigil__points circle:nth-child(1) { animation-delay: 0s; }
.altar-sigil__points circle:nth-child(2) { animation-delay: 0.4s; }
.altar-sigil__points circle:nth-child(3) { animation-delay: 0.8s; }
.altar-sigil__points circle:nth-child(4) { animation-delay: 1.2s; }
.altar-sigil__points circle:nth-child(5) { animation-delay: 1.6s; }
.altar-sigil__points circle:nth-child(6) { animation-delay: 2.0s; }
.altar-sigil__points circle:nth-child(7) { animation-delay: 2.4s; }
.altar-sigil__points circle:nth-child(8) { animation-delay: 2.8s; }

@keyframes altar-point-twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes altar-core-pulse {
  0%, 100% { opacity: 0.85; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.08); }
}

.altar-sigil__ring--b {
  animation: altar-rotate 78s linear infinite reverse;
}

.altar-sigil__ring--c {
  animation: altar-rotate 96s linear infinite;
}

/* ── Greeting ─────────────────────────────────────────── */
.altar-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
  margin-top: 0;
}

.altar-hero__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}

.altar-hero__eyebrow strong {
  font-weight: 700;
  color: var(--gold-soft);
}

.altar-hero__title {
  margin: 0;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.65rem, 7.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}

.altar-hero__title em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Primary CTA "Join the altar" ─────────────────────── */
.altar-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6e1a2 0%, #f0cc73 50%, #d9a85a 100%);
  color: #14100a;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 14px 32px rgba(240, 204, 115, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.altar-cta:hover,
.altar-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 24px 48px rgba(240, 204, 115, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  outline: none;
}

.altar-cta:active {
  transform: scale(0.98);
}

.altar-cta__shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  animation: altar-shimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes altar-shimmer {
  0% { left: -120%; }
  55%, 100% { left: 220%; }
}

.altar-cta__icon,
.altar-cta__label {
  position: relative;
  z-index: 1;
}

.altar-cta__icon {
  display: grid;
  place-items: center;
}

/* ── Deposit energy button + particles ─────────────────── */
.altar-deposit {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 11px 18px;
  border: 1px solid rgba(240, 204, 115, 0.5);
  border-radius: 16px;
  background:
    linear-gradient(135deg, #f6e1a2 0%, #f0cc73 30%, #d9a85a 65%, #c89545 90%, #7a2b1a 130%);
  color: #14100a;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow:
    0 10px 24px rgba(240, 204, 115, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(122, 43, 26, 0.18);
}

.altar-deposit:hover,
.altar-deposit:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 30px rgba(240, 204, 115, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  outline: none;
}

.altar-deposit:active {
  transform: scale(0.97);
}

.altar-deposit.is-done {
  cursor: not-allowed;
  background: rgba(27, 22, 13, 0.55);
  border-color: rgba(240, 204, 115, 0.18);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  filter: none;
}

.altar-deposit.is-done:hover {
  transform: none;
  filter: none;
  border-color: rgba(240, 204, 115, 0.18);
  background: rgba(27, 22, 13, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

.altar-deposit.is-depositing {
  animation: none;
  pointer-events: none;
}

.altar-deposit__shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  animation: altar-shimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}

.altar-deposit.is-done .altar-deposit__shimmer {
  display: none;
}

.altar-deposit__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 16, 10, 0.18);
  color: #14100a;
}

.altar-deposit.is-done .altar-deposit__icon {
  background: rgba(240, 204, 115, 0.06);
  color: rgba(240, 204, 115, 0.5);
}

.altar-deposit__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.altar-deposit__label {
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.1;
  color: #14100a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.altar-deposit__hint {
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(20, 16, 10, 0.62);
  line-height: 1.3;
}

.altar-deposit.is-done .altar-deposit__label {
  color: rgba(245, 239, 226, 0.55);
}

.altar-deposit.is-done .altar-deposit__hint {
  color: rgba(245, 239, 226, 0.4);
}

/* ── Orbiting particles (energy cultivated) ────────────── */
.altar-sigil__orbit-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.altar-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%) rotate(var(--start-angle, 0deg));
  animation:
    altar-orbit var(--orbit-duration, 14s) linear infinite,
    altar-particle-enter 1.2s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes altar-orbit {
  from { transform: translate(-50%, -50%) rotate(var(--start-angle, 0deg)); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--start-angle, 0deg) + 360deg)); }
}

@keyframes altar-particle-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.altar-particle__dot {
  position: absolute;
  top: 50%;
  left: calc(var(--sigil-size, 168px) * var(--orbit-fraction, 0.3));
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbed 0%, #f6e1a2 40%, #f0cc73 75%, transparent 100%);
  box-shadow:
    0 0 5px rgba(246, 225, 162, 0.9),
    0 0 12px rgba(240, 204, 115, 0.55),
    0 0 20px rgba(217, 168, 90, 0.28);
  animation: altar-particle-twinkle 2.8s ease-in-out infinite;
  animation-delay: var(--twinkle-delay, 0s);
}

@keyframes altar-particle-twinkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* Flash burst when energy arrives at sigil center */
.altar-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ffffff 0%,
    #fffbed 15%,
    #f6e1a2 35%,
    rgba(240, 204, 115, 0.85) 60%,
    rgba(217, 168, 90, 0.32) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 5;
  animation: altar-flash-core 850ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.85),
    0 0 44px rgba(246, 225, 162, 0.95),
    0 0 80px rgba(240, 204, 115, 0.65),
    0 0 120px rgba(217, 168, 90, 0.32);
  filter: blur(0.3px);
}

/* Crisp 4-point starburst rays (horizontal + vertical beams) */
.altar-flash::before,
.altar-flash::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(246, 225, 162, 0.5) 25%,
    rgba(255, 255, 255, 1) 50%,
    rgba(246, 225, 162, 0.5) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(0.6px);
}

.altar-flash::before {
  width: 240%;
  height: 1.5px;
  margin-left: -120%;
  margin-top: -0.75px;
  animation: altar-flash-ray 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.altar-flash::after {
  width: 1.5px;
  height: 240%;
  margin-left: -0.75px;
  margin-top: -120%;
  background: linear-gradient(
    0deg,
    transparent 0%,
    rgba(246, 225, 162, 0.5) 25%,
    rgba(255, 255, 255, 1) 50%,
    rgba(246, 225, 162, 0.5) 75%,
    transparent 100%
  );
  animation: altar-flash-ray 700ms cubic-bezier(0.16, 1, 0.3, 1) 60ms forwards;
}

@keyframes altar-flash-core {
  0%   { transform: scale(0.2); opacity: 0; }
  12%  { transform: scale(1.2); opacity: 1; }
  30%  { transform: scale(1.8); opacity: 0.92; }
  100% { transform: scale(6); opacity: 0; }
}

@keyframes altar-flash-ray {
  0%   { transform: scale(0); opacity: 0; }
  20%  { transform: scale(1); opacity: 1; }
  60%  { opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* Flight particle (deposit animation) */
.altar-flight {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbed 0%, #f6e1a2 35%, #f0cc73 70%, transparent 100%);
  box-shadow:
    0 0 12px rgba(246, 225, 162, 1),
    0 0 24px rgba(240, 204, 115, 0.8),
    0 0 40px rgba(217, 168, 90, 0.4);
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  animation: altar-flight-fade 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes altar-flight-fade {
  0%   { opacity: 1; }
  70%  { opacity: 1; transform: translate(-50%, -50%) scale(1.4); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}

/* Parchment overrides for deposit button */
[data-theme="parchment"] .altar-deposit {
  background: linear-gradient(135deg, rgba(200, 149, 69, 0.18) 0%, rgba(122, 43, 26, 0.12) 100%);
  border-color: rgba(200, 149, 69, 0.5);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(122, 43, 26, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="parchment"] .altar-deposit:hover,
[data-theme="parchment"] .altar-deposit:focus-visible {
  border-color: rgba(200, 149, 69, 0.75);
  background: linear-gradient(135deg, rgba(200, 149, 69, 0.28) 0%, rgba(122, 43, 26, 0.18) 100%);
}

[data-theme="parchment"] .altar-deposit.is-done {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(20, 16, 10, 0.1);
}

[data-theme="parchment"] .altar-deposit__icon {
  background: radial-gradient(circle, rgba(200, 149, 69, 0.32) 0%, transparent 100%);
  color: var(--gold-deep);
}

[data-theme="parchment"] .altar-deposit.is-done .altar-deposit__label {
  color: rgba(20, 16, 10, 0.5);
}

[data-theme="parchment"] .altar-deposit.is-done .altar-deposit__hint {
  color: rgba(20, 16, 10, 0.4);
}

/* ── 2×2 Grid de módulos ─────────────────────────────── */
.altar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

/* Santuário: só 2 atalhos (Songs Angelicais · Orações) — centraliza e limita
   a largura pra os cards não ficarem gigantes em telas largas. */
.sanctuary-grid {
  grid-template-columns: 1fr;   /* empilhado: um banner em cima do outro */
  max-width: 460px;
  margin: 18px auto 0;
  gap: 14px;
}
.sanctuary-grid .altar-module {
  min-height: 150px;            /* banner largo fica melhor um pouco mais alto */
}

/* ═══ Selo "Premium" sobre cards bloqueados (Música/Orações) ═══ */
.playlist-card, .prayer-card { position: relative; }
.premium-lock {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  background: linear-gradient(180deg, #f7d98a, #c89545); color: #1a140b;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.premium-lock__tx { line-height: 1; }
.is-premium-locked { position: relative; }
.is-premium-locked::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(8, 6, 3, 0.45), rgba(8, 6, 3, 0.62));
  pointer-events: none;
}
.is-premium-locked > :not(.premium-lock) { opacity: 0.5; }

/* CTA do hub do Santuario (abre o paywall pra quem ainda não assinou) */
.sanctuary-premium-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 13px; width: 100%;
  max-width: 460px; margin: 18px auto 0; padding: 15px 18px;
  border: none; border-radius: 18px;
  background: linear-gradient(135deg, #f7d98a 0%, #e7b54e 48%, #c89545 100%);
  color: #1a140b; cursor: pointer; text-align: left;
  box-shadow: 0 12px 30px rgba(200, 149, 69, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: sanctuary-cta-pulse 2.6s ease-in-out infinite;
}
.sanctuary-premium-cta::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 42%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg); animation: sq-shimmer 3.4s ease-in-out infinite;
}
@keyframes sanctuary-cta-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(200, 149, 69, 0.4), 0 0 0 0 rgba(240, 204, 115, 0); }
  50% { box-shadow: 0 14px 34px rgba(200, 149, 69, 0.5), 0 0 0 6px rgba(240, 204, 115, 0.16); }
}
.sanctuary-premium-cta:hover { transform: translateY(-2px); filter: brightness(1.04); }
.sanctuary-premium-cta:active { transform: scale(0.99); }
.sanctuary-premium-cta__ic {
  position: relative; z-index: 1; flex-shrink: 0; font-size: 1.3rem;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(26, 20, 11, 0.14); box-shadow: inset 0 0 0 1px rgba(26, 20, 11, 0.18);
}
.sanctuary-premium-cta__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sanctuary-premium-cta__tx { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.28rem; font-weight: 800; color: #1a140b; line-height: 1.05; }
.sanctuary-premium-cta__sub { font-size: 0.76rem; font-weight: 600; color: rgba(26, 20, 11, 0.72); }
.sanctuary-premium-cta__arrow { position: relative; z-index: 1; color: #1a140b; font-size: 1.35rem; font-weight: 800; }

/* ═══ Carta do dia TRAVADA (sem cristais): vira a carta, borra o conteúdo
   "atrás" e mostra um painel com botão de adicionar créditos ═══ */
.tarot-flip { position: relative; }
/* Borra só o CONTEÚDO da face da frente — NÃO usar filter no __inner (achata o
   3D e mata a virada). O overlay é empurrado à frente no eixo Z (preserve-3d)
   pra não renderizar atrás da face revelada. */
.tarot-flip.is-locked .tarot-face--front > * { filter: blur(5px); }
.tarot-lock { display: none; }
.tarot-flip.is-locked .tarot-lock {
  display: flex; align-items: center; justify-content: center;
  position: absolute; inset: 0; z-index: 6; border-radius: inherit; padding: 14px;
  background: rgba(8, 6, 3, 0.36);
  transform: translateZ(8px);
  opacity: 0; animation: tarot-lock-in 360ms ease 540ms forwards;
}
@keyframes tarot-lock-in { to { opacity: 1; } }
.tarot-lock__panel {
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
  max-width: 90%; padding: 18px 16px; border-radius: 18px;
  background: rgba(20, 16, 10, 0.74); border: 1px solid rgba(240, 204, 115, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.tarot-lock__ic { font-size: 1.7rem; line-height: 1; }
.tarot-lock__title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; font-weight: 700; color: #f3e7c8; line-height: 1.12; }
.tarot-lock__sub { font-size: 0.76rem; color: rgba(245, 239, 226, 0.75); line-height: 1.3; }
.tarot-lock__btn { margin-top: 5px; padding: 10px 20px; border-radius: 999px; background: linear-gradient(180deg, #f7d98a, #c89545); color: #1a140b; font-weight: 800; font-size: 0.84rem; box-shadow: 0 6px 16px rgba(200, 149, 69, 0.42); }

/* ═══════════════════════════════════════════════════════════════════════════
   Santuario quiz (overlay full-screen) + paywall + downsell
   ═══════════════════════════════════════════════════════════════════════════ */
.sq {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(60, 44, 90, 0.55), transparent 60%),
    radial-gradient(100% 70% at 50% 110%, rgba(122, 86, 30, 0.4), transparent 60%),
    linear-gradient(180deg, #0e0a14 0%, #0b0808 100%);
  overflow: hidden;
}
.sq[hidden] { display: none; }
body.is-sq-open { overflow: hidden; }
.sq__aura {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 130vw; height: 70vh; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(240, 204, 115, 0.16), transparent 62%);
  filter: blur(8px); animation: sq-aura 9s ease-in-out infinite;
}
@keyframes sq-aura { 0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); } 50% { opacity: 0.9; transform: translateX(-50%) scale(1.08); } }

/* Hero do paywall/downsell: imagem do topo que se FUNDE no fundo (máscara +
   gradiente na cor do background). Só aparece quando .sq tem .is-offer. */
.sq__hero {
  position: absolute; top: 0; left: 0; right: 0; height: 52vh; z-index: 0;
  background-image: url("premium-audio-hero.webp");
  background-size: cover; background-position: center 26%;
  opacity: 0; transition: opacity 700ms ease; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 46%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 46%, transparent 100%);
}
.sq__hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14, 10, 20, 0) 16%, rgba(11, 8, 8, 0.58) 46%, rgba(11, 8, 8, 0.94) 76%, #0b0808 100%);
}
.sq.is-offer .sq__hero { opacity: 1; }
/* margin-top:auto empurra a oferta pro fundo MAS, quando o conteúdo é mais alto
   que a tela (celular), degrada pra topo e rola normal — nunca corta o título. */
.sq.is-offer .sq__stage { justify-content: flex-start; }
.sq.is-offer .sq-card { margin-top: auto; }
.sq.is-offer .sq-pay__emblem { display: none; }
/* Legibilidade sobre a imagem: sombra forte cria um halo escuro nas letras
   (lê bem até sobre a parte dourada) — sem precisar de caixa/scrim visível. */
.sq.is-offer .sq-pay__title { text-shadow: 0 2px 13px rgba(0, 0, 0, 0.92), 0 1px 2px rgba(0, 0, 0, 0.96); }
.sq.is-offer .sq-pay .sq-eyebrow { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.96), 0 0 2px rgba(0, 0, 0, 0.9); }
.sq.is-offer .sq-pay__sub { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.88); }
.sq.is-offer .sq-pay__flag { text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); }

.sq__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; flex: 1; min-height: 0;
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: calc(14px + var(--safe-area-top, 0px)) 18px calc(18px + var(--safe-area-bottom, 0px));
}
.sq__topbar { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.sq__back, .sq__skip {
  border: none; background: transparent; cursor: pointer; color: rgba(245, 239, 226, 0.7);
  display: inline-flex; align-items: center; justify-content: center;
}
.sq__back { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); }
.sq__skip { margin-left: auto; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; padding: 8px; }
/* sem isto, o display:inline-flex acima sobrepunha o atributo [hidden] e os
   botoes apareciam mesmo quando o JS os escondia (ex: ← morto no paywall). */
.sq__back[hidden], .sq__skip[hidden] { display: none; }
.sq__skip:hover, .sq__back:hover { color: #f3e7c8; }
.sq__progress { flex: 1; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.sq__progress[hidden] { display: none; }
.sq__progress-fill { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #c89545, #f0cc73); transition: width 360ms cubic-bezier(0.2, 0.8, 0.2, 1); }

.sq__stage { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; padding: 8px 0; }
.sq-card {
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(14px); transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sq-card.is-in { opacity: 1; transform: none; }

.sq-eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(240, 204, 115, 0.85); }
.sq-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; font-weight: 600; line-height: 1.12; color: #f5ecd6; margin: 0; }

/* opções (choice) */
.sq-options { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.sq-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px;
  border-radius: 16px; border: 1px solid rgba(240, 204, 115, 0.22);
  background: rgba(255, 255, 255, 0.04); color: #f3e7c8; cursor: pointer; text-align: left;
  font-size: 1rem; transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.sq-opt:hover { border-color: rgba(240, 204, 115, 0.6); background: rgba(240, 204, 115, 0.08); transform: translateY(-1px); }
.sq-opt.is-sel { border-color: var(--gold); background: rgba(240, 204, 115, 0.18); }
.sq-opt__ic { font-size: 1.4rem; flex-shrink: 0; }
.sq-opt__tx { flex: 1; }

/* grid de ícones (imagechoice) */
.sq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.sq-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px;
  border-radius: 18px; border: 1px solid rgba(240, 204, 115, 0.22); background: rgba(255, 255, 255, 0.04);
  color: #f3e7c8; cursor: pointer; transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.sq-tile:hover { border-color: rgba(240, 204, 115, 0.6); transform: translateY(-2px); }
.sq-tile.is-sel { border-color: var(--gold); background: rgba(240, 204, 115, 0.18); }
.sq-tile .sq-opt__ic { font-size: 2rem; }
.sq-tile .sq-opt__tx { font-size: 0.92rem; text-align: center; }

/* emoji */
.sq-emoji { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; }
.sq-emoji__b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: none; background: transparent; cursor: pointer; border-radius: 14px; transition: transform 140ms ease, background 140ms ease; }
.sq-emoji__b:hover { background: rgba(240, 204, 115, 0.1); transform: translateY(-2px); }
.sq-emoji__b.is-sel { background: rgba(240, 204, 115, 0.2); }
.sq-emoji__e { font-size: 1.9rem; line-height: 1; }
.sq-emoji__l { font-size: 0.64rem; color: rgba(245, 239, 226, 0.7); }

/* yes/no */
.sq-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.sq-yn { padding: 20px; border-radius: 18px; border: 1px solid rgba(240, 204, 115, 0.25); background: rgba(255, 255, 255, 0.04); color: #f3e7c8; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.4rem; font-weight: 700; cursor: pointer; transition: transform 140ms ease, border-color 140ms ease, background 140ms ease; }
.sq-yn:hover { transform: translateY(-2px); }
.sq-yn.is-yes:hover, .sq-yn.is-yes.is-sel { border-color: #6fcf7f; background: rgba(111, 207, 127, 0.16); }
.sq-yn.is-no:hover, .sq-yn.is-no.is-sel { border-color: rgba(245, 239, 226, 0.5); background: rgba(255, 255, 255, 0.08); }

/* escala (dots 1-5) */
.sq-scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.sq-dot { flex: 1; aspect-ratio: 1; max-width: 58px; border-radius: 50%; border: 1px solid rgba(240, 204, 115, 0.3); background: rgba(255, 255, 255, 0.04); color: rgba(245, 239, 226, 0.7); font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: transform 140ms ease, background 140ms ease, color 140ms ease; }
.sq-dot:hover { transform: scale(1.08); border-color: var(--gold); }
.sq-dot.is-sel { background: linear-gradient(180deg, #f0cc73, #c89545); color: #1a140b; border-color: transparent; }
.sq-scale__labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: rgba(245, 239, 226, 0.6); margin-top: 2px; }

/* estrelas */
.sq-stars { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.sq-star { font-size: 2.1rem; line-height: 1; border: none; background: transparent; color: rgba(245, 239, 226, 0.28); cursor: pointer; transition: transform 140ms ease, color 140ms ease; }
.sq-star:hover { transform: scale(1.15); }
.sq-star.is-on { color: var(--gold); text-shadow: 0 0 12px rgba(240, 204, 115, 0.7); }

/* slider */
.sq-slider__val { text-align: center; font-family: "Cinzel", serif; font-size: 2.4rem; font-weight: 700; color: var(--gold); margin-top: 6px; text-shadow: 0 0 22px rgba(240, 204, 115, 0.45); transition: transform 120ms ease; }
.sq-slider { padding: 14px 16px 6px; }
.sq-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 12px; border-radius: 999px; outline: none; cursor: pointer; margin: 0;
  background:
    linear-gradient(90deg, #f0cc73 0%, #c89545 var(--sq-fill, 50%), rgba(255, 255, 255, 0.1) var(--sq-fill, 50%), rgba(255, 255, 255, 0.1) 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.sq-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid #1a140b;
  background: radial-gradient(circle at 36% 30%, #fff7df, #f0cc73 46%, #b9822f 82%);
  box-shadow: 0 0 0 5px rgba(240, 204, 115, 0.22), 0 0 18px rgba(240, 204, 115, 0.6), 0 6px 16px rgba(0, 0, 0, 0.55);
  cursor: grab; transition: transform 130ms ease;
}
.sq-range::-webkit-slider-thumb:hover { transform: scale(1.08); }
.sq-range:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.16); box-shadow: 0 0 0 7px rgba(240, 204, 115, 0.28), 0 0 26px rgba(240, 204, 115, 0.8), 0 6px 16px rgba(0, 0, 0, 0.55); }
.sq-range::-moz-range-thumb {
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid #1a140b;
  background: radial-gradient(circle at 36% 30%, #fff7df, #f0cc73 46%, #b9822f 82%);
  box-shadow: 0 0 0 5px rgba(240, 204, 115, 0.22), 0 0 18px rgba(240, 204, 115, 0.6); cursor: grab;
}
.sq-range::-moz-range-track { height: 12px; border-radius: 999px; background: transparent; }
.sq-slider__hint { text-align: center; font-size: 0.74rem; letter-spacing: 0.04em; color: rgba(245, 239, 226, 0.5); margin-top: 2px; }

/* chips (multi) */
.sq-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.sq-chip { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(240, 204, 115, 0.3); background: rgba(255, 255, 255, 0.04); color: #f3e7c8; cursor: pointer; font-size: 0.92rem; transition: transform 120ms ease, background 120ms ease, border-color 120ms ease; }
.sq-chip:hover { transform: translateY(-1px); border-color: rgba(240, 204, 115, 0.6); }
.sq-chip.is-sel { background: linear-gradient(180deg, #f0cc73, #c89545); color: #1a140b; border-color: transparent; font-weight: 700; }

/* botões */
.sq-cta {
  width: 100%; padding: 16px; border: none; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, #f7d98a, #c89545); color: #1a140b;
  font-size: 1.05rem; font-weight: 800; letter-spacing: 0.01em; margin-top: 8px;
  box-shadow: 0 10px 26px rgba(200, 149, 69, 0.4); transition: transform 150ms ease, filter 150ms ease;
}
.sq-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.sq-cta:disabled { opacity: 0.7; cursor: default; transform: none; }
.sq-cta--soft { background: rgba(240, 204, 115, 0.16); color: #f3e7c8; box-shadow: none; border: 1px solid rgba(240, 204, 115, 0.4); }
.sq-ghost { width: 100%; margin-top: 4px; padding: 12px; border: none; background: transparent; color: rgba(245, 239, 226, 0.6); font-size: 0.9rem; cursor: pointer; }
.sq-ghost:hover { color: #f3e7c8; text-decoration: underline; }

/* reveal */
.sq-reveal { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px 0; }
.sq-reveal__orb { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #fff4d6, #f0cc73 40%, #b9822f 75%); box-shadow: 0 0 50px rgba(240, 204, 115, 0.6); animation: sq-orb 1.6s ease-in-out infinite; }
@keyframes sq-orb { 0%, 100% { transform: scale(0.9); box-shadow: 0 0 30px rgba(240, 204, 115, 0.5); } 50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(240, 204, 115, 0.85); } }
.sq-reveal__txt { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; color: #f3e7c8; letter-spacing: 0.04em; }

/* paywall + downsell */
.sq-pay { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: stretch; }
.sq-pay__flag { align-self: center; padding: 5px 16px; border-radius: 999px; background: rgba(122, 43, 26, 0.28); border: 1px solid rgba(240, 120, 90, 0.5); color: #f3b8a6; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.sq-pay .sq-eyebrow { text-align: center; }
.sq-pay__title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; font-weight: 700; line-height: 1.08; color: #f7eccb; margin: 0; }
.sq-pay__sub { font-size: 0.96rem; line-height: 1.45; color: rgba(245, 239, 226, 0.82); margin: 0 auto; max-width: 30rem; }
.sq-pay__list { list-style: none; margin: 8px 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; text-align: left; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(240, 204, 115, 0.18); }
.sq-pay__list li { font-size: 0.95rem; color: #f3e7c8; line-height: 1.3; }
.sq-pay__price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 2px; }
.sq-pay__old { font-family: "Cinzel", serif; font-size: 1.4rem; color: rgba(245, 239, 226, 0.5); text-decoration: line-through; }
.sq-pay__now { font-family: "Cinzel", serif; font-size: 2.6rem; font-weight: 700; color: var(--gold); }
.sq-pay__per { font-size: 0.95rem; color: rgba(245, 239, 226, 0.7); }
.sq-pay--promo .sq-pay__now { color: #ffd98a; text-shadow: 0 0 18px rgba(240, 204, 115, 0.5); }

/* Polish do paywall: emblema com brilho, checks dourados, microcopy */
.sq-pay { position: relative; padding: 6px 2px 2px; }
.sq-pay__emblem {
  align-self: center; width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 4px;
  background: radial-gradient(circle at 38% 32%, rgba(240, 204, 115, 0.34), rgba(240, 204, 115, 0.05) 72%);
  border: 1px solid rgba(240, 204, 115, 0.4);
  box-shadow: 0 0 38px rgba(240, 204, 115, 0.32), inset 0 0 18px rgba(240, 204, 115, 0.16);
  animation: sq-orb 3.6s ease-in-out infinite;
}
.sq-pay__emblem-ic { font-size: 2rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }
.sq-pay__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: #f3e7c8; line-height: 1.32; }
.sq-pay__chk { color: var(--gold); flex-shrink: 0; line-height: 1.45; }
.sq-pay__micro { font-size: 0.78rem; color: rgba(245, 239, 226, 0.58); margin-top: -2px; }
.sq-pay__micro--urgent { color: #f0b8a8; font-weight: 600; letter-spacing: 0.02em; }
.sq-pay__price { margin-top: 8px; }
.sq-pay__now { font-size: 3rem; }
.sq-cta { position: relative; overflow: hidden; }
.sq-cta::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg); animation: sq-shimmer 3.2s ease-in-out infinite;
}
@keyframes sq-shimmer { 0% { left: -60%; } 55%, 100% { left: 130%; } }

/* Oferta um pouco mais compacta — cabe tudo certinho com o hero no topo. */
.sq-pay { gap: 9px; }
.sq-pay__title { font-size: 1.62rem; }
.sq-pay__sub { font-size: 0.85rem; line-height: 1.4; max-width: 27rem; }
.sq-pay__list { padding: 13px 14px; gap: 7px; margin: 4px 0; }
.sq-pay__list li { font-size: 0.86rem; line-height: 1.28; }
.sq-pay__now { font-size: 2.5rem; }
.sq-pay__micro { font-size: 0.74rem; }
.sq-cta { padding: 14px; font-size: 1rem; }
.sq-ghost { padding: 10px; font-size: 0.86rem; }

/* Celular: hero um pouco menor + oferta mais compacta pra caber tudo na tela. */
@media (max-width: 560px) {
  .sq__hero { height: 42vh; background-position: center 24%; }
  .sq-pay { gap: 7px; }
  .sq-pay__title { font-size: 1.44rem; line-height: 1.1; }
  .sq-pay__sub { font-size: 0.8rem; line-height: 1.34; }
  .sq-pay__list { padding: 11px 13px; gap: 6px; margin: 3px 0; }
  .sq-pay__list li { font-size: 0.82rem; line-height: 1.24; gap: 8px; }
  .sq-pay__now { font-size: 2.2rem; }
  .sq-pay__flag { font-size: 0.6rem; padding: 4px 12px; }
  .sq-pay .sq-eyebrow { font-size: 0.62rem; }
  .sq-pay__micro { font-size: 0.7rem; }
  .sq-cta { padding: 13px; font-size: 0.96rem; }
  .sq-ghost { padding: 8px; font-size: 0.82rem; }
}
@media (max-height: 720px) {
  .sq__hero { height: 36vh; }
}

@media (max-width: 380px) {
  .sq-title { font-size: 1.45rem; }
  .sq-pay__title { font-size: 1.7rem; }
  .sq-emoji__e { font-size: 1.6rem; }
}

[data-theme="parchment"] .sq { background: linear-gradient(180deg, #f3ead6, #e8dcc0); }
[data-theme="parchment"] .sq-title, [data-theme="parchment"] .sq-pay__title, [data-theme="parchment"] .sq-opt, [data-theme="parchment"] .sq-pay__list li { color: #2b2113; }
[data-theme="parchment"] .sq-opt { background: rgba(255, 255, 255, 0.5); border-color: rgba(122, 43, 26, 0.2); }

.altar-module {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 148px;
  padding: 14px 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  background:
    linear-gradient(180deg, transparent 0%, transparent 45%, rgba(10, 8, 5, 0.78) 78%, rgba(10, 8, 5, 0.95) 100%),
    var(--bg-url, linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.94)));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.42);
}

.altar-module::before {
  display: none;
}

.altar-module:hover,
.altar-module:focus-visible {
  filter: brightness(1.08) saturate(1.08);
  border-color: rgba(240, 204, 115, 0.5);
}

.altar-module__label {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: clamp(0.98rem, 4vw, 1.16rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: #fbf6e9;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 0 14px rgba(0, 0, 0, 0.45);
}

.altar-module::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.14), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.altar-module:hover,
.altar-module:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 204, 115, 0.45);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.46);
  outline: none;
}

.altar-module:active { transform: scale(0.98); }

.altar-module__eyebrow {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.96;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.altar-module__title {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 4.2vw, 1.22rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: #fbf6e9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.altar-module__sub {
  position: relative;
  z-index: 1;
  margin-top: 1px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(245, 239, 226, 0.78);
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.altar-module__progress {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: rgba(240, 204, 115, 0.18);
  overflow: hidden;
}

.altar-module__progress span {
  display: block;
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold));
  border-radius: 2px;
}

.altar-module__link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.altar-module__link span {
  transition: transform 0.2s ease;
}

.altar-module:hover .altar-module__link span {
  transform: translateX(3px);
}

.altar-module--word .altar-module__title {
  font-size: clamp(1.3rem, 5.4vw, 1.55rem);
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Footer minimal ─────────────────────────────────── */
.altar-foot {
  margin: 8px 0 0;
  padding: 12px 0 4px;
  text-align: center;
}

.altar-foot a {
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(240, 204, 115, 0.32);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.altar-foot a:hover {
  color: var(--gold);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 360px) {
  .altar-cta {
    min-height: 58px;
    font-size: 1rem;
    padding: 16px 22px;
  }
  .altar-module {
    min-height: 122px;
    padding: 14px 12px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .altar-sigil__aura,
  .altar-sigil__aura--inner,
  .altar-sigil__ring,
  .altar-sigil__core,
  .altar-sigil__points circle,
  .altar-cta__shimmer,
  .altar-deposit,
  .altar-deposit__shimmer,
  .altar-particle,
  .altar-particle__dot,
  .altar-module,
  body::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Parchment theme overrides ─────────────────────── */
[data-theme="parchment"] .altar-meta__date {
  color: rgba(20, 16, 10, 0.55);
}

[data-theme="parchment"] .altar-sigil__aura {
  background: radial-gradient(circle, rgba(200, 149, 69, 0.22) 0%, rgba(122, 43, 26, 0.08) 32%, transparent 65%);
}

[data-theme="parchment"] .altar-sigil__svg {
  filter: hue-rotate(-8deg) saturate(1.1);
}

[data-theme="parchment"] .altar-hero__eyebrow {
  color: var(--gold-deep);
}

[data-theme="parchment"] .altar-hero__eyebrow strong {
  color: #7a2b1a;
}

[data-theme="parchment"] .altar-hero__title {
  color: var(--text);
}

[data-theme="parchment"] .altar-hero__title em {
  background: linear-gradient(135deg, var(--gold-deep), #7a2b1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="parchment"] .altar-cta {
  background: linear-gradient(135deg, var(--gold-deep) 0%, #b87a2d 100%);
  color: #fbf6e9;
  box-shadow:
    0 18px 40px rgba(200, 149, 69, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="parchment"] .altar-module {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(122, 43, 26, 0.1);
}

[data-theme="parchment"] .altar-module:hover,
[data-theme="parchment"] .altar-module:focus-visible {
  border-color: rgba(200, 149, 69, 0.55);
  box-shadow: 0 18px 32px rgba(122, 43, 26, 0.14);
}

[data-theme="parchment"] .altar-module::before {
  background: radial-gradient(circle, rgba(200, 149, 69, 0.14), transparent 65%);
}

[data-theme="parchment"] .altar-module__eyebrow {
  color: var(--gold-deep);
}

[data-theme="parchment"] .altar-module__title {
  color: var(--text);
}

[data-theme="parchment"] .altar-module__sub {
  color: rgba(20, 16, 10, 0.6);
}

[data-theme="parchment"] .altar-module__progress {
  background: rgba(200, 149, 69, 0.22);
}

[data-theme="parchment"] .altar-module__progress span {
  background: linear-gradient(90deg, var(--gold-deep), #7a2b1a);
}

[data-theme="parchment"] .altar-module__link {
  color: var(--gold-deep);
}

[data-theme="parchment"] .altar-module--word .altar-module__title {
  background: linear-gradient(135deg, var(--gold-deep), #7a2b1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="parchment"] .altar-foot a {
  border-bottom-color: rgba(200, 149, 69, 0.4);
}

[data-theme="parchment"] .altar-foot a:hover {
  color: var(--gold-deep);
}

/* ═══════════════════════════════════════════════════════════════
   CLEAN HOME (mobile-first, dark theme)
   Compact hero · featured live · 2×2 practices grid · more rows · footer
   ═══════════════════════════════════════════════════════════════ */

.ch {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 520px;
  margin: 0 auto;
  padding: 4px 0 24px;
}

.ch-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 4px 0;
}

.ch-hero__date {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.ch-hero__greeting {
  margin: 0;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--text);
}

.ch-hero__greeting strong {
  display: inline-block;
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.ch-hero__sub {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32ch;
}

.ch-word {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(240, 204, 115, 0.08);
  border: 1px solid rgba(240, 204, 115, 0.22);
}

.ch-word__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.ch-word__ornament {
  color: var(--gold);
  font-size: 0.75rem;
  opacity: 0.7;
}

.ch-word__value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.ch-feature {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(240, 204, 115, 0.14), transparent 50%),
    linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.95));
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ch-feature:hover,
.ch-feature:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 204, 115, 0.45);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
  outline: none;
}

.ch-feature__aura {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.18), transparent 65%);
  filter: blur(36px);
  pointer-events: none;
}

.ch-feature__avatar {
  position: relative;
  width: 52px;
  height: 52px;
  z-index: 1;
}

.ch-feature__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(240, 204, 115, 0.5);
  animation: ch-pulse 2.4s ease-out infinite;
}

@keyframes ch-pulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  80% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

.ch-feature__avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240, 204, 115, 0.55);
}

.ch-feature__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ch-feature__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.ch-feature__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(240, 204, 115, 0.95);
  animation: ch-blink 1.4s ease-in-out infinite;
}

@keyframes ch-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.ch-feature__title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.005em;
}

.ch-feature__copy {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

.ch-feature__arrow {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(240, 204, 115, 0.14);
  color: var(--gold);
  transition: transform 0.25s ease, background 0.25s ease;
}

.ch-feature:hover .ch-feature__arrow {
  transform: translateX(3px);
  background: rgba(240, 204, 115, 0.22);
}

.ch-practices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.ch-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 132px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.95));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.ch-tile:hover,
.ch-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 204, 115, 0.45);
  outline: none;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.42);
}

.ch-tile:active { transform: scale(0.98); }

.ch-tile__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(240, 204, 115, 0.1);
  border: 1px solid rgba(240, 204, 115, 0.22);
  color: var(--gold);
}

.ch-tile__title {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.005em;
}

.ch-tile__hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.ch-more {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.ch-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  grid-template-areas:
    "icon label arrow"
    "icon hint  arrow";
  column-gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(27, 22, 13, 0.5);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ch-row:hover,
.ch-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(240, 204, 115, 0.4);
  background: rgba(33, 27, 16, 0.75);
  outline: none;
}

.ch-row__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(240, 204, 115, 0.1);
  border: 1px solid rgba(240, 204, 115, 0.2);
  color: var(--gold);
}

.ch-row__label {
  grid-area: label;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.005em;
}

.ch-row__hint {
  grid-area: hint;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

.ch-row__arrow {
  grid-area: arrow;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ch-row:hover .ch-row__arrow {
  opacity: 1;
  transform: translateX(3px);
}

.ch-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 12px 0 0;
  padding: 18px 0 8px;
  text-align: center;
}

.ch-foot__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 240px;
  color: var(--gold);
  opacity: 0.55;
}

.ch-foot__divider span:first-child,
.ch-foot__divider span:last-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 204, 115, 0.4), transparent);
}

.ch-foot__divider span:nth-child(2) {
  font-size: 0.85rem;
}

.ch-foot__text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.ch-foot__text a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(240, 204, 115, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ch-foot__text a:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}

@media (max-width: 360px) {
  .ch-feature {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "avatar body"
      "arrow  arrow";
    gap: 12px;
  }
  .ch-feature__avatar { grid-area: avatar; }
  .ch-feature__body { grid-area: body; }
  .ch-feature__arrow {
    grid-area: arrow;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    margin-top: 4px;
    justify-self: stretch;
    background: linear-gradient(135deg, rgba(240, 204, 115, 0.18), rgba(122, 43, 26, 0.12));
  }
  .ch-tile__title { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-feature__ring,
  .ch-feature__dot,
  .ch-feature,
  .ch-tile,
  .ch-row,
  .ch-feature__arrow,
  .ch-row__arrow {
    animation: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Parchment theme — overrides for light backgrounds
   Fixes containers that were tuned only for the dark Sanctum theme.
   ═══════════════════════════════════════════════════════════════ */

[data-theme="parchment"] .hero-panel {
  background:
    radial-gradient(circle at 92% 6%, rgba(200, 149, 69, 0.12), transparent 38%),
    radial-gradient(circle at 6% 100%, rgba(122, 43, 26, 0.08), transparent 40%),
    linear-gradient(180deg, #fbf6e9, #ede4cf);
  border: 1px solid rgba(20, 16, 10, 0.08);
  box-shadow: 0 18px 42px rgba(122, 43, 26, 0.1);
}

[data-theme="parchment"] .hero-panel__text,
[data-theme="parchment"] .hero-panel__tagline {
  color: rgba(20, 16, 10, 0.78);
}

[data-theme="parchment"] .hero-panel__eyebrow,
[data-theme="parchment"] .hero-panel__word-label {
  color: var(--gold-deep);
}

[data-theme="parchment"] .hero-panel__name {
  background: linear-gradient(180deg, #14100a 0%, #7a2b1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="parchment"] .orbit {
  border: 1px solid rgba(20, 16, 10, 0.14);
  box-shadow: inset 0 0 16px rgba(200, 149, 69, 0.08);
}

[data-theme="parchment"] .orbit-star {
  background: var(--gold-deep);
  box-shadow: 0 0 18px rgba(200, 149, 69, 0.6);
}

[data-theme="parchment"] .sigil-core {
  background: radial-gradient(circle, #fbf6e9 0 18%, #d9a85a 32%, #c89545 54%, transparent 74%);
}

[data-theme="parchment"] .home-section-head__line {
  background: linear-gradient(90deg, transparent, rgba(20, 16, 10, 0.18), transparent);
}

[data-theme="parchment"] .home-section-head__label {
  color: var(--gold-deep);
}

[data-theme="parchment"] .nav-card {
  border-color: rgba(20, 16, 10, 0.1);
  box-shadow: 0 12px 28px rgba(122, 43, 26, 0.1);
}

[data-theme="parchment"] .nav-card__label {
  color: var(--text);
  text-shadow: 0 1px 3px rgba(245, 239, 226, 0.6);
}

[data-theme="parchment"] .panel,
[data-theme="parchment"] .panel--wide {
  background: linear-gradient(180deg, #fbf6e9, #ede4cf);
  border: 1px solid rgba(20, 16, 10, 0.08);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(122, 43, 26, 0.08);
}

[data-theme="parchment"] .support-card {
  background:
    radial-gradient(circle at top right, rgba(200, 149, 69, 0.1), transparent 30%),
    radial-gradient(circle at bottom left, rgba(122, 43, 26, 0.06), transparent 30%),
    linear-gradient(180deg, #fbf6e9, #ede4cf);
  border: 1px solid rgba(20, 16, 10, 0.08);
}

[data-theme="parchment"] .support-card__title,
[data-theme="parchment"] .support-card__body {
  color: var(--text);
}

[data-theme="parchment"] .support-card__cta {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3)),
    rgba(251, 246, 233, 0.95);
  border-color: rgba(122, 43, 26, 0.22);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 28px rgba(122, 43, 26, 0.1);
}

[data-theme="parchment"] .support-card__email {
  color: var(--gold-deep);
}

[data-theme="parchment"] .home-live-invite {
  background: linear-gradient(180deg, #fbf6e9, #ede4cf);
  border-color: rgba(20, 16, 10, 0.1);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(122, 43, 26, 0.1);
}

[data-theme="parchment"] .home-live-invite:hover {
  border-color: rgba(200, 149, 69, 0.45);
  box-shadow: 0 24px 48px rgba(122, 43, 26, 0.14);
}

[data-theme="parchment"] .home-live-invite__aura {
  background: radial-gradient(circle, rgba(200, 149, 69, 0.18), transparent 65%);
}

[data-theme="parchment"] .home-live-invite__edge {
  background: linear-gradient(180deg, transparent, var(--gold-deep) 28%, var(--gold-deep) 72%, transparent);
}

[data-theme="parchment"] .home-live-invite__name {
  color: var(--text);
}

[data-theme="parchment"] .home-live-invite__status {
  background: rgba(200, 149, 69, 0.14);
  border-color: rgba(200, 149, 69, 0.45);
  color: var(--gold-deep);
}

[data-theme="parchment"] .home-live-invite__dot {
  background: var(--gold-deep);
  box-shadow: 0 0 8px rgba(200, 149, 69, 0.7);
}

[data-theme="parchment"] .home-live-invite__eyebrow {
  color: rgba(20, 16, 10, 0.66);
}

[data-theme="parchment"] .home-live-invite__title {
  background: linear-gradient(135deg, var(--gold-deep), #14100a);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="parchment"] .home-live-invite__copy {
  color: rgba(20, 16, 10, 0.7);
}

[data-theme="parchment"] .home-live-invite__divider {
  background: linear-gradient(90deg, transparent, rgba(200, 149, 69, 0.45), transparent);
}

[data-theme="parchment"] .home-live-invite__cta {
  background: var(--gold-deep);
  color: #fbf6e9;
  box-shadow: 0 14px 28px rgba(200, 149, 69, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="parchment"] .home-live-invite__hint {
  color: rgba(20, 16, 10, 0.5);
}

/* Chat */
[data-theme="parchment"] .chat-contact {
  background: rgba(251, 246, 233, 0.95);
  border-bottom: 1px solid rgba(20, 16, 10, 0.08);
}

[data-theme="parchment"] .chat-contact__name {
  color: var(--text);
}

[data-theme="parchment"] .chat-contact__status {
  color: rgba(20, 16, 10, 0.65);
}

[data-theme="parchment"] .chat-back-button {
  color: rgba(20, 16, 10, 0.75);
}

[data-theme="parchment"] .chat-back-button:hover {
  background: rgba(20, 16, 10, 0.06);
  color: var(--text);
}

[data-theme="parchment"] .chat-feed {
  color: var(--text);
}

[data-theme="parchment"] .chat-message__bubble {
  color: var(--text);
}

[data-theme="parchment"] .chat-message--user .chat-message__bubble {
  background: linear-gradient(135deg, var(--gold-deep), #7a2b1a);
  color: #fbf6e9;
  box-shadow: 0 6px 18px rgba(200, 149, 69, 0.24);
}

[data-theme="parchment"] .chat-message--ai .chat-message__bubble {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
}

[data-theme="parchment"] .chat-message__time {
  color: rgba(20, 16, 10, 0.5);
}

[data-theme="parchment"] .chat-input-area {
  background: rgba(251, 246, 233, 0.96);
  border-top: 1px solid rgba(20, 16, 10, 0.08);
}

[data-theme="parchment"] .chat-form__input {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(20, 16, 10, 0.14);
  color: var(--text);
}

[data-theme="parchment"] .chat-form__input:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(200, 149, 69, 0.12);
}

[data-theme="parchment"] .chat-form__input::placeholder {
  color: rgba(20, 16, 10, 0.45);
}

[data-theme="parchment"] .chat-form__submit {
  background: var(--gold-deep);
  color: #fbf6e9;
  box-shadow: 0 8px 20px rgba(200, 149, 69, 0.28);
}

[data-theme="parchment"] .chat-form__submit:hover {
  box-shadow: 0 12px 24px rgba(122, 43, 26, 0.24);
}

/* Live + sealing reveals */
[data-theme="parchment"] .live-reveal {
  background:
    radial-gradient(circle at top, rgba(200, 149, 69, 0.15), transparent 30%),
    rgba(245, 239, 226, 0.88);
}

[data-theme="parchment"] .live-reveal__card,
[data-theme="parchment"] .sealing-reveal__card {
  background:
    radial-gradient(circle at top right, rgba(200, 149, 69, 0.12), transparent 30%),
    radial-gradient(circle at top left, rgba(122, 43, 26, 0.08), transparent 26%),
    linear-gradient(180deg, #fbf6e9, #ede4cf);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
  box-shadow: 0 30px 60px rgba(122, 43, 26, 0.16);
}

[data-theme="parchment"] .live-reveal__title,
[data-theme="parchment"] .sealing-reveal__card h2 {
  background: linear-gradient(135deg, var(--gold-deep), #14100a);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="parchment"] .live-reveal__body,
[data-theme="parchment"] .sealing-reveal__body {
  color: rgba(20, 16, 10, 0.7);
}

[data-theme="parchment"] .live-reveal__close {
  background: rgba(20, 16, 10, 0.05);
  border: 1px solid rgba(20, 16, 10, 0.12);
  color: var(--text);
}

[data-theme="parchment"] .live-reveal__button,
[data-theme="parchment"] .sealing-reveal__button {
  background: linear-gradient(135deg, var(--gold-deep), #7a2b1a);
  color: #fbf6e9;
}

[data-theme="parchment"] .sealing-reveal {
  background:
    radial-gradient(circle at top, rgba(200, 149, 69, 0.15), transparent 26%),
    rgba(245, 239, 226, 0.88);
}

/* Topbar — already overridden above; brand-mark uses currentColor */

/* Prayer/Tarot/Music screens — minimum readable adjustments */
[data-theme="parchment"] .panel--wide .screen-head h2,
[data-theme="parchment"] .panel--wide .screen-head__title,
[data-theme="parchment"] .panel h2,
[data-theme="parchment"] .panel h3 {
  color: var(--text);
}

[data-theme="parchment"] .eyebrow {
  color: var(--gold-deep);
}

[data-theme="parchment"] .liwei-row {
  background: linear-gradient(180deg, #fbf6e9, #ede4cf);
  border: 1px solid rgba(20, 16, 10, 0.1);
}

[data-theme="parchment"] .liwei-row__label {
  color: var(--text);
}

/* Generic dark-only utilities */
[data-theme="parchment"] .auth-screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 149, 69, 0.18), transparent 40%),
    linear-gradient(180deg, #fbf6e9, #ede4cf);
}

[data-theme="parchment"] .auth-screen__panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 16, 10, 0.08);
  color: var(--text);
  box-shadow: 0 24px 48px rgba(122, 43, 26, 0.14);
}

[data-theme="parchment"] .auth-screen__panel input {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(20, 16, 10, 0.14);
  color: var(--text);
}

[data-theme="parchment"] .auth-screen__panel input::placeholder {
  color: rgba(20, 16, 10, 0.42);
}

[data-theme="parchment"] .auth-screen__panel button[type="submit"] {
  background: linear-gradient(135deg, var(--gold-deep), #7a2b1a);
  color: #fbf6e9;
}

[data-theme="parchment"] .auth-switch {
  background: rgba(20, 16, 10, 0.05);
}

[data-theme="parchment"] .auth-switch__button {
  color: rgba(20, 16, 10, 0.65);
}

[data-theme="parchment"] .auth-switch__button.is-active {
  background: var(--gold-deep);
  color: #fbf6e9;
}

/* ───────────────────────────────────────────────────────────────
   PRAYERS screen
   ─────────────────────────────────────────────────────────────── */
[data-theme="parchment"] .prayer-card {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
  box-shadow: 0 14px 30px rgba(122, 43, 26, 0.1);
}

[data-theme="parchment"] .prayer-card:hover {
  border-color: rgba(200, 149, 69, 0.45);
  box-shadow: 0 20px 38px rgba(122, 43, 26, 0.14);
}

[data-theme="parchment"] .prayer-card__icon {
  background: rgba(200, 149, 69, 0.16);
  color: var(--gold-deep);
}

[data-theme="parchment"] .prayer-card__title {
  color: var(--text);
}

[data-theme="parchment"] .prayer-card__focus,
[data-theme="parchment"] .prayer-card__desc {
  color: rgba(20, 16, 10, 0.66);
}

[data-theme="parchment"] .prayer-card__meta,
[data-theme="parchment"] .prayer-card__tag {
  color: var(--gold-deep);
}

[data-theme="parchment"] .prayer-card__cta {
  background: linear-gradient(135deg, var(--gold-deep), #7a2b1a);
  color: #fbf6e9;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(200, 149, 69, 0.28);
}

[data-theme="parchment"] .prayer-card:hover .prayer-card__cta,
[data-theme="parchment"] .prayer-card:focus-visible .prayer-card__cta {
  box-shadow: 0 12px 26px rgba(122, 43, 26, 0.32);
}

[data-theme="parchment"] .prayer-streak-badge {
  background: linear-gradient(135deg, rgba(200, 149, 69, 0.16), rgba(122, 43, 26, 0.1));
  border: 1px solid rgba(200, 149, 69, 0.4);
  color: var(--text);
}

[data-theme="parchment"] .prayer-streak-badge__count {
  color: var(--gold-deep);
}

[data-theme="parchment"] .prayer-immersive {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200, 149, 69, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #faf3e3 0%, #f1e6cf 60%, #ede4cf 100%);
  color: var(--text);
}

/* In parchment mode the dark blurred photo background must disappear so the
   light gradient covers the whole screen edge-to-edge. */
[data-theme="parchment"] .prayer-immersive__bg {
  display: none;
}

[data-theme="parchment"] .prayer-immersive__aura span {
  mix-blend-mode: multiply;
  opacity: 0.35;
}

[data-theme="parchment"] .prayer-immersive__text,
[data-theme="parchment"] .prayer-immersive__title,
[data-theme="parchment"] .prayer-immersive__body,
[data-theme="parchment"] .prayer-immersive__focus,
[data-theme="parchment"] .prayer-immersive__meta {
  color: var(--text);
}

[data-theme="parchment"] .prayer-immersive__amen {
  background: linear-gradient(135deg, var(--gold-deep), #7a2b1a);
  color: #fbf6e9;
}

[data-theme="parchment"] .prayer-immersive__close {
  background: rgba(20, 16, 10, 0.08);
  color: var(--text);
  border: 1px solid rgba(20, 16, 10, 0.16);
  backdrop-filter: none;
}

[data-theme="parchment"] .prayer-immersive__close:hover {
  background: rgba(20, 16, 10, 0.14);
}

/* ───────────────────────────────────────────────────────────────
   ANGELIC SONG / MUSIC screen
   ─────────────────────────────────────────────────────────────── */
[data-theme="parchment"] .playlist-card {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
  box-shadow: 0 14px 30px rgba(122, 43, 26, 0.1);
}

[data-theme="parchment"] .playlist-card:hover {
  border-color: rgba(200, 149, 69, 0.45);
  box-shadow: 0 20px 38px rgba(122, 43, 26, 0.14);
}

[data-theme="parchment"] .playlist-card__title {
  color: var(--text);
}

[data-theme="parchment"] .playlist-card__desc,
[data-theme="parchment"] .playlist-card__duration {
  color: rgba(20, 16, 10, 0.66);
}

[data-theme="parchment"] .playlist-card__tag {
  background: rgba(200, 149, 69, 0.18);
  color: var(--gold-deep);
  border: 1px solid rgba(200, 149, 69, 0.4);
}

[data-theme="parchment"] .playlist-card__play {
  background: var(--gold-deep);
  color: #fbf6e9;
}

[data-theme="parchment"] .music-immersive {
  background: linear-gradient(180deg, #faf3e3, #ede4cf);
}

[data-theme="parchment"] .music-immersive__title,
[data-theme="parchment"] .music-immersive__tag {
  color: var(--text);
}

[data-theme="parchment"] .music-immersive__timer-label,
[data-theme="parchment"] .music-immersive__timer {
  color: rgba(20, 16, 10, 0.65);
}

[data-theme="parchment"] .music-immersive__close {
  background: rgba(20, 16, 10, 0.06);
  color: var(--text);
  border: 1px solid rgba(20, 16, 10, 0.12);
}

[data-theme="parchment"] .im-ctrl {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 16, 10, 0.12);
  color: var(--text);
}

[data-theme="parchment"] .im-ctrl--primary {
  background: var(--gold-deep);
  color: #fbf6e9;
}

[data-theme="parchment"] .breath-orb,
[data-theme="parchment"] .breath-label {
  color: var(--gold-deep);
}

/* ───────────────────────────────────────────────────────────────
   DAILY CARD / TAROT screen
   ─────────────────────────────────────────────────────────────── */
[data-theme="parchment"] .daily-card {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
  box-shadow: 0 14px 30px rgba(122, 43, 26, 0.1);
}

[data-theme="parchment"] .daily-card p,
[data-theme="parchment"] .daily-card__label,
[data-theme="parchment"] .tarot-reading__tag {
  color: rgba(20, 16, 10, 0.7);
}

[data-theme="parchment"] .tarot-flip {
  background: transparent;
}

[data-theme="parchment"] .tarot-status,
[data-theme="parchment"] .tarot-balance {
  color: rgba(20, 16, 10, 0.7);
}

[data-theme="parchment"] .tarot-card-display,
[data-theme="parchment"] .tarot-reading,
[data-theme="parchment"] .tarot-message,
[data-theme="parchment"] .tarot-action,
[data-theme="parchment"] .tarot-ritual {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
}

[data-theme="parchment"] .tarot-message__title,
[data-theme="parchment"] .tarot-card-display__name,
[data-theme="parchment"] .tarot-action__title,
[data-theme="parchment"] .tarot-ritual__title {
  color: var(--text);
}

[data-theme="parchment"] .tarot-message__body,
[data-theme="parchment"] .tarot-action__body,
[data-theme="parchment"] .tarot-ritual__body {
  color: rgba(20, 16, 10, 0.7);
}

[data-theme="parchment"] .tarot-draw-button,
[data-theme="parchment"] .tarot-buy-credits {
  background: var(--gold-deep);
  color: #fbf6e9;
}

[data-theme="parchment"] .panel--tarot {
  background: linear-gradient(180deg, #fbf6e9, #ede4cf);
  border: 1px solid rgba(20, 16, 10, 0.08);
}

[data-theme="parchment"] .tarot-face--back {
  background:
    radial-gradient(circle at 50% 14%, rgba(200, 149, 69, 0.22), transparent 24%),
    radial-gradient(circle at 50% 76%, rgba(122, 43, 26, 0.12), transparent 32%),
    linear-gradient(180deg, #fbf6e9, #ede4cf 48%, #f5efe2);
  border: 1px solid rgba(200, 149, 69, 0.4);
  box-shadow:
    0 28px 56px rgba(122, 43, 26, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="parchment"] .tarot-face--back::before {
  border: 1px solid rgba(200, 149, 69, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(122, 43, 26, 0.18),
    inset 0 0 42px rgba(200, 149, 69, 0.14);
}

[data-theme="parchment"] .tarot-back__glow {
  background: radial-gradient(circle at center, rgba(200, 149, 69, 0.22), transparent 62%);
}

[data-theme="parchment"] .tarot-back__image {
  box-shadow:
    inset 0 0 0 1px rgba(200, 149, 69, 0.32),
    0 0 24px rgba(122, 43, 26, 0.14);
}

[data-theme="parchment"] .tarot-face--front {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.2) 26%, transparent 27%),
    linear-gradient(180deg, #fffaf0 0%, #f7ebcc 42%, #ecd29d 100%);
  border: 2px solid var(--gold-deep);
  color: #14100a;
}

/* ───────────────────────────────────────────────────────────────
   ANGEL TAROT screen
   ─────────────────────────────────────────────────────────────── */
[data-theme="parchment"] .angel-tarot,
[data-theme="parchment"] .angel-tarot__player {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
}

[data-theme="parchment"] .angel-tarot__title,
[data-theme="parchment"] .angel-tarot__copy {
  color: var(--text);
}

/* ───────────────────────────────────────────────────────────────
   LIWEI screen
   ─────────────────────────────────────────────────────────────── */
[data-theme="parchment"] .liwei-screen {
  background: linear-gradient(180deg, #fbf6e9, #ede4cf);
}

[data-theme="parchment"] .liwei-back {
  background: rgba(20, 16, 10, 0.06);
  color: var(--text);
  border: 1px solid rgba(20, 16, 10, 0.12);
}

[data-theme="parchment"] .liwei-hero {
  background:
    radial-gradient(circle at top, rgba(200, 149, 69, 0.18), transparent 56%),
    linear-gradient(180deg, #fbf6e9, #ede4cf);
  border: 1px solid rgba(20, 16, 10, 0.08);
}

[data-theme="parchment"] .liwei-hero__eyebrow,
[data-theme="parchment"] .liwei-section__title,
[data-theme="parchment"] .liwei-hint {
  color: var(--gold-deep);
}

[data-theme="parchment"] .liwei-hero__title,
[data-theme="parchment"] .liwei-section h2,
[data-theme="parchment"] .liwei-section h3 {
  color: var(--text);
}

[data-theme="parchment"] .liwei-hero__subtitle,
[data-theme="parchment"] .liwei-section__text {
  color: rgba(20, 16, 10, 0.72);
}

[data-theme="parchment"] .liwei-mantra {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
  border: 1px solid rgba(20, 16, 10, 0.1);
}

[data-theme="parchment"] .liwei-mantra.is-open {
  border-color: var(--gold-deep);
  box-shadow: 0 14px 30px rgba(200, 149, 69, 0.2);
}

[data-theme="parchment"] .liwei-mantra__name {
  color: var(--text);
}

[data-theme="parchment"] .liwei-mantra__tag {
  background: rgba(200, 149, 69, 0.16);
  color: var(--gold-deep);
}

[data-theme="parchment"] .liwei-mantra__desc {
  color: rgba(20, 16, 10, 0.7);
}

[data-theme="parchment"] .liwei-mantra__play {
  background: rgba(200, 149, 69, 0.2);
  color: var(--gold-deep);
  border: 1px solid rgba(200, 149, 69, 0.45);
}

[data-theme="parchment"] .liwei-mantra.is-open .liwei-mantra__play {
  background: var(--gold-deep);
  color: #fbf6e9;
}

[data-theme="parchment"] .liwei-element,
[data-theme="parchment"] .liwei-bonus,
[data-theme="parchment"] .liwei-manual {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
}

[data-theme="parchment"] .liwei-element__title,
[data-theme="parchment"] .liwei-bonus__title,
[data-theme="parchment"] .liwei-manual summary {
  color: var(--text);
}

[data-theme="parchment"] .liwei-element__body,
[data-theme="parchment"] .liwei-bonus__body,
[data-theme="parchment"] .liwei-manual__body,
[data-theme="parchment"] .liwei-manual__closer {
  color: rgba(20, 16, 10, 0.72);
}

[data-theme="parchment"] .liwei-manual h4 {
  color: var(--gold-deep);
}

/* ───────────────────────────────────────────────────────────────
   CREDITS / PLANS screen
   ─────────────────────────────────────────────────────────────── */
[data-theme="parchment"] .plan-card,
[data-theme="parchment"] .credits-card,
[data-theme="parchment"] .credits-hub {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
  box-shadow: 0 14px 30px rgba(122, 43, 26, 0.1);
}

[data-theme="parchment"] .plan-card__title,
[data-theme="parchment"] .credits-card__title {
  color: var(--text);
}

[data-theme="parchment"] .plan-card__price {
  color: var(--gold-deep);
}

[data-theme="parchment"] .plan-card__desc,
[data-theme="parchment"] .plan-card__feature {
  color: rgba(20, 16, 10, 0.7);
}

[data-theme="parchment"] .plan-card__tag {
  background: rgba(200, 149, 69, 0.18);
  color: var(--gold-deep);
  border: 1px solid rgba(200, 149, 69, 0.4);
}

[data-theme="parchment"] .plan-card__cta {
  background: var(--gold-deep);
  color: #fbf6e9;
}

[data-theme="parchment"] .plan-card.is-popular {
  border-color: var(--gold-deep);
  box-shadow: 0 18px 38px rgba(200, 149, 69, 0.24);
}

/* ───────────────────────────────────────────────────────────────
   GENERAL utilities — screen-head, eyebrows, badges
   ─────────────────────────────────────────────────────────────── */
[data-theme="parchment"] .screen-head h1,
[data-theme="parchment"] .screen-head h2,
[data-theme="parchment"] .screen-head__title {
  color: var(--text);
}

[data-theme="parchment"] .screen-head__eyebrow,
[data-theme="parchment"] .screen-head__copy {
  color: rgba(20, 16, 10, 0.66);
}

[data-theme="parchment"] .panel--wide {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
}

[data-theme="parchment"] .panel--wide h2,
[data-theme="parchment"] .panel--wide h3,
[data-theme="parchment"] .panel--wide p {
  color: var(--text);
}

[data-theme="parchment"] .topbar-badge {
  background:
    radial-gradient(circle at 78% 20%, rgba(200, 149, 69, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2)),
    rgba(251, 246, 233, 0.92);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
}

[data-theme="parchment"] .topbar-badge .badge__value {
  color: var(--gold-deep);
}

/* Push prompt & treatment prompt modals */
[data-theme="parchment"] .push-prompt,
[data-theme="parchment"] .treatment-prompt {
  background:
    radial-gradient(circle at top, rgba(200, 149, 69, 0.15), transparent 26%),
    rgba(245, 239, 226, 0.88);
}

[data-theme="parchment"] .push-prompt__panel,
[data-theme="parchment"] .treatment-prompt__panel {
  background: linear-gradient(180deg, #fbf6e9, #ede4cf);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
  box-shadow: 0 30px 60px rgba(122, 43, 26, 0.16);
}

[data-theme="parchment"] .push-prompt__title,
[data-theme="parchment"] .treatment-prompt__title {
  color: var(--text);
}

[data-theme="parchment"] .push-prompt__copy,
[data-theme="parchment"] .treatment-prompt__copy {
  color: rgba(20, 16, 10, 0.7);
}

[data-theme="parchment"] .push-prompt__button,
[data-theme="parchment"] .treatment-prompt__button,
[data-theme="parchment"] #treatment-submit-button {
  background: linear-gradient(135deg, var(--gold-deep), #7a2b1a);
  color: #fbf6e9;
}

[data-theme="parchment"] .push-prompt__dismiss {
  background: rgba(20, 16, 10, 0.06);
  color: var(--text);
  border: 1px solid rgba(20, 16, 10, 0.12);
}

[data-theme="parchment"] .treatment-option {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
}

[data-theme="parchment"] .treatment-option:hover,
[data-theme="parchment"] .treatment-option:has(input:checked) {
  border-color: var(--gold-deep);
  background: rgba(200, 149, 69, 0.12);
}

/* Music toast */
[data-theme="parchment"] .music-toast {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
  box-shadow: 0 14px 30px rgba(122, 43, 26, 0.16);
}

/* ── Unified back button (.screen-back) for every internal screen ── */
.screen-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  height: 44px;
  padding: 0 18px 0 14px;
  margin: 0 auto 16px 0;
  border: 1px solid rgba(240, 204, 115, 0.32);
  border-radius: 999px;
  background: rgba(20, 16, 10, 0.7);
  color: var(--gold);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.screen-back svg {
  display: block;
  transition: transform 0.2s ease;
}

.screen-back:hover,
.screen-back:focus-visible {
  background: rgba(33, 27, 16, 0.9);
  border-color: rgba(240, 204, 115, 0.55);
  outline: none;
}

.screen-back:hover svg {
  transform: translateX(-2px);
}

.screen-back:active {
  transform: scale(0.96);
}

[data-theme="parchment"] .screen-back {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(200, 149, 69, 0.5);
  color: var(--gold-deep);
  box-shadow: 0 6px 14px rgba(122, 43, 26, 0.12);
}

[data-theme="parchment"] .screen-back:hover,
[data-theme="parchment"] .screen-back:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--gold-deep);
}

/* ── Profile screen ────────────────────────────────── */
.profile {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 4px 0 0;
}

.profile__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 8px 0 6px;
}

.profile__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.18) 0%, rgba(217, 168, 90, 0.06) 60%, transparent 100%);
  border: 2px solid rgba(240, 204, 115, 0.4);
  color: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.profile__avatar--editable {
  cursor: pointer;
  padding: 0;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.profile__avatar--editable:hover,
.profile__avatar--editable:focus-visible {
  transform: scale(1.04);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(240, 204, 115, 0.32);
  outline: none;
}

.profile__avatar:active {
  transform: scale(0.97);
}

.profile__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile__avatar-placeholder {
  display: grid;
  place-items: center;
}

.profile__avatar.has-photo .profile__avatar-placeholder {
  display: none;
}

.profile__avatar-edit {
  position: absolute;
  bottom: -2px;
  right: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #14100a;
  border: 2px solid var(--bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
  z-index: 3;
  pointer-events: none;
  transition: transform 0.22s ease, background 0.22s ease;
}

.profile__avatar-wrap:hover .profile__avatar-edit,
.profile__avatar--editable:focus-visible + .profile__avatar-edit {
  transform: scale(1.1);
  background: var(--gold-soft);
}

.profile__avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.profile__avatar-wrap .profile__avatar {
  margin-bottom: 0;
}

/* Photo options menu (appears on avatar click) */
.profile__photo-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  z-index: 50;
  min-width: 200px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(20, 16, 10, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 204, 115, 0.08) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.profile__photo-menu:not([hidden]) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.profile__photo-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -6px;
  width: 10px;
  height: 10px;
  background: rgba(20, 16, 10, 0.96);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: rotate(45deg);
}

.profile__photo-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.profile__photo-menu-item:hover,
.profile__photo-menu-item:focus-visible {
  background: rgba(240, 204, 115, 0.1);
  outline: none;
}

.profile__photo-menu-item:active {
  background: rgba(240, 204, 115, 0.18);
}

.profile__photo-menu-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(240, 204, 115, 0.12);
  color: var(--gold);
  flex-shrink: 0;
}

.profile__photo-menu-item--danger {
  color: #f5b4a8;
}

.profile__photo-menu-item--danger .profile__photo-menu-icon {
  background: rgba(122, 43, 26, 0.18);
  color: #c75646;
}

.profile__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.88;
}

.profile__name {
  margin: 4px 0 4px;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -0.005em;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile__email {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.profile__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border-radius: 14px;
  background: rgba(27, 22, 13, 0.6);
  border: 1px solid var(--line);
  min-height: 80px;
}

.profile__stat-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.profile__stat-icon {
  color: var(--gold);
  filter: drop-shadow(0 0 4px rgba(240, 204, 115, 0.7));
  flex-shrink: 0;
  animation: profile-stat-icon-pulse 2.4s ease-in-out infinite;
}

@keyframes profile-stat-icon-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .profile__stat-icon { animation: none; }
}

.profile__stat-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: var(--gold);
}

.profile__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile__action {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(27, 22, 13, 0.5);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}

.profile__action:hover,
.profile__action:focus-visible {
  background: rgba(33, 27, 16, 0.75);
  border-color: rgba(240, 204, 115, 0.4);
  outline: none;
  transform: translateY(-1px);
}

.profile__action-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(240, 204, 115, 0.12);
  border: 1px solid rgba(240, 204, 115, 0.24);
  color: var(--gold);
}

.profile__action-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile__action-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.profile__action-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.profile__action-arrow {
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile__action:hover .profile__action-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.profile__action--danger .profile__action-icon {
  background: rgba(122, 43, 26, 0.15);
  border-color: rgba(122, 43, 26, 0.42);
  color: #c75646;
}

.profile__action--danger .profile__action-title {
  color: #f5b4a8;
}

/* ── CLEAN HOME (.ch-*) — parchment overrides ──────────────── */
[data-theme="parchment"] .ch-hero__date {
  color: var(--gold-deep);
}

[data-theme="parchment"] .ch-hero__greeting {
  color: var(--text);
}

[data-theme="parchment"] .ch-hero__greeting strong {
  background: linear-gradient(135deg, var(--gold-deep), #7a2b1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="parchment"] .ch-hero__sub {
  color: rgba(20, 16, 10, 0.65);
}

[data-theme="parchment"] .ch-word {
  background: rgba(200, 149, 69, 0.1);
  border: 1px solid rgba(200, 149, 69, 0.32);
}

[data-theme="parchment"] .ch-word__label {
  color: rgba(20, 16, 10, 0.6);
}

[data-theme="parchment"] .ch-word__ornament {
  color: var(--gold-deep);
}

[data-theme="parchment"] .ch-word__value {
  color: var(--gold-deep);
}

[data-theme="parchment"] .ch-feature {
  background:
    radial-gradient(circle at top right, rgba(200, 149, 69, 0.12), transparent 50%),
    linear-gradient(180deg, #fbf6e9, #ede4cf);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
  box-shadow: 0 14px 32px rgba(122, 43, 26, 0.12);
}

[data-theme="parchment"] .ch-feature:hover,
[data-theme="parchment"] .ch-feature:focus-visible {
  border-color: rgba(200, 149, 69, 0.55);
  box-shadow: 0 22px 44px rgba(122, 43, 26, 0.16);
}

[data-theme="parchment"] .ch-feature__aura {
  background: radial-gradient(circle, rgba(200, 149, 69, 0.16), transparent 65%);
}

[data-theme="parchment"] .ch-feature__avatar img {
  border-color: rgba(200, 149, 69, 0.55);
}

[data-theme="parchment"] .ch-feature__ring {
  border-color: rgba(200, 149, 69, 0.55);
}

[data-theme="parchment"] .ch-feature__live {
  color: var(--gold-deep);
}

[data-theme="parchment"] .ch-feature__dot {
  background: var(--gold-deep);
  box-shadow: 0 0 8px rgba(200, 149, 69, 0.7);
}

[data-theme="parchment"] .ch-feature__title {
  color: var(--text);
}

[data-theme="parchment"] .ch-feature__copy {
  color: rgba(20, 16, 10, 0.65);
}

[data-theme="parchment"] .ch-feature__arrow {
  background: rgba(200, 149, 69, 0.16);
  color: var(--gold-deep);
}

[data-theme="parchment"] .ch-feature:hover .ch-feature__arrow {
  background: rgba(200, 149, 69, 0.26);
}

[data-theme="parchment"] .ch-tile {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(122, 43, 26, 0.1);
}

[data-theme="parchment"] .ch-tile:hover,
[data-theme="parchment"] .ch-tile:focus-visible {
  border-color: rgba(200, 149, 69, 0.55);
  box-shadow: 0 16px 30px rgba(122, 43, 26, 0.14);
}

[data-theme="parchment"] .ch-tile__icon {
  background: rgba(200, 149, 69, 0.14);
  border: 1px solid rgba(200, 149, 69, 0.34);
  color: var(--gold-deep);
}

[data-theme="parchment"] .ch-tile__title {
  color: var(--text);
}

[data-theme="parchment"] .ch-tile__hint {
  color: rgba(20, 16, 10, 0.6);
}

[data-theme="parchment"] .ch-row {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 16, 10, 0.1);
  color: var(--text);
}

[data-theme="parchment"] .ch-row:hover,
[data-theme="parchment"] .ch-row:focus-visible {
  background: rgba(251, 246, 233, 0.95);
  border-color: rgba(200, 149, 69, 0.5);
}

[data-theme="parchment"] .ch-row__icon {
  background: rgba(200, 149, 69, 0.14);
  border: 1px solid rgba(200, 149, 69, 0.32);
  color: var(--gold-deep);
}

[data-theme="parchment"] .ch-row__label {
  color: var(--text);
}

[data-theme="parchment"] .ch-row__hint {
  color: rgba(20, 16, 10, 0.6);
}

[data-theme="parchment"] .ch-row__arrow {
  color: var(--gold-deep);
}

[data-theme="parchment"] .ch-foot__divider {
  color: var(--gold-deep);
}

[data-theme="parchment"] .ch-foot__divider span:first-child,
[data-theme="parchment"] .ch-foot__divider span:last-child {
  background: linear-gradient(90deg, transparent, rgba(200, 149, 69, 0.5), transparent);
}

[data-theme="parchment"] .ch-foot__text {
  color: rgba(20, 16, 10, 0.65);
}

[data-theme="parchment"] .ch-foot__text a {
  color: var(--gold-deep);
  border-bottom-color: rgba(200, 149, 69, 0.5);
}

[data-theme="parchment"] .ch-foot__text a:hover {
  color: #7a2b1a;
  border-bottom-color: #7a2b1a;
}

@media (max-width: 360px) {
  [data-theme="parchment"] .ch-feature__arrow {
    background: linear-gradient(135deg, rgba(200, 149, 69, 0.22), rgba(122, 43, 26, 0.14));
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   GLOBAL MOBILE POLISH (dark theme)
   Padroniza panels · screen-heads · cards de TODAS as telas internas
   Touch targets ≥ 48px · espaçamento generoso · tipografia clara
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .app-shell {
    padding: 14px 14px calc(100px + var(--safe-area-bottom));
  }
}

/* Panels internos das telas — padrão visual unificado */
.panel--wide:not(.panel--chat) {
  background: linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.95));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 18px 26px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
  margin: 0;
}

@media (max-width: 480px) {
  .panel--wide:not(.panel--chat) {
    border-radius: 20px;
    padding: 20px 16px 22px;
  }
}

/* Screen heads — modernos e respiráveis */
.screen-head {
  margin: 0 0 18px;
  padding: 0;
  text-align: left;
}

.screen-head--center {
  text-align: center;
}

.screen-head .eyebrow {
  display: block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.92;
}

.screen-head h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.5rem, 5.4vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.18;
  color: var(--text);
}

.screen-intro,
.screen-head__copy {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
}

.screen-head--center .screen-intro,
.screen-head--center .screen-head__copy {
  margin-left: auto;
  margin-right: auto;
}

/* ── PRAYERS screen ──────────────────────────────────────────── */
.prayer-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prayer-card {
  grid-template-columns: 56px 1fr;
  min-height: 84px;
  padding: 18px 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.95));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
  align-items: center;
  gap: 14px;
}

.prayer-card:hover,
.prayer-card:focus-visible {
  background: linear-gradient(180deg, rgba(33, 27, 16, 0.95), rgba(20, 16, 10, 0.96));
  border-color: rgba(240, 204, 115, 0.42);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.prayer-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(240, 204, 115, 0.12);
  border: 1px solid rgba(240, 204, 115, 0.28);
  font-size: 1.4rem;
}

.prayer-card__body {
  gap: 4px;
}

.prayer-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
}

.prayer-card__focus {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.prayer-card__cta {
  display: none; /* full card is tappable; remove redundant inner CTA */
}

.prayer-card::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.prayer-card { position: relative; }

.prayer-card:hover::after {
  opacity: 0.95;
  transform: translateY(-50%) translateX(3px);
}

.prayer-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(122, 43, 26, 0.18);
  border: 1px solid rgba(240, 204, 115, 0.32);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ── MUSIC / SONGS screen ──────────────────────────────────────── */
.music-browse {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.music-browse__head {
  margin: 0;
  text-align: left;
}

.music-browse__head .eyebrow {
  display: block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.music-browse__head h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 5.4vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.18;
  color: var(--text);
}

.music-intro {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
}

.playlist--cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.playlist-card {
  min-height: 84px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.95));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
  position: relative;
}

.playlist-card:hover,
.playlist-card:focus-visible {
  background: linear-gradient(180deg, rgba(33, 27, 16, 0.95), rgba(20, 16, 10, 0.96));
  border-color: rgba(240, 204, 115, 0.42);
  transform: translateY(-2px);
}

.playlist-card__tag {
  background: rgba(240, 204, 115, 0.14);
  color: var(--gold);
  border: 1px solid rgba(240, 204, 115, 0.32);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  width: fit-content;
}

.playlist-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.playlist-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.playlist-card__duration {
  font-size: 0.78rem;
  color: var(--gold);
  opacity: 0.85;
}

.playlist-card__play {
  width: 44px;
  height: 44px;
  background: rgba(240, 204, 115, 0.14);
  color: var(--gold);
  border: 1px solid rgba(240, 204, 115, 0.32);
  transition: background 0.2s ease;
}

.playlist-card:hover .playlist-card__play {
  background: var(--gold);
  color: #14100a;
}

/* ── TAROT (Daily Card) screen — mobile optimized ─────────────── */
.panel--tarot {
  text-align: center;
  padding: 20px 16px 24px;
}

.tarot-status {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

.tarot-stack {
  width: 100%;
  max-width: clamp(280px, 82vw, 360px);
  margin: 16px auto 0;
  gap: 18px !important;
  padding-top: 4px !important;
}

.tarot-flip {
  width: 100%;
  max-width: clamp(280px, 82vw, 360px) !important;
  margin-top: 0 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.4)) !important;
}

.daily-card {
  margin-top: 14px;
  padding: 18px 16px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.95));
  border: 1px solid var(--line);
  text-align: left;
}

.tarot-reading__grid {
  gap: 12px !important;
}

.tarot-reading__block {
  padding: 14px !important;
}

.panel--tarot .screen-head {
  margin: 0 0 6px !important;
}

.panel--tarot .screen-head h2 {
  font-size: clamp(1.5rem, 5.2vw, 1.85rem) !important;
  margin: 0 0 4px !important;
}

.panel--tarot .eyebrow {
  margin: 0 0 4px !important;
}

@media (max-width: 360px) {
  .panel--tarot {
    padding: 16px 12px 20px;
  }
  .tarot-stack,
  .tarot-flip {
    max-width: 84vw !important;
  }
}

.daily-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}

.daily-card h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--text);
}

.daily-card__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 204, 115, 0.4), transparent);
  margin: 14px 0;
}

.tarot-reading__grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.tarot-reading__block {
  padding: 14px 14px 14px 14px;
  border-radius: 14px;
  background: rgba(27, 22, 13, 0.6);
  border: 1px solid var(--line);
}

.tarot-reading__tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}

.tarot-reading__block p:last-child {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

/* ── CHAT screen ──────────────────────────────────────────────── */
.chat-contact {
  padding: 12px 14px;
  gap: 12px;
  background: rgba(10, 8, 5, 0.98);
  border-bottom: 1px solid var(--line);
}

.chat-contact__avatar-wrap {
  width: 44px;
  height: 44px;
}

.chat-contact__name {
  font-size: 1.05rem;
  font-weight: 700;
}

.chat-contact__status {
  font-size: 0.78rem;
  color: rgba(245, 239, 226, 0.65);
}

.chat-back-button {
  width: 40px;
  height: 40px;
}

.chat-feed {
  padding: 18px 14px;
  gap: 4px;
}

.chat-message__bubble {
  padding: 12px 16px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.chat-message--ai .chat-message__bubble {
  background: rgba(33, 27, 16, 0.85);
  border: 1px solid var(--line);
}

.chat-input-area {
  padding: 12px 14px calc(14px + var(--safe-area-bottom));
  background: rgba(10, 8, 5, 0.98);
  border-top: 1px solid var(--line);
}

.chat-form {
  gap: 8px;
}

.chat-form__input {
  min-height: 48px;
  padding: 13px 18px;
  font-size: 16px;
  border-radius: 22px;
  background: rgba(33, 27, 16, 0.7);
  border: 1px solid var(--line);
}

.chat-form__input:focus {
  background: rgba(33, 27, 16, 0.9);
  border-color: rgba(240, 204, 115, 0.5);
  box-shadow: 0 0 0 3px rgba(240, 204, 115, 0.08);
}

.chat-form__submit {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-mid));
  color: #14100a;
  box-shadow: 0 8px 20px rgba(240, 204, 115, 0.28);
}

.chat-form__submit:hover {
  box-shadow: 0 12px 24px rgba(240, 204, 115, 0.36);
}

/* ── LIWEI screen ─────────────────────────────────────────────── */
.liwei-screen {
  padding: 16px 0 0;
}

.liwei-back {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(33, 27, 16, 0.7);
  border: 1px solid var(--line);
  color: var(--gold);
}

.liwei-hero {
  text-align: center;
  padding: 28px 20px 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(240, 204, 115, 0.16), transparent 56%),
    linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.95));
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.liwei-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}

.liwei-hero__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 5.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.18;
  margin: 0 0 8px;
  color: var(--text);
}

.liwei-hero__subtitle {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.liwei-section {
  margin-bottom: 22px;
}

.liwei-section__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.liwei-mantras {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.liwei-mantra {
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.95));
  border: 1px solid var(--line);
  overflow: hidden;
}

.liwei-mantra__trigger {
  width: 100%;
  min-height: 72px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
}

.liwei-mantra__tag {
  align-self: flex-start;
  display: inline-block;
  background: rgba(240, 204, 115, 0.14);
  color: var(--gold);
  border: 1px solid rgba(240, 204, 115, 0.32);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.liwei-mantra__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 4.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
  word-break: break-word;
}

.liwei-mantra__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.liwei-mantra__play {
  align-self: stretch;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(240, 204, 115, 0.12);
  border: 1px solid rgba(240, 204, 115, 0.32);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.liwei-mantra.is-open {
  border-color: rgba(240, 204, 115, 0.55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.liwei-mantra.is-open .liwei-mantra__play {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep, #d9a85a));
  color: #14100a;
  border-color: transparent;
}

@media (max-width: 380px) {
  .liwei-mantra__trigger { padding: 14px 14px; }
  .liwei-mantra__tag { font-size: 0.6rem; letter-spacing: 0.16em; }
  .liwei-mantra__name { font-size: 1.05rem; }
  .liwei-mantra__desc { font-size: 0.84rem; }
}

.liwei-element {
  padding: 18px;
  border-radius: 16px;
  background: rgba(27, 22, 13, 0.6);
  border: 1px solid var(--line);
}

.liwei-manual {
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.95));
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 10px;
}

.liwei-manual__summary {
  padding: 16px 18px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
}

.liwei-manual__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0;
}

.liwei-manual__hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 2px 0 0;
}

.liwei-manual__body {
  padding: 0 18px 20px;
}

.liwei-manual__body p,
.liwei-manual__body li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(245, 239, 226, 0.85);
}

.liwei-manual__body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin: 16px 0 8px;
  letter-spacing: 0.01em;
}

/* ── ANGEL TAROT screen ──────────────────────────────────────── */
.angel-tarot-video {
  margin-top: 18px !important;
  border-radius: 18px !important;
  border: 1px solid var(--line) !important;
  background: rgba(10, 8, 5, 0.98) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42) !important;
}

/* ── CREDITS / PLANS screen ──────────────────────────────────── */
.plan-card {
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.95));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
  margin-bottom: 14px;
}

.plan-card.is-popular,
.plan-card[data-featured="true"] {
  border-color: var(--gold);
  box-shadow: 0 18px 38px rgba(240, 204, 115, 0.22);
}

.plan-card__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 4px;
}

.plan-card__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.plan-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--gold);
  color: #14100a;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 12px 26px rgba(240, 204, 115, 0.28);
  margin-top: 16px;
  width: 100%;
}

/* ── TABBAR refinements (floating rounded) ────────────────────── */
.tabbar__label {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1;
}

.tabbar__item.is-active .tabbar__icon-svg {
  transform: scale(1.08);
  transition: transform 0.2s ease;
}

/* ── TOPBAR refinements ───────────────────────────────────────── */
.topbar {
  padding: 8px 0 24px;
  justify-content: center;
}

.topbar__theme-toggle,
.topbar__help {
  min-height: 40px;
}

.topbar__theme-toggle {
  width: 40px;
  height: 40px;
}

.topbar__help {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.9rem;
}

@media (max-width: 380px) {
  .topbar__help-label {
    display: none;
  }
  .topbar__help {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
}

/* ── Touch targets globais ──────────────────────────────────── */
@media (hover: none) {
  .ch-tile:hover,
  .ch-row:hover,
  .ch-feature:hover,
  .prayer-card:hover,
  .playlist-card:hover {
    transform: none;
  }
}

/* ── Language selector (profile) ────────────────────────────── */
.profile__language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 204, 115, 0.14);
}
.profile__language-label {
  font-size: 0.95rem;
  color: #d8cdb6;
  letter-spacing: 0.02em;
}
.profile__language-options {
  display: inline-flex;
  gap: 6px;
}
.lang-option {
  appearance: none;
  border: 1px solid rgba(240, 204, 115, 0.28);
  background: transparent;
  color: #cbb27e;
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lang-option:hover {
  border-color: rgba(240, 204, 115, 0.55);
}
.lang-option.is-active {
  background: linear-gradient(135deg, #f0cc73, #d9a85a);
  border-color: transparent;
  color: #1a140a;
  font-weight: 600;
}
[data-theme="parchment"] .profile__language-label { color: #5b4a2f; }
[data-theme="parchment"] .lang-option { color: #6b5836; border-color: rgba(160, 120, 50, 0.35); }
[data-theme="parchment"] .lang-option.is-active { color: #2a1f0e; }

/* ── Language prompt (primeira vez, idioma não detectado) ─────── */
.language-prompt {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 8, 4, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.language-prompt.is-visible { display: flex; }
.language-prompt__card {
  width: 100%;
  max-width: 360px;
  text-align: center;
  padding: 32px 24px;
  border-radius: 22px;
  background: linear-gradient(160deg, #1c1710, #14100a);
  border: 1px solid rgba(240, 204, 115, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.language-prompt__title {
  margin: 6px 0 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: #f3e7c7;
  line-height: 1.3;
}
.language-prompt__title span {
  display: block;
  font-size: 1.05rem;
  opacity: 0.7;
  font-style: italic;
}
.language-prompt__options { display: flex; flex-direction: column; gap: 10px; }
.language-prompt__option {
  appearance: none;
  border: 1px solid rgba(240, 204, 115, 0.35);
  background: transparent;
  color: #f0cc73;
  font: inherit;
  font-size: 1rem;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}
.language-prompt__option:hover {
  background: linear-gradient(135deg, #f0cc73, #d9a85a);
  color: #1a140a;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   THE ORDER OF LIGHT — relic cards (Seal · Hearth Vigil · Li Wei)
   Profile section + locked altar tile + Li Wei gate. Gold-on-leather,
   mirrors the /seal/ funnel (its gold #e9c77b ↔ app --gold #f0cc73).
   ═══════════════════════════════════════════════════════════════ */
.profile__relics {
  margin: 26px 0 6px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.profile__relics-head { text-align: center; margin-bottom: 4px; }
.profile__relics-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.92;
}
.profile__relics-title {
  margin: 6px 0 4px;
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 5vw, 1.4rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.profile__relics-sub {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
}

.relic-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.relic-card {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(240, 204, 115, 0.10), transparent 55%),
    var(--panel);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.relic-card.is-owned { border-color: rgba(240, 204, 115, 0.42); }
.relic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 204, 115, 0.5);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.46);
}

.relic-card__media {
  position: relative;
  flex: 0 0 92px;
  width: 92px;
  align-self: stretch;
  min-height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-deep);
}
.relic-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.relic-card.is-locked .relic-card__img { filter: grayscale(0.62) brightness(0.6) contrast(0.95); }
.relic-card__lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: radial-gradient(circle at center, rgba(10, 8, 5, 0.32), rgba(10, 8, 5, 0.62));
}
.relic-card__lock svg { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)); }

.relic-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}
.relic-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(10, 8, 5, 0.35);
}
.relic-card__badge--owned {
  color: #1a140a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-mid));
}
.relic-card__title {
  margin: 1px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-soft);
}
.relic-card__desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
.relic-card__cta {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: none;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  color: #1a140a;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-mid));
  box-shadow: 0 10px 22px rgba(217, 168, 90, 0.30);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.relic-card__cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(217, 168, 90, 0.40);
}
.relic-card__cta--owned {
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(240, 204, 115, 0.5);
  box-shadow: none;
}
.relic-card__cta--owned:hover { background: rgba(240, 204, 115, 0.10); box-shadow: none; }

/* Locked Li Wei tile on the home altar grid — pílula clicável "Clique para liberar" */
.altar-module__lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(10, 8, 5, 0.78);
  border: 1px solid rgba(240, 204, 115, 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  pointer-events: none;
  max-width: calc(100% - 24px);
}
.altar-module__lock-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.altar-module__lock-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  line-height: 1;
}
/* Pulso sutil pra chamar atenção */
@keyframes altar-lock-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(240, 204, 115, 0.0); }
  50%      { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(240, 204, 115, 0.12); }
}
.altar-module--gated .altar-module__lock:not([hidden]) {
  animation: altar-lock-pulse 2.4s ease-in-out infinite;
}
/* Lock only shows when the tile is locked — driven by .is-locked, not the
   [hidden] attr (a class display rule would otherwise override [hidden]). */
.altar-module.is-locked .altar-module__lock { display: inline-flex; }
.altar-module.is-locked { filter: saturate(0.85) brightness(0.82); }
.altar-module.is-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 5, 0.28), rgba(10, 8, 5, 0.52));
  pointer-events: none;
}

/* Selo de San Miguel: o "cadeado" (meio aberto) vira um botão DOURADO de resgate. */
.altar-module--seal .altar-module__lock {
  background: linear-gradient(180deg, #f7d98a, #c89545);
  border-color: rgba(255, 246, 220, 0.85);
  color: #1a140b;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.altar-module--seal .altar-module__lock-text {
  color: #1a140b;
  font-weight: 700;
}

/* Li Wei sealed gate — viewport modal (shown only while on the Li Wei screen
   and locked; JS keeps it from leaking onto other screens). z-index sits BELOW
   the tabbar (z:10) so the user can always navigate away. */
.liwei-screen { position: relative; }
.liwei-gate {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(10, 8, 5, 0.86), rgba(10, 8, 5, 0.95));
  backdrop-filter: blur(8px);
}
.liwei-gate[hidden] { display: none; }
.liwei-gate__card {
  max-width: 340px;
  text-align: center;
  padding: 26px 22px;
  border-radius: 20px;
  border: 1px solid rgba(240, 204, 115, 0.3);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(240, 204, 115, 0.12), transparent 60%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}
.liwei-gate__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(10, 8, 5, 0.5);
  border: 1px solid rgba(240, 204, 115, 0.4);
}
.liwei-gate__title {
  margin: 0 0 8px;
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-soft);
}
.liwei-gate__body {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.liwei-gate__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: #1a140a;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-mid));
  box-shadow: 0 12px 26px rgba(217, 168, 90, 0.34);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.liwei-gate__cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* ── Hearth Vigil screen ── */
.vigil-screen { position: relative; display: flex; flex-direction: column; gap: 18px; }
.vigil-hero { text-align: center; padding: 8px 0 4px; }
.vigil-hero__flame { font-size: 2.4rem; line-height: 1; margin-bottom: 6px; }
.vigil-hero__eyebrow { margin: 0; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.vigil-hero__title { margin: 6px 0 2px; font-family: "Cinzel", "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; font-weight: 600; color: var(--gold-soft); }
.vigil-hero__month { margin: 0 0 8px; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--gold); }
.vigil-hero__subtitle { margin: 0 auto; max-width: 460px; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }
.vigil-card { padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(240, 204, 115, 0.18); background: radial-gradient(130% 130% at 50% 0%, rgba(240, 204, 115, 0.08), transparent 60%), var(--panel-strong); box-shadow: var(--shadow); }
.vigil-card__label { display: block; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.vigil-card__title { margin: 0 0 8px; font-family: "Cinzel", "Cormorant Garamond", Georgia, serif; font-size: 1.2rem; font-weight: 600; color: var(--gold-soft); }
.vigil-card__text { margin: 0; font-size: 0.98rem; line-height: 1.7; color: var(--text); }
.vigil-card__verse { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.08rem; line-height: 1.7; color: var(--gold-soft); }
.vigil-card--blessing { border-color: rgba(240, 204, 115, 0.3); }
.vigil-audio { width: 100%; margin-top: 12px; }
.vigil-foot { text-align: center; font-size: 0.82rem; color: var(--muted); margin: 4px 0 0; }

/* ── Almas confiadas a Celestino (card dos nomes · Vigil/Watch) ── */
.vigil-card--souls { border-color: rgba(240, 204, 115, 0.34); background: radial-gradient(140% 140% at 50% 0%, rgba(240, 204, 115, 0.13), transparent 62%), var(--panel-strong); }
.souls-card__lead { margin: 0 0 14px; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.05rem; line-height: 1.5; color: var(--gold-soft); }
.souls-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.souls-card__name { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 13px; border: 1px solid rgba(240, 204, 115, 0.18); background: linear-gradient(180deg, rgba(240, 204, 115, 0.07), rgba(255, 255, 255, 0.01)); animation: soulsNameIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.souls-card__flame { font-size: 1.15rem; line-height: 1; filter: drop-shadow(0 0 6px rgba(240, 204, 115, 0.55)); animation: soulsFlicker 3.2s ease-in-out infinite; }
.souls-card__name:nth-child(even) .souls-card__flame { animation-delay: 0.7s; }
.souls-card__name-tx { font-family: "Cinzel", "Cormorant Garamond", Georgia, serif; font-size: 1.08rem; letter-spacing: 0.02em; color: var(--text); }
.souls-card__empty { margin: 0 0 6px; font-size: 0.94rem; line-height: 1.6; color: var(--muted); }
.souls-card__edit { margin-top: 14px; width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(240, 204, 115, 0.42); background: transparent; color: var(--gold-soft); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease; }
.souls-card__edit:hover { background: rgba(240, 204, 115, 0.1); border-color: rgba(240, 204, 115, 0.7); }
/* Mesmo botao, como link (oferta do Lineage e portal da cerimonia na Area Sagrada). */
.souls-card__edit--link { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
.souls-card__edit.is-disabled { opacity: 0.55; cursor: default; pointer-events: none; }
#sealing-lineage-offer[hidden], #sealing-lineage-owned[hidden] { display: none; }

@keyframes soulsNameIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes soulsFlicker { 0%, 100% { opacity: 1; transform: translateY(0) scale(1); } 45% { opacity: 0.82; transform: translateY(-1px) scale(0.97); } 70% { opacity: 0.95; } }

/* ── Editor de nomes (modal reusavel) ── */
.souls-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.souls-modal[hidden] { display: none; }
.souls-modal__scrim { position: absolute; inset: 0; background: rgba(4, 5, 12, 0.78); backdrop-filter: blur(4px); }
.souls-modal__card { position: relative; width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto; padding: 26px 22px 22px; border-radius: 20px; border: 1px solid rgba(240, 204, 115, 0.3); background: radial-gradient(130% 120% at 50% 0%, rgba(240, 204, 115, 0.1), transparent 60%), var(--panel-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); text-align: center; }
.souls-modal__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer; }
.souls-modal__close:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.souls-modal__flame { font-size: 2rem; line-height: 1; margin-bottom: 4px; }
.souls-modal__title { margin: 4px 0 6px; font-family: "Cinzel", "Cormorant Garamond", Georgia, serif; font-size: 1.28rem; font-weight: 600; color: var(--gold-soft); }
.souls-modal__sub { margin: 0 0 16px; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.souls-modal__rows { display: flex; flex-direction: column; gap: 9px; text-align: left; }
.souls-modal__row { display: flex; align-items: center; gap: 8px; }
.souls-modal__input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(240, 204, 115, 0.22); background: rgba(255, 255, 255, 0.03); color: var(--text); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.1rem; }
.souls-modal__input::placeholder { color: rgba(154, 160, 184, 0.55); font-style: italic; }
.souls-modal__input:focus { outline: none; border-color: rgba(240, 204, 115, 0.6); }
.souls-modal__row-del { flex: 0 0 auto; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.1); background: transparent; color: var(--muted); cursor: pointer; }
.souls-modal__row-del:hover { color: #e88; border-color: rgba(238, 136, 136, 0.4); }
/* Etiqueta de preço por nome (Watch): "free" (verde/dourado) ou "+$9" (suave). */
.souls-modal__amt { flex: 0 0 auto; min-width: 34px; text-align: right; font-size: 0.78rem; font-weight: 700; color: var(--gold-soft); white-space: nowrap; }
.souls-modal__amt--free { color: #8fd9a0; font-style: italic; }
/* Linha "Você" (Watch): posição 1, coberta pelo $19, não editável. */
.souls-modal__you { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-radius: 12px; border: 1px dashed rgba(240, 204, 115, 0.28); background: rgba(240, 204, 115, 0.05); }
.souls-modal__you-tx { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.1rem; color: var(--gold); }
.souls-modal__you-tag { font-size: 0.72rem; color: var(--muted); font-style: italic; white-space: nowrap; }
.souls-card__name--you .souls-card__name-tx { color: var(--gold-soft); font-style: italic; }
.souls-modal__add { margin: 12px 0 0; width: 100%; padding: 10px; border-radius: 11px; border: 1px dashed rgba(240, 204, 115, 0.4); background: transparent; color: var(--gold-soft); font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.souls-modal__add:hover { background: rgba(240, 204, 115, 0.08); }
/* Prévia de custo viva (Watch): valor mensal grande, dourado. */
.souls-modal__cost { margin: 14px 0 2px; text-align: center; font-size: 1.02rem; font-weight: 700; color: var(--gold); letter-spacing: 0.01em; }
/* Dica abaixo do salvar (Watch): explica proração / 3º grátis. */
.souls-modal__hint { margin: 10px 0 0; text-align: center; font-size: 0.78rem; line-height: 1.5; color: var(--muted); }
.souls-modal__save { margin: 14px 0 0; width: 100%; padding: 14px; border-radius: 13px; border: none; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #1a1405; font-size: 0.98rem; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; box-shadow: 0 10px 28px rgba(240, 204, 115, 0.28); }
.souls-modal__save:disabled { opacity: 0.6; cursor: default; }
.souls-modal__note { margin: 10px 0 0; font-size: 0.85rem; color: #e8a; }
body.is-souls-open { overflow: hidden; }

/* ── Endereço de entrega (Selo · Crystal Oracle — produtos físicos) ── */
.address-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.address-modal[hidden] { display: none; }
.address-modal__scrim { position: absolute; inset: 0; background: rgba(4, 5, 12, 0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.address-modal__card { position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; padding: 26px 22px 22px; border-radius: 20px; border: 1px solid rgba(240, 204, 115, 0.3); background: radial-gradient(130% 120% at 50% 0%, rgba(240, 204, 115, 0.1), transparent 60%), var(--panel-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.address-modal__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer; }
.address-modal__close:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.address-modal__title { margin: 6px 0 8px; font-family: "Cinzel", "Cormorant Garamond", Georgia, serif; font-size: 1.28rem; font-weight: 600; color: var(--gold-soft); }
.address-modal__copy { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.6; color: var(--muted); }
.address-form { display: grid; gap: 8px; }
.address-form__label { margin-top: 4px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--gold-soft); }
.address-form input,
.address-form select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(240, 204, 115, 0.22); background: rgba(255, 255, 255, 0.03); color: var(--text); font-size: 0.95rem; outline: none; }
.address-form input:focus,
.address-form select:focus { border-color: rgba(240, 204, 115, 0.6); box-shadow: 0 0 0 4px rgba(240, 204, 115, 0.08); }
.address-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d9a85a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.address-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.address-form__grid > div { min-width: 0; display: grid; gap: 8px; align-content: start; }
/* País: combobox pesquisável (digita OU escolhe). Substituiu o <select> de 21 países
   + o campo "Country code (2 letters)".
   ⚠️ LIÇÃO: nunca declarar `display:` numa classe cujo elemento é escondido pelo
   atributo [hidden] — regra de autor vence o `[hidden]{display:none}` do navegador e
   o elemento NUNCA some. Foi o bug do antigo `.address-form__other { display: grid }`,
   que deixava "Country code (2 letters)" fixo na tela ao lado do país já escolhido.
   Por isso o [hidden] abaixo vem DEPOIS e reafirma o display:none. */
/* Dica ao lado do rótulo (ex.: "seu país não usa CEP"). Sem `display:` de propósito
   — ver a lição do [hidden] logo acima; o guard abaixo garante que o JS manda. */
.address-form__hint { font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.address-form__hint[hidden] { display: none; }
.address-combo { position: relative; }
.address-combo > input[type="text"] { padding-right: 36px; }
.address-combo__toggle { position: absolute; top: 0; right: 0; height: 100%; width: 36px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--gold-soft); cursor: pointer; }
.address-combo__list { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; max-height: 232px; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0; padding: 4px; list-style: none; border-radius: 12px; border: 1px solid rgba(240, 204, 115, 0.28); background: var(--panel-strong); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6); }
.address-combo__list[hidden] { display: none; }
.address-combo__option { padding: 10px 12px; border-radius: 9px; font-size: 0.92rem; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.address-combo__option:hover,
.address-combo__option.is-active { background: rgba(240, 204, 115, 0.16); }
.address-combo__option[aria-selected="true"] { color: var(--gold-soft); }
.address-combo__code { flex: none; font-size: 0.76rem; letter-spacing: 0.08em; color: var(--muted); }
.address-combo__empty { padding: 10px 12px; font-size: 0.88rem; color: var(--muted); }
.address-form__submit { margin-top: 12px; width: 100%; padding: 14px; border-radius: 13px; border: none; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #1a1405; font-size: 0.98rem; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; box-shadow: 0 10px 28px rgba(240, 204, 115, 0.28); }
.address-form__submit:disabled { opacity: 0.6; cursor: default; }
.address-form__later { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: var(--muted); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.address-form__later:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.address-form__feedback { min-height: 20px; margin: 4px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--muted); text-align: center; }
body.is-address-open { overflow: hidden; }

/* Nomes da família (Lineage Prayer) — o modal reusa .address-modal/.address-form;
   aqui só o que é específico: a lista de nomes e o botão "+ Add another name". */
.lineage-form__names { display: grid; gap: 8px; }
.lineage-form__add { width: 100%; padding: 10px; border-radius: 12px; border: 1px dashed rgba(240, 204, 115, 0.35); background: transparent; color: var(--gold-soft); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.lineage-form__add:hover { border-color: rgba(240, 204, 115, 0.6); }
.lineage-form__add[hidden] { display: none; }
body.is-lineage-open { overflow: hidden; }
/* Link discreto nos relic cards possuídos (Selo/Sealing): confirmar/editar endereço */
.relic-card__address { margin-top: 8px; align-self: flex-start; padding: 0; border: none; background: transparent; color: var(--gold-soft); font-size: 0.82rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: 0.85; }
.relic-card__address:hover { opacity: 1; }

/* Modal de confirmacao de compra (1-clique cobra o cartao na hora -> pergunta antes) */
.confirm-modal { position: fixed; inset: 0; z-index: 4100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.confirm-modal__scrim { position: absolute; inset: 0; background: rgba(4, 5, 12, 0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.confirm-modal__card { position: relative; width: 100%; max-width: 380px; padding: 26px 22px 22px; border-radius: 20px; border: 1px solid rgba(240, 204, 115, 0.3); background: radial-gradient(130% 120% at 50% 0%, rgba(240, 204, 115, 0.1), transparent 60%), var(--panel-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); text-align: center; }
.confirm-modal__icon { font-size: 1.9rem; line-height: 1; margin-bottom: 6px; }
.confirm-modal__title { margin: 2px 0 8px; font-family: "Cinzel", "Cormorant Garamond", Georgia, serif; font-size: 1.22rem; font-weight: 600; color: var(--gold-soft); }
.confirm-modal__summary { margin: 0 0 8px; font-size: 1.18rem; font-weight: 700; color: var(--gold); }
.confirm-modal__note { margin: 0 0 18px; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
.confirm-modal__actions { display: flex; flex-direction: column; gap: 10px; }
.confirm-modal__ok { width: 100%; padding: 14px; border-radius: 13px; border: none; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #1a1405; font-size: 0.98rem; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; box-shadow: 0 10px 28px rgba(240, 204, 115, 0.28); }
.confirm-modal__ok:disabled { opacity: 0.6; cursor: default; }
.confirm-modal__cancel { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: var(--muted); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.confirm-modal__cancel:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }

/* Pop-up "acabaram os cristais" (conversão no chat) */
/* z-index 4080: ACIMA do app, mas ABAIXO do confirm-modal (4100) e do congrats
   (4300) — senão a confirmação de compra e o sucesso abrem atrás do pop-up. */
.crystals-paywall { position: fixed; inset: 0; z-index: 4080; display: flex; align-items: center; justify-content: center; padding: 18px; }
.crystals-paywall__scrim { position: absolute; inset: 0; background: rgba(4, 5, 12, 0.82); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: paywallFade 0.2s ease; }
.crystals-paywall__card { position: relative; width: 100%; max-width: 400px; padding: 30px 22px 22px; border-radius: 22px; border: 1px solid rgba(240, 204, 115, 0.32); background: radial-gradient(140% 120% at 50% 0%, rgba(240, 204, 115, 0.14), transparent 62%), var(--panel-strong); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65); text-align: center; animation: paywallRise 0.26s cubic-bezier(0.2, 0.9, 0.3, 1); max-height: 92vh; overflow-y: auto; }
@keyframes paywallFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes paywallRise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.crystals-paywall__close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: none; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.crystals-paywall__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.crystals-paywall__gem { width: 46px; height: 46px; margin: 0 auto 8px; color: var(--gold); filter: drop-shadow(0 4px 14px rgba(240, 204, 115, 0.45)); animation: paywallGem 2.6s ease-in-out infinite; }
.crystals-paywall__gem svg { width: 100%; height: 100%; }
@keyframes paywallGem { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.crystals-paywall__title { margin: 2px 0 8px; font-family: "Cinzel", "Cormorant Garamond", Georgia, serif; font-size: 1.28rem; font-weight: 600; color: var(--gold-soft); }
.crystals-paywall__subtitle { margin: 0 0 18px; font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
.crystals-paywall__plans { display: flex; flex-direction: column; gap: 10px; }
.paywall-plan { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 1px 12px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); cursor: pointer; text-align: left; transition: border-color 0.18s ease, transform 0.12s ease, background 0.18s ease; }
.paywall-plan:hover { border-color: rgba(240, 204, 115, 0.55); background: rgba(240, 204, 115, 0.07); transform: translateY(-1px); }
.paywall-plan.is-featured { border-color: rgba(240, 204, 115, 0.5); background: rgba(240, 204, 115, 0.08); }
.paywall-plan__badge { grid-column: 1; grid-row: 1; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.paywall-plan__amount { grid-column: 1; grid-row: 2; font-size: 1.32rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.paywall-plan__unit { grid-column: 1; grid-row: 2; align-self: end; margin-left: 88px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.paywall-plan__price { grid-column: 2; grid-row: 1 / span 2; font-size: 1.18rem; font-weight: 800; color: var(--gold-soft); justify-self: end; }
.crystals-paywall__tip { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 2px 2px; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.crystals-paywall__tip-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold-deep)); box-shadow: 0 0 8px rgba(240, 204, 115, 0.7); animation: paywallPulse 1.8s ease-in-out infinite; }
@keyframes paywallPulse { 0%, 100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.15); } }

/* Parchment (light) theme overrides */
[data-theme="parchment"] .relic-card {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(200, 149, 69, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 28px rgba(122, 43, 26, 0.12);
}
[data-theme="parchment"] .relic-card__title { color: var(--text); }
[data-theme="parchment"] .relic-card__cta,
[data-theme="parchment"] .liwei-gate__cta {
  color: #fbf6e9;
  background: linear-gradient(135deg, var(--gold-deep) 0%, #b87a2d 100%);
}
[data-theme="parchment"] .relic-card__cta--owned {
  color: var(--gold-deep);
  background: transparent;
  border-color: rgba(200, 149, 69, 0.6);
}
[data-theme="parchment"] .relic-card__badge--owned {
  color: #fbf6e9;
  background: linear-gradient(135deg, var(--gold-deep), #b87a2d);
}
[data-theme="parchment"] .liwei-gate {
  background: linear-gradient(180deg, rgba(245, 239, 226, 0.86), rgba(245, 239, 226, 0.95));
}
[data-theme="parchment"] .liwei-gate__title { color: var(--gold-deep); }

@media (prefers-reduced-motion: reduce) {
  .relic-card, .relic-card__img, .relic-card__cta, .liwei-gate__cta { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Propósito de Fé — container na Home, wizard 3 passos, mapa Duolingo
   Tudo em tokens da paleta (var(--gold)/--text/--surface/--panel) → flips
   automático nos 2 temas (sanctum/parchment).
   ═══════════════════════════════════════════════════════════════ */

/* ── Container na Home — hero "mapa" (fundo escuro nos 2 temas) ──── */
.faith-card {
  position: relative;
  margin-top: 14px;
  border-radius: 22px;
  border: 1px solid rgba(240, 204, 115, 0.28);
  overflow: hidden;
  box-shadow: var(--shadow);
  /* fundo escuro tipo "imagem/mapa" — mantém-se escuro mesmo no tema claro,
     igual aos tiles do grid da Home (.altar-module). */
  background: linear-gradient(180deg, #181208 0%, #14100a 100%);
}
.faith-card[hidden] { display: none; }

/* Zona 1 — faixa de preview (mini-mapa horizontal, decorativo, sem texto) */
.faith-card__preview {
  position: relative;
  height: 94px;
  overflow: hidden;
  background:
    radial-gradient(120% 170% at 86% 0%, rgba(240, 204, 115, 0.2), transparent 60%),
    linear-gradient(180deg, #241b10 0%, #15100a 100%);
  border-bottom: 1px solid rgba(240, 204, 115, 0.1);
}
.faith-card__preview-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.faith-card__preview::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0), #14100a);
}
.faith-card__trail-glow {
  filter: drop-shadow(0 0 5px rgba(240, 204, 115, 0.6));
  animation: faith-trail-breathe 4.6s ease-in-out infinite;
}
@keyframes faith-trail-breathe { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.6; } }

/* Zona 2 — conteúdo (área limpa, sem decoração por trás) */
.faith-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 15px 18px 17px;
}
.faith-card__empty[hidden],
.faith-card__active[hidden] { display: none; }
.faith-card__active {
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.faith-card__active:hover .faith-card__enter { gap: 9px; }
.faith-card__active-head { display: flex; flex-direction: column; gap: 3px; }

.faith-card__eyebrow {
  margin: 0 0 4px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f0cc73;
}
.faith-card__title,
.faith-card__name {
  margin: 0;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  color: #f8f1e3;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.faith-card__sub,
.faith-card__intention {
  margin: 5px 0 0;
  font-size: 0.86rem;
  color: rgba(245, 239, 226, 0.78);
  line-height: 1.35;
}
.faith-card__intention {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.faith-card__cta {
  align-self: flex-start;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6e1a2 0%, #f0cc73 32%, #d9a85a 68%, #c89545 92%);
  color: #14100a;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(240, 204, 115, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.faith-card__cta:hover,
.faith-card__cta:focus-visible { transform: translateY(-1px); filter: brightness(1.04); outline: none; }
.faith-card__cta:active { transform: scale(0.97); }

.faith-card__progress { display: flex; flex-direction: column; gap: 6px; }
.faith-card__bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(240, 204, 115, 0.16);
  overflow: hidden;
}
.faith-card__bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-mid));
  box-shadow: 0 0 8px rgba(240, 204, 115, 0.5);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.faith-card__progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(245, 239, 226, 0.78);
}
.faith-card__enter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f0cc73;
}

/* ── Wizard (modal de 3 passos) ────────────────────────────── */
.faith-wizard {
  position: fixed;
  inset: 0;
  z-index: 560;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 60% 40% at 18% 16%, rgba(240, 204, 115, 0.18), transparent 55%),
    rgba(10, 8, 5, 0.74);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.faith-wizard[hidden] { display: none; }
.faith-wizard__inner {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  animation: quiz-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.faith-wizard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faith-wizard__brand { display: inline-flex; align-items: center; gap: 10px; }
.faith-wizard__sigil { width: 30px; height: 30px; color: var(--gold); filter: drop-shadow(0 0 6px rgba(240, 204, 115, 0.45)); }
.faith-wizard__brand-name {
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.22rem;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.faith-wizard__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(240, 204, 115, 0.06);
  color: var(--muted);
  cursor: pointer;
}
.faith-wizard__close:hover { color: var(--gold); border-color: var(--gold); }
.faith-wizard__progress { width: 100%; height: 3px; border-radius: 3px; background: rgba(240, 204, 115, 0.12); overflow: hidden; }
.faith-wizard__progress-fill {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-mid));
  box-shadow: 0 0 8px rgba(240, 204, 115, 0.55);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.faith-wizard__step {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.faith-wizard__body { position: relative; min-height: 188px; }
.faith-wizard__panel { display: none; flex-direction: column; gap: 12px; }
.faith-wizard__panel.is-active { display: flex; animation: quiz-question-in 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.faith-wizard__eyebrow {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.faith-wizard__title {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.14;
  color: var(--text);
}
.faith-wizard__input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* evita auto-zoom iOS */
  font-family: inherit;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(240, 204, 115, 0.06);
}
.faith-wizard__input::placeholder { color: var(--muted); opacity: 0.7; }
.faith-wizard__input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 204, 115, 0.18); }
.faith-wizard__textarea { resize: none; line-height: 1.45; }

.faith-wizard__presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.faith-preset {
  min-height: 50px;
  padding: 12px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(240, 204, 115, 0.05);
  color: var(--text);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.faith-preset.is-selected {
  border-color: var(--gold);
  background: rgba(240, 204, 115, 0.16);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(240, 204, 115, 0.4);
}
[data-theme="parchment"] .faith-preset.is-selected { color: var(--gold-deep); }
.faith-wizard__stepper { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 2px; }
.faith-step-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(240, 204, 115, 0.06);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.faith-step-btn:hover { border-color: var(--gold); }
[data-theme="parchment"] .faith-step-btn { color: var(--gold-deep); }
.faith-days-value {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 2.4ch;
  text-align: center;
}
[data-theme="parchment"] .faith-days-value { color: var(--gold-deep); }
.faith-wizard__hint { margin: 0; text-align: center; font-size: 0.78rem; color: var(--muted); }
.faith-wizard__hint--left { text-align: left; margin: -4px 0 2px; }

/* Passo 2 — chips de área (multi-seleção) */
.faith-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.faith-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(240, 204, 115, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.faith-area:hover { border-color: rgba(240, 204, 115, 0.55); }
.faith-area__ic { display: grid; place-items: center; width: 24px; height: 24px; flex: none; color: var(--gold); }
[data-theme="parchment"] .faith-area__ic { color: var(--gold-deep); }
.faith-area__ic svg { width: 22px; height: 22px; }
.faith-area__label { line-height: 1.12; }
.faith-area.is-selected {
  border-color: var(--gold);
  background: rgba(240, 204, 115, 0.16);
  box-shadow: inset 0 0 0 1px rgba(240, 204, 115, 0.4);
}

.faith-wizard__foot { display: flex; gap: 12px; }
.faith-wizard__back-btn {
  padding: 0 18px;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.faith-wizard__back-btn[hidden] { display: none; }
.faith-wizard__next-btn {
  flex: 1;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6e1a2 0%, #f0cc73 32%, #d9a85a 68%, #c89545 92%);
  color: #14100a;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.16rem;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(240, 204, 115, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.faith-wizard__next-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.faith-wizard__next-btn:active { transform: scale(0.98); }
.faith-wizard__next-btn:disabled { opacity: 0.5; pointer-events: none; }
.faith-wizard__error { margin: 0; min-height: 1.1em; text-align: center; font-size: 0.8rem; color: var(--sanguine); }
[data-theme="parchment"] .faith-wizard__error { color: #b23b22; }

/* ── Tela do mapa (#screen-faith) — cabeçalho premium ──────────── */
.faith-screen__head { text-align: center; margin: 2px auto 6px; max-width: 360px; padding: 4px 8px 0; }
.faith-screen__emblem {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(240, 204, 115, 0.5));
  animation: faith-emblem-glow 3.8s ease-in-out infinite;
}
[data-theme="parchment"] .faith-screen__emblem { color: var(--gold-deep); }
.faith-screen__emblem svg { width: 100%; height: 100%; }
@keyframes faith-emblem-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(240, 204, 115, 0.38)); }
  50% { filter: drop-shadow(0 0 15px rgba(240, 204, 115, 0.7)); }
}
.faith-screen__eyebrow { margin: 4px 0 0; }
.faith-screen__title {
  margin: 5px 0 0;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.92rem;
  line-height: 1.08;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 52%, var(--gold-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.faith-screen__intention { margin: 7px 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.faith-screen__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 0;
  max-width: 240px;
  color: var(--gold);
  font-size: 0.7rem;
}
[data-theme="parchment"] .faith-screen__rule { color: var(--gold-deep); }
.faith-screen__rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.55;
}
.faith-screen__rule span:last-child { background: linear-gradient(90deg, currentColor, transparent); }
.faith-screen__rule i { font-style: normal; opacity: 0.85; }
.faith-screen__progress { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; }
.faith-screen__bar {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 9px;
  border-radius: 999px;
  background: rgba(240, 204, 115, 0.14);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.faith-screen__bar-fill {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold) 58%, var(--gold-soft));
  box-shadow: 0 0 10px rgba(240, 204, 115, 0.6);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.faith-screen__bar-fill::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff6da, #f0cc73 58%, #d9a85a);
  box-shadow: 0 0 10px rgba(246, 225, 162, 0.9);
}
.faith-screen__progress-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
[data-theme="parchment"] .faith-screen__progress-label { color: var(--gold-deep); }
.faith-screen__hint {
  margin: 12px auto 0;
  max-width: 300px;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
}
.faith-screen__hint[hidden] { display: none; }
.faith-screen__hint.is-action { color: var(--gold); }
[data-theme="parchment"] .faith-screen__hint.is-action { color: var(--gold-deep); }
.faith-screen__chev { vertical-align: -2px; animation: faith-chev-bounce 1.5s ease-in-out infinite; }
@keyframes faith-chev-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* Mapa VERTICAL — "céu noturno" da jornada (sempre escuro, nos 2 temas). */
.faith-map {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 16px auto 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(240, 204, 115, 0.16);
  background:
    radial-gradient(70% 40% at 18% 5%, rgba(240, 204, 115, 0.13), transparent 60%),
    radial-gradient(58% 34% at 88% 34%, rgba(217, 168, 90, 0.1), transparent 62%),
    radial-gradient(80% 42% at 50% 100%, rgba(240, 204, 115, 0.14), transparent 55%),
    linear-gradient(180deg, #16110a 0%, #0c0905 100%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55);
}
.faith-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* estrelas piscando (delays variados via nth-child) */
.faith-map__stars circle { animation: faith-twinkle 4s ease-in-out infinite; }
.faith-map__stars circle:nth-child(3n) { animation-duration: 5.6s; animation-delay: -1.6s; }
.faith-map__stars circle:nth-child(3n+1) { animation-duration: 3.2s; animation-delay: -0.7s; }
@keyframes faith-twinkle { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.22; } }

/* trilha (base pontilhada + porção cumprida com glow + luz que flui) */
.faith-map__trail { fill: none; stroke: rgba(240, 204, 115, 0.16); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 15; }
.faith-map__trail--done {
  fill: none; stroke: #f0cc73; stroke-width: 5; stroke-linecap: round;
  opacity: 0.72; filter: drop-shadow(0 0 6px rgba(240, 204, 115, 0.55));
}
.faith-map__trail-shine {
  fill: none; stroke: #fff3cf; stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 14 260; opacity: 0.85;
  filter: drop-shadow(0 0 7px rgba(246, 225, 162, 0.9));
  animation: faith-flow 4.4s linear infinite;
}
@keyframes faith-flow { from { stroke-dashoffset: 274; } to { stroke-dashoffset: 0; } }

/* ilustrações místicas flutuando ao lado do caminho */
.faith-decor {
  position: absolute;
  width: 34px; height: 34px;
  transform: translate(-50%, -50%);
  color: rgba(240, 204, 115, 0.42);
  pointer-events: none;
  z-index: 1;
  animation: faith-float 6s ease-in-out infinite;
}
.faith-decor svg { width: 100%; height: 100%; }
.faith-decor:nth-of-type(even) { animation-duration: 7.6s; animation-delay: -2s; color: rgba(240, 204, 115, 0.32); }
@keyframes faith-float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 7px)); } }

.faith-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  z-index: 2;
}
.faith-node__btn {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: default;
  background: rgba(240, 204, 115, 0.06);
  color: rgba(245, 239, 226, 0.6);
  transition: transform 0.18s ease;
}
.faith-node__btn svg { width: 26px; height: 26px; }
.faith-node__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.62);
  white-space: nowrap;
}

/* cumprido */
.faith-node--done .faith-node__btn {
  background: radial-gradient(120% 120% at 35% 25%, #fbedc0, #f0cc73 46%, #d9a85a 100%);
  color: #14100a;
  box-shadow: 0 6px 18px rgba(240, 204, 115, 0.4), 0 0 0 5px rgba(240, 204, 115, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.faith-node--done .faith-node__label { color: #f0cc73; }

/* hoje (tappável) — aura + anel-sigilo girando + pulso */
.faith-node--today .faith-node__btn {
  background: radial-gradient(120% 120% at 50% 28%, #2a2012, #15110a);
  border: 2px solid #f0cc73;
  color: #f6e1a2;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(240, 204, 115, 0.45), inset 0 0 12px rgba(240, 204, 115, 0.2);
}
.faith-node--today .faith-node__btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(240, 204, 115, 0.8);
  animation: faith-pulse 2.1s ease-out infinite;
}
.faith-node--today .faith-node__btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px dashed rgba(240, 204, 115, 0.55);
  animation: faith-rotate 11s linear infinite;
}
.faith-node--today .faith-node__btn:hover { transform: scale(1.05); }
.faith-node--today .faith-node__btn:active { transform: scale(0.95); }
.faith-node--today .faith-node__label { color: #f6e1a2; }
@keyframes faith-pulse { 0% { transform: scale(0.92); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes faith-rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* próximo / travado */
.faith-node--next .faith-node__btn { background: rgba(20, 16, 10, 0.6); border: 1.5px dashed rgba(240, 204, 115, 0.45); color: rgba(245, 239, 226, 0.55); }
.faith-node--locked .faith-node__btn { background: rgba(240, 204, 115, 0.04); border: 1px solid rgba(240, 204, 115, 0.14); color: rgba(245, 239, 226, 0.42); }
.faith-node--locked .faith-node__btn svg { opacity: 0.55; }

/* meta — destino radiante (raios girando atrás) */
.faith-node--goal .faith-node__btn { width: 72px; height: 72px; }
.faith-node__rays {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(240, 204, 115, 0.16) 0deg 4deg, transparent 4deg 13deg);
  -webkit-mask: radial-gradient(circle, #000 28%, transparent 72%);
  mask: radial-gradient(circle, #000 28%, transparent 72%);
  opacity: 0.5;
  animation: faith-rotate 26s linear infinite;
}
.faith-node--goal.faith-node--done .faith-node__rays { opacity: 0.95; }
.faith-node--goal.faith-node--done .faith-node__btn { box-shadow: 0 0 28px rgba(240, 204, 115, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.55); }

/* começo — origem radiante (raios sempre acesos, como o destino) */
.faith-node--start .faith-node__rays { opacity: 0.82; animation-direction: reverse; }
.faith-node--start.faith-node--done .faith-node__btn { box-shadow: 0 0 24px rgba(240, 204, 115, 0.5), 0 0 0 5px rgba(240, 204, 115, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55); }

.faith-node.is-justdone .faith-node__btn { animation: faith-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes faith-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* Banner de conclusão */
.faith-done {
  position: relative;
  text-align: center;
  max-width: 360px;
  margin: 6px auto 4px;
  padding: 24px 20px;
  border-radius: 22px;
  border: 1px solid var(--gold);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(240, 204, 115, 0.18), transparent 60%),
    var(--panel-strong);
  overflow: hidden;
}
.faith-done[hidden] { display: none; }
.faith-done__halo {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(240, 204, 115, 0.3), transparent 65%);
  pointer-events: none;
}
.faith-done__seal { position: relative; display: inline-block; width: 56px; height: 56px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(240, 204, 115, 0.5)); }
.faith-done__seal svg { width: 100%; height: 100%; }
.faith-done__title {
  position: relative;
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
}
.faith-done__copy { position: relative; margin: 6px 0 0; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.faith-done__cta {
  position: relative;
  margin-top: 16px;
  min-height: 50px;
  padding: 12px 26px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #f6e1a2 0%, #f0cc73 32%, #d9a85a 68%, #c89545 92%);
  color: #14100a;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(240, 204, 115, 0.3);
}
.faith-done__cta:active { transform: scale(0.97); }

.faith-abandon {
  display: block;
  margin: 18px auto calc(28px + var(--safe-area-bottom));
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.faith-abandon[hidden] { display: none; }
.faith-abandon:hover { color: var(--gold); }

/* Toast "volte amanhã" */
.faith-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-area-bottom));
  transform: translateX(-50%) translateY(12px);
  z-index: 600;
  max-width: 80%;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.faith-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Pips das 2 etapas (embaixo de cada nó) ──────────────────── */
.faith-node__pips { display: flex; gap: 5px; margin-top: 1px; }
.faith-node__pips i {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(245, 239, 226, 0.22);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.faith-node__pips i.is-on {
  background: #f0cc73;
  box-shadow: 0 0 6px rgba(240, 204, 115, 0.85);
}

/* ── Dia interativo (bottom sheet) ───────────────────────────── */
.faith-day { position: fixed; inset: 0; z-index: 580; }
.faith-day[hidden] { display: none; }
.faith-day__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 6, 3, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.faith-day.is-open .faith-day__backdrop { opacity: 1; }
.faith-day__sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: 460px;
  margin: 0 auto;
  padding: 14px 20px calc(26px + var(--safe-area-bottom));
  border-radius: 26px 26px 0 0;
  border-top: 1px solid rgba(240, 204, 115, 0.22);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(240, 204, 115, 0.12), transparent 60%),
    linear-gradient(180deg, #1c1610 0%, #120d07 100%);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.55);
  transform: translateY(102%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.faith-day.is-open .faith-day__sheet { transform: translateY(0); }
.faith-day__grip { display: block; width: 42px; height: 4px; border-radius: 999px; background: rgba(240, 204, 115, 0.3); margin: 0 auto 12px; }
.faith-day__close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(240, 204, 115, 0.18);
  background: rgba(240, 204, 115, 0.06);
  color: rgba(245, 239, 226, 0.7);
  cursor: pointer;
}
.faith-day__close:hover { color: #f0cc73; border-color: #f0cc73; }
.faith-day__eyebrow {
  margin: 0; text-align: center;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase;
  color: #f0cc73;
}
.faith-day__title {
  margin: 5px 0 4px; text-align: center;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic; font-weight: 600; font-size: 1.55rem; line-height: 1.12;
  color: #f8f1e3;
}
.faith-day__subtitle { margin: 0 auto 16px; max-width: 290px; text-align: center; font-size: 0.8rem; color: rgba(245, 239, 226, 0.6); line-height: 1.35; }
.faith-day__steps { display: flex; flex-direction: column; gap: 11px; }

.faith-day-step {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(240, 204, 115, 0.16);
  background: rgba(240, 204, 115, 0.05);
  color: #f5efe2;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}
.faith-day-step:hover { border-color: rgba(240, 204, 115, 0.4); }
.faith-day-step:active { transform: scale(0.985); }
.faith-day-step__ic {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(240, 204, 115, 0.1);
  color: #f0cc73;
}
.faith-day-step__ic svg { width: 24px; height: 24px; }
.faith-day-step__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.faith-day-step__title { font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.12rem; line-height: 1.15; color: #f8f1e3; }
.faith-day-step__sub { font-size: 0.78rem; color: rgba(245, 239, 226, 0.62); line-height: 1.3; }
.faith-day-step__check {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(240, 204, 115, 0.3);
  color: rgba(245, 239, 226, 0.55);
}
.faith-day-step__check svg { width: 16px; height: 16px; }
.faith-day-step:hover .faith-day-step__check { color: #f0cc73; border-color: rgba(240, 204, 115, 0.6); }

.faith-day-step.is-done {
  border-color: rgba(240, 204, 115, 0.6);
  background: rgba(240, 204, 115, 0.12);
  box-shadow: 0 0 18px rgba(240, 204, 115, 0.22);
  animation: faith-step-glow 0.85s ease;
}
.faith-day-step.is-done .faith-day-step__ic { background: radial-gradient(120% 120% at 35% 25%, #fbedc0, #f0cc73 55%, #d9a85a); color: #14100a; }
.faith-day-step.is-done .faith-day-step__check { background: radial-gradient(120% 120% at 35% 25%, #fbedc0, #f0cc73 55%, #d9a85a); border-color: transparent; color: #14100a; box-shadow: 0 0 10px rgba(240, 204, 115, 0.7); }
@keyframes faith-step-glow {
  0% { box-shadow: 0 0 0 rgba(240, 204, 115, 0); }
  35% { box-shadow: 0 0 26px rgba(240, 204, 115, 0.55); }
  100% { box-shadow: 0 0 18px rgba(240, 204, 115, 0.22); }
}


.faith-day__complete { position: relative; text-align: center; padding: 14px 8px 6px; }
.faith-day__complete-halo {
  position: absolute; top: -6px; left: 50%; width: 160px; height: 160px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(240, 204, 115, 0.28), transparent 65%);
  pointer-events: none;
}
.faith-day__complete-seal { position: relative; display: inline-block; width: 50px; height: 50px; color: #f0cc73; filter: drop-shadow(0 0 12px rgba(240, 204, 115, 0.7)); animation: faith-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.faith-day__complete-seal svg { width: 100%; height: 100%; }
.faith-day__complete-title { position: relative; margin: 8px 0 0; font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.4rem; color: #f8f1e3; }
.faith-day__complete-sub { position: relative; margin: 4px 0 0; font-size: 0.86rem; color: rgba(245, 239, 226, 0.7); }

/* partículas douradas (burst ao concluir o dia) */
.faith-burst {
  position: fixed;
  z-index: 620;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3cf, #f0cc73 60%, #d9a85a);
  box-shadow: 0 0 8px rgba(246, 225, 162, 0.9);
  pointer-events: none;
  animation: faith-burst-fly var(--d, 0.7s) ease-out forwards;
}
@keyframes faith-burst-fly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.3); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .faith-node--today .faith-node__btn::before,
  .faith-node--today .faith-node__btn::after,
  .faith-node.is-justdone .faith-node__btn,
  .faith-map__stars circle,
  .faith-map__trail-shine,
  .faith-decor,
  .faith-node__rays,
  .faith-screen__emblem,
  .faith-day-step.is-done,
  .faith-day__complete-seal,
  .faith-screen__chev,
  .faith-card__trail-glow { animation: none; }
  .faith-map__trail-shine, .faith-burst { display: none; }
  .faith-card__bar-fill, .faith-wizard__progress-fill, .faith-screen__bar-fill,
  .faith-day__sheet { transition: none; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   O VÉU — raspadinha diária
   O véu é GANHO, nunca comprado: a chance nunca é vendida, e é isso que mantém
   a mecânica como promoção em vez de aposta. O sorteio roda no servidor
   (POST /api/veil/draw); aqui só se anima o resultado que ele mandou.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Entrada na home, logo abaixo do depósito de energia */
.altar-veil {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(520px, calc(100% - 32px));
  margin: 14px auto 0;
  /* Alvo generoso: dedo de idoso erra botao apertado, e este e o card que a
     gente MAIS quer que ele acerte. Bem acima dos 44px minimos da WCAG. */
  padding: var(--pad-card);
  min-height: 96px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: linear-gradient(180deg, #241c11, rgba(14, 11, 7, 0.96));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
[data-theme="parchment"] .altar-veil {
  background: linear-gradient(180deg, #fbf6e9, #f5efe2);
}
.altar-veil:hover { transform: translateY(-2px); border-color: rgba(240, 204, 115, 0.45); }
.altar-veil:active { transform: scale(0.985); }
.altar-veil__glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 140%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(240, 204, 115, 0.16), transparent 70%);
  pointer-events: none;
}
.altar-veil__body { position: relative; display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.altar-veil__eyebrow {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-deep);
}
.altar-veil__title {
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  /* Era 1.24rem. Este e o titulo do gancho principal do app e o publico tem
     vista cansada — abaixo de ~1.4rem ele some no meio dos cards vizinhos. */
  font-size: 1.5rem; line-height: 1.18; color: var(--text);
}
/* Era 0.78rem: pequeno demais pra quem tem presbiopia (a maioria dos nossos).
   0.9rem e o piso confortavel; a cor sobe junto pra nao perder contraste. */
.altar-veil__hint { font-size: 0.9rem; line-height: 1.5; color: rgba(245, 239, 226, 0.78); }

/* Quantos veus guardados. Numero grande e legivel — e o que faz ele lembrar
   que tem algo pra usar. */
.altar-veil__stock {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 7px; padding: 4px 11px;
  border-radius: 999px;
  background: rgba(240, 204, 115, 0.14);
  border: 1px solid rgba(240, 204, 115, 0.32);
  color: var(--gold-soft);
  font-size: 0.86rem; font-weight: 700;
  width: fit-content;
}

/* O selo: disco dourado com o cristal dentro. Alvo visual grande (52px) —
   e o que o olho encontra primeiro no card. */
.altar-veil__mark {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 38% 32%, rgba(240, 204, 115, 0.30), rgba(240, 204, 115, 0.07) 62%, transparent 72%);
  box-shadow: 0 0 0 1px rgba(240, 204, 115, 0.28) inset, 0 0 18px rgba(240, 204, 115, 0.20);
  animation: altarVeilPulsa 2.8s ease-in-out infinite;
}
.altar-veil__mark svg { width: 26px; height: 26px; display: block; }

/* Pulso lento: chama o olho sem virar pisca-pisca (que cansa e parece anuncio). */
@keyframes altarVeilPulsa {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 1px rgba(240, 204, 115, 0.28) inset, 0 0 16px rgba(240, 204, 115, 0.18); }
  50%      { transform: scale(1.06); box-shadow: 0 0 0 1px rgba(240, 204, 115, 0.42) inset, 0 0 26px rgba(240, 204, 115, 0.34); }
}

/* Lampejo que atravessa o card de tempos em tempos — o "tem algo aqui" que a
   raspadinha de banco usa. Sem isto o card e so mais uma caixa na home. */
.altar-veil__shine {
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 244, 214, 0.13) 45%, rgba(255, 244, 214, 0.20) 50%, rgba(255, 244, 214, 0.13) 55%, transparent);
  transform: skewX(-16deg);
  pointer-events: none;
  animation: altarVeilLampejo 5.2s ease-in-out infinite;
}
@keyframes altarVeilLampejo {
  0%, 62% { left: -60%; opacity: 0; }
  68%     { opacity: 1; }
  92%     { left: 115%; opacity: 0; }
  100%    { left: 115%; opacity: 0; }
}

/* Ja raspou e nao tem nenhum guardado: o card fica sereno, sem pulso nem
   lampejo. Insistir com brilho em quem nao pode agir e so ruido. */
.altar-veil.is-done .altar-veil__mark { animation: none; opacity: 0.62; }
.altar-veil.is-done .altar-veil__shine { display: none; }

/* Quem pediu menos movimento no sistema nao ve nada disso se mexer. */
@media (prefers-reduced-motion: reduce) {
  .altar-veil__mark { animation: none; }
  .altar-veil__shine { display: none; }
}

/* Tela do Véu */
.veil-hub {
  display: flex; flex-direction: column; gap: var(--gap-block);
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  /* Folga pra barra de navegacao (flutuante, ~74px + 14px do fundo + safe-area).
     Com os 24px de antes, a ultima linha da tela ficava ESCONDIDA atras da
     barra — foi o que aconteceu com o "Arrives in 12-20 days" da Loja. */
  padding-bottom: calc(104px + var(--safe-area-bottom));
}
/* A barra de "voltar" gruda no topo. Antes ela rolava junto com o conteudo:
   numa tela longa (a Loja, com o formulario de entrega) o cliente tinha que
   rolar tudo de volta pra achar o botao de sair. Pra quem tem dificuldade de
   rolar, isso e ficar preso na tela. */
.veil-hub__bar {
  /* Alinhado a ESQUERDA de proposito: o badge de cristais e fixo no canto
     superior DIREITO, e com `space-between` o contador de veus caia bem embaixo
     dele — dois numeros empilhados no mesmo canto, cada um contando uma coisa.
     Trazer os veus pra perto do "Back" separa as duas leituras. */
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  position: sticky; top: 0; z-index: 6;
  padding: 10px 0 12px;
  /* O .screen-back carrega `margin: 0 auto 16px 0` (herdado de quando ele vivia
     sozinho no topo de uma tela). Esse `auto` a direita empurrava o contador de
     veus pra ponta — bem embaixo do badge de cristais, os dois se tocando.
     Dentro desta barra o Back nao manda no espaco. */
  /* Sem fundo proprio. A versao anterior pintava um retangulo com a cor chapada
     --bg pra dar legibilidade ao rolar — mas o fundo do app e um gradiente com
     uma aura dourada desfocada, e o retangulo opaco recortava essa aura com
     cantos retos: era a "borda" que so aparecia nesta tela e na Loja.
     A legibilidade vem agora de um desfoque, que deixa a aura passar por tras. */
  background: transparent;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.veil-hub__bar .screen-back { margin: 0; }

.veil-hub__head { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.veil-hub__title {
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: 1.6rem; line-height: 1.18; color: var(--text); margin: 0;
}
.veil-hub__copy { font-size: 0.9rem; line-height: 1.55; color: var(--muted); margin: 0; }

.veil-card {
  position: relative;
  /* dentro de um flex column, `margin:0 auto` encolheria o card ao conteúdo — e o
     conteúdo é position:absolute, então ele colapsaria. Por isso width + align-self. */
  width: 100%;
  max-width: 340px;
  align-self: center;
  aspect-ratio: 1 / 1.1;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: var(--shadow);
}


.veil-reveal__arcana {
  margin: 0; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold-deep);
}
.veil-reveal__name {
  margin: 0;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic; font-size: 1.45rem; line-height: 1.16; color: var(--gold);
}
.veil-reveal__verse {
  margin: 0;
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-style: italic; font-size: 1rem; line-height: 1.5;
  color: var(--text-soft); max-width: 27ch;
}



#veil-scratch {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: none; cursor: grab;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
#veil-scratch:active { cursor: grabbing; }
#veil-scratch.is-gone { opacity: 0; pointer-events: none; }

.veil-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  margin: 0; pointer-events: none; white-space: nowrap;
  /* Publico 35-65: 11px em cima de linho nao se le. Subiu de tamanho e ganhou
     uma pastilha escura, que tambem resolve o contraste (era 4,35 -> falhava AA). */
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #f7ecd6;
  background: rgba(32, 20, 10, 0.72);
  padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(60, 38, 16, 0.3);
  transition: opacity 0.4s;
}
.veil-hint.is-hidden { opacity: 0; }

.veil-actions { display: flex; flex-direction: column; gap: 10px; }
.veil-cta {
  min-height: 52px; border-radius: 999px;
  border: 1px solid var(--gold); background: transparent; color: var(--gold);
  font-family: inherit; font-size: 0.95rem; font-weight: 650; cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}
.veil-cta:hover { transform: translateY(-2px); background: rgba(240, 204, 115, 0.08); }

/* ── Véus guardados (chip no topo da tela) ─────────────────────────────── */
.veil-tickets-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(240, 204, 115, 0.13);
  border: 1px solid var(--line-strong);
  color: var(--gold-soft); font-weight: 800; font-size: 0.95rem;
}
.veil-tickets-chip__icon {
  display: inline-flex; width: 20px; height: 20px; flex: none;
}
.veil-tickets-chip__icon svg { width: 100%; height: 100%; display: block; }

/* ── Vitrine de véus ───────────────────────────────────────────────────── */
.veil-shop {
  display: flex; flex-direction: column; gap: 6px;
  padding: var(--pad-card); border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(36, 28, 17, 0.9), rgba(14, 11, 7, 0.9));
  border: 1px solid var(--line-strong);
}
.veil-shop__eyebrow {
  margin: 0; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-deep);
}
.veil-shop__title {
  margin: 0; font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem; color: var(--text);
}
/* A promessa do piso, em destaque e não em letra miúda: é o que o cliente
   precisa ter lido ANTES de decidir — e a nossa prova depois. */
.veil-shop__floor {
  margin: 2px 0 10px; font-size: 0.88rem; line-height: 1.45;
  color: var(--gold-soft);
}
/* Empilhado sempre, inclusive no desktop: em coluna cada pacote vira uma LINHA
   comparavel (quantidade a esquerda, preco a direita), e o olho desce
   comparando. Em tres colunas o cliente compara na horizontal, que e mais
   dificil, e os cards ficam estreitos demais pro que precisam dizer. */
.veil-shop__list { display: flex; flex-direction: column; gap: var(--gap-item); }

.veil-pack {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 84px; padding: var(--pad-tile) 16px;
  border-radius: var(--r-tile); cursor: pointer; text-align: left;
  border: 1px solid var(--line);
  background: rgba(240, 204, 115, 0.05);
  color: var(--text); font-family: inherit;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.veil-pack:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(240, 204, 115, 0.10);
}
.veil-pack:active:not(:disabled) { transform: scale(0.985); }
.veil-pack:disabled { opacity: 0.5; cursor: default; }
.veil-pack.is-loading { opacity: 0.6; cursor: progress; }

/* O RECOMENDADO. Tres caixas iguais nao dizem por onde comecar — e quem nao
   sabe escolher costuma nao escolher. Este ganha borda acesa, fundo mais
   quente e um selo; os outros dois viram a referencia que faz ele parecer
   a decisao certa. */
.veil-pack.is-featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(240, 204, 115, 0.16), rgba(240, 204, 115, 0.06));
  box-shadow: 0 0 22px rgba(240, 204, 115, 0.14);
  margin-top: 8px;   /* espaco pro selo que sobra pra cima */
}
.veil-pack__badge {
  position: absolute; top: -10px; left: 14px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--gold); color: #14100a;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap;
}

.veil-pack__left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.veil-pack__qty { font-size: 1.4rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
.veil-pack__unit { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-left: 2px; }

/* A promessa que sustenta a compra. Estava em cinza miudo — e o unico numero
   que responde "e se eu nao ganhar nada?". */
.veil-pack__floor {
  display: inline-flex; align-items: center;
  font-size: 0.9rem; font-weight: 650; color: var(--gold-soft);
}

.veil-pack__right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.veil-pack__price { font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1.15; }
/* O preco por veu faz a comparacao acontecer sem ninguem dividir de cabeca. */
.veil-pack__each { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.veil-pack__save {
  margin-top: 2px; padding: 2px 8px; border-radius: 999px;
  background: rgba(127, 195, 154, 0.16); color: #7fc39a;
  font-size: 0.8rem; font-weight: 800; white-space: nowrap;
}

.veil-shop__error { margin: 8px 0 0; font-size: 0.86rem; color: #ff9a8b; }

/* ── A lojinha: o que os cristais viram ────────────────────────────────── */
.veil-prizes { display: flex; flex-direction: column; gap: 10px; }
.veil-prizes__eyebrow {
  margin: 0; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-deep);
}
.veil-prizes__list { display: flex; flex-direction: column; gap: 10px; }

.veil-prize {
  display: flex; align-items: center; gap: 14px;
  min-height: 88px; padding: var(--pad-tile);
  border-radius: var(--r-tile); cursor: pointer; text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(36, 28, 17, 0.72), rgba(14, 11, 7, 0.9));
  color: var(--text); font-family: inherit;
  transition: transform 0.2s, border-color 0.2s;
}
.veil-prize:hover { transform: translateY(-2px); border-color: rgba(240, 204, 115, 0.45); }
/* Já dá pra resgatar: a borda acende. É o momento que o cristal deixa de ser
   placar e vira coisa — e o que a gente quer que ele veja de longe. */
.veil-prize.is-reachable {
  border-color: rgba(240, 204, 115, 0.65);
  box-shadow: 0 0 20px rgba(240, 204, 115, 0.18);
}
.veil-prize__img {
  width: 62px; height: 62px; flex: none;
  border-radius: 12px; object-fit: cover;
}
.veil-prize__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.veil-prize__name { font-size: 1rem; font-weight: 650; line-height: 1.25; }
.veil-prize__cost {
  display: inline-flex; align-items: center;
  font-size: 0.95rem; font-weight: 800; color: var(--gold);
}
.veil-prize__bar {
  display: block; height: 7px; border-radius: 999px;
  background: rgba(245, 239, 226, 0.12); overflow: hidden;
}
.veil-prize__fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.veil-prize__left { font-size: 0.9rem; color: rgba(245, 239, 226, 0.76); }
.veil-prize.is-reachable .veil-prize__left { color: var(--gold-soft); font-weight: 700; }

.veil-odds-toggle {
  /* 48px de altura e 0.92rem: e por este botao que ele chega na tabela de
     chances — o texto que nos defende numa disputa nao pode ser o menor da tela. */
  align-self: center; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: rgba(245, 239, 226, 0.78);
  font-family: inherit; font-size: 0.92rem; font-weight: 650; cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.veil-odds-toggle:hover { color: var(--gold); border-color: rgba(240, 204, 115, 0.4); }

.veil-odds {
  border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; background: var(--panel);
  display: flex; flex-direction: column; gap: 12px;
}
.veil-odds__lead { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.veil-odds__table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.veil-odds__table th,
.veil-odds__table td { padding: 9px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.veil-odds__table th {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.veil-odds__table td.is-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums; color: var(--gold); white-space: nowrap;
}
.veil-odds__table tbody tr:last-child td { border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  .altar-veil, .veil-cta, #veil-scratch { transition: none; }
}

/* A grade da raspadinha: 3x3, junte tres marcas iguais. */
.veil-rule {
  margin: 0; text-align: center;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
}
.veil-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  gap: 8px; padding: 14px;
  background: linear-gradient(180deg, var(--surface), var(--bg-deep));
}
.veil-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  line-height: 1;
  /* O valor e o protagonista da tela: dourado e cheio, nunca muted. */
  color: var(--gold-mid);
  transition: color 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="parchment"] .veil-cell { background: rgba(255, 255, 255, 0.4); }
/* as tres que formaram a combinacao */
.veil-cell.is-win {
  color: var(--gold);
  border-color: rgba(240, 204, 115, 0.6);
  background: radial-gradient(circle at 50% 45%, rgba(240, 204, 115, 0.2), transparent 70%);
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(240, 204, 115, 0.22);
}

/* Legenda do que cada marca vale */
.veil-legend {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.veil-legend li {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; background: var(--panel);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem; color: var(--muted);
}
.veil-legend .veil-legend__mark { font-family: inherit; font-size: 0.95rem; color: var(--gold); }

/* A palavra do dia, revelada junto com o resultado */
.veil-word-card {
  border: 1px solid var(--line); border-left: 2px solid var(--gold-deep);
  border-radius: 16px; padding: 16px 18px; background: var(--panel);
  display: flex; flex-direction: column; gap: 8px; text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   A LOJA — um produto: o Selo de Sao Miguel
   ═══════════════════════════════════════════════════════════════════════════ */
.store-hub {
  display: flex; flex-direction: column; gap: var(--gap-block);
  width: min(520px, calc(100% - 32px)); margin: 0 auto;
  /* Mesma folga da tela do Veu: a barra de navegacao flutua por cima e comia a
     ultima linha (o "Arrives in 12-20 days" ficava escondido atras dela). */
  padding-bottom: calc(104px + var(--safe-area-bottom));
}
/* ── Lista de produtos da Loja ─────────────────────────────────────────────
   A tela era chumbada num produto so. Com o catalogo crescendo, cada item
   ganha um card — foto, custo e o quanto falta — e tocar nele troca o detalhe
   logo abaixo. Mesmos tokens do resto do app. */
.store-list { display: flex; flex-direction: column; gap: var(--gap-item); }
.store-list[hidden] { display: none !important; }

.store-card {
  display: flex; align-items: center; gap: 14px;
  min-height: 92px; padding: var(--pad-tile);
  border-radius: var(--r-tile); cursor: pointer; text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(36, 28, 17, 0.7), rgba(14, 11, 7, 0.9));
  color: var(--text); font-family: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.store-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.store-card:active { transform: scale(0.98); }
/* Selecionado: e o produto que o formulario abaixo vai resgatar. */
.store-card.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 0 20px rgba(240, 204, 115, 0.16);
}
/* Ja da pra resgatar: a borda acende mesmo sem estar selecionado. */
.store-card.is-reachable:not(.is-selected) { border-color: rgba(240, 204, 115, 0.55); }
.store-card__img { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; }
.store-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.store-card__name { font-size: 1rem; font-weight: 650; line-height: 1.25; }
.store-card__cost { display: inline-flex; align-items: center; font-size: 0.95rem; font-weight: 800; color: var(--gold); }
.store-card__bar { display: block; height: 7px; border-radius: 999px; background: rgba(245, 239, 226, 0.12); overflow: hidden; }
.store-card__fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.store-card__left { font-size: 0.9rem; color: rgba(245, 239, 226, 0.76); }
.store-card.is-reachable .store-card__left { color: var(--gold-soft); font-weight: 700; }

/* ── Vitrine do produto (galeria) ──────────────────────────────────────────
   Peca fisica se vende pelo olho. Uma foto pequena nao dá pra decidir se vale
   a caminhada de 1.500 cristais — entao: foto grande, miniaturas embaixo e
   toque pra ampliar. */
.store-gallery { margin: 0 0 var(--gap-block); display: flex; flex-direction: column; gap: var(--gap-item); }

.store-gallery__main {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); cursor: zoom-in; overflow: hidden;
  aspect-ratio: 1 / 1;
}
.store-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-gallery__zoom {
  position: absolute; right: 10px; bottom: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(20, 16, 10, 0.72); color: var(--gold);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.store-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.store-gallery__thumbs::-webkit-scrollbar { display: none; }
.store-gallery__thumbs[hidden] { display: none !important; }
.store-thumb {
  flex: none; width: 62px; height: 62px; padding: 0; cursor: pointer;
  border-radius: var(--r-tile); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.store-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-thumb.is-active { border-color: var(--gold); }
.store-thumb:hover { transform: translateY(-2px); border-color: var(--line-strong); }

.store-item__desc {
  margin: 6px 0 12px; font-size: 0.95rem; line-height: 1.6;
  color: rgba(245, 239, 226, 0.78);
}

/* ── Foto ampliada ─────────────────────────────────────────────────────────
   Cobre a tela inteira. Fecha no toque fora, no X e no Esc. */
.photo-viewer {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(8, 6, 3, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.photo-viewer[hidden] { display: none !important; }
.photo-viewer__img {
  max-width: 100%; max-height: 78vh; border-radius: var(--r-card);
  object-fit: contain; display: block;
}
.photo-viewer__close {
  position: absolute; top: calc(14px + var(--safe-area-top, 0px)); right: 14px;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(36, 28, 17, 0.9); color: var(--text);
  border: 1px solid var(--line-strong);
}
.photo-viewer__dots { position: absolute; bottom: calc(22px + var(--safe-area-bottom)); display: flex; gap: 8px; }
.photo-viewer__dots[hidden] { display: none !important; }
.photo-viewer__dot {
  width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.photo-viewer__dot::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245, 239, 226, 0.34); transition: background 0.2s, transform 0.2s;
}
.photo-viewer__dot.is-active::after { background: var(--gold); transform: scale(1.3); }
/* trava a rolagem do fundo enquanto a foto esta aberta */
body.is-photo-open { overflow: hidden; }

.store-item {
  border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--pad-card);
  background: linear-gradient(180deg, var(--surface), rgba(10, 8, 5, 0.94));
  display: flex; flex-direction: column; gap: 16px;
}
[data-theme="parchment"] .store-item { background: linear-gradient(180deg, #fbf6e9, #f5efe2); }
.store-item__top { display: flex; gap: 14px; align-items: center; }
.store-item__img {
  width: 96px; height: 96px; flex: none; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel-strong);
}
.store-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-item__info { flex: 1; min-width: 0; }
.store-item__name {
  margin: 0; font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-size: 1.14rem; line-height: 1.25; color: var(--text);
}
.store-item__price { margin: 8px 0 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.store-item__crystals {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.1rem; font-weight: 600; color: var(--gold);
}
.store-item__or { font-size: 0.76rem; color: var(--muted); }
.store-item__cash { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 1rem; color: var(--text); }

.store-progress { display: flex; flex-direction: column; gap: 6px; }
.store-progress__row {
  display: flex; justify-content: space-between;
  font-size: 0.76rem; color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.store-progress__bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.store-progress__bar > span {
  display: block; height: 100%; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.store-progress__note { margin: 2px 0 0; font-size: 0.78rem; line-height: 1.45; color: var(--muted); }

.store-form { display: flex; flex-direction: column; gap: 13px; }
.store-field { display: flex; flex-direction: column; gap: 6px; }
.store-field > span {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.store-field__req { font-style: normal; color: var(--gold-deep); }
.store-field input {
  min-height: 48px; border-radius: 22px; padding: 12px 17px;
  font-size: 16px; font-family: inherit;
  background: rgba(33, 27, 16, 0.7); border: 1px solid var(--line); color: var(--text);
  outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
[data-theme="parchment"] .store-field input { background: rgba(255, 255, 255, 0.85); }
.store-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 204, 115, 0.1); }
.store-field input.is-invalid { border-color: var(--sanguine); }
.store-field__hint { font-size: 0.76rem; line-height: 1.45; color: var(--muted); }
.store-field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }

.store-error {
  margin: 0; padding: 11px 14px; border-radius: 14px;
  border: 1px solid rgba(122, 43, 26, 0.5); background: rgba(122, 43, 26, 0.14);
  font-size: 0.84rem; color: var(--text);
}
.store-cta {
  min-height: 54px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-mid)); color: #14100a;
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 28px rgba(240, 204, 115, 0.2);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}
.store-cta:hover:not(:disabled) { transform: translateY(-2px); }
.store-cta:disabled { opacity: 0.55; cursor: not-allowed; }
.store-eta { margin: 0; text-align: center; font-size: 0.76rem; color: var(--muted); }

.store-orders { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.store-orders ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.store-orders li {
  display: flex; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px;
  background: var(--panel); font-size: 0.84rem; color: var(--muted);
}

/* Atalho de teste do véu — só existe em desenvolvimento */
.veil-dev-reset {
  align-self: center; min-height: 40px; padding: 0 16px;
  border: 1px dashed var(--line); border-radius: 999px;
  background: transparent; color: var(--muted);
  font-family: inherit; font-size: 0.76rem; cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.veil-dev-reset:hover { color: var(--gold); border-color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════════════════
   O SELO DE SÃO MIGUEL (#screen-seal) e A SELAGEM ANCESTRAL (#screen-sealing)
   Duas telas que trouxeram pra dentro do app conteúdo que antes vivia fora:
   a Oração do Selamento (só existia como .mp3 solto num link de e-mail) e a
   Área Sagrada (abria aba externa no funil). Reaproveitam a linguagem visual
   da Vigília — .vigil-card, .vigil-hero — e acrescentam só o que falta.
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- A oração, em bloco de escritura ------------------------------------- */
.seal-prayer__verse {
  margin: 18px 0 0;
  padding: 20px 16px;
  border-top: 1px solid rgba(240, 204, 115, 0.16);
  border-bottom: 1px solid rgba(240, 204, 115, 0.16);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.95;
  text-align: center;
  color: var(--gold-soft);
  text-wrap: balance;
}
[data-theme="parchment"] .seal-prayer__verse { color: var(--gold-deep); }

.seal-prayer__hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}
.seal-prayer__seal { margin-top: 16px !important; text-align: center; font-size: 1rem; }

/* O player nativo é feio e some no fundo escuro: dá respiro e contraste sem
   reimplementar controles (o nativo é o que funciona melhor no PWA/iOS). */
.vigil-audio {
  border-radius: 999px;
  background: rgba(240, 204, 115, 0.07);
}
.seal-prayer .vigil-audio { margin-top: 14px; }
@media (prefers-color-scheme: dark) { .vigil-audio { color-scheme: dark; } }

/* --- Passo a passo (como usar o Selo · preparar a cerimônia) -------------- */
.seal-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: sealstep;
}
.seal-steps__item {
  position: relative;
  padding-left: 42px;
  counter-increment: sealstep;
}
.seal-steps__item::before {
  content: counter(sealstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(240, 204, 115, 0.38);
  background: rgba(240, 204, 115, 0.09);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}
.seal-steps__title {
  display: block;
  margin-bottom: 3px;
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gold-soft);
}
[data-theme="parchment"] .seal-steps__title { color: var(--gold-deep); }
.seal-steps__text {
  display: block;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

/* --- Entrega do medalhão -------------------------------------------------- */
.seal-ship__warn {
  margin: 12px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(224, 122, 95, 0.42);
  background: rgba(224, 122, 95, 0.11);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}
.seal-ship__warn[hidden] { display: none; }

/* --- A Selagem Ancestral -------------------------------------------------- */
.sealing-prayer__body { text-align: left; font-size: 1.04rem; line-height: 1.9; }
.sealing-prayer__p { margin: 0 0 14px; }
.sealing-prayer__p:last-child { margin-bottom: 0; }

.sealing-grid-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  margin: 16px auto 0;
  border-radius: 16px;
  border: 1px solid rgba(240, 204, 115, 0.2);
}
.sealing-crystals__caption {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* O botão reaproveitado do card de almas vira ação de largura cheia aqui. */
.seal-ship .souls-card__edit,
.sealing-crystals .souls-card__edit,
.vigil-card--psalm .souls-card__edit { margin-top: 14px; }

@media (max-width: 420px) {
  .seal-prayer__verse { font-size: 1.04rem; line-height: 1.85; padding: 16px 6px; }
  .seal-steps__item { padding-left: 38px; }
}

/* Casas da raspadinha: o VALOR aparece na casa, como numa raspadinha de papel.
   Nada de simbolo com legenda — junte tres valores iguais e sao seus. */
.veil-cell__row {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; line-height: 1;
}
/* O cristal e o numero na mesma linha: o icone da o SENTIDO, o numero da o VALOR.
   Antes o numero sozinho dominava a casa e nao se sabia premio de que. */
.veil-cell__gem {
  width: clamp(15px, 4.6vw, 20px); height: clamp(15px, 4.6vw, 20px);
  flex: none; display: block; color: var(--gold);
}
.veil-cell__num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.05rem, 5.4vw, 1.45rem);
  font-weight: 600; line-height: 1; letter-spacing: -0.02em;
}
.veil-cell__unit {
  /* publico 35-65: abaixo de ~10px vira mancha. Sobe o piso e clareia um pouco. */
  font-size: clamp(0.62rem, 2.6vw, 0.7rem);
  letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.7; line-height: 1; margin-top: 5px;
}
.veil-cell.is-win .veil-cell__unit { opacity: 0.9; }
.veil-cell.is-win .veil-cell__gem { color: var(--gold-soft); }

.veil-worth {
  margin: 0; text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem; color: var(--gold);
}

/* Veu ja aberto hoje: o card vira estado calmo com a contagem do proximo,
   em vez de sumir e deixar um buraco na home. */
.altar-veil.is-done { cursor: default; opacity: 0.92; }
.altar-veil.is-done .altar-veil__mark { opacity: 0.4; }
.altar-veil.is-done:hover { transform: none; border-color: var(--line); }
.altar-veil.is-done .altar-veil__title { color: var(--gold); }

/* Horizonte em dias na loja — numero frio desanima, prazo vira meta */
.store-days {
  margin: 4px 0 0; font-size: 0.78rem; line-height: 1.45;
  color: var(--gold-deep); font-weight: 600;
}

/* [hidden] perde pra `display:flex/grid` em especificidade — sem isto, esconder
   um componente pelo atributo simplesmente nao funciona. Vale pros que criei. */
.store-form[hidden],
.store-orders[hidden],
.veil-actions[hidden],
.veil-odds[hidden],
.altar-veil[hidden],
/* Sem isto o `hidden` do card da Loja e ignorado: qualquer display do
   autor vence o display:none que o navegador aplica pelo hidden. */
.altar-module[hidden] { display: none !important; }
.veil-tickets-chip[hidden],
.veil-open-stored[hidden],
.veil-shop[hidden],
.veil-prizes[hidden],
.veil-shop__error[hidden],
.altar-veil__stock[hidden],
.veil-word-card[hidden] { display: none !important; }

/* Texto so pro leitor de tela (o momento de premio era 100% visual) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Alternativa a raspagem — WCAG 2.5.1 (gestos de ponteiro).
   Discreto de proposito: quem consegue raspar raspa; quem nao consegue tem saida. */
/* Este e o botao de quem tem tremor, artrite ou nao consegue raspar. Estava em
   0.82rem/44px — o menor da tela justamente pra quem mais precisa dele.
   Agora e 0.95rem/52px, com borda visivel em vez de quase apagada. */
/* "Abrir mais um veu" — a acao que GASTA algo que o cliente pagou. Por isso e
   um botao cheio e destacado (nao um link discreto): ele precisa saber que
   aquilo consome um veu, e precisa acerta-lo de primeira. */
.veil-open-stored {
  align-self: stretch;
  min-height: 56px; padding: 0 22px;
  border: none; border-radius: 16px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #14100a;
  font-family: inherit; font-size: 1rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 24px rgba(240, 204, 115, 0.22);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.veil-open-stored:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(240, 204, 115, 0.3); }
.veil-open-stored:active:not(:disabled) { transform: scale(0.98); }
.veil-open-stored:disabled { opacity: 0.55; cursor: progress; }

/* ── Carrossel de veus guardados ────────────────────────────────────────────
   Substituiu um botao solto no rodape. Ver os bilhetes enfileirados diz "voce
   tem varios" sem o cliente ler numero nenhum — e o que da a sensacao de
   posse. Alvos grandes e setas visiveis porque deslizar com o dedo nao e
   obvio pra quem nao cresceu com celular. */
.veil-deck { display: flex; flex-direction: column; gap: 10px; }
.veil-deck[hidden] { display: none !important; }

.veil-deck__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.veil-deck__title {
  margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--gold-soft);
}
.veil-deck__nav { display: flex; gap: 8px; }
.veil-deck__arrow {
  /* 44px cheios: seta pequena e o erro classico de carrossel em celular. */
  width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: rgba(20, 16, 10, 0.72); color: var(--gold);
  cursor: pointer; transition: opacity 0.2s, border-color 0.2s;
}
.veil-deck__arrow:disabled { opacity: 0.32; cursor: default; }
.veil-deck__arrow[hidden] { display: none !important; }

.veil-deck__track {
  /* 22px de vao: com 12px as "mordidas" laterais dos bilhetes vizinhos
     (9px de raio cada) encostavam uma na outra e viravam bolas soltas. */
  display: flex; gap: 22px;
  overflow-x: auto; overflow-y: hidden;
  /* snap: o carrossel nunca para no meio de um bilhete */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 12px 10px;   /* 12px na lateral: a mordida do 1o bilhete nao fica cortada */
  scrollbar-width: none;
}
.veil-deck__track::-webkit-scrollbar { display: none; }

.veil-ticket {
  /* FORMA DE BILHETE, nao um retangulo com icone dentro. Os dois recortes
     laterais (::before/::after) e a picotagem tracejada sao o que faz o olho
     reconhecer "raspadinha" antes de ler qualquer palavra. Os recortes sao
     circulos pintados com a cor do fundo da tela — truque classico, e o unico
     que preserva a borda dourada em volta (mask-image comeria a borda). */
  position: relative;
  scroll-snap-align: start;
  flex: none;
  width: 112px; min-height: 132px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  padding: 16px var(--pad-tile) 12px;
  border-radius: var(--r-tile); cursor: pointer;
  /* sem `border`: quem contorna agora e o drop-shadow, que respeita a mascara */
  border: none;
  background: linear-gradient(165deg, #2b2114, #171109);
  color: var(--text); font-family: inherit;
  transition: transform 0.2s, filter 0.2s;
}

/* Os recortes sao BURACOS de verdade, feitos com mascara — nao circulos
   pintados por cima. A versao anterior desenhava dois circulos com a cor do
   fundo E uma borda propria: o contorno fechava o circulo inteiro, entao eles
   liam como adesivos colados na lateral, nao como mordidas no papel.

   Com `mask`, o pixel simplesmente deixa de existir ali. E a borda dourada
   volta pelo `drop-shadow`, que segue o contorno da forma JA recortada —
   entao ela acompanha o arco do buraco, como a borda de um bilhete de
   verdade contorna o picote. `border` normal nao faria isso: ela desenha no
   retangulo, ignorando a mascara. */
.veil-ticket {
  --mordida: 9px;
  -webkit-mask-image:
    radial-gradient(circle at left 62%, transparent var(--mordida), #000 calc(var(--mordida) + 0.5px)),
    radial-gradient(circle at right 62%, transparent var(--mordida), #000 calc(var(--mordida) + 0.5px));
  mask-image:
    radial-gradient(circle at left 62%, transparent var(--mordida), #000 calc(var(--mordida) + 0.5px)),
    radial-gradient(circle at right 62%, transparent var(--mordida), #000 calc(var(--mordida) + 0.5px));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  /* dois passes finos somam uma linha continua de ~1px ao redor de tudo,
     inclusive dentro dos recortes */
  filter:
    drop-shadow(0 0 0.6px var(--line-strong))
    drop-shadow(0 0 0.6px var(--line-strong));
}

/* A picotagem entre os recortes — a linha por onde o bilhete "se rasga". */
.veil-ticket__perfuro {
  position: absolute;
  left: 10px; right: 10px; top: 62%;
  height: 0;
  border-top: 1px dashed rgba(240, 204, 115, 0.34);
  pointer-events: none;
}
/* Sem `border-color`/`box-shadow` aqui: o bilhete nao tem mais border (a
   mascara a comeria) e box-shadow desenha no retangulo, ignorando os recortes
   — apareceria uma sombra reta atravessando os buracos. Quem acende e o mesmo
   drop-shadow, que segue a forma recortada. */
.veil-ticket:hover:not(:disabled) {
  transform: translateY(-3px);
  filter:
    drop-shadow(0 0 0.6px var(--gold))
    drop-shadow(0 0 0.6px var(--gold))
    drop-shadow(0 6px 12px rgba(240, 204, 115, 0.22));
}
.veil-ticket:active:not(:disabled) { transform: scale(0.97); }
.veil-ticket:disabled { cursor: progress; }
.veil-ticket.is-opening { opacity: 0.5; }

.veil-ticket__seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 38% 32%, rgba(240, 204, 115, 0.28), rgba(240, 204, 115, 0.06) 64%, transparent 74%);
  box-shadow: 0 0 0 1px rgba(240, 204, 115, 0.26) inset;
}
.veil-ticket__seal svg { width: 22px; height: 22px; display: block; }
.veil-ticket__label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-deep);
}
.veil-ticket__cta {
  /* Empurrado pro rodape: assim ele cai abaixo da picotagem, na parte que num
     bilhete de verdade e o canhoto destacavel. */
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.95rem; font-weight: 700; color: var(--text);
}
/* O "+N" do fim: nao e botao, so diz que ha mais guardado. */
.veil-ticket--rest {
  align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: var(--gold);
  background: rgba(240, 204, 115, 0.08);
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .veil-deck__track { scroll-behavior: auto; }
  .veil-ticket { transition: none; }
}

.veil-open-for-me {
  align-self: center; min-height: 52px; padding: 0 22px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: rgba(245, 239, 226, 0.84);
  font-family: inherit; font-size: 0.95rem; font-weight: 650; cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.veil-open-for-me:hover { color: var(--gold); border-color: rgba(240, 204, 115, 0.45); }
.veil-open-for-me[hidden] { display: none !important; }

/* Campo invalido: a borda antiga ficava em 1,84:1 — ninguem via.
   Agora borda forte + fundo, e o erro vai junto por aria-invalid. */
.store-field input.is-invalid,
.store-field input[aria-invalid="true"] {
  border-color: #e0704f;
  background: rgba(224, 112, 79, 0.1);
  box-shadow: 0 0 0 3px rgba(224, 112, 79, 0.16);
}


/* ── TABBAR ancorada — padrao de app, sem flutuar ────────────────────────────
   30/ago/2026, pedido do dono: "deixe mais facil pra velhinhos, estilo o do
   Facebook". A barra flutuava (14px de margem de cada lado, cantos de 24px,
   sombra alta) — bonita, mas parece um cartao solto no meio da tela e a pagina
   passa por baixo dela. Agora e' o padrao que todo mundo ja tem no dedo:
   colada embaixo, de ponta a ponta, com uma linha separando da pagina.
   Alvo maior (64px de altura contra 58) e rotulo maior — inclusive em tela
   estreita, onde ele encolhia pra 0.62rem e ficava ilegivel.

   Vem no FIM do arquivo de proposito: sobrescreve os quatro blocos antigos da
   tabbar sem precisar mexer em cada um (incluindo os de media query).
   O espaco reservado no rodape das telas (--tabbar-reserved-space, 108px) NAO
   mudou: a barra nova e' mais BAIXA que a flutuante (70px + safe area contra
   ~92px), entao nada encosta nela.
   ------------------------------------------------------------------------- */
.tabbar {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4px 2px calc(4px + var(--safe-area-bottom));
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(240, 204, 115, 0.26);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.55);
}

[data-theme="parchment"] .tabbar {
  border: none;
  border-top: 1px solid rgba(20, 16, 10, 0.16);
  box-shadow: 0 -8px 26px rgba(122, 43, 26, 0.12);
}

.tabbar__item {
  min-height: 64px;
  gap: 6px;
  padding: 10px 2px 8px;
  border-radius: 0;
}

.tabbar__icon {
  width: 28px;
  height: 28px;
}

.tabbar__icon-svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.9;
}

.tabbar__item.is-active .tabbar__icon-svg {
  stroke-width: 2.2;
}

/* Rotulo sempre legivel — nao encolhe mais em tela estreita. */
.tabbar__label {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

@media (max-width: 420px) {
  .tabbar__label { font-size: 0.76rem; letter-spacing: 0; }
  .tabbar__item { padding-left: 1px; padding-right: 1px; }
}

/* A marca da aba ativa sobe pro TOPO (como em barra ancorada), e ocupa a
   largura toda do item: fica visivel de longe, nao e' mais um risquinho. */
.tabbar__item.is-active::before {
  top: 0;
  bottom: auto;
  left: 0;
  transform: none;
  width: 100%;
  height: 3px;
  border-radius: 0;
  background: var(--gold);
  animation: none;
}

[data-theme="parchment"] .tabbar__item.is-active::before {
  background: var(--gold-deep);
}

/* O saldo de cristais deixou de ser botao (a venda saiu do app): sem cursor de
   clique e sem reacao de hover, pra nao prometer uma tela que nao existe. */
.crystals-badge {
  cursor: default;
}

.crystals-badge:hover,
.crystals-badge:active {
  transform: none;
  border-color: rgba(240, 204, 115, 0.34);
}
