/* ==========================================
   MYSTIC FATE — Design System & Global Styles
   ========================================== */

/* CSS Variables */
:root {
  /* Colors */
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: rgba(20, 20, 50, 0.8);
  --bg-card-hover: rgba(30, 30, 70, 0.9);
  --bg-modal: rgba(10, 10, 26, 0.97);

  --gold: #f0c040;
  --gold-light: #ffe27a;
  --gold-dark: #c89b20;

  --purple: #9b59f0;
  --purple-light: #c084fc;
  --purple-dark: #6b21a8;

  --blue: #3b82f6;
  --blue-light: #60a5fa;

  --pink: #ec4899;
  --teal: #14b8a6;
  --red: #ef4444;

  --text-primary: #f0f0ff;
  --text-secondary: #a0a0cc;
  --text-muted: #6b6b99;

  --border: rgba(148, 130, 255, 0.15);
  --border-hover: rgba(148, 130, 255, 0.35);

  --gradient-primary: linear-gradient(135deg, #9b59f0 0%, #3b82f6 50%, #14b8a6 100%);
  --gradient-gold: linear-gradient(135deg, #f0c040 0%, #ffe27a 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 30, 70, 0.6), rgba(15, 15, 40, 0.8));
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(100, 60, 200, 0.15) 0%, transparent 60%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(155, 89, 240, 0.3);
  --shadow-gold: 0 0 30px rgba(240, 192, 64, 0.3);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transition */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Font */
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Stars Canvas */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================
   Typography
   ========================================== */

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(155, 89, 240, 0.5);
}

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

.btn-secondary:hover {
  background: rgba(155, 89, 240, 0.1);
  border-color: var(--purple);
}

.btn-card {
  background: rgba(155, 89, 240, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(155, 89, 240, 0.3);
  width: 100%;
  margin-top: auto;
}

.btn-card:hover {
  background: rgba(155, 89, 240, 0.3);
  transform: translateY(-1px);
}

.btn-pricing {
  width: 100%;
  padding: 0.85rem;
  background: rgba(155, 89, 240, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(155, 89, 240, 0.3);
}

.btn-pricing:hover {
  background: rgba(155, 89, 240, 0.3);
}

.btn-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(155, 89, 240, 0.3); }
  50% { box-shadow: 0 0 40px rgba(155, 89, 240, 0.6), 0 0 80px rgba(155, 89, 240, 0.2); }
}

.btn-vip {
  background: var(--gradient-gold);
  color: #1a1a2e;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-body);
}

.btn-vip:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: rgba(155, 89, 240, 0.12);
  border: 1px solid rgba(155, 89, 240, 0.3);
  border-radius: var(--radius-full);
  color: var(--purple-light);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-body);
}

.btn-login:hover {
  background: rgba(155, 89, 240, 0.25);
  border-color: var(--purple);
  transform: translateY(-1px);
}

/* ==========================================
   Navigation
   ========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  padding: var(--space-sm) var(--space-xl);
  background: rgba(10, 10, 26, 0.95);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-icon {
  font-size: 1.5rem;
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 26, 0.98);
  backdrop-filter: blur(20px);
  padding: var(--space-xl);
  flex-direction: column;
  gap: var(--space-md);
  z-index: 999;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  padding: var(--space-sm) 0;
}

.mobile-vip {
  margin-top: var(--space-md);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) var(--space-xl);
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(155, 89, 240, 0.15);
  border: 1px solid rgba(155, 89, 240, 0.3);
  border-radius: var(--radius-full);
  color: var(--purple-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-3xl);
  animation: fadeInUp 1s ease-out 0.5s backwards;
}

.hero-cta .btn-primary {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}

/* ==========================================
   Feature Cards
   ========================================== */

.features {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover .card-glow {
  opacity: 1;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(155, 89, 240, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  background: rgba(155, 89, 240, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(155, 89, 240, 0.25);
}

.card-badge.free {
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal);
  border-color: rgba(20, 184, 166, 0.25);
}

.card-badge.hot {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.25);
}

.card-badge.premium {
  background: rgba(240, 192, 64, 0.15);
  color: var(--gold);
  border-color: rgba(240, 192, 64, 0.25);
}

/* ==========================================
   Modal
   ========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.modal-content {
  padding: var(--space-2xl);
}

/* Modal Feature Specific */
.modal-feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  text-align: center;
}

