/* ==========================================================================
   Money Fortune Oracle — Mystic Design
   ========================================================================== */

:root {
  --bg-0: #05010f;
  --bg-1: #0a0118;
  --bg-card: rgba(26, 15, 46, 0.78);
  --bg-card-solid: #1a0f2e;
  --purple: #8b5cf6;
  --purple-deep: #6d28d9;
  --purple-light: #c4b5fd;
  --gold: #fbbf24;
  --gold-soft: #fde68a;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --rose: #f472b6;
  --green: #34d399;
  --text: #ece9f5;
  --text-dim: #9ca0b8;
  --border: rgba(167, 139, 250, 0.25);
  --border-hot: rgba(236, 72, 153, 0.4);
}

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

html, body {
  min-height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }

/* --------- Background: canvas starfield + nebula gradient --------- */

#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.nebula {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(236, 72, 153, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(34, 211, 238, 0.12), transparent 60%),
    linear-gradient(180deg, #05010f 0%, #0a0118 45%, #120326 100%);
}

/* --------- Loading splash --------- */

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15), transparent 70%),
              linear-gradient(180deg, #05010f, #0a0118);
}

.logo {
  font-size: 96px;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8));
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.7)); }
}

.title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--pink) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 24px 0 18px;
  text-align: center;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(139, 92, 246, 0.25);
  border-top-color: var(--purple-light);
  border-right-color: var(--pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 8px 0 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  color: var(--text-dim);
  font-size: 14px;
  animation: fade 2.4s ease-in-out infinite;
}
@keyframes fade { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* --------- Header --------- */

.screen { position: relative; }

.header {
  position: relative;
  padding: 22px 20px 18px;
  overflow: hidden;
}

.header-glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 200px;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.4), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}

.header-content { position: relative; z-index: 1; }

.app-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--purple-light), var(--pink), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.user-info { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.user-name { color: var(--text-dim); }
.user-tier {
  padding: 3px 10px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.35));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.35);
}

/* --------- Social proof --------- */

.social-proof {
  display: flex;
  justify-content: space-around;
  padding: 10px 16px;
  margin: 0 16px;
  background: rgba(20, 10, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
}

.online-counter, .daily-counter { display: flex; align-items: center; gap: 6px; }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.live-feed {
  height: 34px;
  overflow: hidden;
  margin: 8px 16px 14px;
  border-radius: 10px;
  background: rgba(20, 10, 40, 0.5);
  border: 1px solid var(--border);
  position: relative;
}
.feed-scroll {
  display: inline-block;
  white-space: nowrap;
  padding: 9px 0;
  font-size: 12px;
  color: var(--purple-light);
  animation: scroll 40s linear infinite;
  padding-left: 100%;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* --------- Main menu grid --------- */

.main-content {
  padding: 0 16px 32px;
  max-width: 640px;
  margin: 0 auto;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.menu-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 14px 16px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  backdrop-filter: blur(6px);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.menu-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.3), rgba(251, 191, 36, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.4;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.menu-card:hover, .menu-card:active {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.35);
}
.menu-card:hover::before, .menu-card:active::before { opacity: 1; }

.card-icon {
  font-size: 44px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.55));
}
.menu-card h3 { font-size: 15px; margin-bottom: 4px; color: #fff; font-weight: 700; }
.menu-card p { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; line-height: 1.35; }

.card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.card-badge.free { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.card-badge.pro {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.4);
}
.card-trend { font-size: 10.5px; color: var(--gold); font-weight: 700; }

/* Sparkle on pro cards */
.menu-card.pro-feature .card-icon {
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4)); }
  50% { filter: drop-shadow(0 0 22px rgba(251, 191, 36, 0.9)); }
}

/* --------- Streak --------- */

