/* ============================================
   THE VEIL ORACLE — Master Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-deep: #0a0a1a;
  --bg-card: #1a0a2e;
  --bg-card-hover: #2a1040;
  --gold: #d4af37;
  --gold-light: #e8c84a;
  --gold-dim: #b8962e;
  --silver: #c0c0c0;
  --silver-light: #e0e0e0;
  --purple-glow: #7c3aed;
  --purple-light: #e0aaff;
  --purple-mid: #9d4edd;
  --purple-dark: #3c096c;
  --white: #f5f5f5;
  --text-body: #c0c0c0;
  --text-muted: #888;
  --danger: #e74c3c;
  --success: #2ecc71;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.15);
  --shadow-purple: 0 0 30px rgba(124, 58, 237, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gold);
  line-height: 1.3;
  letter-spacing: 0.5px;
}

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

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  outline: none;
}

/* --- Starfield Background --- */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.starfield .star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

/* Generate 60 stars via nth-child positioning */
.star:nth-child(1) { width: 2px; height: 2px; top: 5%; left: 12%; --dur: 2.5s; animation-delay: 0s; }
.star:nth-child(2) { width: 1px; height: 1px; top: 10%; left: 30%; --dur: 3.2s; animation-delay: 0.3s; }
.star:nth-child(3) { width: 3px; height: 3px; top: 8%; left: 55%; --dur: 2.8s; animation-delay: 0.7s; }
.star:nth-child(4) { width: 1px; height: 1px; top: 15%; left: 75%; --dur: 4s; animation-delay: 1.1s; }
.star:nth-child(5) { width: 2px; height: 2px; top: 20%; left: 90%; --dur: 3.5s; animation-delay: 0.2s; }
.star:nth-child(6) { width: 1px; height: 1px; top: 25%; left: 5%; --dur: 2.9s; animation-delay: 1.5s; }
.star:nth-child(7) { width: 2px; height: 2px; top: 30%; left: 22%; --dur: 3.8s; animation-delay: 0.8s; }
.star:nth-child(8) { width: 1px; height: 1px; top: 35%; left: 42%; --dur: 2.6s; animation-delay: 0.4s; }
.star:nth-child(9) { width: 3px; height: 3px; top: 28%; left: 65%; --dur: 3.1s; animation-delay: 1.2s; }
.star:nth-child(10) { width: 1px; height: 1px; top: 40%; left: 80%; --dur: 4.2s; animation-delay: 0.6s; }
.star:nth-child(11) { width: 2px; height: 2px; top: 45%; left: 15%; --dur: 2.7s; animation-delay: 1.8s; }
.star:nth-child(12) { width: 1px; height: 1px; top: 50%; left: 35%; --dur: 3.4s; animation-delay: 0.1s; }
.star:nth-child(13) { width: 2px; height: 2px; top: 48%; left: 58%; --dur: 2.3s; animation-delay: 1.4s; }
.star:nth-child(14) { width: 1px; height: 1px; top: 55%; left: 72%; --dur: 3.9s; animation-delay: 0.9s; }
.star:nth-child(15) { width: 3px; height: 3px; top: 52%; left: 88%; --dur: 2.4s; animation-delay: 0.5s; }
.star:nth-child(16) { width: 1px; height: 1px; top: 60%; left: 8%; --dur: 3.6s; animation-delay: 1.6s; }
.star:nth-child(17) { width: 2px; height: 2px; top: 65%; left: 25%; --dur: 2.2s; animation-delay: 0.3s; }
.star:nth-child(18) { width: 1px; height: 1px; top: 62%; left: 48%; --dur: 4.1s; animation-delay: 1.0s; }
.star:nth-child(19) { width: 2px; height: 2px; top: 70%; left: 62%; --dur: 3.3s; animation-delay: 0.7s; }
.star:nth-child(20) { width: 1px; height: 1px; top: 68%; left: 82%; --dur: 2.8s; animation-delay: 1.3s; }
.star:nth-child(21) { width: 3px; height: 3px; top: 75%; left: 18%; --dur: 3.7s; animation-delay: 0.2s; }
.star:nth-child(22) { width: 1px; height: 1px; top: 78%; left: 40%; --dur: 2.5s; animation-delay: 1.7s; }
.star:nth-child(23) { width: 2px; height: 2px; top: 80%; left: 55%; --dur: 3.0s; animation-delay: 0.4s; }
.star:nth-child(24) { width: 1px; height: 1px; top: 85%; left: 70%; --dur: 4.3s; animation-delay: 1.1s; }
.star:nth-child(25) { width: 2px; height: 2px; top: 82%; left: 92%; --dur: 2.6s; animation-delay: 0.8s; }
.star:nth-child(26) { width: 1px; height: 1px; top: 90%; left: 10%; --dur: 3.5s; animation-delay: 1.9s; }
.star:nth-child(27) { width: 2px; height: 2px; top: 88%; left: 33%; --dur: 2.9s; animation-delay: 0.6s; }
.star:nth-child(28) { width: 1px; height: 1px; top: 92%; left: 50%; --dur: 3.2s; animation-delay: 1.2s; }
.star:nth-child(29) { width: 3px; height: 3px; top: 95%; left: 78%; --dur: 2.4s; animation-delay: 0.1s; }
.star:nth-child(30) { width: 1px; height: 1px; top: 3%; left: 45%; --dur: 3.8s; animation-delay: 1.5s; }
.star:nth-child(31) { width: 2px; height: 2px; top: 12%; left: 20%; --dur: 2.7s; animation-delay: 0.9s; }
.star:nth-child(32) { width: 1px; height: 1px; top: 18%; left: 60%; --dur: 3.1s; animation-delay: 0.3s; }
.star:nth-child(33) { width: 2px; height: 2px; top: 22%; left: 85%; --dur: 4.0s; animation-delay: 1.6s; }
.star:nth-child(34) { width: 1px; height: 1px; top: 33%; left: 10%; --dur: 2.3s; animation-delay: 0.7s; }
.star:nth-child(35) { width: 3px; height: 3px; top: 38%; left: 52%; --dur: 3.4s; animation-delay: 1.0s; }
.star:nth-child(36) { width: 1px; height: 1px; top: 42%; left: 95%; --dur: 2.8s; animation-delay: 0.4s; }
.star:nth-child(37) { width: 2px; height: 2px; top: 57%; left: 28%; --dur: 3.6s; animation-delay: 1.8s; }
.star:nth-child(38) { width: 1px; height: 1px; top: 63%; left: 68%; --dur: 2.5s; animation-delay: 0.2s; }
.star:nth-child(39) { width: 2px; height: 2px; top: 72%; left: 3%; --dur: 3.9s; animation-delay: 1.3s; }
.star:nth-child(40) { width: 1px; height: 1px; top: 77%; left: 87%; --dur: 2.6s; animation-delay: 0.5s; }

