:root {
  --bg: #0a0614;
  --bg-2: #150a24;
  --card: rgba(22, 12, 40, 0.78);
  --card-border: rgba(212, 175, 55, 0.28);
  --gold: #d4af37;
  --gold-soft: #f3e2a8;
  --gold-dim: #8a7030;
  --lilac: #c9b6ff;
  --text: #f6f0e6;
  --muted: #b7a8c9;
  --danger: #ffb4b4;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font-display: "Cinzel", "Noto Serif Thai", serif;
  --font-serif: "Cormorant Garamond", "Noto Serif Thai", serif;
  --font-sans: "Noto Sans Thai", "Cormorant Garamond", sans-serif;
  --lavender: #d9c8ff;
  --pink: #f5a3d0;
  --plum: #6b3fa0;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(1200px 700px at 50% -10%, #3a1d63 0%, var(--bg) 55%);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
}

body[data-lang="en"] .hero h1,
body[data-lang="en"] .brand strong,
body[data-lang="en"] .form-panel h2,
body[data-lang="en"] .reading-card h3,
body[data-lang="en"] .lock-title,
body[data-lang="en"] .modal-card h3 {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
}

.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#stars { width: 100%; height: 100%; display: block; }
.veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(120, 50, 180, 0.18), transparent 70%),
    radial-gradient(500px 500px at 85% 80%, rgba(212, 175, 55, 0.08), transparent 70%);
}
.moon {
  position: absolute;
  top: 3.5vh;
  right: 6vw;
  width: 11rem;
  height: 11rem;
  opacity: 0.8;
  filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.28));
  pointer-events: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 6vw 0;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand strong {
  display: block;
  font-family: "Noto Serif Thai", var(--font-display), serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}
body[data-lang="en"] .brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.sigil {
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
  flex: 0 0 auto;
}
.sigil svg { display: block; }

.lang {
  display: inline-flex;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(10, 6, 20, 0.55);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  font: 500 0.85rem var(--font-sans);
  cursor: pointer;
}
.lang-btn.is-on {
  background: linear-gradient(180deg, #d4af37, #a4842a);
  color: #1a1004;
}

main { max-width: 1280px; margin: 0 auto; padding: 0 6vw 4rem; }

.hero { text-align: center; padding: 2.6rem 0 1.6rem; }
.eyebrow {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin: 0 0 0.8rem;
}
.hero h1 {
  font-family: "Noto Serif Thai", var(--font-display), serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 1.15;
  margin: 0 0 0.9rem;
  background: linear-gradient(180deg, #fff6d6 0%, var(--gold) 55%, #8a6a20 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
}
.lede {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--lilac);
  font-size: 1.05rem;
}

.ad-slot {
  margin: 0 auto 1.6rem;
  max-width: 860px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 1.15rem 1.35rem 1.25rem;
  text-align: center;
  background: rgba(212, 175, 55, 0.04);
  color: var(--muted);
}
.ad-heading {
  margin: 0 0 0.45rem;
  font-family: "Noto Serif Thai", var(--font-display), serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--gold-soft);
}
body[data-lang="en"] .ad-heading {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.ad-line {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--lilac);
}
.ad-contact {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 2px;
}
.ad-contact:hover,
.ad-contact:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
  outline: none;
}
.ad-after { margin-top: 1.6rem; }

.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.form-panel { padding: 1.6rem 1.5rem 1.5rem; }
.form-panel h2 {
  font-family: "Noto Serif Thai", var(--font-display), serif;
  font-weight: 600;
  margin: 0 0 1.1rem;
  font-size: 1.45rem;
  color: var(--gold-soft);
}

