/* ============ NUMEN — tema místico, mobile-first ============ */
:root {
  --bg: #0b0c14;
  --bg-2: #11131f;
  --ink: #e8e4d8;
  --ink-dim: #9b97a8;
  --gold: #c9a45c;
  --gold-bright: #e8c987;
  --violet: #6d5a9e;
  --teal: #3e7d7a;
  --danger: #c96b5c;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(201, 164, 92, 0.25);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --display: 'Cinzel', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ---------- céu animado ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.stars, .stars-2 {
  position: absolute; inset: -50%;
  background-image:
    radial-gradient(1px 1px at 12% 24%, #fff8, transparent),
    radial-gradient(1px 1px at 34% 71%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 56% 18%, #fff9, transparent),
    radial-gradient(1px 1px at 73% 49%, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 88% 82%, #fff8, transparent),
    radial-gradient(1px 1px at 21% 88%, #fff5, transparent),
    radial-gradient(1px 1px at 64% 92%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 42% 42%, #fff7, transparent);
  background-size: 520px 520px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.stars-2 {
  background-size: 380px 380px;
  animation-duration: 11s;
  animation-delay: -4s;
  opacity: .6;
}
@keyframes twinkle {
  0% { opacity: .4; transform: translateY(0); }
  100% { opacity: .9; transform: translateY(-14px); }
}

.aurora {
  position: absolute; inset: -20% -30%;
  background:
    radial-gradient(45% 35% at 25% 20%, rgba(109, 90, 158, .22), transparent 70%),
    radial-gradient(40% 30% at 75% 65%, rgba(62, 125, 122, .18), transparent 70%),
    radial-gradient(35% 30% at 55% 30%, rgba(201, 164, 92, .08), transparent 70%);
  filter: blur(40px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(-3%, -2%, 0) rotate(-2deg); }
  100% { transform: translate3d(3%, 3%, 0) rotate(2deg); }
}

/* ---------- estrutura ---------- */
#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  min-height: 92dvh;
}

.screen { display: none; animation: fadein .6s ease; }
.screen.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.screen-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  text-align: center;
  color: var(--gold-bright);
  margin: 18px 0 10px;
  letter-spacing: .04em;
}
.screen-sub {
  text-align: center;
  color: var(--ink-dim);
  margin-bottom: 26px;
  font-size: 1.05rem;
}
.screen-sub strong { color: var(--gold); }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 7dvh; }

/* halo de runas girando (home) */
.hero-runes {
  position: relative;
  width: 188px; height: 188px;
  margin: 0 auto 10px;
}
.hero-runes::before {
  content: '';
  position: absolute; inset: 50% auto auto 50%;
  width: 130px; height: 130px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,92,.18), transparent 68%);
  filter: blur(6px);
}
.rune-halo {
  position: absolute; inset: 0;
  transform-origin: center;
  animation: spin-cw 42s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.rune-halo.inner {
  inset: 34px;
  transform-origin: center;
  animation: spin-ccw 30s linear infinite;
  opacity: .55;
  will-change: transform;
  backface-visibility: hidden;
}
/* cada runa preenche o halo e é rotacionada ao seu ângulo; o glifo é
   posicionado no topo-centro por flex → anel perfeito, sem deslocamento
   excêntrico (o translateX num frame rotacionado é o que entortava antes). */
.rune-halo span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7px;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201,164,92,.55);
  transform: rotate(calc(var(--i) * 30deg));
}
.rune-halo.inner span {
  padding-top: 5px;
  font-size: .95rem;
  color: var(--gold-bright);
  transform: rotate(calc(var(--i) * 60deg));
}
.hero-core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(201,164,92,.7);
  animation: pulse-core 4.5s ease-in-out infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
