* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-primary: var(--tg-theme-bg-color, #0a0a1a);
  --bg-secondary: var(--tg-theme-secondary-bg-color, #12122a);
  --text-primary: var(--tg-theme-text-color, #e8e0f0);
  --text-hint: var(--tg-theme-hint-color, #8a7fa8);
  --accent: var(--tg-theme-button-color, #7c3aed);
  --accent-text: var(--tg-theme-button-text-color, #ffffff);
  --gold: #d4a843;
  --gold-light: #f0d68a;
  --purple-deep: #0e0620;
  --purple-mid: #2d1b69;
  --purple-glow: rgba(124,58,237,0.4);
  --card-bg: rgba(124,58,237,0.08);
  --card-border: rgba(124,58,237,0.2);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(165deg, #0e0620 0%, #0d0d2b 40%, #1a0a2e 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .section-title, .header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Stars background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 20% 90%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 45% 45%, rgba(212,168,67,0.3), transparent),
    radial-gradient(1px 1px at 15% 75%, rgba(212,168,67,0.2), transparent);
  pointer-events: none;
  z-index: 0;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { 0% { opacity: 0.5; } 100% { opacity: 1; } }

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 110px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ===== TAB BAR ===== */
#tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  background: rgba(14, 6, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(124,58,237,0.15);
  padding: 8px 0 calc(8px + var(--safe-bottom));
  z-index: 50;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-hint);
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 12px;
  transition: color 0.2s;
}
.tab svg { transition: all 0.2s; }
.tab.active { color: var(--gold); }
.tab.active svg { filter: drop-shadow(0 0 6px rgba(212,168,67,0.5)); }

/* ===== HEADER ===== */
.header { text-align: center; padding: 20px 0 12px; }
.header h1 {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  letter-spacing: 0.5px;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}
.header p { color: var(--text-hint); font-size: 14px; margin-top: 4px; }

/* Sub badge */
.sub-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a0a2e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
}

/* Streak display */
.streak-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,100,50,0.12);
  border: 1px solid rgba(255,100,50,0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 14px;
  margin-top: 8px;
}
.streak-fire { font-size: 18px; }

/* Free readings banner */
.free-readings-banner {
  background: linear-gradient(135deg, rgba(74,222,128,0.12), rgba(34,197,94,0.08));
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 14px;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  margin-bottom: 12px;
  color: #4ade80;
}

/* ===== MENU ===== */
.menu { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.menu-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(44,20,100,0.2));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}
.menu-btn:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(44,20,100,0.35));
}
.menu-btn .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,0.15);
  border-radius: 12px;
  flex-shrink: 0;
}
.menu-btn .icon svg { width: 24px; height: 24px; }
.menu-btn .label { font-weight: 600; font-size: 15px; }
.menu-btn .desc { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
.menu-btn .badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.menu-btn .badge.free { background: rgba(74,222,128,0.15); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.menu-btn .badge.paid { background: rgba(212,168,67,0.15); color: var(--gold); border: 1px solid rgba(212,168,67,0.3); }
.menu-btn .badge.done { background: rgba(124,58,237,0.15); color: var(--accent); border: 1px solid rgba(124,58,237,0.3); }
.menu-btn.premium-btn {
  border-color: rgba(212,168,67,0.3);
  background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(212,168,67,0.03));
}

/* ===== PAGE TRANSITIONS ===== */
.page {
  animation: pageIn 0.3s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CARDS ===== */
.cards-container {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 24px 0;
  flex-wrap: wrap;
  perspective: 1200px;
}

.tarot-card {
  width: 110px;
  height: 170px;
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.3s;
}
.tarot-card:hover { transform: translateY(-4px); }
.tarot-card.large { width: 160px; height: 250px; }

.tarot-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}
.tarot-card.flipped .tarot-card-inner { transform: rotateY(180deg); }

.tarot-card-front, .tarot-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  overflow: hidden;
}

.tarot-card-back {
  background: linear-gradient(145deg, #1a0a3e, #2d1b69, #4c1d95);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 30px rgba(124,58,237,0.25), inset 0 0 30px rgba(124,58,237,0.1);
  flex-direction: column;
}
.tarot-card-back::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 10px;
}
.tarot-card-back::after {
  content: '✦';
  font-size: 40px;
  color: var(--gold);
  animation: cardGlow 2.5s ease-in-out infinite alternate;
}
@keyframes cardGlow {
  from { text-shadow: 0 0 10px rgba(212,168,67,0.4); filter: brightness(0.8); }
  to { text-shadow: 0 0 30px rgba(212,168,67,0.9); filter: brightness(1.2); }
}