/* --- Sparkle Animations --- */
@keyframes sparkle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { transform: translateY(-100px) rotate(180deg); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 0 2rem;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--silver);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  width: 100%;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  }

  .nav-links.open {
    transform: translateY(0);
  }
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--purple-light);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease forwards;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--silver);
  margin-bottom: 1rem;
  font-style: italic;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s forwards;
  opacity: 0;
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg-deep);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-deep);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple-glow), var(--purple-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-purple:hover {
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1rem auto;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.card:hover::before {
  opacity: 1;
}

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.pricing-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.pricing-card .price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pricing-card .desc {
  color: var(--silver);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pricing-card .features {
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-card .features li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--silver);
}

.pricing-card .features li::before {
  content: '✦ ';
  color: var(--gold);
}

/* Subscription cards */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.sub-card {
  background: linear-gradient(135deg, var(--bg-card), var(--purple-dark));
  border: 2px solid var(--purple-glow);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.sub-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-purple);
}

.sub-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg-deep);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sub-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.sub-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

.sub-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.sub-card .features {
  text-align: left;
  margin: 1.5rem 0;
}

.sub-card .features li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--silver);
}

.sub-card .features li::before {
  content: '~ ';
  color: var(--purple-light);
}

/* Popular badge */
.pricing-card.popular {
  border-color: var(--gold);
}

.pricing-card.popular::after {
  content: 'POPULAR';
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 0.2rem 2.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  transform: rotate(45deg);
}

/* --- Zodiac Grid --- */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.zodiac-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.zodiac-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.zodiac-card.active {
  border-color: var(--gold);
  background: var(--bg-card-hover);
}