.streak-section { margin-bottom: 28px; }
.streak-card {
  background: linear-gradient(135deg, rgba(26, 15, 46, 0.9), rgba(139, 92, 246, 0.2));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(6px);
}
.streak-icon {
  font-size: 44px;
  animation: flame 2s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(251, 146, 60, 0.6));
}
@keyframes flame {
  0%, 100% { transform: scale(1) rotate(-4deg); }
  50% { transform: scale(1.12) rotate(4deg); }
}
.streak-info { flex: 1; }
.streak-number {
  font-size: 36px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.streak-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.streak-progress { flex: 2; }
.progress-bar {
  height: 8px;
  background: rgba(139, 92, 246, 0.18);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--gold));
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.5);
}
.streak-hint { font-size: 12px; color: var(--text-dim); }

/* --------- Sections (trending, reviews) --------- */

.section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trending-section, .reviews-section { margin-bottom: 28px; }
.trending-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 16px;
  backdrop-filter: blur(6px);
}
.trending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(167, 139, 250, 0.15);
  font-size: 13.5px;
}
.trending-item:last-child { border-bottom: none; }
.trending-count {
  color: var(--gold);
  font-weight: 700;
  background: rgba(251, 191, 36, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.reviews-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.reviews-carousel::-webkit-scrollbar { display: none; }
.review-card {
  min-width: 260px;
  max-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 12px;
  backdrop-filter: blur(6px);
  scroll-snap-align: start;
}
.review-stars { color: var(--gold); margin-bottom: 6px; font-size: 14px; }
.review-text { font-size: 13px; color: var(--text); margin-bottom: 8px; line-height: 1.45; }
.review-author { font-size: 12px; color: var(--text-dim); }
.rating-summary { text-align: center; font-size: 14px; color: var(--gold); font-weight: 700; margin-top: 6px; }

/* --------- Subscribe CTA --------- */

.subscribe-cta {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(236, 72, 153, 0.95));
  border-radius: 22px;
  padding: 26px 22px;
  text-align: center;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.35);
}
.cta-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22), transparent 60%);
  animation: rotateGlow 10s linear infinite;
  pointer-events: none;
}
@keyframes rotateGlow { to { transform: rotate(360deg); } }
.subscribe-cta h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; position: relative; }
.subscribe-cta p { position: relative; margin-bottom: 16px; opacity: 0.95; font-size: 14px; }
.btn-subscribe {
  position: relative;
  background: #fff;
  color: var(--purple-deep);
  border: none;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}
.btn-subscribe:active { transform: scale(0.97); }
.subscribe-hint { position: relative; margin-top: 10px; font-size: 12px; opacity: 0.85; }

/* --------- Footer --------- */

.footer {
  text-align: center;
  padding: 24px 20px 36px;
  color: var(--text-dim);
  font-size: 12px;
}
.footer p { margin: 3px 0; }

/* --------- Result screen --------- */

.result-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(10, 1, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.btn-back {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}
.btn-back:active { transform: scale(0.97); }

.result-header h2 {
  font-size: 17px;
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.result-body {
  padding: 20px 16px 8px;
  max-width: 640px;
  margin: 0 auto;
}
.result-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.4s ease;
}
.result-section.center { text-align: center; }
.result-section h4 {
  margin: 14px 0 6px;
  color: var(--gold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.result-text {
  font-size: 15px;
  line-height: 1.6;
  color: #e8e5f2;
  white-space: pre-wrap;
}
.mystic-divider {
  text-align: center;
  color: var(--gold);
  letter-spacing: 10px;
  font-size: 14px;
  margin: 18px 0;
  opacity: 0.7;
}

/* Tarot card display */
.tarot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}
.tarot-card {
  flex: 0 0 calc(33.333% - 8px);
  min-width: 120px;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.25), rgba(26, 15, 46, 0.9));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
  animation: cardFlip 0.6s ease both;
}
@keyframes cardFlip {
  from { transform: rotateY(80deg) translateY(10px); opacity: 0; }
  to { transform: rotateY(0) translateY(0); opacity: 1; }
}
.tarot-position {
  font-size: 10.5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.tarot-emoji {
  font-size: 44px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.6));
}
.tarot-name { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.tarot-keywords { font-size: 11px; color: var(--text-dim); font-style: italic; }

.yesno-answer {
  font-size: 44px;
  text-align: center;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 1.8s ease-in-out infinite;
}

/* Numerology */
.num-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.num-card {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.3), rgba(26, 15, 46, 0.9));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.num-big {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.num-label { font-size: 12px; color: var(--text-dim); }

/* Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.matrix-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
}
.matrix-key { color: var(--text-dim); }
.matrix-arcana { font-weight: 700; color: var(--gold); }

.natal-emoji { font-size: 48px; margin-bottom: 8px; }
.natal-sub { font-size: 13px; color: var(--text-dim); letter-spacing: 0.6px; }

/* Result actions */
.result-actions {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  gap: 10px;
}
.result-actions > button { flex: 1; }

/* --------- Buttons --------- */

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border: none;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
  transition: transform 0.15s ease;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary.big { padding: 16px; font-size: 16px; }

.btn-secondary {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-light);
  border: 1px solid var(--border);
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.15s ease;
}
.btn-secondary:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* --------- Modal --------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 1, 15, 0.72);
  backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #1a0f2e, #0f0820);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
              0 0 40px rgba(139, 92, 246, 0.25);
  animation: popUp 0.28s ease both;
  overflow: hidden;
}