.tarot-card-front {
  background: linear-gradient(145deg, #0e0620, #1a0a3e);
  border: 2px solid var(--gold);
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 30px rgba(212,168,67,0.15);
}
.tarot-card-front .card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.tarot-card-front .card-icon { font-size: 36px; }
.tarot-card.reversed .tarot-card-front .card-icon { transform: rotate(180deg); }
.tarot-card-front .card-orientation { font-size: 10px; color: var(--text-hint); }

/* Card draw animation */
.tarot-card.drawing {
  animation: cardDraw 0.6s ease-out;
}
@keyframes cardDraw {
  0% { transform: translateY(60px) scale(0.8) rotate(-5deg); opacity: 0; }
  100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
}

/* ===== RESULT BOX ===== */
.result-box {
  background: linear-gradient(145deg, rgba(124,58,237,0.08), rgba(44,20,100,0.12));
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  line-height: 1.7;
  font-size: 15px;
  animation: fadeIn 0.5s ease;
  /* NO height limit — show full text */
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.result-box .label {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.result-box p {
  white-space: pre-wrap;
  overflow: visible;
  max-height: none;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== ZODIAC GRID ===== */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.zodiac-btn {
  padding: 14px 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.zodiac-btn:active { transform: scale(0.95); }
.zodiac-btn.selected {
  border-color: var(--gold);
  background: rgba(212,168,67,0.12);
  box-shadow: 0 0 15px rgba(212,168,67,0.15);
}
.zodiac-btn .zodiac-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 4px;
  line-height: 1;
}

/* ===== BUTTONS ===== */
.action-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}
.action-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}
.action-btn:active { transform: scale(0.97); }
.action-btn:active::after { left: 100%; }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.action-btn.gold {
  background: linear-gradient(135deg, var(--gold), #c49520);
  color: #1a0a2e;
}

/* ===== LOADER ===== */
.loader-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,26,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s;
}
.loader-orb {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9333ea, #4c1d95, #1a0a2e);
  box-shadow: 0 0 40px rgba(147,51,234,0.5), 0 0 80px rgba(147,51,234,0.2);
  animation: orbPulse 2s ease-in-out infinite;
  position: relative;
}
.loader-orb::after {
  content: '';
  position: absolute;
  top: 10%; left: 15%;
  width: 30%; height: 25%;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  filter: blur(2px);
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(147,51,234,0.5); }
  50% { transform: scale(1.1); box-shadow: 0 0 60px rgba(147,51,234,0.7), 0 0 100px rgba(212,168,67,0.2); }
}

/* Card shuffle animation */
.card-shuffle-animation {
  width: 140px;
  height: 200px;
  position: relative;
}
.card-shuffle-stack {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
}
.shuffle-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1a0a3e, #2d1b69, #4c1d95);
  border: 2px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 4px 30px rgba(124,58,237,0.25), inset 0 0 30px rgba(124,58,237,0.1);
}
.shuffle-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 10px;
}
.shuffle-card::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: var(--gold);
  animation: cardGlow 2.5s ease-in-out infinite alternate;
}
.card-1 { animation: shuffle1 2s cubic-bezier(0.4, 0, 0.2, 1) infinite; z-index: 5; }
.card-2 { animation: shuffle2 2s cubic-bezier(0.4, 0, 0.2, 1) infinite; z-index: 4; }
.card-3 { animation: shuffle3 2s cubic-bezier(0.4, 0, 0.2, 1) infinite; z-index: 3; }
.card-4 { animation: shuffle4 2s cubic-bezier(0.4, 0, 0.2, 1) infinite; z-index: 2; }
.card-5 { animation: shuffle5 2s cubic-bezier(0.4, 0, 0.2, 1) infinite; z-index: 1; }

