/* =========================================
   MYSTICA — Fortune Telling Website
   Style: Modern & Minimal
   ========================================= */

:root {
  --bg-primary: #0d0d12;
  --bg-secondary: #13131c;
  --bg-card: #1a1a27;
  --bg-card-hover: #1f1f31;
  --accent: #a78bfa;
  --accent-light: #c4b5fd;
  --accent-glow: rgba(167, 139, 250, 0.15);
  --gold: #f5c842;
  --gold-soft: #f5c84240;
  --text-primary: #f0eff5;
  --text-secondary: #9d9baf;
  --text-muted: #5c5a72;
  --border: rgba(167, 139, 250, 0.15);
  --border-strong: rgba(167, 139, 250, 0.35);
  --success: #34d399;
  --danger: #f87171;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(167, 139, 250, 0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Stars background ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 25%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 40%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 10%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 70%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 50%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 45%, rgba(255,255,255,0.35) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #fff;
}

p {
  color: var(--text-secondary);
}

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

main {
  flex: 1;
}

/* ---- Hamburger button (mobile) ---- */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-menu-btn:hover { background: var(--accent-glow); }
.nav-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-only tier row inside dropdown (hidden on desktop) */
.nav-mobile-tier {
  display: none;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.03em;
}

.nav-logo .logo-symbol {
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--accent-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Custom language dropdown (replaces native <select> to avoid viewport clipping) ---- */
.mm-lang-dd {
  position: relative;
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1.4;
}
.mm-lang-dd-btn {
  background: #1a1a27;
  border: 1px solid rgba(167,139,250,.3);
  color: #9d9baf;
  border-radius: 6px;
  padding: 4px 24px 4px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  line-height: 1.4;
  position: relative;
  min-width: 88px;
  text-align: left;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mm-lang-dd-btn::after {
  content: '';
  position: absolute;
  right: 9px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.mm-lang-dd.is-open .mm-lang-dd-btn {
  border-color: rgba(167,139,250,.7);
  color: #e5e3f0;
}
.mm-lang-dd.is-open .mm-lang-dd-btn::after {
  transform: translateY(-20%) rotate(-135deg);
  opacity: 1;
}
.mm-lang-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;              /* anchor to the button's right edge so the panel always opens inside the viewport */
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #1a1a27;
  border: 1px solid rgba(167,139,250,.35);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 24px rgba(167,139,250,0.12);
  min-width: 144px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  z-index: 2000;
}
.mm-lang-dd-panel[hidden] { display: none; }
.mm-lang-dd-opt {
  padding: 7px 12px;
  border-radius: 5px;
  color: #cfcde0;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.mm-lang-dd-opt:hover,
.mm-lang-dd-opt:focus-visible {
  background: rgba(167,139,250,0.12);
  color: #f0eefa;
  outline: none;
}
.mm-lang-dd-opt[aria-selected="true"] {
  background: rgba(167,139,250,0.2);
  color: #fff;
  font-weight: 600;
}

/* Mobile — tighten custom lang dropdown to leave room for hamburger */
@media (max-width: 768px) {
  .mm-lang-dd-btn {
    min-width: 0;
    padding: 4px 22px 4px 8px;
    font-size: 0.72rem;
  }
  .mm-lang-dd-panel {
    min-width: 148px;
    max-height: 70vh;
  }
}
@media (max-width: 400px) {
  .mm-lang-dd-btn { padding: 4px 20px 4px 7px; }
}

.tier-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tier-badge.free {
  background: rgba(255,255,255,0.07);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tier-badge.premium {
  background: linear-gradient(135deg, #f5c842, #f59e0b);
  color: #000;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  color: var(--text-primary);
  background: var(--accent-glow);
  border-color: var(--accent);
}

.btn-gold {
  background: linear-gradient(135deg, #f5c842, #f59e0b);
  color: #000;
  font-weight: 600;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 200, 66, 0.35);
  color: #000;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

/* ---- Section headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  max-width: 480px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ---- Hero ---- */
.hero {
  padding: 40px 0;
  min-height: calc(100vh - 64px);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--accent-light);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Feature grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ---- Pricing section ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.pricing-card.premium {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(167,139,250,0.15), var(--shadow-glow);
}

.pricing-card.premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.popular-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check { color: var(--success); }
.pricing-features .cross { color: var(--text-muted); }

/* ---- Tarot Card Styles ---- */
.tarot-section {
  padding: 60px 0;
}

.spread-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.spread-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.spread-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.spread-btn.active {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.spread-btn .spread-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.spread-btn .spread-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.spread-btn .locked-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Tarot cards display */
.cards-area {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.cards-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(167,139,250,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.tarot-card {
  width: 100px;
  aspect-ratio: 2/3.4;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  transform-style: preserve-3d;
}

.tarot-card.face-down .card-inner {
  transform: rotateY(180deg);
}

.tarot-card:hover {
  transform: translateY(-8px) scale(1.04);
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.card-front, .card-back {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-back {
  background: linear-gradient(135deg, #1a1040, #0f0d20);
  transform: rotateY(180deg);
}

.card-back-pattern {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 7px;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(167,139,250,0.04) 8px,
    rgba(167,139,250,0.04) 9px
  );
}

.card-back-symbol {
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
  opacity: 0.7;
}

.card-front {
  background: linear-gradient(160deg, #1e1b2e, #13121e);
  gap: 6px;
}

.card-emoji {
  font-size: 1.8rem;
  display: block;
}

.card-title {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.card-number {
  font-size: 0.58rem;
  color: var(--text-muted);
}

.card-reversed-label {
  font-size: 0.55rem;
  color: var(--gold);
  font-style: italic;
}

.card-position-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
  max-width: 100px;
}

.card-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Reading area */
.reading-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: none;
}

.reading-result.visible {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.reading-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.reading-header h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.card-reading-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-reading-item:last-child {
  border-bottom: none;
}

.card-reading-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-reading-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Horoscope Styles ---- */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
  margin-bottom: 36px;
}

.zodiac-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  /* Liquid glass base */
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 13px 8px 10px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

/* Specular highlight sheen */
.zodiac-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}

.zodiac-btn:hover {
  background: rgba(167, 139, 250, 0.10);
  border-color: rgba(167, 139, 250, 0.30);
  border-top-color: rgba(167, 139, 250, 0.45);
  transform: translateY(-3px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(167, 139, 250, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.zodiac-btn.active {
  background: rgba(167, 139, 250, 0.16);
  border-color: rgba(167, 139, 250, 0.50);
  border-top-color: rgba(200, 180, 255, 0.55);
  box-shadow:
    0 0 24px rgba(167, 139, 250, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.zodiac-symbol {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  /* Plain colour + glow — reliable across all OS/font combinations.
     Gradient-clip breaks when the OS renders these as emoji colour images. */
  color: var(--accent-light);
  text-shadow:
    0 0 10px rgba(167, 139, 250, 0.65),
    0 0 22px rgba(167, 139, 250, 0.30);
}

.zodiac-name {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 500;
}

.horoscope-result {
  display: none;
}

.horoscope-result.visible {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.horoscope-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.horoscope-sign-icon {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Liquid glass panel */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(167, 139, 250, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  /* Reliable colour + glow — no gradient-clip which breaks on emoji glyphs */
  color: var(--accent-light);
  text-shadow:
    0 0 16px rgba(167, 139, 250, 0.80),
    0 0 32px rgba(167, 139, 250, 0.40);
  position: relative;
  overflow: hidden;
}

/* Specular sheen on glass panel */
.horoscope-sign-icon::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.horoscope-meta h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.horoscope-meta p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.horoscope-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

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

.stat-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.stat-bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.8s ease 0.3s;
}

.premium-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.premium-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(167,139,250,0.05), rgba(245,200,66,0.04));
  pointer-events: none;
}

.premium-preview h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.lock-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* ---- Upgrade Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
  box-shadow: var(--shadow);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
  padding: 4px;
}

.modal-close:hover { color: var(--text-primary); }

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.modal h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-field input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}

.form-field input:focus {
  border-color: var(--accent);
}

.form-field input::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* ── Express payment buttons ── */
.pay-express {
  margin-bottom: 16px;
}
.pay-express-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
}
.pay-express-row {
  display: flex;
  gap: 8px;
}
.pay-btn-express {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform .15s;
}
.pay-btn-express:hover {
  border-color: rgba(255,255,255,.28);
  transform: translateY(-1px);
}
.pay-btn-express:active { transform: translateY(0); }

.pay-apple  { background: #000; color: #fff; }
.pay-apple:hover  { background: #111; }
.pay-google { background: #fff; }
.pay-google:hover { background: #f5f5f5; }
.pay-paypal { background: #003087; }
.pay-paypal:hover { background: #001f5b; }

/* ── Payment divider ── */
.pay-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}
.pay-divider::before,
.pay-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}
.pay-divider span { white-space: nowrap; }

.success-state {
  text-align: center;
  padding: 20px 0;
  display: none;
}

.success-state .success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.success-state h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* ---- Page sections ---- */
.section {
  padding: 80px 0;
}

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(167,139,250,0.2); }
  50% { box-shadow: 0 0 40px rgba(167,139,250,0.4); }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

.draw-btn-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: 60px 0 48px;
  position: relative;
}

.page-hero h1 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  /* Slim down nav-actions — only lang select stays visible */
  .nav-actions .tier-badge   { display: none; }
  .nav-actions #nav-upgrade-btn { display: none; }

  .nav-menu-btn { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13,13,18,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    flex-direction: column;
    z-index: 99;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 13px 24px;
    border-radius: 0;
    font-size: 1rem;
    color: var(--text-secondary);
  }
  .nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: var(--accent-glow);
  }
  .nav-mobile-tier {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    list-style: none;
  }
  .hero { padding: 40px 0; min-height: calc(100vh - 64px); }
  .features-grid { grid-template-columns: 1fr; }
  .horoscope-stats { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 28px 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .spread-selector { flex-direction: column; }
  .horoscope-stats { grid-template-columns: 1fr 1fr; }
}