.zodiac-card .symbol {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.zodiac-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.zodiac-card .dates {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.zodiac-reading {
  display: none;
  background: var(--bg-card-hover);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.25rem;
  animation: fadeInUp 0.4s ease;
  grid-column: 1 / -1;
  text-align: left;
}

.zodiac-reading.show {
  display: block;
}

.zodiac-reading h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.zodiac-reading .reading-text {
  color: var(--silver);
  line-height: 1.8;
  font-size: 1rem;
}

.zodiac-reading .reading-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.zodiac-reading .stat {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.zodiac-reading .stat span {
  color: var(--gold);
  font-weight: 600;
}

/* --- Compatibility Page --- */
.compat-selectors {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.compat-select-group {
  text-align: center;
}

.compat-select-group label {
  display: block;
  font-family: var(--font-heading);
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.compat-select {
  appearance: none;
  background: var(--bg-card);
  color: var(--silver);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4af37' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  min-width: 200px;
  transition: border-color var(--transition);
}

.compat-select:hover,
.compat-select:focus {
  border-color: var(--gold);
  outline: none;
}

.compat-heart {
  font-size: 2rem;
  color: var(--purple-light);
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* Compatibility results */
.compat-results {
  display: none;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease;
}

.compat-results.show {
  display: block;
}

.compat-ring-container {
  text-align: center;
  margin-bottom: 2rem;
}

.compat-ring {
  position: relative;
  display: inline-block;
  width: 180px;
  height: 180px;
}

.compat-ring svg {
  transform: rotate(-90deg);
}

.compat-ring .ring-bg {
  fill: none;
  stroke: rgba(124, 58, 237, 0.2);
  stroke-width: 8;
}

.compat-ring .ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.5s ease;
}

.compat-ring .ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
}

.compat-ring .ring-label {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.compat-detail {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.compat-detail h4 {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.compat-detail p {
  color: var(--silver);
  font-size: 0.95rem;
}

.compat-detail .chemistry-label {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.chemistry-EXPLOSIVE { background: #e74c3c33; color: #ff6b6b; border: 1px solid #e74c3c55; }
.chemistry-MAGNETIC { background: #9d4edd33; color: var(--purple-light); border: 1px solid #9d4edd55; }
.chemistry-WARM { background: #d4af3733; color: var(--gold-light); border: 1px solid #d4af3755; }
.chemistry-STEADY { background: #2ecc7133; color: #6deca9; border: 1px solid #2ecc7155; }
.chemistry-CHALLENGING { background: #e67e2233; color: #f0a05e; border: 1px solid #e67e2255; }
.chemistry-COMPLEX { background: #3498db33; color: #74b9ff; border: 1px solid #3498db55; }

.compat-share-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* --- Readings Page --- */
.readings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.reading-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.reading-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.reading-card-header {
  background: linear-gradient(135deg, var(--purple-dark), var(--bg-card));
  padding: 2rem;
  text-align: center;
  position: relative;
}

.reading-card-header .reading-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}

.reading-card-header h3 {
  font-size: 1.3rem;
}

.reading-card-header .reading-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 0.5rem;
}

.reading-card-header .reading-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.reading-card-body {
  padding: 1.5rem 2rem 2rem;
}

.reading-card-body p {
  color: var(--silver);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.reading-card-body .reading-includes {
  margin-bottom: 1.5rem;
}

.reading-card-body .reading-includes li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reading-card-body .reading-includes li::before {
  content: '~ ';
  color: var(--purple-light);
}

/* --- FAQ --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--gold-light);
}

.faq-question .faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--silver);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Reading Template (Delivered Reading) --- */
.reading-template {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 100px;
}

/* Veil lift animation */
.veil-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-deep);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: veilLift 2.5s ease forwards;
  pointer-events: none;
}

.veil-overlay .veil-text {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: veilTextFade 2.5s ease forwards;
}

@keyframes veilLift {
  0% { opacity: 1; }
  60% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes veilTextFade {
  0% { opacity: 0; transform: translateY(20px); }
  30% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

.reading-header {
  text-align: center;
  margin-bottom: 3rem;
}

.reading-header .customer-name {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  margin-bottom: 0.5rem;
}

.reading-header .reading-type {
  color: var(--purple-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.reading-header .reading-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.reading-section {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reading-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.reading-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reading-section p {
  color: var(--silver);
  line-height: 1.8;
}

.tarot-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.tarot-card {
  width: 120px;
  height: 200px;
  background: linear-gradient(135deg, var(--purple-dark), var(--bg-card));
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.tarot-card .tarot-symbol {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tarot-card .tarot-name {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.ambient-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 100;
}

.ambient-toggle:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: var(--shadow-gold);
}

.reading-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-purple { color: var(--purple-light); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- Print Styles (for reading template) --- */
@media print {
  .nav, .footer, .ambient-toggle, .reading-actions, .starfield, .veil-overlay {
    display: none !important;
  }

  body {
    background: #fff;
    color: #333;
  }

  .reading-template {
    padding-top: 0;
  }

  .reading-header .customer-name {
    color: #333;
    text-shadow: none;
  }

  .reading-header .reading-type {
    color: #666;
  }

  .reading-section {
    background: #fff;
    border: 1px solid #ddd;
    opacity: 1;
    transform: none;
    color: #333;
    page-break-inside: avoid;
  }

  .reading-section h3 {
    color: #333;
  }

  .reading-section p {
    color: #444;
  }

  .tarot-card {
    border-color: #333;
    background: #f9f9f9;
  }

  .tarot-card .tarot-name {
    color: #333;
  }

  h1, h2, h3, h4 {
    color: #222;
  }
}