@keyframes shuffle1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-30px, -20px) rotate(-10deg); }
  50% { transform: translate(30px, -10px) rotate(5deg); }
  75% { transform: translate(-15px, 15px) rotate(-5deg); }
}
@keyframes shuffle2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(25px, 15px) rotate(8deg); }
  50% { transform: translate(-20px, -15px) rotate(-6deg); }
  75% { transform: translate(20px, -10px) rotate(4deg); }
}
@keyframes shuffle3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-15px, 20px) rotate(-5deg); }
  50% { transform: translate(15px, 10px) rotate(7deg); }
  75% { transform: translate(-25px, -5px) rotate(-8deg); }
}
@keyframes shuffle4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -15px) rotate(6deg); }
  50% { transform: translate(-25px, 5px) rotate(-7deg); }
  75% { transform: translate(15px, 20px) rotate(5deg); }
}
@keyframes shuffle5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-20px, 10px) rotate(-4deg); }
  50% { transform: translate(25px, -20px) rotate(9deg); }
  75% { transform: translate(-10px, -15px) rotate(-6deg); }
}

.loader-text {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  font-size: 18px;
  font-style: italic;
  animation: textFade 2s ease-in-out infinite;
}
@keyframes textFade { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.loader-dots::after {
  content: '';
  animation: dots 1.5s steps(4) infinite;
}
@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}
.loader-inline {
  text-align: center;
  padding: 40px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 20px;
  font-style: italic;
  animation: textFade 2s ease-in-out infinite;
}

/* ===== SECTION ===== */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  margin: 16px 0 6px;
  text-align: center;
  letter-spacing: 0.5px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-hint);
  text-align: center;
  margin-bottom: 16px;
}
.meaning-tag {
  display: inline-block;
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.25);
  color: var(--gold-light);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin: 3px;
}
.hint-text {
  font-size: 13px;
  color: var(--text-hint);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* ===== ONBOARDING ===== */
.onboarding { text-align: center; }
.onboarding-icon {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9333ea, #4c1d95);
  box-shadow: 0 0 40px rgba(147,51,234,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.onboarding-form { margin: 24px 0; text-align: left; }
.input-group { margin-bottom: 16px; }
.input-label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.text-input, .date-input, select.select-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(124,58,237,0.25);
  border-radius: 12px;
  background: rgba(124,58,237,0.08);
  color: #ffffff;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.text-input:focus, .date-input:focus, select.select-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212,168,67,0.15);
}
select.select-input { color: #ffffff; }
select.select-input option { background: #1a0a2e; color: #ffffff; }

.date-selects {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 8px;
}

.zodiac-result {
  padding: 16px;
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: 14px;
  margin-bottom: 16px;
  text-align: center;
}
.zodiac-preview-icon { font-size: 36px; display: block; margin-bottom: 4px; }
.zodiac-preview-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--gold); font-weight: 700; }

.skip-link {
  display: block;
  text-align: center;
  color: var(--text-hint);
  font-size: 13px;
  margin-top: 12px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Gender selector */
.gender-selector {
  display: flex;
  gap: 8px;
}
.gender-btn {
  flex: 1;
  padding: 12px;
  border: 1.5px solid rgba(124,58,237,0.25);
  border-radius: 12px;
  background: rgba(124,58,237,0.08);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.gender-btn.selected {
  border-color: var(--gold);
  background: rgba(212,168,67,0.12);
  color: var(--gold);
}

/* ===== PROFILE ===== */
.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  margin: 10px 0;
}
.profile-header { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}
.profile-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; }
.profile-sign { color: var(--text-hint); font-size: 14px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
}
.stat-value { font-size: 20px; font-weight: 700; }
.stat-label { font-size: 11px; color: var(--text-hint); margin-top: 4px; }

.referral-box {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 14px;
  padding: 16px;
  margin-top: 12px;
  text-align: center;
}
.referral-code {
  display: block;
  background: rgba(0,0,0,0.3);
  padding: 10px 16px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 13px;
  margin: 8px 0;
  color: var(--gold);
  word-break: break-all;
}

/* ===== SUBSCRIPTION ===== */
.sub-features { margin: 20px 0; }
.sub-feature {
  padding: 12px 16px;
  background: var(--card-bg);
  border-radius: 12px;
  margin: 6px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.sub-plan {
  padding: 24px 14px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
  position: relative;
  font-family: inherit;
}
.sub-plan:active { transform: scale(0.97); }
.sub-plan.popular { border-color: var(--gold); background: rgba(212,168,67,0.08); }
.plan-badge {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a0a2e;
  font-size: 11px; font-weight: 700;
  padding: 3px 14px; border-radius: 10px; white-space: nowrap;
}
.plan-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 26px; font-weight: 700; color: var(--gold); }
.plan-per { font-size: 12px; color: var(--text-hint); margin-top: 4px; }
.plan-save { font-size: 12px; color: #4ade80; margin-top: 4px; font-weight: 600; }

/* ===== COMPATIBILITY ===== */
.compat-result {
  text-align: center;
  margin: 16px 0;
}
.compat-signs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 40px;
  margin: 16px 0;
}
.compat-heart {
  color: #f43f5e;
  animation: heartBeat 1.5s ease-in-out infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ===== NATAL ===== */
.natal-info {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
  text-align: center;
}

/* ===== ERROR ===== */
.error-box {
  background: rgba(244,63,94,0.1);
  border: 1px solid rgba(244,63,94,0.25);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  color: #fda4af;
  margin: 16px 0;
  font-size: 14px;
}

/* ===== HISTORY ===== */
.history-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px;
  margin: 8px 0;
  cursor: pointer;
  transition: all 0.2s;
}
.history-item:active { transform: scale(0.98); }
.history-item .label {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.history-item .preview {
  font-size: 13px;
  color: var(--text-hint);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== PREMIUM UPSELL ===== */
.premium-upsell {
  margin-top: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(212,168,67,0.1), rgba(212,168,67,0.05));
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: 12px;
  color: var(--gold);
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  animation: fadeIn 0.5s ease;
}
.premium-upsell:active { transform: scale(0.97); }

/* ===== SHARE BUTTON ===== */
.share-btn {
  background: linear-gradient(135deg, rgba(74,222,128,0.15), rgba(34,197,94,0.1)) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74,222,128,0.3) !important;
}

/* ===== QUESTION PAGE ===== */
.question-form { margin: 20px 0; }
.question-textarea {
  resize: none;
  min-height: 80px;
  line-height: 1.5;
}
.question-counter {
  text-align: right;
  font-size: 12px;
  color: var(--text-hint);
  margin-top: 4px;
}

/* ===== PAYWALL PAGE ===== */
.paywall-page { text-align: center; }
.paywall-glow {
  position: absolute;
  top: -50px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212,168,67,0.15), transparent 70%);
  pointer-events: none;
  animation: orbPulse 3s ease-in-out infinite;
}
.paywall-header { margin-bottom: 24px; position: relative; }
.paywall-icon {
  font-size: 56px;
  margin-bottom: 12px;
  display: block;
  animation: cardGlow 2.5s ease-in-out infinite alternate;
}
.paywall-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.paywall-desc {
  color: var(--text-hint);
  font-size: 14px;
}