@keyframes spin-cw { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-ccw { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes pulse {
  0%, 100% { text-shadow: 0 0 18px rgba(201,164,92,.45); transform: translate(-50%, -50%) scale(1); }
  50% { text-shadow: 0 0 40px rgba(201,164,92,.85); transform: translate(-50%, -50%) scale(1.08); }
}
/* anima só transform/opacity (compositor-only) para eliminar o engasgo do text-shadow animado */
@keyframes pulse-core {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .88; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rune-halo, .hero-core, .stars, .stars-2, .aurora, .rune-ring { animation: none !important; }
}
.brand {
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 4.6rem);
  font-weight: 700;
  letter-spacing: .32em;
  margin: 8px 0 0 .32em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, #8a6d35);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  font-style: italic;
  color: var(--ink-dim);
  letter-spacing: .18em;
  font-size: .95rem;
  text-transform: lowercase;
  margin-bottom: 26px;
}
.intro { max-width: 460px; margin: 0 auto 34px; color: var(--ink); }
.disclaimer { font-size: .85rem; color: var(--ink-dim); max-width: 420px; margin: 26px auto 0; }

/* ---------- botões ---------- */
.btn {
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .08em;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a87f3c);
  color: #181204;
  box-shadow: 0 4px 24px rgba(201, 164, 92, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,164,92,.5); }
/* brilho dourado que circula APENAS a borda do botão (anel mascarado).
   Anima o ângulo do conic-gradient (não o elemento) → o cometa percorre a
   borda do "pill" sem distorcer e sem vazar para fora. */