label, .topic-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
label span, legend {
  font-size: 0.86rem;
  color: var(--muted);
}
em { font-style: normal; opacity: 0.7; font-size: 0.8em; }
.topic-field { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.topic-field legend { margin-bottom: 0.4rem; padding: 0; }

input[type="text"], input[type="date"], input[type="time"], textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(201, 182, 255, 0.25);
  background: rgba(8, 4, 16, 0.7);
  color: var(--text);
  padding: 0.7rem 0.8rem;
  font: 400 1rem var(--font-sans);
  outline: none;
  color-scheme: dark;
}
textarea { resize: vertical; min-height: 5.2rem; }
input:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  margin: 0;
  cursor: pointer;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 182, 255, 0.28);
  color: var(--lilac);
  font-size: 0.88rem;
  transition: 0.2s ease;
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25); }
.chip input:checked + span {
  background: linear-gradient(180deg, #efe0a0, var(--gold));
  color: #1a1004;
  border-color: transparent;
  font-weight: 600;
}

.form-error { color: var(--danger); margin: 0 0 0.8rem; font-size: 0.92rem; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font: 600 1rem var(--font-sans);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: wait; }
.btn.gold {
  background: linear-gradient(180deg, #f3e2a8, #d4af37 45%, #9a7420);
  color: #1a1004;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
  width: 100%;
}
.btn.gold:hover { box-shadow: 0 10px 28px rgba(212, 175, 55, 0.42); }
.btn.ghost {
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid var(--card-border);
  width: auto;
}

.status[hidden], .result[hidden], .modal[hidden] { display: none !important; }

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem 0;
  color: var(--gold-soft);
}
.pulse {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 14px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.result { margin-top: 2rem; }
.result-head { text-align: center; margin-bottom: 1.2rem; }
.for { margin: 0 0 0.9rem; color: var(--lilac); font-size: 1.05rem; }
.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}
.badge {
  border: 1px solid var(--card-border);
  background: rgba(22, 12, 40, 0.7);
  border-radius: 18px;
  padding: 0.7rem 1rem;
  min-width: 9.5rem;
  text-align: center;
}
.badge b {
  display: block;
  font-family: "Noto Serif Thai", var(--font-display), serif;
  font-size: 1.15rem;
  color: var(--gold-soft);
  font-weight: 600;
}
.badge small { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.04em; }

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}
.reading-card { padding: 1.3rem 1.25rem 1.2rem; display: flex; flex-direction: column; min-width: 0; }
.card-head { margin-bottom: 0.8rem; }
.card-head h3 {
  margin: 0.35rem 0 0;
  font-family: "Noto Serif Thai", var(--font-display), serif;
  font-size: 1.3rem;
}
.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 182, 255, 0.3);
  color: var(--lilac);
}
.gold-tag {
  border-color: var(--gold);
  color: var(--gold);
}

.reading-body {
  font-family: "Noto Serif Thai", var(--font-serif), serif;
  font-size: 1.08rem;
  color: #f4ecdc;
  white-space: pre-wrap;
}
body[data-lang="en"] .reading-body { font-family: var(--font-serif); font-size: 1.18rem; }
.source { margin: 1rem 0 0; color: var(--muted); font-size: 0.8rem; }

.premium { position: relative; overflow: hidden; }
.premium-stack { position: relative; min-height: 26rem; flex: 1; }
.blurred {
  filter: blur(6px);
  opacity: 0.45;
  user-select: none;
  pointer-events: none;
  font-family: "Noto Serif Thai", var(--font-serif), serif;
  font-size: 0.98rem;
  color: #f4ecdc;
}
.blurred h4 { margin: 0.8rem 0 0.25rem; color: var(--gold-soft); font-size: 0.95rem; }
.blurred p { margin: 0 0 0.5rem; }
.swatches { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.3rem 0 0.6rem; }
.swatch {
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
}

.lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(10, 6, 20, 0.15), rgba(10, 6, 20, 0.72) 40%, rgba(10, 6, 20, 0.88));
}
.lock-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}
.lock-title {
  margin: 0;
  font-family: "Noto Serif Thai", var(--font-display), serif;
  font-size: 1.25rem;
  color: var(--gold-soft);
}
.lock-copy { color: var(--lilac); margin: 0.4rem 0 1rem; max-width: 22rem; }
.lock .btn { width: auto; min-width: 14rem; }
.lock-note { margin: 0.7rem 0 0; font-size: 0.78rem; color: var(--muted); }

.modal {
  position: fixed; inset: 0;
  background: rgba(5, 2, 12, 0.72);
  display: grid; place-items: center;
  padding: 1.2rem;
  z-index: 20;
}
.modal[hidden] { display: none; }
.modal-card { max-width: 28rem; padding: 1.6rem; text-align: center; }
.modal-card h3 { margin-top: 0; color: var(--gold-soft); font-family: "Noto Serif Thai", var(--font-display), serif; }

footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 6vw 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.foot-brand {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* ---------- Balance ---------- */
.top-actions { display: flex; align-items: center; gap: 0.6rem; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.32rem 0.8rem 0.32rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, rgba(107, 63, 160, 0.55), rgba(245, 163, 208, 0.22));
  border: 1px solid rgba(217, 200, 255, 0.4);
  box-shadow: 0 0 18px rgba(201, 182, 255, 0.18);
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.balance-chip:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(245, 163, 208, 0.35); }
.balance-moon { color: var(--gold-soft); font-size: 1rem; }
.balance-num { font-weight: 700; color: var(--gold-soft); font-size: 1rem; }
.balance-label { color: var(--lavender); }
.balance-chip.is-empty .balance-num { color: var(--pink); }
.balance-chip.bump { animation: bump 0.6s ease; }
@keyframes bump {
  30% { transform: scale(1.15); box-shadow: 0 0 30px rgba(243, 226, 168, 0.6); }
  100% { transform: scale(1); }
}

.credit-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(107, 63, 160, 0.28), rgba(245, 163, 208, 0.1));
  border: 1px solid rgba(217, 200, 255, 0.22);
}
.credit-strip.is-empty { border-color: rgba(245, 163, 208, 0.55); }
.credit-text { margin: 0; font-size: 0.88rem; color: var(--lavender); }
.credit-text b { color: var(--gold-soft); font-size: 1.05em; }
.credit-link {
  flex: 0 0 auto;
  font-size: 0.82rem; font-weight: 600;
  color: #1a1004; text-decoration: none;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  background: linear-gradient(180deg, #f3e2a8, #d4af37);
}

a.btn { display: inline-block; text-align: center; text-decoration: none; }
.premium.is-unlocked .lock { display: none; }
.premium.is-unlocked .blurred { filter: none; opacity: 1; user-select: text; pointer-events: auto; }
.premium.is-unlocked .premium-stack { min-height: 0; }

/* ---------- Pricing ---------- */
.pricing {
  position: relative;
  margin: 3.2rem auto 0;
  padding: 2.4rem 0 0.5rem;
  text-align: center;
  scroll-margin-top: 1rem;
  border-radius: 28px;
  transition: box-shadow 0.4s ease;
}
.pricing::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 28px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(201, 120, 255, 0.18), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(245, 163, 208, 0.1), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.pricing.flash { box-shadow: 0 0 0 2px rgba(245, 163, 208, 0.6), 0 0 60px rgba(245, 163, 208, 0.25); }
.pricing h2 {
  margin: 0 0 0.6rem;
  font-family: "Noto Serif Thai", var(--font-display), serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.25;
  background: linear-gradient(90deg, var(--lavender), #fbd3ea 45%, var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body[data-lang="en"] .pricing h2 { font-family: var(--font-display); letter-spacing: 0.06em; }
.pricing-lede { max-width: 40rem; margin: 0 auto 2rem; color: var(--lilac); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
}
.price-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.35rem 0.9rem 1rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(40, 22, 70, 0.85), rgba(18, 10, 34, 0.9));
  border: 1px solid rgba(201, 182, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
  animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  overflow: hidden;
}
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 163, 208, 0.55);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45), 0 0 28px rgba(201, 120, 255, 0.28);
}
.price-card .price {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 700; line-height: 1.1;
  color: #fff4dc;
}
.price-card .cur { font-size: 0.55em; vertical-align: 0.6em; margin-right: 0.08em; color: var(--gold-soft); }
.price-card .qty { margin: 0.35rem 0 0; color: var(--lavender); font-size: 0.95rem; }
.price-card .qty b { font-size: 1.45rem; color: #fff; margin-right: 0.1rem; }
.price-card .bonus {
  margin: 0.55rem 0 0;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  color: #2a0f2a;
  background: linear-gradient(90deg, #fbc2e3, #f5a3d0);
}
.price-card .bonus.none { background: transparent; color: var(--muted); font-weight: 400; border: 1px dashed rgba(201, 182, 255, 0.25); }
.price-card .meta { margin: 0.65rem 0 0.9rem; font-size: 0.8rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.1rem; }
.price-card .per { color: var(--gold-soft); }
.price-card .split { color: #fbd3ea; margin-top: 0.35rem; }
.price-card .worth-line { color: var(--lavender); }
.price-card .worth-line b { color: var(--gold-soft); }
.price-card.has-save { padding-top: 2rem; }
.price-card .btn { width: 100%; margin-top: auto; padding: 0.62rem 0.8rem; font-size: 0.9rem; }
.btn.soft {
  background: linear-gradient(180deg, rgba(217, 200, 255, 0.22), rgba(107, 63, 160, 0.35));
  color: var(--text);
  border: 1px solid rgba(217, 200, 255, 0.35);
}
.btn.soft:hover { box-shadow: 0 0 20px rgba(201, 182, 255, 0.35); }
.save-pill {
  position: absolute; top: 0.6rem; right: 0.6rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.12rem 0.45rem; border-radius: 999px;
  color: #1a1004; background: linear-gradient(180deg, #f3e2a8, #d4af37);
}

.tier-bonus {
  background: linear-gradient(160deg, rgba(70, 30, 100, 0.9), rgba(30, 12, 48, 0.92));
  border-color: rgba(245, 163, 208, 0.35);
}
.tier-high {
  background: linear-gradient(160deg, rgba(98, 40, 128, 0.92), rgba(44, 14, 60, 0.94));
  border-color: rgba(245, 163, 208, 0.55);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4), 0 0 22px rgba(245, 163, 208, 0.16);
}
.tier-high::after, .tier-best::after {
  content: "";
  position: absolute; inset: -40% -60%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.09) 50%, transparent 60%);
  transform: translateX(-60%);
  transition: transform 0.9s ease;
  pointer-events: none;
}
.tier-high:hover::after, .tier-best:hover::after { transform: translateX(60%); }