.paywall-benefits {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  margin: 16px 0;
  text-align: left;
}
.paywall-benefits-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  text-align: center;
}
.paywall-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-primary);
}
.paywall-check { color: var(--gold); font-size: 14px; }

.paywall-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.paywall-col {
  border-radius: 14px;
  padding: 14px 10px;
  font-size: 12px;
}
.free-col {
  background: rgba(124,58,237,0.05);
  border: 1px solid rgba(124,58,237,0.15);
}
.premium-col {
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.25);
}
.paywall-col-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--gold);
}
.paywall-col-item {
  padding: 4px 0;
  font-size: 12px;
}
.paywall-col-item.yes { color: var(--text-primary); }
.paywall-col-item.no { color: var(--text-hint); text-decoration: line-through; opacity: 0.5; }

.paywall-actions { margin-top: 20px; }
.paywall-divider-text {
  font-size: 13px;
  color: var(--text-hint);
  margin-bottom: 14px;
}
.paywall-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  position: relative;
}
.paywall-btn:active { transform: scale(0.97); }
.paywall-btn-single {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(44,20,100,0.25));
  border-color: rgba(124,58,237,0.3);
}
.paywall-btn-label { font-weight: 600; font-size: 15px; }
.paywall-btn-price { color: var(--gold); font-weight: 700; font-size: 14px; margin-top: 4px; }
.paywall-btn-per { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
.paywall-btn-badge {
  position: absolute;
  top: -8px; right: 12px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #0a0a1a;
  font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 8px;
}
.paywall-or {
  font-size: 12px;
  color: var(--text-hint);
  margin: 12px 0 8px;
}
.paywall-sub-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.paywall-btn-sub.popular {
  border-color: var(--gold);
  background: rgba(212,168,67,0.08);
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.2), transparent);
  margin: 20px 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 2px; }