/* Close X in the corner — always visible */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple-light);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.15s ease, background 0.2s ease;
  padding: 0;
}
.modal-close:hover, .modal-close:active {
  transform: scale(0.9) rotate(90deg);
  background: rgba(236, 72, 153, 0.25);
  color: #fff;
}
@keyframes popUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-icon {
  font-size: 48px;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 8px;
  padding-right: 36px;   /* leave room for × */
  padding-left: 36px;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.7));
}
.modal-title {
  font-size: 20px;
  text-align: center;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal-sub { font-size: 13px; color: var(--text-dim); text-align: center; margin-bottom: 16px; }

.modal-panel textarea,
.modal-panel input[type="date"],
.modal-panel input[type="time"] {
  width: 100%;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}
.modal-panel textarea:focus,
.modal-panel input:focus { border-color: var(--purple); }
.field-label {
  font-size: 12px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.modal-buttons.column { flex-direction: column; }
.modal-buttons > button { flex: 1; }

/* Paywall */
.modal-panel.paywall { max-width: 440px; padding: 22px 18px 0; }
.paywall-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 2px 8px;
  margin: 0 -2px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}
.paywall-scroll::-webkit-scrollbar { width: 6px; }
.paywall-scroll::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 999px;
}
.paywall-footer {
  padding: 12px 0 14px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(15, 8, 32, 0.8) 30%);
  margin-top: 4px;
}
.paywall-footer .btn-ghost { width: 100%; margin: 0; }
.paywall-list {
  list-style: none;
  margin: 10px 0 14px;
  padding: 14px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.paywall-list li {
  padding: 5px 0;
  font-size: 14px;
  color: var(--text);
}
.paywall-price {
  text-align: center;
  margin: 12px 0 6px;
}
.price-big {
  display: block;
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.price-big small { font-size: 18px; font-weight: 600; color: var(--text-dim); -webkit-text-fill-color: var(--text-dim); }
.price-hint { display: block; font-size: 13px; color: var(--gold); margin-top: 4px; font-weight: 600; }
.paywall-fine { font-size: 11px; color: var(--text-dim); text-align: center; margin-top: 12px; line-height: 1.5; }

/* --------- Toast --------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2000;
  max-width: 92%;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(26, 15, 46, 0.96);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.25s ease;
}
.toast[data-kind="error"] { border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; }
.toast[data-kind="success"] { border-color: rgba(52, 211, 153, 0.6); color: #86efac; }

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --------- Mystic loader overlay --------- */

.action-loading {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(5, 1, 15, 0.72);
  backdrop-filter: blur(6px);
}
.mystic-loader {
  display: flex;
  gap: 16px;
  font-size: 38px;
  color: var(--gold);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.7));
}
.mystic-loader .rune {
  animation: runeBob 1.4s ease-in-out infinite;
}
.mystic-loader .rune:nth-child(2) { animation-delay: 0.2s; }
.mystic-loader .rune:nth-child(3) { animation-delay: 0.4s; }
@keyframes runeBob {
  0%, 100% { transform: translateY(0) rotate(0); opacity: 0.8; }
  50% { transform: translateY(-12px) rotate(10deg); opacity: 1; }
}
.action-loading p { color: var(--text); font-size: 15px; font-weight: 600; }