.tier-best {
  padding: 2.2rem 1rem 1.1rem;
  transform: scale(1.04);
  z-index: 1;
  background:
    radial-gradient(420px 200px at 20% 0%, rgba(243, 226, 168, 0.22), transparent 70%),
    linear-gradient(140deg, #4a1f78 0%, #7b2f86 45%, #3b1460 100%);
  border: 1.5px solid rgba(243, 226, 168, 0.85);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.35), inset 0 0 30px rgba(243, 226, 168, 0.12);
  animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both, glow 3.2s ease-in-out 0.8s infinite;
}
@keyframes glow {
  50% { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 60px rgba(245, 163, 208, 0.45), inset 0 0 30px rgba(243, 226, 168, 0.18); }
}
.tier-best:hover { transform: translateY(-8px) scale(1.06); border-color: #fff1c4; }
.best-badge {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  padding: 0.32rem 1.2rem 0.38rem;
  border-radius: 0 0 14px 14px;
  font: 700 0.78rem var(--font-sans);
  letter-spacing: 0.16em;
  color: #2a1604;
  background: linear-gradient(180deg, #fff1c4, #d4af37 60%, #b48a26);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  white-space: nowrap;
}
.best-body {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
  width: 100%;
  margin-top: 0.4rem;
}
.best-main { display: flex; flex-direction: column; align-items: center; }
.tier-best .price { font-size: 2.6rem; color: #fff6d6; text-shadow: 0 0 24px rgba(243, 226, 168, 0.45); }
.tier-best .bonus { background: linear-gradient(90deg, #fff1c4, #f5a3d0); }
.best-list {
  list-style: none; margin: 0; padding: 0;
  text-align: left;
  font-size: 0.82rem;
  color: #fbeaff;
  display: grid; gap: 0.25rem;
}
.best-list .hi { color: var(--gold-soft); font-weight: 700; }
.tier-best .meta { flex-direction: row; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem; }
.tier-best .worth { color: #fbd3ea; }
.tier-best .btn { font-size: 1rem; padding: 0.75rem 1rem; }

.how-to {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 1.8rem 0 0; padding: 0;
  text-align: left;
}
.how-to li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(22, 12, 40, 0.6);
  border: 1px solid rgba(201, 182, 255, 0.16);
}
.how-to span {
  flex: 0 0 auto;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem;
  color: #1a1004; background: linear-gradient(180deg, #f3e2a8, #d4af37);
}
.how-to p { margin: 0; font-size: 0.88rem; color: var(--lavender); }

/* ---------- Pay modal ---------- */
.pay-card { position: relative; max-width: 25rem; width: 100%; max-height: 92vh; overflow-y: auto; padding: 1.5rem 1.4rem 1.3rem; }
.modal-x {
  position: absolute; top: 0.5rem; right: 0.7rem;
  appearance: none; border: 0; background: transparent;
  color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal-x:hover { color: var(--gold-soft); }
.pay-card h3 { margin: 0 0 0.8rem; }
.pay-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pay-summary div {
  padding: 0.5rem; border-radius: 12px;
  background: rgba(107, 63, 160, 0.25);
  border: 1px solid rgba(217, 200, 255, 0.2);
}
.pay-summary small { display: block; color: var(--muted); font-size: 0.75rem; }
.pay-summary b { font-size: 1.25rem; color: var(--gold-soft); }
.pay-summary .code { letter-spacing: 0.12em; font-family: ui-monospace, monospace; }
.pay-get { margin: 0.6rem 0 0.8rem; color: var(--lavender); font-size: 0.92rem; }
.qr-frame {
  margin: 0 auto; width: min(15rem, 100%);
  border-radius: 16px; overflow: hidden;
  background: #fff;
  box-shadow: 0 0 30px rgba(243, 226, 168, 0.3);
}
.qr-head { background: #113566; color: #fff; font-weight: 600; font-size: 0.85rem; padding: 0.4rem; }
.qr { padding: 0.4rem 0.6rem 0; }
.qr svg { width: 100%; height: auto; display: block; }
.qr-amount { color: #113566; font-weight: 700; font-size: 1.1rem; padding: 0 0 0.5rem; }
.pay-steps { text-align: left; margin: 1rem 0 0.6rem; padding-left: 1.2rem; font-size: 0.86rem; color: var(--lavender); }
.pay-steps li { margin-bottom: 0.3rem; }
.pay-steps b { color: var(--gold-soft); }
.pay-status { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.88rem; margin: 0.4rem 0 0.8rem; }
.pay-status .pulse { width: 9px; height: 9px; }
.pay-status.waiting { color: var(--gold-soft); }
.pay-status.ok { color: #b8f5c8; font-weight: 600; }
.pay-status.bad { color: var(--danger); }
.pay-actions { display: flex; gap: 0.6rem; }
.pay-actions .btn { flex: 1; width: auto; padding: 0.65rem 0.8rem; font-size: 0.9rem; }
.pay-soon p { color: var(--lavender); }
.pay-soon .lock-icon { font-size: 2.2rem; }
.line-btn { width: auto; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem;
  transform: translateX(-50%) translateY(20px);
  padding: 0.75rem 1.2rem; border-radius: 999px;
  background: linear-gradient(90deg, #6b3fa0, #b0498f);
  color: #fff; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 163, 208, 0.35);
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 30;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast[hidden] { display: none; }

@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier-best { grid-column: 1 / -1; transform: none; }
  .tier-best:hover { transform: translateY(-6px); }
  .best-body { flex-direction: row; gap: 1.6rem; }
  .best-list { font-size: 0.95rem; }
  .tier-best .price { font-size: 3rem; }
}

@media (max-width: 860px) {
  .grid-2, .columns { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .tier-best { grid-column: 1 / -1; order: -1; }
  .best-body { flex-direction: row; gap: 1rem; }
  .best-list { font-size: 0.85rem; }
  .how-to { grid-template-columns: 1fr; }
  .price-card { padding: 1.2rem 0.7rem 0.85rem; }
  .price-card.has-save { padding-top: 1.9rem; }
  .price-card .meta { font-size: 0.76rem; }
  .price-card .price { font-size: 1.8rem; }
  .tier-best .price { font-size: 2.6rem; }
  .balance-label { display: none; }
  .credit-strip { flex-direction: column; align-items: flex-start; }
  .premium-stack { min-height: 22rem; }
  .top, main { padding-left: 1.1rem; padding-right: 1.1rem; }
  .hero { padding-top: 1.6rem; }
}

/* ---- slip upload ---- */
.slip-box { margin: 14px 0 6px; padding: 14px; border: 1px dashed rgba(232, 197, 120, 0.55); border-radius: 14px; background: rgba(232, 197, 120, 0.06); display: grid; gap: 10px; text-align: left; }
.slip-title { margin: 0; font-weight: 700; color: #f3d98b; }
.slip-hint { margin: 0; font-size: 0.85rem; opacity: 0.8; }
.slip-box .slip-pick { display: flex; flex-direction: row; justify-content: flex-start; text-align: left; margin: 0; font-size: 0.95rem; color: inherit; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); cursor: pointer; overflow: hidden; }
.slip-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slip-box .slip-pick span { display: block; text-align: left; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip-pick::before { content: "🧾"; }
.slip-pick:focus-within { outline: 2px solid #f3d98b; }
#slip-send { width: 100%; }
#slip-send[disabled] { opacity: 0.6; cursor: progress; }
.slip-msg { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; }
.slip-msg.success { background: rgba(80, 200, 140, 0.15); color: #9ff0c4; }
.slip-msg.failed { background: rgba(240, 100, 100, 0.14); color: #ffb3b3; }
.slip-msg.review { background: rgba(240, 190, 90, 0.14); color: #ffd99a; }
.or-line { margin: 4px 0 0; font-size: 0.85rem; opacity: 0.75; text-align: center; }
.pay-status.ok { flex-wrap: wrap; }
.new-balance { flex-basis: 100%; text-align: center; margin-top: 4px; }

/* ---- tarot ---- */
.tarot { margin: 18px 0 22px; padding: 20px 14px 18px; border-radius: var(--radius); background:
  radial-gradient(120% 90% at 50% 0%, rgba(201, 182, 255, 0.16), transparent 60%),
  radial-gradient(80% 60% at 50% 100%, rgba(245, 163, 208, 0.10), transparent 70%), var(--card);
  border: 1px solid var(--card-border); box-shadow: var(--shadow); text-align: center; }
.tarot-title { margin: 0 0 16px; font-family: var(--font-serif); font-size: clamp(1.25rem, 4.6vw, 1.6rem); font-weight: 600;
  background: linear-gradient(90deg, var(--lavender), var(--gold-soft), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.02em; }
.tarot-title::before, .tarot-title::after { content: " ✦ "; color: var(--gold); -webkit-text-fill-color: var(--gold); font-size: 0.8em; }
.tarot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2.6vw, 18px); max-width: 560px; margin: 0 auto; }
.tcard { margin: 0; perspective: 900px; opacity: 0; animation: tdeal 0.6s ease-out forwards; animation-delay: calc(var(--i) * 0.15s); }
.tcard.no-anim { animation: none; opacity: 1; }
@keyframes tdeal { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.tcard-inner { position: relative; display: block; width: 100%; aspect-ratio: 300 / 518; padding: 0; border: 0; background: none; cursor: pointer;
  transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tcard.no-anim .tcard-inner { transition: none; }
.tcard.is-flipped .tcard-inner { transform: rotateY(180deg); }
.tcard-face { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.55); }
.tcard-back { display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(243, 226, 168, 0.25) 0 18%, transparent 19%),
    repeating-conic-gradient(from 0deg, rgba(212, 175, 55, 0.12) 0 6deg, transparent 6deg 18deg),
    radial-gradient(2px 2px at 20% 18%, #fff8, transparent), radial-gradient(1.5px 1.5px at 78% 30%, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 30% 80%, #fff6, transparent), radial-gradient(2px 2px at 70% 86%, #fff8, transparent),
    linear-gradient(160deg, #3b1d6e, #23103f 55%, #5a2a6e);
  outline: 1px solid rgba(243, 226, 168, 0.6); outline-offset: -7px; }
.tcard-moon { font-size: clamp(1.6rem, 7vw, 2.4rem); color: var(--gold-soft); text-shadow: 0 0 14px rgba(243, 226, 168, 0.8); }
.tcard-front { transform: rotateY(180deg); background: #f4ead2; }
.tcard-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard.is-reversed .tcard-front img { transform: rotate(180deg); }
.tcard.is-flipped .tcard-front { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.8), 0 0 22px rgba(245, 163, 208, 0.35); }
.tcard figcaption { margin-top: 10px; display: grid; gap: 2px; justify-items: center; opacity: 0; transition: opacity 0.6s ease 0.5s; }
.tcard.is-flipped figcaption { opacity: 1; }
.tcard-name { font-size: clamp(0.82rem, 3.4vw, 1rem); color: var(--gold-soft); line-height: 1.3; }
.tcard-sub { font-size: 0.7rem; color: var(--muted); }
.tcard-rev { font-size: 0.68rem; padding: 1px 8px; border-radius: 999px; color: var(--pink); border: 1px solid rgba(245, 163, 208, 0.5); }
.tcard-meaning { font-size: clamp(0.7rem, 2.9vw, 0.82rem); color: var(--lavender); line-height: 1.4; margin-top: 3px; }
.foot-credit { font-size: 0.72rem; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .tcard { animation: none; opacity: 1; } .tcard-inner { transition: none; } }