@property --numen-ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.btn-oracle-glow { position: relative; z-index: 0; }
.btn-oracle-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;                 /* espessura do anel */
  background: conic-gradient(from var(--numen-ang),
    rgba(232, 201, 135, 0) 0deg,
    rgba(232, 201, 135, 0) 255deg,
    rgba(232, 201, 135, .85) 318deg,
    rgba(255, 247, 223, 1) 342deg,
    rgba(232, 201, 135, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: numen-ring 3.2s linear infinite;
}
@keyframes numen-ring { to { --numen-ang: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .btn-oracle-glow::before { animation: none; }
}
.btn-outline {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--card-border);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201,164,92,.08); }
.btn-ghost {
  background: none; color: var(--ink-dim); border: none;
  display: block; margin: 30px auto 0; font-size: .85rem;
}
.btn-ghost:hover { color: var(--ink); }
.btn-wide { display: block; width: 100%; margin-top: 22px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- produtos ---------- */
.cards { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.product-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform .25s ease, border-color .25s ease;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.product-card.featured {
  border-color: rgba(201, 164, 92, .5);
  box-shadow: 0 0 0 1px rgba(201,164,92,.15), 0 14px 44px rgba(0,0,0,.4);
  background: linear-gradient(180deg, rgba(201,164,92,.07), var(--card));
}
.product-card .badge {
  align-self: center;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 2px;
}
.product-glyph { font-size: 2.2rem; color: var(--gold); letter-spacing: .2em; }
.product-card h3 { font-family: var(--display); font-size: 1.2rem; color: var(--gold-bright); }
.product-sub { font-size: .9rem; color: var(--ink-dim); font-style: italic; }
.product-card p { font-size: 1rem; }
.product-card .btn { margin-top: auto; align-self: center; }

/* ---------- formulário ---------- */
form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 1rem; color: var(--ink); }
.req { color: var(--gold); }
.hint { color: var(--ink-dim); font-size: .85rem; font-style: italic; }
input, select, textarea {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease;
  color-scheme: dark;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- revelação das runas ---------- */
.rune-row {
  display: flex; justify-content: center; gap: 18px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.rune-stone {
  width: 104px; height: 148px;
  border-radius: 52px / 70px;
  background: radial-gradient(120% 120% at 30% 20%, #2c2f42, #16182a 70%);
  border: 1px solid rgba(201, 164, 92, .35);
  box-shadow: inset 0 2px 14px rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  user-select: none;
}
.rune-stone:not(.revealed):hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(201,164,92,.25); }
.rune-stone .glyph {
  font-size: 3rem;
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(201,164,92,.7);
  opacity: 0;
  transition: opacity .4s ease;
}
.rune-stone .pos-label {
  position: absolute; top: -26px; width: 100%;
  text-align: center; font-size: .82rem; letter-spacing: .12em;
  color: var(--ink-dim); font-family: var(--display); text-transform: uppercase;
}
.rune-stone .rune-name {
  position: absolute; bottom: -46px; width: 140%; left: -20%;
  text-align: center; font-family: var(--display); font-size: .85rem;
  color: var(--gold-bright); opacity: 0; transition: opacity .5s ease .3s;
}
.rune-stone.revealing .glyph { animation: flicker 1.8s steps(12) forwards; }
@keyframes flicker { 0% { opacity: .2; } 70% { opacity: .6; } 100% { opacity: 1; } }
.rune-stone.revealed { cursor: default; border-color: var(--gold); }
.rune-stone.revealed .glyph { opacity: 1; }
.rune-stone.revealed .rune-name { opacity: 1; }
.rune-stone.inverted .glyph { transform: rotate(180deg); }
.rune-stone .tap-hint {
  position: absolute; font-size: 1.6rem; color: rgba(232,228,216,.35);
  animation: pulse 2.5s ease-in-out infinite;
}
.rune-stone.revealed .tap-hint, .rune-stone.revealing .tap-hint { display: none; }
.inv-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--danger);
  border: 1px solid rgba(201,107,92,.5);
  border-radius: 999px; padding: 2px 10px;
  font-family: var(--display);
}
.rune-stone .inv-badge {
  position: absolute; bottom: -76px; left: 50%; transform: translateX(-50%);
  opacity: 0; transition: opacity .5s ease .6s;
}
.rune-stone.revealed.inverted .inv-badge { opacity: 1; }
.rune-row { margin-bottom: 92px; margin-top: 48px; }

/* ---------- tarô ---------- */
.tarot-area { text-align: center; margin: 26px 0 10px; }
.tarot-card {
  width: 130px; height: 210px; margin: 16px auto 0;
  perspective: 900px; cursor: pointer;
}
.tarot-inner {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .8, .25, 1);
}
.tarot-card.flipped .tarot-inner { transform: rotateY(180deg); }
.tarot-card.flipped { cursor: default; }
.tarot-back, .tarot-front {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--card-border);
}
.tarot-back {
  background:
    repeating-linear-gradient(45deg, rgba(201,164,92,.12) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #1b1d30, #121320);
  font-size: 2rem; color: var(--gold);
}
.tarot-front {
  transform: rotateY(180deg);
  background: linear-gradient(165deg, #221d33, #14121f);
  font-family: var(--display);
  color: var(--gold-bright);
  font-size: 1rem; text-align: center; padding: 12px; gap: 4px;
}

/* ---------- carregando ---------- */
.loading-wrap { text-align: center; padding-top: 10dvh; }
.rune-ring {
  width: 170px; height: 170px; margin: 0 auto 30px;
  position: relative;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.rune-ring span {
  position: absolute; left: 50%; top: 50%;
  font-size: 1.5rem; color: var(--gold);
  text-shadow: 0 0 12px rgba(201,164,92,.6);
  transform: rotate(calc(var(--i) * 30deg)) translateY(-78px) translateX(-50%);
}
.rune-ring span:nth-child(1) { --i: 0; } .rune-ring span:nth-child(2) { --i: 1; }
.rune-ring span:nth-child(3) { --i: 2; } .rune-ring span:nth-child(4) { --i: 3; }
.rune-ring span:nth-child(5) { --i: 4; } .rune-ring span:nth-child(6) { --i: 5; }
.rune-ring span:nth-child(7) { --i: 6; } .rune-ring span:nth-child(8) { --i: 7; }
.rune-ring span:nth-child(9) { --i: 8; } .rune-ring span:nth-child(10) { --i: 9; }
.rune-ring span:nth-child(11) { --i: 10; } .rune-ring span:nth-child(12) { --i: 11; }
.loading-msg { color: var(--ink-dim); font-style: italic; min-height: 1.6em; }
.warning {
  margin-top: 34px; color: var(--gold);
  font-size: .95rem;
  border: 1px solid var(--card-border);
  border-radius: 12px; padding: 16px 20px;
  display: inline-block;
  background: rgba(201,164,92,.06);
  line-height: 1.6;
}
.warning-mark {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(201,164,92,.6);
}

/* ---------- relatório ---------- */
/* ---------- pagamento ---------- */
.payment-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(6px);
}
.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--ink-dim);
}
.payment-summary strong {
  color: var(--gold-bright);
  font-family: var(--display);
  white-space: nowrap;
}
.payment-qr {
  display: block;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}