/* --------- First purchase banner --------- */

.first-purchase-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 16px 10px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(236, 72, 153, 0.22));
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.15);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.first-purchase-banner:hover, .first-purchase-banner:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.3);
}
.fpb-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.25), transparent 60%);
  animation: rotateGlow 12s linear infinite;
  pointer-events: none;
}
.fpb-left {
  position: relative;
  font-size: 34px;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
}
.fpb-text { position: relative; flex: 1; }
.fpb-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}
.fpb-sub {
  font-size: 11.5px;
  color: #fde68a;
  margin-top: 2px;
}
.fpb-arrow {
  position: relative;
  font-size: 20px;
  color: var(--gold);
  font-weight: 700;
}

/* --------- Invite card --------- */

.invite-card {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.18), rgba(26, 15, 46, 0.95));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.invite-icon {
  font-size: 40px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.7));
}
.invite-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.invite-card p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.invite-stats {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  min-height: 16px;
}
.btn-invite {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease;
}
.btn-invite:active { transform: scale(0.97); }

/* --------- Coin chip in header --------- */

.app-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform 0.15s ease, background 0.2s ease;
}
.lang-chip:hover, .lang-chip:active {
  transform: scale(0.97);
  background: rgba(139, 92, 246, 0.25);
}

.lang-panel { max-width: 360px; }
.lang-options {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: left;
}
.lang-btn:hover, .lang-btn:active {
  transform: translateY(-2px);
  border-color: var(--purple);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.1));
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.3);
}
.lang-flag { font-size: 28px; }
.lang-name { flex: 1; }

.coins-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--gold);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-left: auto;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.coins-chip:hover, .coins-chip:active {
  transform: scale(0.97);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
}

.user-info { justify-content: flex-start; width: 100%; }

/* --------- Price badges on menu cards --------- */

.card-price {
  min-height: 22px;
  margin-top: 4px;
}
.price-coins {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.price-free {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
}

/* --------- Secondary CTA (coin packs) --------- */

.subscribe-cta.secondary {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 10px 28px rgba(251, 191, 36, 0.15);
}
.subscribe-cta.secondary h2 {
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subscribe-cta.secondary .btn-subscribe {
  background: linear-gradient(135deg, var(--gold), var(--pink));
  color: #1a0f2e;
}

/* --------- Paywall (coin packs) --------- */

.paywall-discount {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
}

.paywall-price-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
}
.paywall-price-row .dot { color: var(--text-dim); }

.paywall-section { margin: 12px 0; }
.paywall-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--purple-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.paywall-mini {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.paywall-divider {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  margin: 14px 0;
  position: relative;
}
.paywall-divider::before, .paywall-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.3), transparent);
}
.paywall-divider::before { left: 0; }
.paywall-divider::after { right: 0; }

.coin-packs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.coin-pack-card {
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.15), rgba(26, 15, 46, 0.9));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  color: var(--text);
  font-family: inherit;
}
.coin-pack-card:hover, .coin-pack-card:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}
.pack-label {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.pack-stars {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
}
.pack-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.paywall .btn-primary.big { width: 100%; margin-top: 8px; }
.paywall .btn-ghost { width: 100%; margin-top: 12px; }

/* --------- Responsive --------- */

@media (max-width: 420px) {
  .menu-grid { gap: 10px; }
  .menu-card { padding: 14px 10px 12px; }
  .card-icon { font-size: 38px; }
  .menu-card h3 { font-size: 14px; }
  .menu-card p { font-size: 11.5px; }
  .tarot-card { flex-basis: calc(50% - 6px); }
}