.modal-feature-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* ==========================================
   Tarot Specific
   ========================================== */

.tarot-spread {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
  perspective: 1000px;
}

.tarot-card-slot {
  width: 140px;
  height: 220px;
  position: relative;
  cursor: pointer;
}

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

.tarot-card-slot.flipped .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px solid var(--border);
}

.tarot-card-back {
  background: var(--gradient-card);
  border-color: var(--purple-dark);
}

.tarot-card-back-design {
  font-size: 3rem;
  opacity: 0.7;
}

.tarot-card-back-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tarot-card-front {
  background: linear-gradient(145deg, #1a1040, #0d0d2b);
  transform: rotateY(180deg);
  border-color: var(--gold-dark);
  padding: var(--space-md);
  text-align: center;
}

.tarot-card-front .tarot-emoji {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.tarot-card-front .tarot-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

.tarot-card-front .tarot-position {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-transform: uppercase;
}

.tarot-card-slot:hover:not(.flipped) .tarot-card-inner {
  transform: rotateY(15deg) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.tarot-instruction {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

.tarot-reading-result {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(155, 89, 240, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  line-height: 1.7;
}

.tarot-reading-result h4 {
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.tarot-reading-result p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.tarot-reading-result .reading-section {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.tarot-reading-result .reading-section:last-child {
  border-bottom: none;
}

.tarot-reading-result .reading-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.tarot-btn-area {
  margin-top: var(--space-lg);
  text-align: center;
}

/* ==========================================
   Horoscope Specific
   ========================================== */

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.zodiac-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-md) var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.zodiac-btn:hover {
  background: rgba(155, 89, 240, 0.1);
  border-color: var(--purple);
}

.zodiac-btn.active {
  background: rgba(155, 89, 240, 0.2);
  border-color: var(--purple);
  box-shadow: var(--shadow-glow);
}

.zodiac-btn .zodiac-emoji {
  font-size: 1.5rem;
}

.zodiac-btn .zodiac-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.horoscope-result {
  padding: var(--space-lg);
  background: rgba(155, 89, 240, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  animation: fadeInUp 0.5s ease-out;
}

.horoscope-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.horoscope-sign-icon {
  font-size: 2.5rem;
}

.horoscope-sign-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.horoscope-sign-info .horoscope-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.horoscope-meters {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.meter-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.meter-label {
  width: 80px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.meter-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  transition: width 1s ease-out;
  width: 0;
}

.meter-value {
  width: 40px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.horoscope-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.horoscope-lucky {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.lucky-item {
  text-align: center;
}

.lucky-item .lucky-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lucky-item .lucky-value {
  font-size: 1rem;
  margin-top: 4px;
}

/* ==========================================
   Palm Reading Specific
   ========================================== */

.palm-upload-area {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: rgba(155, 89, 240, 0.03);
}

.palm-upload-area:hover {
  border-color: var(--purple);
  background: rgba(155, 89, 240, 0.08);
}

.palm-upload-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.palm-upload-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.palm-upload-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: var(--space-sm);
}

.palm-result {
  animation: fadeInUp 0.5s ease-out;
}

.palm-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.palm-line-card {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.palm-line-card h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.palm-line-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.palm-overall {
  padding: var(--space-lg);
  background: rgba(155, 89, 240, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.palm-overall h4 {
  font-family: var(--font-display);
  color: var(--purple-light);
  margin-bottom: var(--space-sm);
}

.palm-overall p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Palm Loading State */
.palm-analyzing {
  text-align: center;
  padding: var(--space-3xl);
}

.palm-analyzing .scanning-animation {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.scanning-hand {
  font-size: 4rem;
  animation: palmPulse 2s ease-in-out infinite;
}

@keyframes palmPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.scanning-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid var(--purple);
  border-radius: 50%;
  animation: scanRing 1.5s ease-out infinite;
}

@keyframes scanRing {
  0% { width: 60px; height: 60px; opacity: 1; }
  100% { width: 140px; height: 140px; opacity: 0; }
}

.palm-analyzing p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================
   Dream Oracle Specific
   ========================================== */

.dream-input-area {
  margin-bottom: var(--space-lg);
}

.dream-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.dream-textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.dream-textarea::placeholder {
  color: var(--text-muted);
}

.dream-result {
  animation: fadeInUp 0.5s ease-out;
}

.dream-symbol {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.dream-symbol-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dream-symbol h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.dream-symbol p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.dream-overall {
  padding: var(--space-lg);
  background: rgba(100, 60, 200, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.dream-overall h4 {
  font-family: var(--font-display);
  color: var(--purple-light);
  margin-bottom: var(--space-sm);
}

.dream-overall p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================
   Zodiac Match Specific
   ========================================== */

.match-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.match-sign-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.match-sign-picker select {
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

.match-sign-picker select option {
  background: var(--bg-secondary);
}

.match-sign-picker label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-heart {
  font-size: 2rem;
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.match-result {
  animation: fadeInUp 0.5s ease-out;
}

.match-score {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.match-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  background: rgba(155, 89, 240, 0.1);
}

.match-dimensions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.match-dimension {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.match-dimension .dim-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.match-dimension .dim-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.match-dimension .dim-score {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.match-analysis {
  padding: var(--space-lg);
  background: rgba(155, 89, 240, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.match-analysis h4 {
  font-family: var(--font-display);
  color: var(--purple-light);
  margin-bottom: var(--space-sm);
}

.match-analysis p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================
   Numerology Specific
   ========================================== */

.numerology-input {
  margin-bottom: var(--space-lg);
}

.numerology-input input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.numerology-input input:focus {
  outline: none;
  border-color: var(--purple);
}

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

.numerology-result {
  animation: fadeInUp 0.5s ease-out;
}

.numerology-number {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.numerology-number .num-display {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(240, 192, 64, 0.1);
}

.numerology-number .num-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--purple-light);
}

.numerology-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.trait-card {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.trait-card .trait-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.trait-card .trait-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.trait-card .trait-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* ==========================================
   Pricing Section
   ========================================== */

.pricing {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.pricing-card.featured {
  border-color: var(--purple);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.3rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-save {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  color: #1a1a2e;
  padding: 0.3rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: var(--space-xl);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-xl);
  text-align: left;
}

.pricing-features li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

/* ==========================================
   Testimonials
   ========================================== */

.testimonials {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: var(--space-xl);
  animation: scrollTestimonials 30s linear infinite;
}

@keyframes scrollTestimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  flex-shrink: 0;
  width: 320px;
  padding: var(--space-xl);
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.testimonial-stars {
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) var(--space-xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2xl);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-3xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================
   Toast Notification
   ========================================== */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  color: var(--text-primary);
  font-size: 0.9rem;
  z-index: 3000;
  opacity: 0;
  transition: all var(--transition-base);
  backdrop-filter: blur(20px);
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================
   Paywall Overlay within modals
   ========================================== */

.paywall {
  text-align: center;
  padding: var(--space-xl);
  background: rgba(240, 192, 64, 0.05);
  border: 1px solid rgba(240, 192, 64, 0.2);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.paywall h4 {
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.paywall p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.paywall .btn {
  margin: var(--space-sm);
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: var(--space-3xl) var(--space-md);
    min-height: 90vh;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: var(--space-xl);
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .features {
    padding: var(--space-2xl) var(--space-md);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-card {
    padding: var(--space-xl);
  }

  .tarot-spread {
    gap: var(--space-sm);
  }

  .tarot-card-slot {
    width: 100px;
    height: 160px;
  }

  .zodiac-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .palm-lines {
    grid-template-columns: 1fr;
  }

  .match-selector {
    flex-wrap: wrap;
  }

  .match-dimensions {
    grid-template-columns: 1fr;
  }

  .pricing {
    padding: var(--space-2xl) var(--space-md);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .modal {
    max-height: 90vh;
    margin: var(--space-md);
    border-radius: var(--radius-lg);
  }

  .numerology-traits {
    grid-template-columns: 1fr;
  }

  .horoscope-lucky {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .zodiac-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}

/* Selection */
::selection {
  background: rgba(155, 89, 240, 0.3);
  color: var(--text-primary);
}