.payment-code-label {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: .86rem;
  letter-spacing: .08em;
}
#payment-code {
  width: 100%;
  margin-top: 8px;
  resize: vertical;
  min-height: 96px;
  font-family: 'Courier New', monospace;
  font-size: .8rem;
}
.payment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.payment-ticket {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 18px auto 0;
  color: var(--gold-bright);
}
.payment-status {
  margin-top: 16px;
  text-align: center;
  color: var(--ink-dim);
  font-style: italic;
}

.report {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px 24px;
  margin-top: 18px;
  backdrop-filter: blur(6px);
  white-space: normal;
  overflow-wrap: break-word;
}
.report h1, .report h2, .report h3 {
  font-family: var(--display);
  color: var(--gold-bright);
  margin: 1.2em 0 .5em;
  line-height: 1.25;
}
.report h1 { font-size: 1.5rem; text-align: center; }
.report h2 { font-size: 1.25rem; }
.report h3 { font-size: 1.08rem; }
.report p { margin: .7em 0; }
.report em { color: var(--gold); }
.report hr { border: none; border-top: 1px solid var(--card-border); margin: 1.4em 0; }
.report pre {
  font-family: 'Courier New', monospace;
  font-size: .8rem; line-height: 1.45;
  color: var(--ink-dim);
  overflow-x: auto;
  background: rgba(0,0,0,.25);
  padding: 14px; border-radius: 10px;
}
.report ul, .report ol { padding-left: 1.4em; margin: .7em 0; }
.report .cursor { color: var(--gold); animation: pulse 1s infinite; }
.report-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* medalhões da tiragem no topo do relatório */
.draw-art { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 4px 0 26px; }
.da-cell { position: relative; margin: 0; text-align: center; }
.da-img { width: 134px; height: 134px; object-fit: cover; border-radius: 14px; border: 1px solid var(--gold); box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.da-cell figcaption { margin-top: 6px; color: var(--gold-bright); font-family: var(--display); letter-spacing: 1px; font-size: .95rem; }
.da-pos { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--gold); }
.da-blank { display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 144px; border: 1px solid var(--gold); border-radius: 12px; color: var(--gold-bright); font-family: var(--display); }
.da-tarot { text-align: center; color: var(--gold); font-style: italic; margin: 0 0 22px; }
.da-tarot-img { display: block; width: 150px; height: 150px; object-fit: cover; border-radius: 14px; border: 1px solid var(--gold); box-shadow: 0 6px 16px rgba(0,0,0,.45); margin: 0 auto 8px; }
.da-tarot figcaption { color: var(--gold-bright); font-family: var(--display); letter-spacing: 1px; font-size: .95rem; }
.symbol-art {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 14px;
  max-width: 520px;
  margin: 0 auto 28px;
}
.symbol-cell {
  margin: 0;
  text-align: center;
  color: var(--ink-dim);
}
.symbol-cell span {
  display: block;
  min-height: 2.2em;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--gold);
}
.symbol-cell img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--gold);
  box-shadow: 0 5px 12px rgba(0,0,0,.32);
}
.symbol-cell figcaption {
  color: var(--gold-bright);
  font-size: .9rem;
  line-height: 1.15;
}

