/* =============================================
   THE MANIFESTING QUEEN — VAULT
   Brand: deep purple, gold, sovereign energy
   ============================================= */

:root {
  --purple-deep:   #0f0720;
  --purple-dark:   #1a0b35;
  --purple-mid:    #2d1460;
  --purple-card:   #1e0d45;
  --purple-border: #3a1a7a;
  --gold:          #c9a84c;
  --gold-light:    #e4c97a;
  --gold-dark:     #9a7a2e;
  --cream:         #f5f0e8;
  --white:         #ffffff;
  --text-muted:    #a89cc8;
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Montserrat', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--purple-deep);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(15, 7, 32, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.crown { margin-right: 0.3em; }

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }

.btn-nav {
  background: var(--gold);
  color: var(--purple-deep);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-nav:hover { background: var(--gold-light); }

/* ---- HERO ---- */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(60, 20, 120, 0.5) 0%, transparent 70%),
    var(--purple-deep);
}

.hero-inner { max-width: 680px; }

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.btn-primary {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.85rem 2.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--purple-deep);
}

/* ---- TIER SECTIONS ---- */
.tier-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.tier-label {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
}

.free-label { color: #7ecb9e; border-color: rgba(126, 203, 158, 0.4); }

.tier-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-size: 0.9rem;
}

/* ---- COURSE GRID ---- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.courses-grid.single-col { grid-template-columns: minmax(280px, 400px); }

.he-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.bundles-grid {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

/* ---- COURSE CARD ---- */
.course-card {
  background: var(--purple-card);
  border: 1px solid var(--purple-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.2s;
  position: relative;
}
.course-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--purple-deep);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  z-index: 2;
}
.card-badge.flagship { background: var(--purple-mid); color: var(--gold); border: 1px solid var(--gold); }
.card-badge.popular { background: var(--gold); }

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--purple-mid);
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 7, 32, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.lock-overlay::after { content: '🔒'; }
.lock-overlay.hidden { display: none; }

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.card-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.card-value {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--cream);
  font-weight: 600;
  line-height: 1.3;
}

.he-title { font-size: 1rem; letter-spacing: 0.05em; }

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* ---- BUTTONS ---- */
.btn-buy, .btn-free {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--purple-deep);
  border: none;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: auto;
}
.btn-buy:hover, .btn-free:hover { background: var(--gold-light); }
.btn-buy:disabled, .btn-coming-soon {
  background: var(--purple-mid) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
  border: 1px solid var(--purple-border);
}

.btn-free {
  background: transparent;
  color: #7ecb9e;
  border: 1px solid rgba(126, 203, 158, 0.5);
}
.btn-free:hover { background: rgba(126, 203, 158, 0.1); }

.btn-he {
  padding: 0.6rem 0.75rem;
  font-size: 0.65rem;
}

.btn-plan {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.5);
}
.btn-plan:hover { background: rgba(201, 168, 76, 0.1); }

.btn-bundle { margin-bottom: 0.5rem; }

.payment-options { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }

/* ---- SPECIAL CARDS ---- */
.free-card { border-color: rgba(126, 203, 158, 0.3); }
.free-card:hover { border-color: rgba(126, 203, 158, 0.6); }

.featured-card { border-color: rgba(201, 168, 76, 0.4); }

.most-popular { border-color: var(--gold); }

.he-card .card-body { padding: 0.85rem; gap: 0.4rem; }

/* ---- TIER BACKGROUNDS ---- */
.signature-tier { border-top: 1px solid var(--purple-border); }
.heaven-tier {
  border-top: 1px solid var(--purple-border);
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(45, 20, 96, 0.3) 0%, transparent 70%);
}
.bundles-tier { border-top: 1px solid var(--purple-border); }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--purple-border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
}
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.78rem; }
.footer-links a:hover { color: var(--cream); }

/* ---- LOADING OVERLAY ---- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 7, 32, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(6px);
}
.loading-overlay.hidden { display: none; }
.loading-inner { text-align: center; color: var(--cream); }
.loading-spinner {
  width: 40px; height: 40px;
  border: 2px solid rgba(201, 168, 76, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav { padding: 0 1.25rem; }
  .tier-section { padding: 3.5rem 1.25rem; }
  .he-grid { grid-template-columns: repeat(3, 1fr); }
  .bundles-grid { grid-template-columns: 1fr; }
  .courses-grid.single-col { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .he-grid { grid-template-columns: repeat(2, 1fr); }
}