/* ===== contas / login / consentimento / histórico (auth.js) ===== */
#na-account-bar {
  position: fixed; top: 12px; right: 14px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: .82rem;
}
.na-bar-btn {
  background: rgba(201,164,92,.10); color: var(--gold-bright);
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; letter-spacing: .04em;
}
.na-bar-btn:hover { background: rgba(201,164,92,.20); }
.na-bar-user { color: var(--ink-dim); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.na-bar-link { background: none; border: none; color: var(--ink-dim); cursor: pointer; text-decoration: underline; font-size: .78rem; }
.na-bar-link:hover { color: var(--gold); }

.na-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,7,12,.74); backdrop-filter: blur(4px);
  padding: 20px;
}
.na-modal {
  position: relative; width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--gold); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  padding: 30px 26px 26px; color: var(--ink);
  max-height: 88vh; overflow-y: auto;
}
.na-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: var(--ink-dim);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.na-close:hover { color: var(--gold); }
.na-title { font-family: var(--display); color: var(--gold-bright); margin: 0 0 8px; font-size: 1.25rem; }
.na-sub { color: var(--ink-dim); font-size: .9rem; margin: 0 0 18px; }
.na-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--ink-dim); font-size: .8rem; }
.na-or::before, .na-or::after { content: ''; flex: 1; height: 1px; background: rgba(201,164,92,.25); }
.na-form label, .na-modal label { display: block; margin: 0 0 12px; font-size: .85rem; color: var(--ink-dim); }
.na-form input[type=email], .na-form input[type=password] {
  width: 100%; margin-top: 5px; padding: 11px 12px;
  background: rgba(255,255,255,.04); color: var(--ink);
  border: 1px solid rgba(201,164,92,.35); border-radius: 9px; font-size: 1rem;
}
.na-form input:focus { outline: none; border-color: var(--gold); }
.na-error { color: #e7a17a; font-size: .85rem; margin: 4px 0 10px; }
.na-toggle { text-align: center; color: var(--ink-dim); font-size: .85rem; margin: 14px 0 0; }
.na-toggle a { color: var(--gold-bright); }
.na-google { width: 100%; }

.na-terms { font-size: .88rem; color: var(--ink); line-height: 1.5; margin-bottom: 14px; }
.na-terms strong { color: var(--gold-bright); }
.na-check { display: flex; align-items: flex-start; gap: 9px; font-size: .85rem; color: var(--ink); cursor: pointer; }
.na-check input { margin-top: 3px; accent-color: var(--gold); }
.na-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }

.na-history { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.na-hist-item {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: rgba(255,255,255,.03); border: 1px solid rgba(201,164,92,.25);
  border-radius: 11px; padding: 12px 14px; cursor: pointer; color: var(--ink);
}
.na-hist-item:hover { border-color: var(--gold); background: rgba(201,164,92,.08); }
.na-hist-title { font-family: var(--display); color: var(--gold-bright); font-size: .98rem; }
.na-hist-meta { color: var(--ink-dim); font-size: .78rem; }

.footer {
  text-align: center; color: var(--ink-dim);
  font-size: .8rem; padding: 18px 0 28px;
  font-style: italic;
}

/* ---------- impressão ---------- */
@media print {
  .sky, .footer, .report-actions, .btn { display: none !important; }
  body { background: #fff; color: #1c1a14; font-size: 12pt; }
  #app { max-width: 100%; padding: 0; }
  .report { background: none; border: none; padding: 0; }
  .report h1, .report h2, .report h3 { color: #6d5420; }
  .report em { color: #6d5420; }
  .report pre { background: #f5f2ea; color: #444; }
}

@media (max-width: 480px) {
  .rune-stone { width: 88px; height: 126px; }
  .rune-stone .glyph { font-size: 2.5rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .payment-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
}
