/* ═══════════════════════════════════════════════════════════
   MYSTIC LUNA — Design System
   Dark mystical theme with gold accents and cosmic atmosphere
   ═══════════════════════════════════════════════════════════ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
  --void: #06060f;
  --abyss: #0a0a1a;
  --deep: #0f0f24;
  --midnight: #141432;
  --purple-deep: #1a1040;
  --purple: #2d1b69;
  --purple-light: #4a2c8a;
  --violet: #7c3aed;
  --gold: #d4a574;
  --gold-bright: #e8c897;
  --gold-dim: #a07a4f;
  --rose: #c77dba;
  --rose-light: #e0a8d6;
  --silver: #b8c6db;
  --silver-dim: #7a8a9e;
  --text: #e8e0f0;
  --text-dim: #9a92a8;
  --text-bright: #f5f0ff;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --card-bg: rgba(20, 20, 50, 0.6);
  --card-border: rgba(212, 165, 116, 0.15);
  --card-hover: rgba(212, 165, 116, 0.25);
  --glow-gold: 0 0 20px rgba(212, 165, 116, 0.3);
  --glow-purple: 0 0 30px rgba(124, 58, 237, 0.2);
  --glow-rose: 0 0 20px rgba(199, 125, 186, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Cinzel', serif;
  --font-body: 'Crimson Pro', serif;
  --font-ui: 'Inter', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Starfield Background --- */
.starfield {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 15% 85%, rgba(212,165,116,0.3), transparent),
    radial-gradient(2px 2px at 85% 15%, rgba(199,125,186,0.3), transparent);
}
.starfield::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(45,27,105,0.4) 0%, transparent 70%);
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-bright); line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 600; }
p { font-size: 1.125rem; color: var(--text); max-width: 65ch; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-bright); }
.text-dim { color: var(--text-dim); }
.text-gold { color: var(--gold); }
.text-rose { color: var(--rose); }
.text-center { text-align: center; }
.font-ui { font-family: var(--font-ui); }
.label { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.nav-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.nav-logo .moon { font-size: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 500; color: var(--silver); transition: var(--transition); }
.nav-links a:hover { color: var(--gold); }
.nav-cta { font-family: var(--font-ui); }

/* Dropdown nav */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-arrow { font-size: 0.6rem; margin-left: 2px; opacity: 0.6; transition: var(--transition); }
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); opacity: 1; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 0.75rem); left: 50%; transform: translateX(-50%);
  background: rgba(10, 10, 26, 0.97); backdrop-filter: blur(20px);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 0.75rem 0; min-width: 220px; z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(45,27,105,0.15);
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: rgba(10, 10, 26, 0.97);
  border-top: 1px solid var(--card-border); border-left: 1px solid var(--card-border);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; animation: fadeIn 0.2s ease; }
.nav-dropdown-menu a {
  display: block; padding: 0.5rem 1.25rem; font-size: 0.85rem; color: var(--silver);
  transition: var(--transition); white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(212,165,116,0.08); color: var(--gold); }
.nav-dropdown-menu a[aria-current="page"] { color: var(--gold); }
.nav-links { gap: 1.5rem; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--silver); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(6,6,15,0.98); padding: 1.5rem; border-bottom: 1px solid var(--card-border); gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links > li { padding: 0.5rem 0; }
  .nav-dropdown-menu {
    display: none; position: static; transform: none; background: transparent;
    border: none; box-shadow: none; padding: 0 0 0 1rem; backdrop-filter: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600;
  padding: 0.75rem 2rem; border-radius: var(--radius-full); border: none;
  cursor: pointer; transition: var(--transition); text-decoration: none;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold), var(--gold-bright));
  color: var(--void); box-shadow: var(--glow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(212,165,116,0.5); color: var(--void); }
.btn-secondary {
  background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold-dim);
}
.btn-secondary:hover { background: rgba(212,165,116,0.1); border-color: var(--gold); color: var(--gold-bright); }
.btn-ghost { background: transparent; color: var(--silver); border: 1.5px solid rgba(184,198,219,0.2); }
.btn-ghost:hover { border-color: var(--silver); color: var(--text-bright); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-full { width: 100%; }
.btn-glow::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(135deg, var(--gold), var(--rose), var(--violet));
  z-index: -1; opacity: 0; transition: var(--transition); filter: blur(8px);
}
.btn-glow:hover::after { opacity: 0.6; }

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.card:hover { border-color: var(--card-hover); box-shadow: var(--glow-purple); }
.card-highlight {
  border-color: var(--gold-dim);
  background: linear-gradient(135deg, rgba(45,27,105,0.3), rgba(20,20,50,0.6));
}
.card-highlight:hover { border-color: var(--gold); box-shadow: var(--glow-gold); }

/* --- Hero Section --- */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  padding: 8rem 0 5rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(45,27,105,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(124,58,237,0.15) 0%, transparent 40%);
}
.hero-content { max-width: 700px; }
.hero-eyebrow {
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; flex: 0 0 2rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.hero-eyebrow::after { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--gold); display: block; }
.hero p { font-size: 1.25rem; color: var(--silver); margin-bottom: 2.5rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: 45%; max-width: 500px; opacity: 0.15;
  font-size: clamp(15rem, 30vw, 25rem); text-align: center; line-height: 1;
  pointer-events: none; user-select: none;
}
@media (max-width: 768px) { .hero-visual { display: none; } }

/* --- Moon Phase Badge --- */
.moon-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: var(--radius-full);
  background: rgba(212,165,116,0.1); border: 1px solid rgba(212,165,116,0.2);
  font-family: var(--font-ui); font-size: 0.8rem; color: var(--gold);
}

/* --- Pricing Cards --- */
.pricing-card {
  text-align: center; padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
}
.pricing-card .price {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--gold);
  margin: 1rem 0;
}
.pricing-card .price .currency { font-size: 1.2rem; vertical-align: super; }
.pricing-card .price .period { font-size: 0.9rem; color: var(--text-dim); font-family: var(--font-ui); font-weight: 400; }
.pricing-card .features { list-style: none; text-align: left; margin: 1.5rem 0; flex: 1; }
.pricing-card .features li {
  padding: 0.5rem 0; font-size: 0.95rem; color: var(--silver);
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.pricing-card .features li::before { content: '✦'; color: var(--gold); flex-shrink: 0; margin-top: 0.1rem; }
.pricing-popular {
  position: relative;
  border-color: var(--gold-dim);
  background: linear-gradient(180deg, rgba(45,27,105,0.4) 0%, rgba(20,20,50,0.6) 100%);
}
.pricing-popular::before {
  content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--void); font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 1.2rem; border-radius: var(--radius-full);
}

/* --- Tarot Card Visual --- */
.tarot-card-visual {
  width: 140px; height: 240px; border-radius: 12px; position: relative;
  background: linear-gradient(135deg, var(--purple-deep), var(--midnight));
  border: 2px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-gold);
  transition: var(--transition);
  cursor: pointer;
}
.tarot-card-visual:hover { transform: translateY(-8px) rotateY(5deg); box-shadow: 0 0 40px rgba(212,165,116,0.4); }
.tarot-card-visual .symbol { font-size: 3rem; }
.tarot-card-visual .card-name {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-size: 0.65rem; color: var(--gold);
  letter-spacing: 0.05em;
}
.tarot-card-visual .card-number {
  position: absolute; top: 8px; left: 12px;
  font-family: var(--font-display); font-size: 0.7rem; color: var(--gold-dim);
}

/* --- Steps / How It Works --- */
.step {
  text-align: center; padding: 2rem 1.5rem;
}
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--void); font-family: var(--font-display); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 1.25rem;
}
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.step p { font-size: 1rem; color: var(--silver-dim); margin: 0 auto; }

/* --- Testimonials --- */
.testimonial {
  padding: 2rem; position: relative;
}
.testimonial::before {
  content: '"'; position: absolute; top: 0.5rem; left: 1rem;
  font-family: var(--font-display); font-size: 4rem; color: var(--gold-dim); opacity: 0.3; line-height: 1;
}
.testimonial p { font-style: italic; font-size: 1.05rem; margin-bottom: 1rem; padding-top: 1rem; }
.testimonial .author { font-family: var(--font-ui); font-size: 0.85rem; color: var(--gold); font-weight: 500; }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 0.5rem; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; margin-bottom: 0.4rem;
  font-family: var(--font-ui); font-size: 0.85rem; font-weight: 500; color: var(--silver);
}
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(10, 10, 26, 0.8);
  border: 1.5px solid rgba(184,198,219,0.15);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: var(--font-body); font-size: 1rem;
  transition: var(--transition);
}
.form-input:focus {
  outline: none; border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.1);
}
.form-input::placeholder { color: var(--text-dim); }
textarea.form-input { min-height: 120px; resize: vertical; }
select.form-input { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b8c6db' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.form-error { color: var(--danger); font-family: var(--font-ui); font-size: 0.8rem; margin-top: 0.3rem; }
.form-hint { color: var(--text-dim); font-family: var(--font-ui); font-size: 0.8rem; margin-top: 0.3rem; }

/* --- Auth Pages --- */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.auth-card {
  width: 100%; max-width: 440px; padding: 2.5rem;
}
.auth-card h2 { text-align: center; margin-bottom: 0.5rem; }
.auth-card .subtitle { text-align: center; color: var(--text-dim); margin-bottom: 2rem; font-size: 1rem; }
.auth-divider {
  display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0;
  color: var(--text-dim); font-family: var(--font-ui); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }

/* --- Dashboard --- */
.dashboard { padding-top: 5rem; }
.dash-header { margin-bottom: 2rem; }
.dash-header h1 { font-size: 1.8rem; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  padding: 1.25rem 1.5rem;
}
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); margin: 0.25rem 0; }
.stat-card .stat-label { font-family: var(--font-ui); font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-card .stat-change { font-family: var(--font-ui); font-size: 0.8rem; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Reading history */
.reading-item {
  padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--card-border);
}
.reading-item:last-child { border-bottom: none; }
.reading-icon { font-size: 1.5rem; width: 40px; text-align: center; }
.reading-info { flex: 1; }
.reading-info h4 { font-size: 1rem; font-family: var(--font-ui); margin-bottom: 0.15rem; }
.reading-info p { font-size: 0.85rem; color: var(--text-dim); font-family: var(--font-ui); }
.reading-meta { text-align: right; font-family: var(--font-ui); font-size: 0.8rem; color: var(--text-dim); }

/* --- Admin Dashboard --- */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 0.85rem; }
.admin-table th { text-align: left; padding: 0.75rem; color: var(--gold-dim); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.1em; border-bottom: 1px solid var(--card-border); }
.admin-table td { padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--silver); }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* --- Badge / Pill --- */
.badge {
  display: inline-flex; padding: 0.2rem 0.7rem; border-radius: var(--radius-full);
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-gold { background: rgba(212,165,116,0.15); color: var(--gold); }
.badge-purple { background: rgba(124,58,237,0.15); color: var(--violet); }
.badge-green { background: rgba(74,222,128,0.15); color: var(--success); }
.badge-free { background: rgba(184,198,219,0.1); color: var(--silver); }

/* --- Divider --- */
.divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--card-border), transparent);
  margin: 3rem 0;
}
.divider-gold {
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 3rem 0;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--card-border);
  position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: 0.9rem; color: var(--gold); margin-bottom: 1rem; }
.footer p { font-size: 0.9rem; color: var(--text-dim); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a { font-family: var(--font-ui); font-size: 0.85rem; color: var(--silver-dim); }
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; border-top: 1px solid var(--card-border);
  font-family: var(--font-ui); font-size: 0.8rem; color: var(--text-dim);
}

/* --- Animations --- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: var(--glow-gold); } 50% { box-shadow: 0 0 40px rgba(212,165,116,0.5); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin-slow { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse { animation: pulse-glow 3s ease-in-out infinite; }
.animate-in { animation: fade-in 0.6s ease-out both; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; } .delay-4 { animation-delay: 0.4s; }

/* --- Utility --- */
.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; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Reading Delivery Page --- */
.reading-delivery { padding: 6rem 0 4rem; }
.reading-content {
  font-size: 1.15rem; line-height: 1.9; color: var(--silver);
}
.reading-content h3 { color: var(--gold); margin: 1.5rem 0 0.75rem; font-size: 1.3rem; }
.reading-content strong { color: var(--text-bright); }
.reading-content ul { margin: 1rem 0; padding-left: 1.5rem; }
.reading-content li { margin-bottom: 0.5rem; }
.reading-header { text-align: center; margin-bottom: 3rem; }
.reading-header .spread-name { font-family: var(--font-display); font-size: 1rem; color: var(--gold); margin-bottom: 0.5rem; }
.reading-cards-display { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }

/* --- Loading --- */
.loading-orb {
  width: 60px; height: 60px; border-radius: 50%; margin: 2rem auto;
  background: radial-gradient(circle, var(--violet), var(--purple-deep));
  box-shadow: 0 0 40px rgba(124,58,237,0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}
.loading-text { text-align: center; color: var(--text-dim); font-style: italic; font-size: 1.05rem; }

/* --- Alert / Toast --- */
.alert {
  padding: 1rem 1.5rem; border-radius: var(--radius); margin-bottom: 1rem;
  font-family: var(--font-ui); font-size: 0.9rem;
  border: 1px solid transparent;
}
.alert-success { background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.2); color: var(--success); }
.alert-error { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.2); color: var(--danger); }
.alert-info { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.2); color: var(--violet); }

/* --- Companion / Mood --- */
.mood-btn { transition: all 0.2s ease; }
.mood-btn:hover { background: rgba(45,27,105,0.3) !important; transform: scale(1.02); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .grid-4 { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   TAROT CARD SYSTEM — 3D Flip Cards with Real Card Aesthetics
   ═══════════════════════════════════════════════════════════ */

/* Element color tokens */
:root {
  --el-fire:  #e85d3a;
  --el-water: #3a8ee8;
  --el-air:   #e8d03a;
  --el-earth: #3ae85d;
}

/* --- Card Container (perspective wrapper) --- */
.tarot-card {
  width: 160px;
  height: 280px;
  perspective: 900px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

/* --- Inner flip container --- */
.tarot-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotateY(180deg); /* starts showing face-down back */
}

/* Revealed: flip to face */
.tarot-card.revealed .tarot-card-inner {
  transform: rotateY(0deg);
}

/* Reversed card: slight tilt on the face side */
.tarot-card.reversed .tarot-card-inner {
  transform: rotateY(0deg) rotate(180deg);
}
.tarot-card.reversed .tarot-card-back .card-reversed-label {
  display: inline-flex;
}

/* Hover: lift + glow (only once revealed) */
.tarot-card.revealed:hover .tarot-card-inner {
  transform: rotateY(0deg) translateY(-8px);
  filter: drop-shadow(0 16px 32px rgba(212, 165, 116, 0.35));
}
.tarot-card.reversed:hover .tarot-card-inner {
  transform: rotateY(0deg) rotate(180deg) translateY(8px);
  filter: drop-shadow(0 16px 32px rgba(212, 165, 116, 0.35));
}

/* --- Shared face/back styles --- */
.tarot-card-front,
.tarot-card-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* ─────────────────────────────────────
   CARD BACK (mystical pattern — shown
   while unflipped / loading)
───────────────────────────────────── */
.tarot-card-front {
  background: linear-gradient(160deg, #1a1040 0%, #0f0f24 50%, #1a1040 100%);
  border: 2.5px solid var(--gold-dim);
  box-shadow:
    inset 0 0 24px rgba(212, 165, 116, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ornate corner decorations */
.tarot-card-front::before,
.tarot-card-front::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gold-dim);
  opacity: 0.5;
}
.tarot-card-front::before {
  top: 8px; left: 8px;
  border-right: none; border-bottom: none;
  border-radius: 4px 0 0 0;
}
.tarot-card-front::after {
  bottom: 8px; right: 8px;
  border-left: none; border-top: none;
  border-radius: 0 0 4px 0;
}

/* Central moon/star SVG motif on back */
.tarot-card-front .card-back-motif {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.tarot-card-front .card-back-star {
  font-size: 2.8rem;
  opacity: 0.75;
  animation: float 5s ease-in-out infinite;
}
.tarot-card-front .card-back-text {
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  opacity: 0.6;
}

/* ─────────────────────────────────────
   CARD FACE (shown after reveal)
───────────────────────────────────── */
.tarot-card-back {
  background: linear-gradient(170deg, #110e28 0%, #0d0b1e 60%, #12102a 100%);
  border: 2.5px solid var(--gold-dim);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.5),
    0 4px 24px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px 8px;
  gap: 0;
}

/* Major Arcana: gold border glow */
.tarot-card.major-arcana .tarot-card-back {
  border-color: var(--gold);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(212, 165, 116, 0.3),
    0 4px 24px rgba(0, 0, 0, 0.7);
}
/* Minor Arcana: silver border */
.tarot-card.minor-arcana .tarot-card-back {
  border-color: var(--silver-dim);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(184, 198, 219, 0.15),
    0 4px 24px rgba(0, 0, 0, 0.7);
}

/* Card number / arcana label at top */
.card-arcana-label {
  font-family: var(--font-display);
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 4px;
  opacity: 0.75;
}

/* Element icon area */
.card-element-icon {
  font-size: 2rem;
  margin: 2px 0 4px;
  filter: drop-shadow(0 0 6px currentColor);
  line-height: 1;
}
.card-element-icon.el-fire  { color: var(--el-fire);  filter: drop-shadow(0 0 8px var(--el-fire)); }
.card-element-icon.el-water { color: var(--el-water); filter: drop-shadow(0 0 8px var(--el-water)); }
.card-element-icon.el-air   { color: var(--el-air);   filter: drop-shadow(0 0 8px var(--el-air)); }
.card-element-icon.el-earth { color: var(--el-earth); filter: drop-shadow(0 0 8px var(--el-earth)); }

/* Ornamental divider line */
.card-divider {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 4px auto 6px;
  opacity: 0.5;
}

/* Keywords in the middle of the card */
.card-keywords {
  font-family: var(--font-ui);
  font-size: 0.44rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.7;
  flex: 1;
  padding: 0 4px;
}

/* Reversed indicator badge */
.card-reversed-label {
  display: none; /* shown via .reversed modifier */
  font-family: var(--font-ui);
  font-size: 0.42rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  background: rgba(199, 125, 186, 0.12);
  border: 1px solid rgba(199, 125, 186, 0.25);
  border-radius: 3px;
  padding: 1px 5px;
  margin-bottom: 4px;
  align-items: center;
  gap: 3px;
}

/* Card name at bottom */
.card-name-label {
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  padding-top: 5px;
  margin-top: 4px;
  line-height: 1.3;
}
.tarot-card.major-arcana .card-name-label { color: var(--gold-bright); }
.tarot-card.minor-arcana .card-name-label { color: var(--silver); }

/* --- Stagger-in animation for card entry --- */
@keyframes card-arrive {
  from { opacity: 0; transform: translateY(30px) scale(0.88); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.tarot-card {
  animation: card-arrive 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ═══════════════════════════════════════════════════════════
   READING SPREAD LAYOUT
   ═══════════════════════════════════════════════════════════ */
.reading-spread {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 2rem 0;
}

/* Staggered reveal delays for spread cards */
.reading-spread .tarot-card:nth-child(1) { animation-delay: 0.0s; }
.reading-spread .tarot-card:nth-child(2) { animation-delay: 0.3s; }
.reading-spread .tarot-card:nth-child(3) { animation-delay: 0.6s; }
.reading-spread .tarot-card:nth-child(4) { animation-delay: 0.9s; }
.reading-spread .tarot-card:nth-child(5) { animation-delay: 1.2s; }
.reading-spread .tarot-card:nth-child(6) { animation-delay: 1.5s; }
.reading-spread .tarot-card:nth-child(7) { animation-delay: 1.8s; }
.reading-spread .tarot-card:nth-child(8) { animation-delay: 2.1s; }
.reading-spread .tarot-card:nth-child(9) { animation-delay: 2.4s; }
.reading-spread .tarot-card:nth-child(10){ animation-delay: 2.7s; }

/* Position label beneath each card */
.card-position-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Wrapper that holds card + position label */
.tarot-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 600px) {
  .reading-spread { gap: 0.75rem; }
  .tarot-card { width: 130px; height: 228px; }
}

/* ═══════════════════════════════════════════════════════════
   READ-ALONG TEXT — Parchment-style progressive reveal
   ═══════════════════════════════════════════════════════════ */
.read-along {
  position: relative;
  background:
    linear-gradient(135deg, rgba(26, 16, 64, 0.55) 0%, rgba(15, 15, 36, 0.75) 100%);
  border: 1px solid rgba(212, 165, 116, 0.18);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin: 1.5rem 0;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

/* Parchment candle-light glow in top-left corner */
.read-along::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Top ornament line */
.read-along::after {
  content: '✦  ·  ✦  ·  ✦';
  position: absolute;
  top: 0.75rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  opacity: 0.5;
  white-space: nowrap;
}

.read-along-header {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.read-along-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.95;
  color: var(--silver);
}

/* Individual words fade in as the reading is "spoken" */
.read-along-word {
  display: inline;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.read-along-word.visible {
  opacity: 1;
}

/* Static (non-animated) variant */
.read-along-text.static .read-along-word {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   CRYSTAL & HERB RECOMMENDATION CARDS
   ═══════════════════════════════════════════════════════════ */
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.rec-card {
  background: rgba(15, 15, 36, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.rec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.rec-card:hover { transform: translateY(-3px); }
.rec-card:hover::before { opacity: 1; }

/* Crystal — amethyst/quartz palette */
.rec-card.crystal {
  border-color: rgba(124, 58, 237, 0.3);
}
.rec-card.crystal::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.1), transparent 70%);
}
.rec-card.crystal:hover {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.2);
}

/* Herb — earth/green palette */
.rec-card.herb {
  border-color: rgba(58, 232, 93, 0.25);
}
.rec-card.herb::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(58, 232, 93, 0.08), transparent 70%);
}
.rec-card.herb:hover {
  border-color: rgba(58, 232, 93, 0.45);
  box-shadow: 0 0 16px rgba(58, 232, 93, 0.15);
}

.rec-card-icon {
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 2px;
}
.rec-card-type {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.55;
}
.rec-card.crystal .rec-card-type { color: var(--violet); }
.rec-card.herb    .rec-card-type { color: var(--el-earth); }

.rec-card-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-bright);
  line-height: 1.3;
}
.rec-card-purpose {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Section heading above rec grid */
.rec-section-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rec-section-label::before,
.rec-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.2));
}
.rec-section-label::after {
  background: linear-gradient(90deg, rgba(212, 165, 116, 0.2), transparent);
}

/* ═══════════════════════════════════════════════════════════
   SHARE BAR
   ═══════════════════════════════════════════════════════════ */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 1rem;
  background: rgba(10, 10, 26, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.share-bar-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
  margin-bottom: 0.25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); }

.share-btn.share-copy {
  background: rgba(212, 165, 116, 0.08);
  border-color: rgba(212, 165, 116, 0.3);
  color: var(--gold);
}
.share-btn.share-copy:hover {
  background: rgba(212, 165, 116, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.share-btn.share-twitter {
  background: rgba(29, 155, 240, 0.08);
  border-color: rgba(29, 155, 240, 0.25);
  color: #60b8f5;
}
.share-btn.share-twitter:hover {
  background: rgba(29, 155, 240, 0.18);
  border-color: rgba(29, 155, 240, 0.6);
}

.share-btn.share-telegram {
  background: rgba(38, 167, 210, 0.08);
  border-color: rgba(38, 167, 210, 0.25);
  color: #5bc8e8;
}
.share-btn.share-telegram:hover {
  background: rgba(38, 167, 210, 0.18);
  border-color: rgba(38, 167, 210, 0.6);
}

.share-btn.share-save {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.25);
  color: var(--success);
}
.share-btn.share-save:hover {
  background: rgba(74, 222, 128, 0.16);
  border-color: rgba(74, 222, 128, 0.55);
}

/* Copied confirmation state */
.share-btn.share-copy.copied {
  background: rgba(74, 222, 128, 0.12);
  border-color: var(--success);
  color: var(--success);
}

/* ═══════════════════════════════════════════════════════════
   UPSELL PANEL — Soft, non-pushy subscription CTA
   ═══════════════════════════════════════════════════════════ */
.upsell-panel {
  position: relative;
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.35) 0%, rgba(20, 20, 50, 0.6) 100%);
  border: 1px solid rgba(212, 165, 116, 0.22);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  overflow: hidden;
  margin: 1.5rem 0;
}

/* Subtle radial nebula in corner */
.upsell-panel::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.upsell-panel .upsell-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.upsell-panel h3 {
  font-size: 1.25rem;
  color: var(--text-bright);
  margin-bottom: 0.6rem;
}

.upsell-panel .upsell-desc {
  font-size: 1rem;
  color: var(--silver);
  max-width: 52ch;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
}

.upsell-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
}
.upsell-feature-item {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.upsell-feature-item::before {
  content: '✦';
  color: var(--gold-dim);
  font-size: 0.6rem;
}

.upsell-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.upsell-price span {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-weight: 400;
}

.upsell-panel .upsell-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-ui);
  margin-top: 0.75rem;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   AFFIRMATION BANNER — Gold text on dark parchment strip
   ═══════════════════════════════════════════════════════════ */
.affirmation-banner {
  text-align: center;
  padding: 1.25rem 1.5rem;
  background: rgba(212, 165, 116, 0.06);
  border-top: 1px solid rgba(212, 165, 116, 0.12);
  border-bottom: 1px solid rgba(212, 165, 116, 0.12);
  margin: 1.25rem 0;
}
.affirmation-banner .affirmation-label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.4rem;
  opacity: 0.7;
}
.affirmation-banner blockquote {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-bright);
  line-height: 1.7;
  margin: 0;
  border: none;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════
   PULL-ANOTHER / ACTION ROW
   ═══════════════════════════════════════════════════════════ */
.reading-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAVIGATION ENHANCEMENT
   Hamburger → X transform, slide-in panel with backdrop blur
   ═══════════════════════════════════════════════════════════ */

/* Three-bar hamburger icon built from spans */
.nav-toggle {
  width: 36px;
  height: 36px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--silver);
  z-index: 110;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.25s ease,
              top       0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
/* Open state — morphs into X */
.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  /* Override the basic open rule with a slide-in panel */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    background: rgba(6, 6, 15, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--card-border);
    padding: 5rem 2rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important; /* always rendered, controlled by transform */
    z-index: 105;
  }
  .nav-links.open {
    transform: translateX(0);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
  }
  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 1rem;
    padding: 0.25rem 0;
  }

  /* Dim backdrop when nav is open */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 104;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   GRIMOIRE TABS
   ═══════════════════════════════════════════════════════════ */
.grimoire-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 1.5rem;
}
.grimoire-tabs::-webkit-scrollbar { display: none; }

.grimoire-tab {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.grimoire-tab:hover { color: var(--gold); }
.grimoire-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.grimoire-content { position: relative; }

.grimoire-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.grimoire-card:hover {
  border-color: var(--card-hover);
  box-shadow: var(--glow-gold);
}

.grimoire-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.95rem;
}
.grimoire-empty::before {
  content: '✦';
  display: block;
  font-size: 2rem;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════
   MOON VISUALIZATION
   ═══════════════════════════════════════════════════════════ */
.moon-sphere {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 38%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(220, 210, 255, 0.7) 25%,
    rgba(160, 140, 220, 0.5) 55%,
    rgba(30, 20, 70, 0.95) 100%
  );
  position: relative;
  margin: 0 auto;
  box-shadow:
    0 0 40px rgba(180, 160, 255, 0.3),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.moon-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 30px rgba(180, 160, 255, 0.25);
  animation: moon-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
.moon-glow::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(180, 160, 255, 0.12);
}
@keyframes moon-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

.moon-phase-shadow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  transition: background 0.6s ease;
}

.moon-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.moon-calendar-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  margin-top: 1.25rem;
}
.moon-calendar-strip::-webkit-scrollbar { display: none; }

.moon-day {
  flex-shrink: 0;
  width: 44px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-ui);
}
.moon-day:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--card-border);
}
.moon-day.active {
  background: rgba(212, 165, 116, 0.12);
  border-color: var(--gold-dim);
  box-shadow: var(--glow-gold);
}
.moon-day .day-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--silver);
}
.moon-day.active .day-num { color: var(--gold); }
.moon-day .day-phase { font-size: 1rem; line-height: 1; }

/* ═══════════════════════════════════════════════════════════
   SPELL WORKSHOP STEPS
   ═══════════════════════════════════════════════════════════ */
.workshop-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.workshop-progress::-webkit-scrollbar { display: none; }

.workshop-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  position: relative;
}
.workshop-step + .workshop-step::before {
  content: '';
  position: absolute;
  left: -50%;
  top: 16px;
  width: 100%;
  height: 2px;
  background: var(--card-border);
  z-index: 0;
}
.workshop-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--card-border);
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.workshop-step.active .workshop-step-circle {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  border-color: var(--gold);
  color: var(--void);
  box-shadow: var(--glow-gold);
}
.workshop-step.complete .workshop-step-circle {
  background: rgba(74, 222, 128, 0.15);
  border-color: var(--success);
  color: var(--success);
}
.workshop-step.complete .workshop-step-circle::after {
  content: '✓';
}
.workshop-step-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--text-dim);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.workshop-step.active .workshop-step-label { color: var(--gold); }

.intention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.intention-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--card-border);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-dim);
  min-height: 80px;
}
.intention-card:hover {
  background: rgba(212, 165, 116, 0.06);
  border-color: var(--gold-dim);
  color: var(--silver);
}
.intention-card.selected {
  background: rgba(212, 165, 116, 0.12);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 165, 116, 0.25);
}
.intention-card .intention-icon { font-size: 1.5rem; }

.spell-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.spell-type-card {
  position: relative;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.spell-type-card:hover {
  border-color: var(--card-hover);
  box-shadow: var(--glow-purple);
}
.spell-type-card.selected {
  border-color: var(--gold);
  background: rgba(212, 165, 116, 0.08);
  box-shadow: var(--glow-gold);
}
.spell-difficulty {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}
.spell-difficulty.beginner { color: var(--success); background: rgba(74, 222, 128, 0.1); }
.spell-difficulty.intermediate { color: var(--warning); background: rgba(251, 191, 36, 0.1); }
.spell-difficulty.advanced { color: var(--danger); background: rgba(248, 113, 113, 0.1); }

.quality-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--pct, 0) * 3.6deg), rgba(255,255,255,0.07) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.quality-circle::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--deep);
}
.quality-circle .quality-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   ENCYCLOPEDIA CARDS
   ═══════════════════════════════════════════════════════════ */
.enc-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--silver-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.filter-chip:hover {
  color: var(--silver);
  border-color: var(--card-border);
  background: rgba(255, 255, 255, 0.07);
}
.filter-chip.active {
  background: rgba(212, 165, 116, 0.12);
  border-color: var(--gold-dim);
  color: var(--gold);
}

.enc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.enc-card:hover {
  border-color: var(--card-hover);
  box-shadow: var(--glow-gold);
}

.enc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  cursor: pointer;
  user-select: none;
}
.enc-card-header:hover { background: rgba(255, 255, 255, 0.02); }

.enc-detail {
  padding: 0 1rem 0.85rem;
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.75;
}
.enc-detail[hidden] { display: none; }

.element-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.element-badge.fire   { color: var(--el-fire);  background: rgba(232, 93, 58, 0.12);  border: 1px solid rgba(232, 93, 58, 0.25); }
.element-badge.water  { color: var(--el-water); background: rgba(58, 142, 232, 0.12); border: 1px solid rgba(58, 142, 232, 0.25); }
.element-badge.air    { color: var(--el-air);   background: rgba(232, 208, 58, 0.12); border: 1px solid rgba(232, 208, 58, 0.25); }
.element-badge.earth  { color: var(--el-earth); background: rgba(58, 232, 93, 0.12);  border: 1px solid rgba(58, 232, 93, 0.25); }
.element-badge.spirit { color: #b57bee;         background: rgba(181, 123, 238, 0.12);border: 1px solid rgba(181, 123, 238, 0.25); }

/* ═══════════════════════════════════════════════════════════
   MEDITATION CHAMBER
   ═══════════════════════════════════════════════════════════ */
.med-framework-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.med-framework-card:hover {
  border-color: var(--card-hover);
  box-shadow: var(--glow-purple);
}
.med-framework-card.selected {
  border-color: var(--gold);
  background: rgba(212, 165, 116, 0.08);
  box-shadow: var(--glow-gold);
}

/* Breathing guide circle */
.breath-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(180, 160, 255, 0.3);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  transition: transform 4s ease-in-out, border-color 1s ease, box-shadow 1s ease;
  position: relative;
}
.breath-circle::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(180, 160, 255, 0.08);
  transition: inherit;
}
.breath-circle.inhale {
  transform: scale(1.35);
  border-color: rgba(212, 165, 116, 0.6);
  box-shadow: 0 0 40px rgba(212, 165, 116, 0.2);
}
.breath-circle.hold {
  transform: scale(1.35);
  border-color: rgba(180, 160, 255, 0.6);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.25);
}
.breath-circle.exhale {
  transform: scale(1);
  border-color: rgba(180, 160, 255, 0.25);
  box-shadow: none;
}

.med-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(45, 27, 105, 0.6) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(124, 58, 237, 0.25) 0%, transparent 45%);
  transition: opacity 1.5s ease;
}
.med-ambient.active { opacity: 1; }
.med-ambient:not(.active) { opacity: 0; }

.med-timer {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-align: center;
}

.med-step {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-dim);
  min-height: 1.5rem;
}
.med-step .step-active { color: var(--gold); font-weight: 500; }

.quick-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(10, 10, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.25rem 1.5rem 2rem;
  transform: translateY(calc(100% - 52px));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.quick-panel.expanded { transform: translateY(0); }
.quick-panel-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 1rem;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   WHEEL OF THE YEAR
   ═══════════════════════════════════════════════════════════ */
.sabbat-wheel {
  position: relative;
  width: min(360px, 100%);
  height: min(360px, 100%);
  margin: 0 auto;
}

.sabbat-node {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}
.sabbat-node:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--glow-gold);
  transform: translate(-50%, -50%) scale(1.15);
}
.sabbat-node.current {
  border-color: var(--gold);
  background: rgba(212, 165, 116, 0.12);
  box-shadow: 0 0 24px rgba(212, 165, 116, 0.35);
  animation: node-pulse 3s ease-in-out infinite;
}
@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 165, 116, 0.3); }
  50%       { box-shadow: 0 0 40px rgba(212, 165, 116, 0.55); }
}

.sabbat-section {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  margin-top: 1.5rem;
}

.sabbat-correspondences {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.correspondence-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════════
   DAILY PRACTICE — BENTO GRID
   ═══════════════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}

.bento-cell {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.bento-cell:hover {
  border-color: var(--card-hover);
  box-shadow: var(--glow-purple);
}
.bento-cell.wide { grid-column: span 2; }
.bento-cell.tall { grid-row: span 2; }

.streak-flame {
  display: inline-block;
  font-size: 1.8rem;
  animation: flame-flicker 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.5));
}
@keyframes flame-flicker {
  0%, 100% { transform: scale(1)    rotate(-2deg); filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.5)); }
  33%       { transform: scale(1.08) rotate(2deg);  filter: drop-shadow(0 0 12px rgba(251, 146, 60, 0.7)); }
  66%       { transform: scale(0.96) rotate(-1deg); filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.6)); }
}

.practice-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   SHARED MODAL OVERLAY
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: linear-gradient(160deg, var(--midnight), var(--deep));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 1;
}
.modal-header h3 {
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-bright);
}

.modal-body { padding: 1.5rem; }

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(20, 20, 50, 0.95);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text);
  pointer-events: auto;
  max-width: 320px;
  backdrop-filter: blur(12px);
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast.success {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(15, 40, 20, 0.95);
  color: var(--success);
}
.toast.error {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(40, 15, 15, 0.95);
  color: var(--danger);
}
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-msg  { flex: 1; line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════
   ANIMATION UTILITIES
   ═══════════════════════════════════════════════════════════ */
@keyframes slide-up-in   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-right-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scale-in-anim  { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }
@keyframes gentle-pulse   { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes gold-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes glow-throb {
  0%, 100% { box-shadow: 0 0 12px rgba(212, 165, 116, 0.2); }
  50%       { box-shadow: 0 0 28px rgba(212, 165, 116, 0.5); }
}

.fade-in     { animation: fade-in 0.55s ease-out both; }
.slide-up    { animation: slide-up-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.slide-in-right { animation: slide-right-in 0.45s cubic-bezier(0.4, 0, 0.2, 1) both; }
.scale-in    { animation: scale-in-anim 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.pulse       { animation: gentle-pulse 2.5s ease-in-out infinite; }
.shimmer {
  background: linear-gradient(90deg,
    rgba(212, 165, 116, 0.05) 0%,
    rgba(212, 165, 116, 0.18) 40%,
    rgba(212, 165, 116, 0.05) 80%
  );
  background-size: 200% auto;
  animation: gold-shimmer 1.8s linear infinite;
}
.glow { animation: glow-throb 2.5s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 768px BREAKPOINT
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Layout stacking */
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-cell.wide  { grid-column: span 2; }
  .bento-cell.tall  { grid-row: auto; }

  .intention-grid   { grid-template-columns: repeat(3, 1fr); }
  .spell-type-grid  { grid-template-columns: repeat(2, 1fr); }
  .sabbat-correspondences { grid-template-columns: repeat(2, 1fr); }
  .moon-info-grid   { grid-template-columns: repeat(2, 1fr); }

  /* Moon sphere */
  .moon-sphere { width: 140px; height: 140px; }

  /* Full-width cards */
  .enc-card,
  .grimoire-card,
  .med-framework-card,
  .sabbat-section { width: 100%; }

  /* Font size reductions */
  .med-timer   { font-size: 2.2rem; }
  .quality-circle { width: 60px; height: 60px; }
  .quality-circle .quality-num { font-size: 0.95rem; }

  /* Touch-friendly minimum heights */
  .grimoire-tab,
  .filter-chip,
  .intention-card,
  .moon-day,
  .spell-type-card,
  .correspondence-chip,
  .practice-action-row .btn { min-height: 44px; }

  /* Horizontal scroll keeps working on small screens */
  .grimoire-tabs,
  .moon-calendar-strip,
  .workshop-progress { -webkit-overflow-scrolling: touch; }

  /* Toast repositioned */
  .toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
  .toast           { max-width: 100%; }

  /* Sabbat wheel smaller */
  .sabbat-wheel { width: min(280px, 100%); height: min(280px, 100%); }
  .sabbat-node  { width: 42px; height: 42px; font-size: 1.1rem; }

  /* Modal adjustments */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-content {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: 100%;
    max-height: 85vh;
    transform: translateY(100%);
  }
  .modal-overlay.open .modal-content { transform: translateY(0); }

  /* Quick panel touch target */
  .quick-panel { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 480px BREAKPOINT (extra small phones)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Even more compact */
  .bento-grid     { grid-template-columns: 1fr; }
  .bento-cell.wide { grid-column: span 1; }

  .intention-grid  { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .spell-type-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .sabbat-correspondences { grid-template-columns: 1fr; }

  /* Smaller moon sphere */
  .moon-sphere { width: 120px; height: 120px; }

  /* Breathing circle compact */
  .breath-circle { width: 96px; height: 96px; }

  /* Timer */
  .med-timer { font-size: 1.9rem; }

  /* Workshop steps — labels hidden to save space */
  .workshop-step-label { display: none; }

  /* Spell difficulty badge text truncates */
  .spell-difficulty { font-size: 0.52rem; }

  /* Smaller step circles */
  .workshop-step-circle { width: 26px; height: 26px; font-size: 0.7rem; }

  /* Grimoire tabs slightly more compact */
  .grimoire-tab { padding: 0.6rem 0.9rem; font-size: 0.82rem; }

  /* Bento cell padding compact */
  .bento-cell { padding: 1rem; }

  /* Reading action row stacks */
  .reading-action-row { flex-direction: column; align-items: stretch; }
  .reading-action-row .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════ */
@media print {
  /* Reset to clean white page */
  :root {
    --void: #ffffff;
    --deep: #ffffff;
    --text: #1a1a1a;
    --text-bright: #000000;
    --silver: #333333;
    --gold: #8a6a30;
    --card-bg: #f8f8f8;
    --card-border: #cccccc;
  }

  /* Hide decorative / interactive elements */
  .nav,
  .starfield,
  .footer,
  .hero-visual,
  .share-bar,
  .upsell-panel,
  .reading-action-row,
  .moon-calendar-strip,
  .workshop-progress,
  .enc-filter-bar,
  .quick-panel,
  .modal-overlay,
  .toast-container,
  .nav-backdrop,
  .btn:not(.btn-print),
  .bento-grid .practice-action-row { display: none !important; }

  /* Clean backgrounds */
  body        { background: #fff; color: #1a1a1a; }
  .card,
  .read-along,
  .grimoire-card,
  .enc-card,
  .sabbat-section { background: #f9f8f5; border: 1px solid #ccc; box-shadow: none; }

  /* Full-width container */
  .container,
  .container-narrow { max-width: 100%; padding: 0 1cm; }

  /* Readable text */
  .reading-content,
  .read-along-text { color: #222; font-size: 11pt; line-height: 1.8; }
  .reading-content h3 { color: #8a6a30; }

  /* Remove animations */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Page breaks */
  .read-along  { page-break-inside: avoid; }
  .tarot-card  { page-break-inside: avoid; }
  h2, h3       { page-break-after: avoid; }

  /* Show links as text */
  a::after { content: ' (' attr(href) ')'; font-size: 0.7em; color: #666; }
}

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════ */

/* Keyboard focus — visible ring on any focusable element */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove focus ring for mouse/touch (only show for keyboard) */
:focus:not(:focus-visible) { outline: none; }

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: var(--void);
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* Reduced motion — disable all decorative animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:   0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:  0.01ms !important;
    scroll-behavior: auto !important;
  }

  .breath-circle          { transition: none; }
  .moon-glow              { animation: none; }
  .streak-flame           { animation: none; }
  .sabbat-node.current    { animation: none; }
  .animate-float,
  .animate-pulse,
  .animate-in             { animation: none; opacity: 1; }
}

/* High contrast mode overrides */
@media (forced-colors: active) {
  .btn-primary,
  .workshop-step.active .workshop-step-circle {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
    border-color: Highlight;
  }
  .card,
  .grimoire-card,
  .enc-card {
    border-color: ButtonText;
  }
  .tarot-card-front,
  .tarot-card-back {
    border-color: ButtonText;
  }
}

/* ═══════════════════════════════════════════════════════════
   SUPREME ENHANCEMENT — Phase 1: SVG Decorations & Particles
   ═══════════════════════════════════════════════════════════ */

/* Particle canvas layer */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Floating decoration utilities */
.deco-float-1 { animation: float 7s ease-in-out infinite; }
.deco-float-2 { animation: float 9s ease-in-out infinite; animation-delay: -3s; }
.deco-float-3 { animation: float 11s ease-in-out infinite; animation-delay: -6s; }

.deco-crystal, .deco-orb, .deco-herb, .deco-pentagram {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  z-index: 0;
}
.deco-crystal { width: 120px; height: 120px; }
.deco-orb { width: 60px; height: 60px; }
.deco-herb { width: 100px; height: 100px; }
.deco-pentagram {
  width: 200px; height: 200px;
  animation: slow-rotate 60s linear infinite;
}

@keyframes slow-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* SVG inline decoration - moon phases row */
.deco-moon-phases {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0.15;
  font-size: 1.5rem;
  margin: 1rem 0;
}

/* Tarot fan arrangement for CTA */
.tarot-fan {
  display: flex;
  justify-content: center;
  position: relative;
  height: 100px;
  margin: 1rem 0;
  opacity: 0.12;
}
.tarot-fan-card {
  width: 50px; height: 85px;
  border-radius: 6px;
  background: linear-gradient(160deg, #1a1040, #0f0f24);
  border: 1.5px solid var(--gold-dim);
  position: absolute;
  transform-origin: center bottom;
}
.tarot-fan-card:nth-child(1) { transform: rotate(-20deg); }
.tarot-fan-card:nth-child(2) { transform: rotate(-10deg); }
.tarot-fan-card:nth-child(3) { transform: rotate(0deg); }
.tarot-fan-card:nth-child(4) { transform: rotate(10deg); }
.tarot-fan-card:nth-child(5) { transform: rotate(20deg); }

/* Sacred geometry pentagram SVG */
.svg-pentagram {
  opacity: 0.06;
  animation: slow-rotate 90s linear infinite;
}

/* Cosmic spiral background */
.bg-cosmic-spiral {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath d='M200 200 C200 160 240 120 280 120 C320 120 360 160 360 200 C360 280 280 360 200 360 C120 360 40 280 40 200 C40 120 120 40 200 40 C300 40 380 120 380 220' fill='none' stroke='rgba(212,165,116,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Second starfield parallax layer */
.starfield-layer-2 {
  position: fixed; top: 0; left: 0; width: 200%; height: 200%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 5% 15%, rgba(212,165,116,0.2), transparent),
    radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 45% 75%, rgba(199,125,186,0.15), transparent),
    radial-gradient(1px 1px at 65% 25%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 80% 55%, rgba(212,165,116,0.15), transparent);
  animation: parallax-drift 120s linear infinite;
}
@keyframes parallax-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-50%, -25%); }
}

/* ═══════════════════════════════════════════════════════════
   Phase 2: Luna Cameo Component
   ═══════════════════════════════════════════════════════════ */
.luna-cameo {
  position: relative;
  width: 200px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.luna-cameo-sm { width: 120px; }
.luna-cameo-xs { width: 72px; }

.luna-cameo .cameo-img {
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
}
.luna-cameo-sm .cameo-img { border-radius: 50%; }
.luna-cameo-xs .cameo-img { border-radius: 50%; }

.cameo-aura {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(212,165,116,0.3);
  z-index: 0;
  transition: all 0.6s ease;
}

/* Aura states */
.cameo-aura--idle {
  animation: cameo-idle 4s ease-in-out infinite;
  border-color: rgba(212,165,116,0.2);
  box-shadow: 0 0 15px rgba(212,165,116,0.1);
}
.cameo-aura--thinking {
  animation: cameo-think 1.5s ease-in-out infinite;
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 0 20px rgba(124,58,237,0.2);
}
.cameo-aura--speaking {
  animation: cameo-speak 0.8s ease-in-out infinite;
  border-color: rgba(212,165,116,0.5);
  box-shadow: 0 0 25px rgba(212,165,116,0.3);
}
.cameo-aura--waving {
  animation: cameo-wave 2s ease-in-out infinite;
  border-color: rgba(199,125,186,0.4);
  box-shadow: 0 0 20px rgba(199,125,186,0.2);
}

@keyframes cameo-idle {
  0%, 100% { box-shadow: 0 0 12px rgba(212,165,116,0.1); transform: scale(1); }
  50%      { box-shadow: 0 0 24px rgba(212,165,116,0.2); transform: scale(1.02); }
}
@keyframes cameo-think {
  0%, 100% { box-shadow: 0 0 15px rgba(124,58,237,0.15); }
  50%      { box-shadow: 0 0 30px rgba(124,58,237,0.35); }
}
@keyframes cameo-speak {
  0%, 100% { box-shadow: 0 0 18px rgba(212,165,116,0.2); transform: scale(1); }
  50%      { box-shadow: 0 0 35px rgba(212,165,116,0.4); transform: scale(1.03); }
}
@keyframes cameo-wave {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25%      { transform: scale(1.02) rotate(2deg); }
  75%      { transform: scale(1.02) rotate(-2deg); }
}

/* Speech bubble */
.cameo-speech {
  display: none;
  background: rgba(20,20,50,0.9);
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--silver);
  margin-top: 0.75rem;
  position: relative;
  max-width: 280px;
  text-align: center;
  line-height: 1.5;
}
.cameo-speech::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--gold-dim);
}

/* ═══════════════════════════════════════════════════════════
   Phase 3: Time-of-Day Variants
   ═══════════════════════════════════════════════════════════ */
body.time-dawn .starfield { opacity: 0.6; }
body.time-dawn .hero {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(60,30,120,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(100,50,200,0.12) 0%, transparent 40%);
}

body.time-dusk .hero {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(80,30,60,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(180,80,60,0.1) 0%, transparent 40%);
}
body.time-dusk .moon-badge { border-color: rgba(199,125,186,0.3); }

body.time-day .starfield { opacity: 0.4; }

/* ═══════════════════════════════════════════════════════════
   Phase 4: Zodiac Pills & Quiz Widgets
   ═══════════════════════════════════════════════════════════ */
.zodiac-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.zodiac-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--silver-dim);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  transition: all 0.2s ease;
}
.zodiac-pill:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(212,165,116,0.06);
}
.zodiac-pill.selected {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,165,116,0.12);
  box-shadow: 0 0 12px rgba(212,165,116,0.2);
}

/* Quiz widget */
.quiz-widget {
  background: rgba(20,20,50,0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}
.quiz-question { margin-bottom: 1rem; }
.quiz-question:not(:first-child) { display: none; }
.quiz-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.quiz-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.quiz-pill {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--silver-dim);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}
.quiz-pill:hover { border-color: var(--violet); color: var(--violet); }
.quiz-pill.selected {
  border-color: var(--violet);
  color: white;
  background: rgba(124,58,237,0.25);
}

#quiz-result {
  display: none;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--silver);
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: rgba(212,165,116,0.06);
  border: 1px solid rgba(212,165,116,0.15);
}

/* Quiz recommended highlight on pricing card */
.quiz-recommended {
  border-color: var(--gold) !important;
  box-shadow: 0 0 30px rgba(212,165,116,0.3), 0 0 0 2px var(--gold-dim) !important;
  transform: scale(1.05) !important;
}

/* ═══════════════════════════════════════════════════════════
   Phase 5: Sales Optimization
   ═══════════════════════════════════════════════════════════ */

/* Trust signal row */
.trust-signals {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(20,20,50,0.3);
  border: 1px solid rgba(184,198,219,0.06);
}
.trust-signal {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--silver);
  white-space: nowrap;
}
.trust-signal .ts-icon { font-size: 1rem; }

/* Urgency / scarcity */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  margin-top: 0.75rem;
}
.urgency-badge--hot {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.2);
  color: #fca5a5;
}
.scarcity-bar {
  margin-top: 0.75rem;
}
.scarcity-bar-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.scarcity-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rose), var(--danger));
  transition: width 1s ease;
}
.scarcity-bar-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--rose-light);
  margin-top: 0.3rem;
  text-align: center;
}

/* Abandoned cart banner */
.abandoned-cart-banner {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 99;
  background: linear-gradient(90deg, rgba(45,27,105,0.95), rgba(20,12,55,0.95));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-dim);
  padding: 0.6rem 1.5rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--silver);
}
.abandoned-cart-banner .btn-sm { padding: 0.35rem 1rem; font-size: 0.78rem; }
.acb-dismiss {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 1.1rem; padding: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════
   Phase 6: Loading States & Micro-Interactions
   ═══════════════════════════════════════════════════════════ */

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.03) 80%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius);
}
.skeleton-text {
  height: 1em;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}
.skeleton-card {
  height: 200px;
  border-radius: var(--radius-lg);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Micro-interactions */
.btn:active { transform: scale(0.97) !important; }
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(212,165,116,0.15), 0 0 12px rgba(212,165,116,0.1);
}
.intent-card.selected {
  animation: intent-bounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes intent-bounce {
  0%   { transform: scale(0.95); }
  50%  { transform: scale(1.05); }
  100% { transform: translateY(-2px) scale(1); }
}

/* Enhanced card hover */
.card:hover {
  transform: translateY(-3px);
}

/* Nav active state */
.nav-links a[aria-current="page"] {
  color: var(--gold) !important;
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* ═══════════════════════════════════════════════════════════
   Phase 7: Performance
   ═══════════════════════════════════════════════════════════ */

/* Content visibility for off-screen sections */
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Enhanced loading with Luna cameo */
.loading-luna {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}
.loading-luna .loading-phrases {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.95rem;
  min-height: 1.5em;
  text-align: center;
  transition: opacity 0.3s ease;
}

/* Shuffling tarot card backs animation */
.loading-cards {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.loading-card-back {
  width: 40px; height: 65px;
  border-radius: 6px;
  background: linear-gradient(160deg, #1a1040, #0f0f24);
  border: 1.5px solid var(--gold-dim);
  animation: card-shuffle 1.2s ease-in-out infinite;
}
.loading-card-back:nth-child(2) { animation-delay: 0.2s; }
.loading-card-back:nth-child(3) { animation-delay: 0.4s; }

@keyframes card-shuffle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-8px) rotate(-3deg); }
  50%      { transform: translateY(-4px) rotate(2deg); }
  75%      { transform: translateY(-10px) rotate(-1deg); }
}

/* ═══════════════════════════════════════════════════════════
   Phase 8: SVG Decoration Placement Helpers
   ═══════════════════════════════════════════════════════════ */

/* Hero moon circle background */
.hero-moon-bg {
  position: absolute;
  right: -5%; top: 20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,116,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) { .hero-moon-bg { display: none; } }

/* Crystal decoration between pricing cards */
.deco-between-cards {
  display: none;
}
/* When crystals are present in .sub-grid, switch to 5-col layout */
@media (min-width: 861px) {
  .sub-grid:has(.deco-between-cards) {
    grid-template-columns: 1fr 32px 1fr 32px 1fr;
  }
  .deco-between-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
  }
}

/* Eye of wisdom header decoration */
.deco-eye {
  text-align: center;
  font-size: 2rem;
  opacity: 0.1;
  margin-bottom: 0.5rem;
}

/* API error state */
.api-error-state {
  text-align: center;
  padding: 2rem;
}
.api-error-state .btn { margin-top: 0.5rem; }

/* ═══════════════════════════════════════════════════════════
   Time-of-Day Ambient Tints
   ═══════════════════════════════════════════════════════════ */
body.time-dawn { --ambient-tint: rgba(100, 80, 160, 0.06); }
body.time-morning { --ambient-tint: rgba(180, 160, 120, 0.04); }
body.time-afternoon { --ambient-tint: rgba(212, 165, 116, 0.03); }
body.time-dusk { --ambient-tint: rgba(200, 100, 80, 0.06); }
body.time-night { --ambient-tint: rgba(0, 0, 0, 0); }
body.time-midnight { --ambient-tint: rgba(20, 10, 40, 0.08); }

body.time-dawn::after,
body.time-morning::after,
body.time-afternoon::after,
body.time-dusk::after,
body.time-midnight::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--ambient-tint);
  pointer-events: none;
  z-index: 0;
  transition: background 2s ease;
}

/* ═══════════════════════════════════════════════════════════
   NEW DESIGN SYSTEM EXTENSIONS — Mystic Luna v2
   Appended CSS — DO NOT modify existing rules above
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   §1  BLOG STYLES
   ═══════════════════════════════════════════════════════════ */

/* --- Blog Hero --- */
.blog-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(45,27,105,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(124,58,237,0.18) 0%, transparent 45%);
  overflow: hidden;
}
.blog-hero::after {
  content: '\1F4DC';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(8rem, 20vw, 16rem);
  opacity: 0.04;
  pointer-events: none;
}

/* --- Blog Search --- */
.blog-search {
  position: relative;
  max-width: 560px;
  margin: 2rem auto 0;
}
.blog-search input {
  width: 100%;
  padding: 0.9rem 3.5rem 0.9rem 1.25rem;
  background: rgba(10,10,26,0.85);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-full);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}
.blog-search input:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.12), 0 0 20px rgba(212,165,116,0.08);
}
.blog-search-icon {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1.1rem;
  pointer-events: none;
}

/* --- Blog Categories (filter pills) --- */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0;
}
.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--silver-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px;
}
.blog-cat-pill:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(212,165,116,0.08);
}
.blog-cat-pill.active {
  background: rgba(212,165,116,0.14);
  border-color: var(--gold-dim);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(212,165,116,0.15);
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.blog-grid.blog-list { grid-template-columns: 1fr; }

/* --- Blog Card --- */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--card-hover);
  box-shadow: var(--glow-purple);
  transform: translateY(-4px);
}
.blog-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-deep), var(--midnight));
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.06); }
.blog-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.3;
}
.blog-card-category { position: absolute; top: 0.75rem; left: 0.75rem; }
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.blog-card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  transition: color var(--transition);
}
.blog-card:hover h3 { color: var(--gold); }
.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--silver-dim);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
}
.blog-read-time {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gold-dim);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- Blog Layout with Sidebar --- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.blog-sidebar {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.blog-sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}
.blog-sidebar-widget h4 {
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--card-border);
}
.sidebar-post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sidebar-post-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.sidebar-post-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: var(--midnight);
}
.sidebar-post-title {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--silver);
  line-height: 1.4;
  transition: color var(--transition);
}
.sidebar-post-title:hover { color: var(--gold); }
.sidebar-post-date {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* --- Blog Pagination --- */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.page-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  color: var(--silver);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(212,165,116,0.08);
}
.page-btn.active {
  background: rgba(212,165,116,0.15);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: var(--glow-gold);
}
.page-btn.page-ellipsis {
  background: none;
  border-color: transparent;
  pointer-events: none;
  color: var(--text-dim);
}

/* --- Blog Post Content (Article Typography) --- */
.blog-post-content {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--silver);
  max-width: 72ch;
}
.blog-post-content > * + * { margin-top: 1.4em; }
.blog-post-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-bright);
  margin-top: 2em;
}
.blog-post-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--gold-bright);
  margin-top: 1.8em;
  padding-top: 0.5em;
  border-top: 1px solid rgba(212,165,116,0.12);
}
.blog-post-content h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--gold);
  margin-top: 1.5em;
}
.blog-post-content h4 {
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-top: 1.2em;
}
.blog-post-content p { max-width: none; }
.blog-post-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(212,165,116,0.3);
}
.blog-post-content a:hover {
  color: var(--gold-bright);
  text-decoration-color: var(--gold);
}
.blog-post-content blockquote {
  border-left: 3px solid var(--gold-dim);
  padding: 1rem 1.5rem;
  margin: 2em 0;
  background: rgba(212,165,116,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gold-bright);
  font-size: 1.1em;
}
.blog-post-content blockquote cite {
  display: block;
  font-size: 0.8em;
  font-style: normal;
  color: var(--gold-dim);
  margin-top: 0.5rem;
}
.blog-post-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  padding: 0.2em 0.45em;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 4px;
  color: var(--violet);
}
.blog-post-content pre {
  background: rgba(10,10,26,0.8);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
}
.blog-post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--silver);
}
.blog-post-content ul,
.blog-post-content ol { padding-left: 1.75rem; }
.blog-post-content li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.blog-post-content ul li::marker { color: var(--gold-dim); }
.blog-post-content ol li::marker {
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-display);
}
.blog-post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 2.5em 0;
}
.blog-post-content img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
}
.blog-post-content figure { margin: 2em 0; }
.blog-post-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.6rem;
}
.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.blog-post-content th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(212,165,116,0.08);
  border-bottom: 2px solid var(--gold-dim);
  color: var(--gold);
  font-weight: 600;
}
.blog-post-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--silver);
}
.blog-post-content tr:hover td { background: rgba(255,255,255,0.02); }

/* --- Reading Progress Bar --- */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg,
    var(--gold-dim),
    var(--gold),
    var(--gold-bright),
    var(--rose)
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s linear infinite;
  box-shadow: 0 0 8px rgba(212,165,116,0.5);
  transition: width 0.1s linear;
}
@keyframes progress-shimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* --- Author Box --- */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  margin-top: 3rem;
  align-items: flex-start;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  object-fit: cover;
  flex-shrink: 0;
  background: radial-gradient(circle, var(--purple-deep), var(--void));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info { flex: 1; }
.author-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0.2rem;
}
.author-title {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.author-bio {
  font-size: 0.95rem;
  color: var(--silver-dim);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.author-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--silver-dim);
  border: 1px solid var(--card-border);
  transition: var(--transition);
}
.author-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(212,165,116,0.06);
}

/* --- Table of Contents --- */
.toc {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 5rem;
}
.toc-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.toc-item a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.83rem;
  color: var(--text-dim);
  padding: 0.3rem 0.5rem;
  border-left: 2px solid transparent;
  transition: var(--transition);
  line-height: 1.4;
  border-radius: 0 4px 4px 0;
}
.toc-item a:hover {
  color: var(--gold);
  border-left-color: var(--gold-dim);
  background: rgba(212,165,116,0.05);
}
.toc-item a.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(212,165,116,0.08);
}
.toc-item.toc-h3 > a { padding-left: 1.25rem; font-size: 0.78rem; }
.toc-item.toc-h4 > a { padding-left: 2rem; font-size: 0.74rem; }

/* --- Social Share Floating Bar --- */
.share-buttons {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.share-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(20,20,50,0.85);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition);
  color: var(--silver-dim);
  text-decoration: none;
  position: relative;
}
.share-icon-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  transform: scale(1.12);
  box-shadow: var(--glow-gold);
}
.share-icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: rgba(10,10,26,0.95);
  color: var(--silver);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.share-icon-btn:hover[data-tooltip]::after { opacity: 1; }

/* --- Related Posts Grid --- */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--card-border);
}
.related-posts-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.related-post-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.related-post-card:hover {
  border-color: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
}
.related-post-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--midnight);
}
.related-post-body { padding: 1rem; }
.related-post-body h4 {
  font-size: 0.95rem;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
  line-height: 1.4;
  transition: color var(--transition);
}
.related-post-card:hover h4 { color: var(--gold); }
.related-post-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════
   §2  SHOP STYLES
   ═══════════════════════════════════════════════════════════ */

.shop-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(45,27,105,0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(199,125,186,0.12) 0%, transparent 45%);
}
.shop-hero-float {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2rem;
  opacity: 0.07;
  pointer-events: none;
  font-size: clamp(4rem, 8vw, 7rem);
}
.shop-hero-float span { animation: float 6s ease-in-out infinite; }
.shop-hero-float span:nth-child(2) { animation-delay: -2s; }
.shop-hero-float span:nth-child(3) { animation-delay: -4s; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-6px);
  box-shadow: var(--glow-gold), 0 20px 60px rgba(0,0,0,0.4);
}
.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--purple-deep), var(--midnight));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.08); }
.product-price-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--void);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color var(--transition);
}
.product-card:hover h3 { color: var(--gold); }
.product-card-desc {
  font-size: 0.9rem;
  color: var(--silver-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.product-card-footer { margin-top: auto; }

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.product-rating .stars { display: flex; gap: 2px; }
.product-rating .star { font-size: 0.85rem; color: var(--gold); }
.product-rating .star.empty { color: rgba(212,165,116,0.2); }
.product-rating .star.half { color: var(--gold-dim); }
.product-rating-count { font-family: var(--font-ui); font-size: 0.75rem; color: var(--text-dim); }
.product-rating-score { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600; color: var(--gold-dim); }

/* Product Hero — split layout */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 2rem 0;
}
.product-hero-visual { position: sticky; top: 5rem; }
.product-hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: linear-gradient(135deg, var(--purple-deep), var(--midnight));
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  overflow: hidden;
}
.product-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.product-hero-details { display: flex; flex-direction: column; gap: 1.25rem; }
.product-hero-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-bright);
  line-height: 1.2;
}
.product-hero-price { font-family: var(--font-display); font-size: 2.5rem; color: var(--gold); }
.product-hero-price .original-price {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: var(--text-dim);
  margin-right: 0.5rem;
  font-weight: 400;
}
.product-hero-desc { font-size: 1.05rem; color: var(--silver); line-height: 1.8; }

/* Product Preview scrollable */
.product-preview {
  background: rgba(10,10,26,0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  max-height: 320px;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  scroll-behavior: smooth;
}
.product-preview::-webkit-scrollbar { width: 4px; }
.product-preview::-webkit-scrollbar-track { background: transparent; }
.product-preview::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }
.product-preview-label {
  position: sticky;
  top: -1.5rem;
  margin: -1.5rem -1.5rem 1rem;
  padding: 0.6rem 1.5rem;
  background: rgba(20,20,50,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.product-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(10,10,26,0.8), transparent);
  pointer-events: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Product Badges */
.product-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
}
.product-badge.format  { background: rgba(124,58,237,0.12);  border: 1px solid rgba(124,58,237,0.25);  color: var(--violet); }
.product-badge.pages   { background: rgba(184,198,219,0.08); border: 1px solid rgba(184,198,219,0.15); color: var(--silver); }
.product-badge.guarantee { background: rgba(74,222,128,0.1);   border: 1px solid rgba(74,222,128,0.2);   color: var(--success); }
.product-badge.bestseller { background: rgba(212,165,116,0.15); border: 1px solid var(--gold-dim);        color: var(--gold); }

/* Cart Button — pulsing gold CTA */
.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold), var(--gold-bright));
  color: var(--void);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  animation: cart-pulse 3s ease-in-out infinite;
  min-height: 52px;
}
.cart-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(212,165,116,0.55), 0 8px 30px rgba(0,0,0,0.3);
  color: var(--void);
  animation: none;
}
.cart-button:active { transform: scale(0.98); }
@keyframes cart-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212,165,116,0.3); }
  50%       { box-shadow: 0 0 40px rgba(212,165,116,0.5), 0 0 60px rgba(212,165,116,0.2); }
}
.cart-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.cart-button:hover::before { left: 150%; }

/* ═══════════════════════════════════════════════════════════
   §3  GRIMOIRE / BOOK OF SHADOWS STYLES
   ═══════════════════════════════════════════════════════════ */

.grimoire-header {
  background: linear-gradient(135deg, rgba(45,27,105,0.4), rgba(20,20,50,0.6));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}
.grimoire-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.grimoire-stat { text-align: center; }
.grimoire-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.grimoire-stat-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* Grimoire Filters */
.grimoire-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.grimoire-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--silver-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px;
}
.grimoire-filter-pill:hover { color: var(--gold); border-color: var(--gold-dim); background: rgba(212,165,116,0.08); }
.grimoire-filter-pill.active { background: rgba(212,165,116,0.14); border-color: var(--gold-dim); color: var(--gold); box-shadow: 0 0 12px rgba(212,165,116,0.15); }
.grimoire-filter-pill[data-type="spell"].active   { background: rgba(248,113,113,0.1);  border-color: rgba(248,113,113,0.3);  color: #fca5a5; }
.grimoire-filter-pill[data-type="ritual"].active  { background: rgba(124,58,237,0.12);  border-color: rgba(124,58,237,0.3);   color: var(--violet); }
.grimoire-filter-pill[data-type="herb"].active    { background: rgba(74,222,128,0.1);   border-color: rgba(74,222,128,0.25);  color: var(--success); }
.grimoire-filter-pill[data-type="crystal"].active { background: rgba(180,160,255,0.12); border-color: rgba(180,160,255,0.3);  color: #b4a0ff; }
.grimoire-filter-pill[data-type="dream"].active   { background: rgba(199,125,186,0.12); border-color: rgba(199,125,186,0.3);  color: var(--rose-light); }
.grimoire-filter-pill[data-type="moon"].active    { background: rgba(212,165,116,0.14); border-color: var(--gold-dim);        color: var(--gold); }

/* Grimoire Entry Card */
.grimoire-entry-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.grimoire-entry-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--card-border);
  transition: background var(--transition);
}
.grimoire-entry-card:hover { border-color: var(--card-hover); box-shadow: var(--glow-purple); }
.grimoire-entry-card:hover::before { background: var(--gold-dim); }
.grimoire-entry-card[data-type="spell"]::before   { background: rgba(248,113,113,0.5); }
.grimoire-entry-card[data-type="ritual"]::before  { background: rgba(124,58,237,0.5); }
.grimoire-entry-card[data-type="herb"]::before    { background: rgba(74,222,128,0.5); }
.grimoire-entry-card[data-type="crystal"]::before { background: rgba(180,160,255,0.5); }
.grimoire-entry-card[data-type="dream"]::before   { background: rgba(199,125,186,0.5); }
.grimoire-entry-card[data-type="moon"]::before    { background: rgba(212,165,116,0.6); }

.grimoire-entry-header { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.grimoire-type-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}
.grimoire-entry-card[data-type="spell"]   .grimoire-type-icon { background: rgba(248,113,113,0.1);  }
.grimoire-entry-card[data-type="ritual"]  .grimoire-type-icon { background: rgba(124,58,237,0.12); }
.grimoire-entry-card[data-type="herb"]    .grimoire-type-icon { background: rgba(74,222,128,0.1);  }
.grimoire-entry-card[data-type="crystal"] .grimoire-type-icon { background: rgba(180,160,255,0.1); }
.grimoire-entry-card[data-type="dream"]   .grimoire-type-icon { background: rgba(199,125,186,0.1); }
.grimoire-entry-card[data-type="moon"]    .grimoire-type-icon { background: rgba(212,165,116,0.1); }

.grimoire-entry-title { font-family: var(--font-display); font-size: 1rem; color: var(--text-bright); line-height: 1.3; flex: 1; }
.grimoire-entry-excerpt {
  font-size: 0.9rem; color: var(--silver-dim); line-height: 1.65; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.grimoire-entry-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; font-family: var(--font-ui); font-size: 0.72rem; color: var(--text-dim);
}
.grimoire-entry-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.grimoire-tag {
  display: inline-flex; padding: 0.15rem 0.5rem; border-radius: var(--radius-full);
  font-family: var(--font-ui); font-size: 0.68rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); color: var(--text-dim);
}

/* Entry Form */
.entry-form {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 2rem; backdrop-filter: blur(10px);
}
.entry-form-section {
  margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--card-border);
}
.entry-form-section:last-child { border-bottom: none; margin-bottom: 0; }
.entry-form-section-title {
  font-family: var(--font-display); font-size: 0.85rem; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.entry-form-section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(212,165,116,0.2), transparent);
}

/* Type Selector */
.type-selector { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.75rem; }
.type-selector-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1rem 0.75rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.03); border: 1.5px solid var(--card-border);
  cursor: pointer; transition: var(--transition); text-align: center;
  font-family: var(--font-ui); font-size: 0.75rem; color: var(--text-dim);
  min-height: 44px;
}
.type-selector-card .type-icon { font-size: 1.75rem; }
.type-selector-card:hover { border-color: var(--gold-dim); background: rgba(212,165,116,0.06); color: var(--silver); }
.type-selector-card.selected { border-color: var(--gold); background: rgba(212,165,116,0.12); color: var(--gold); box-shadow: 0 0 16px rgba(212,165,116,0.2); }

/* Ingredients List */
.ingredients-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  min-height: 44px; padding: 0.5rem;
  background: rgba(10,10,26,0.6); border: 1.5px solid rgba(184,198,219,0.12);
  border-radius: var(--radius); align-items: flex-start; align-content: flex-start;
  cursor: text; transition: var(--transition);
}
.ingredients-list:focus-within { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(212,165,116,0.08); }
.ingredient-chip {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full); font-family: var(--font-ui); font-size: 0.78rem;
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.2); color: var(--success);
}
.ingredient-chip-remove {
  cursor: pointer; opacity: 0.6; font-size: 0.9rem; line-height: 1;
  transition: opacity 0.2s; background: none; border: none; color: inherit; padding: 0;
}
.ingredient-chip-remove:hover { opacity: 1; }
.ingredient-input {
  border: none; background: transparent; outline: none;
  color: var(--text-bright); font-family: var(--font-body); font-size: 0.95rem;
  min-width: 120px; flex: 1;
}

/* Correspondences Grid */
.correspondences-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.correspondence-item {
  background: rgba(20,20,50,0.5); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 0.75rem; text-align: center; transition: var(--transition);
}
.correspondence-item:hover { border-color: var(--gold-dim); background: rgba(212,165,116,0.05); }
.correspondence-item-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }
.correspondence-item-label { font-family: var(--font-ui); font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.correspondence-item-value { font-family: var(--font-ui); font-size: 0.8rem; color: var(--silver); margin-top: 0.2rem; }

/* FAB — Floating Action Button */
.fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--void); font-size: 1.5rem; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), var(--glow-gold);
  transition: var(--transition);
  animation: fab-pulse 3s ease-in-out infinite;
}
.fab:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 40px rgba(212,165,116,0.5);
  animation: none;
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 16px rgba(212,165,116,0.2); }
  50%       { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 32px rgba(212,165,116,0.45); }
}
.fab-label {
  position: absolute; right: calc(100% + 0.75rem); top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: rgba(10,10,26,0.92); color: var(--gold);
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600;
  padding: 0.35rem 0.75rem; border-radius: var(--radius); border: 1px solid var(--gold-dim);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.fab:hover .fab-label { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   §4  SPELL & RITUAL STYLES
   ═══════════════════════════════════════════════════════════ */

.spell-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.5rem; transition: var(--transition);
  backdrop-filter: blur(10px); position: relative; overflow: hidden;
}
.spell-card:hover { border-color: var(--card-hover); box-shadow: var(--glow-purple); transform: translateY(-3px); }
.spell-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.75rem;
}
.spell-card h3 { font-size: 1.05rem; flex: 1; }
.spell-difficulty-badge {
  padding: 0.25rem 0.6rem; border-radius: var(--radius-full);
  font-family: var(--font-ui); font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0;
}
.spell-difficulty-badge.beginner     { background: rgba(74,222,128,0.1);  border: 1px solid rgba(74,222,128,0.2);  color: var(--success); }
.spell-difficulty-badge.intermediate { background: rgba(251,191,36,0.1);  border: 1px solid rgba(251,191,36,0.2);  color: var(--warning); }
.spell-difficulty-badge.advanced     { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.2); color: var(--danger); }

/* Spell Type Badge */
.spell-type-badge {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full); font-family: var(--font-ui); font-size: 0.72rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.spell-type-badge.protection  { background: rgba(180,160,255,0.12); border: 1px solid rgba(180,160,255,0.25); color: #b4a0ff; }
.spell-type-badge.love        { background: rgba(199,125,186,0.12); border: 1px solid rgba(199,125,186,0.25); color: var(--rose-light); }
.spell-type-badge.abundance   { background: rgba(212,165,116,0.12); border: 1px solid var(--gold-dim);        color: var(--gold); }
.spell-type-badge.healing     { background: rgba(74,222,128,0.1);   border: 1px solid rgba(74,222,128,0.2);   color: var(--success); }
.spell-type-badge.divination  { background: rgba(124,58,237,0.12);  border: 1px solid rgba(124,58,237,0.25);  color: var(--violet); }
.spell-type-badge.banishing   { background: rgba(248,113,113,0.1);  border: 1px solid rgba(248,113,113,0.2);  color: var(--danger); }
.spell-type-badge.moon        { background: rgba(220,220,255,0.08); border: 1px solid rgba(220,220,255,0.15); color: #dcdcff; }

/* Cast Button */
.cast-button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.85rem 2rem;
  background: linear-gradient(135deg, rgba(45,27,105,0.6), rgba(124,58,237,0.4));
  border: 1.5px solid rgba(124,58,237,0.4); border-radius: var(--radius-full);
  color: var(--violet); font-family: var(--font-display); font-size: 0.95rem;
  letter-spacing: 0.08em; cursor: pointer; transition: var(--transition); overflow: hidden;
  min-height: 44px;
}
.cast-button::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 30%, rgba(124,58,237,0.3) 50%, transparent 70%);
  animation: ritual-spin 4s linear infinite; pointer-events: none;
}
.cast-button:hover {
  border-color: var(--violet); color: var(--text-bright);
  box-shadow: var(--glow-purple), 0 0 30px rgba(124,58,237,0.25); transform: translateY(-2px);
}
@keyframes ritual-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Spell Tracker Timeline */
.spell-tracker { position: relative; padding-left: 2rem; }
.spell-tracker::before {
  content: ''; position: absolute; left: 0.75rem; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, var(--gold-dim), transparent);
}
.spell-cast-item { position: relative; padding: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.spell-cast-item::before {
  content: ''; position: absolute; left: -1.5rem; top: 0.35rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-dim); border: 2px solid var(--void);
  box-shadow: 0 0 8px rgba(212,165,116,0.3); z-index: 1;
}
.spell-cast-item.recent::before { background: var(--gold); box-shadow: 0 0 12px rgba(212,165,116,0.5); }
.spell-cast-date { font-family: var(--font-ui); font-size: 0.72rem; color: var(--text-dim); }
.spell-cast-name { font-family: var(--font-display); font-size: 0.95rem; color: var(--text-bright); }
.spell-cast-outcome { font-size: 0.85rem; color: var(--silver-dim); margin-top: 0.25rem; }

/* Ritual Calendar */
.ritual-calendar {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.5rem; backdrop-filter: blur(10px);
}
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.cal-month-title { font-family: var(--font-display); font-size: 1rem; color: var(--gold); }
.cal-nav {
  background: none; border: 1px solid var(--card-border); color: var(--silver-dim);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.cal-nav:hover { border-color: var(--gold-dim); color: var(--gold); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow {
  font-family: var(--font-ui); font-size: 0.65rem; color: var(--text-dim);
  text-align: center; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25rem;
}
.cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; border-radius: var(--radius); cursor: pointer; transition: var(--transition);
  position: relative; font-family: var(--font-ui); font-size: 0.82rem; color: var(--silver-dim); gap: 1px;
}
.cal-day:hover { background: rgba(255,255,255,0.05); color: var(--silver); }
.cal-day.today { background: rgba(212,165,116,0.1); color: var(--gold); font-weight: 700; border: 1px solid var(--gold-dim); }
.cal-day.has-event::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }
.cal-day.has-sabbat::after { background: var(--gold); }
.cal-day.other-month { opacity: 0.3; }

/* Sabbat Card */
.sabbat-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 2rem; backdrop-filter: blur(10px);
  position: relative; overflow: hidden; transition: var(--transition);
}
.sabbat-card:hover { border-color: var(--gold-dim); box-shadow: var(--glow-gold); }
.sabbat-card::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 150px; height: 150px;
  border-radius: 50%; background: radial-gradient(circle, rgba(212,165,116,0.08), transparent 70%); pointer-events: none;
}
.sabbat-icon { font-size: 3rem; margin-bottom: 1rem; }
.sabbat-card-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--text-bright); margin-bottom: 0.3rem; }
.sabbat-card-date { font-family: var(--font-ui); font-size: 0.78rem; color: var(--gold-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.sabbat-card-desc { font-size: 1rem; color: var(--silver); line-height: 1.7; }

/* Sabbat Countdown */
.sabbat-countdown { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0; }
.countdown-unit { text-align: center; min-width: 60px; }
.countdown-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; display: block; }
.countdown-label { font-family: var(--font-ui); font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }
.countdown-divider {
  font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-dim);
  opacity: 0.4; align-self: flex-start; padding-top: 0.2rem; animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.1; } }

/* Wizard Progress — Crystal Steps */
.wizard-progress {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-bottom: 2.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 0.5rem;
}
.wizard-progress::-webkit-scrollbar { display: none; }
.wizard-crystal-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  flex-shrink: 0; position: relative; min-width: 70px;
}
.wizard-crystal-step + .wizard-crystal-step::before {
  content: ''; position: absolute; right: 50%; top: 18px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--card-border), transparent); z-index: 0;
}
.wizard-crystal-step.complete + .wizard-crystal-step::before {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.crystal-icon {
  font-size: 1.6rem; position: relative; z-index: 1; transition: var(--transition);
  filter: grayscale(1) opacity(0.4);
}
.wizard-crystal-step.active .crystal-icon { filter: none; animation: crystal-glow 2s ease-in-out infinite; }
.wizard-crystal-step.complete .crystal-icon { filter: none; opacity: 0.85; }
@keyframes crystal-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(212,165,116,0.3)); }
  50%       { filter: drop-shadow(0 0 12px rgba(212,165,116,0.7)); }
}
.wizard-step-label {
  font-family: var(--font-ui); font-size: 0.65rem; color: var(--text-dim);
  text-align: center; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em;
}
.wizard-crystal-step.active .wizard-step-label { color: var(--gold); }
.wizard-crystal-step.complete .wizard-step-label { color: var(--gold-dim); }

/* Wizard Step Content */
.wizard-step { display: none; animation: wizard-slide-in 0.4s cubic-bezier(0.4,0,0.2,1) both; }
.wizard-step.active { display: block; }
@keyframes wizard-slide-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.wizard-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--card-border);
}

/* ═══════════════════════════════════════════════════════════
   §5  GUIDED INTERACTION STYLES
   ═══════════════════════════════════════════════════════════ */

.onboarding-wizard {
  max-width: 640px; margin: 0 auto;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 2.5rem; backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
}
.onboarding-wizard::before {
  content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%); pointer-events: none;
}
.onboarding-intro { text-align: center; margin-bottom: 2rem; }
.onboarding-intro .wizard-icon { font-size: 3.5rem; margin-bottom: 1rem; }

/* Path Options */
.path-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin: 1.25rem 0; }
.path-option {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: rgba(255,255,255,0.03); border: 1.5px solid var(--card-border); border-radius: var(--radius-lg);
  cursor: pointer; transition: var(--transition); text-align: center;
  font-family: var(--font-ui); font-size: 0.82rem; color: var(--silver-dim); min-height: 44px;
}
.path-option .path-icon { font-size: 2rem; }
.path-option .path-name { font-weight: 600; }
.path-option .path-desc { font-size: 0.72rem; color: var(--text-dim); }
.path-option:hover { border-color: var(--gold-dim); color: var(--silver); background: rgba(212,165,116,0.06); transform: translateY(-2px); }
.path-option.selected { border-color: var(--gold); background: rgba(212,165,116,0.12); color: var(--gold); box-shadow: 0 0 20px rgba(212,165,116,0.2); }
.path-option.selected .path-name { color: var(--gold); }
.path-option.selected .path-desc { color: var(--gold-dim); }

/* Shadow Work Prompt Cards */
.shadow-prompt-card {
  background: linear-gradient(135deg, rgba(20,12,40,0.7), rgba(10,10,26,0.8));
  border: 1px solid rgba(199,125,186,0.2); border-radius: var(--radius-lg);
  padding: 2rem; position: relative; overflow: hidden; margin: 1rem 0;
  cursor: pointer; transition: var(--transition);
}
.shadow-prompt-card:hover { border-color: rgba(199,125,186,0.4); box-shadow: 0 0 24px rgba(199,125,186,0.1); }
.shadow-prompt-card::before { content: '\1F311'; position: absolute; right: 1.5rem; top: 1.5rem; font-size: 2rem; opacity: 0.2; }
.shadow-prompt-number { font-family: var(--font-ui); font-size: 0.65rem; color: var(--rose-light); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; opacity: 0.7; }
.shadow-prompt-text { font-family: var(--font-body); font-size: 1.15rem; font-style: italic; color: var(--text-bright); line-height: 1.6; }

/* Journal Entry Area */
.journal-entry-area { position: relative; }
.journal-mood-row { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.mood-pill {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full); font-family: var(--font-ui); font-size: 0.75rem;
  color: var(--silver-dim); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer; transition: var(--transition); min-height: 36px;
}
.mood-pill:hover { border-color: var(--gold-dim); color: var(--silver); }
.mood-pill.selected { border-color: var(--gold); background: rgba(212,165,116,0.1); color: var(--gold); }
.journal-textarea {
  width: 100%; min-height: 220px; padding: 1.25rem;
  background: rgba(10,10,26,0.75); border: 1.5px solid rgba(184,198,219,0.12);
  border-radius: var(--radius-lg); color: var(--text-bright);
  font-family: var(--font-body); font-size: 1.05rem; line-height: 1.8; resize: vertical; transition: var(--transition);
}
.journal-textarea:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(212,165,116,0.08); }
.journal-textarea::placeholder { color: var(--text-dim); font-style: italic; }
.journal-word-count { text-align: right; font-family: var(--font-ui); font-size: 0.72rem; color: var(--text-dim); margin-top: 0.4rem; }

/* ═══════════════════════════════════════════════════════════
   §6  ENHANCED DASHBOARD STYLES
   ═══════════════════════════════════════════════════════════ */

.dash-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.dash-stat-card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 1.5rem; backdrop-filter: blur(10px); transition: var(--transition);
  display: flex; flex-direction: column; gap: 0.5rem; position: relative; overflow: hidden;
}
.dash-stat-card:hover { border-color: var(--gold-dim); box-shadow: var(--glow-gold); }
.dash-stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.dash-stat-card:hover::before { opacity: 1; }
.dash-stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; background: rgba(212,165,116,0.08); border: 1px solid rgba(212,165,116,0.12); margin-bottom: 0.25rem;
}
.stat-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-family: var(--font-ui); font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-trend { font-family: var(--font-ui); font-size: 0.75rem; display: flex; align-items: center; gap: 0.25rem; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* Achievement Grid */
.achievement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem; margin-top: 1rem; }
.achievement-badge {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 1rem 0.5rem;
  border-radius: var(--radius-lg); background: rgba(20,20,50,0.5); border: 1px solid var(--card-border);
  transition: var(--transition); text-align: center; cursor: pointer;
}
.achievement-badge:hover { border-color: var(--gold-dim); box-shadow: var(--glow-gold); }
.achievement-badge.locked { filter: grayscale(1); opacity: 0.4; cursor: not-allowed; }
.achievement-badge.locked:hover { border-color: var(--card-border); box-shadow: none; opacity: 0.5; }
.achievement-icon {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  background: radial-gradient(circle, rgba(212,165,116,0.15), rgba(45,27,105,0.3));
  border: 2px solid var(--gold-dim); position: relative;
}
.achievement-badge.locked .achievement-icon::after {
  content: '\1F512'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 1rem; background: rgba(6,6,15,0.7); border-radius: 50%;
}
.achievement-name { font-family: var(--font-ui); font-size: 0.68rem; color: var(--silver-dim); line-height: 1.3; }
.achievement-badge:not(.locked) .achievement-name { color: var(--gold-dim); }

/* Activity Timeline */
.activity-timeline { position: relative; padding-left: 2.5rem; }
.activity-timeline::before {
  content: ''; position: absolute; left: 1rem; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, var(--gold-dim), rgba(212,165,116,0.1));
}
.timeline-item { position: relative; padding: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.7rem; top: 0.35rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-dim); border: 2px solid var(--void);
  box-shadow: 0 0 6px rgba(212,165,116,0.3); z-index: 1;
}
.timeline-item.recent::before { background: var(--gold); box-shadow: 0 0 10px rgba(212,165,116,0.5); }
.timeline-time { font-family: var(--font-ui); font-size: 0.7rem; color: var(--text-dim); }
.timeline-title { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 500; color: var(--silver); }
.timeline-desc { font-size: 0.85rem; color: var(--silver-dim); }

/* Streak Counter */
.streak-counter {
  display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(251,146,60,0.08), rgba(251,60,60,0.05));
  border: 1px solid rgba(251,146,60,0.2); border-radius: var(--radius-lg);
}
.streak-fire { font-size: 2.5rem; animation: flame-flicker 2s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(251,146,60,0.6)); }
.streak-info { flex: 1; }
.streak-number { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: #fb923c; line-height: 1; }
.streak-label { font-family: var(--font-ui); font-size: 0.72rem; color: rgba(251,146,60,0.6); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.15rem; }
.streak-best { font-family: var(--font-ui); font-size: 0.75rem; color: var(--text-dim); text-align: right; }
.streak-best strong { color: #fb923c; }

/* Growth Chart */
.growth-chart { display: flex; align-items: flex-end; gap: 4px; height: 80px; padding-top: 0.5rem; }
.growth-bar {
  flex: 1; background: linear-gradient(to top, var(--gold-dim), rgba(212,165,116,0.3));
  border-radius: 3px 3px 0 0; min-height: 4px; position: relative;
  transition: height 0.5s cubic-bezier(0.4,0,0.2,1); cursor: pointer;
}
.growth-bar:hover { background: linear-gradient(to top, var(--gold), rgba(232,200,151,0.5)); }
.growth-bar[data-today="true"] { background: linear-gradient(to top, var(--gold), var(--gold-bright)); box-shadow: 0 0 8px rgba(212,165,116,0.4); }
.growth-bar[data-tooltip]:hover::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); background: rgba(10,10,26,0.9); color: var(--silver);
  font-family: var(--font-ui); font-size: 0.68rem; padding: 0.2rem 0.5rem;
  border-radius: 4px; white-space: nowrap; border: 1px solid var(--card-border);
}
.chart-labels { display: flex; gap: 4px; margin-top: 0.35rem; }
.chart-label { flex: 1; text-align: center; font-family: var(--font-ui); font-size: 0.6rem; color: var(--text-dim); }

/* Quick Actions Grid */
.quick-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quick-action-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.25rem 0.75rem; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); cursor: pointer; transition: var(--transition);
  text-align: center; text-decoration: none;
}
.quick-action-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); box-shadow: var(--glow-gold); }
.quick-action-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: rgba(212,165,116,0.08); border: 1px solid rgba(212,165,116,0.12); transition: var(--transition);
}
.quick-action-card:hover .quick-action-icon { background: rgba(212,165,116,0.15); border-color: var(--gold-dim); }
.quick-action-label { font-family: var(--font-ui); font-size: 0.75rem; color: var(--silver-dim); font-weight: 500; transition: color var(--transition); }
.quick-action-card:hover .quick-action-label { color: var(--gold); }

/* Mood Tracker */
.mood-tracker { display: flex; gap: 0.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.25rem; }
.mood-tracker::-webkit-scrollbar { display: none; }
.mood-tracker-pill {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.75rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1px solid transparent;
  cursor: pointer; transition: var(--transition); flex-shrink: 0; min-width: 60px; min-height: 44px;
  font-family: var(--font-ui); font-size: 0.68rem; color: var(--text-dim);
}
.mood-tracker-pill .mood-emoji { font-size: 1.4rem; }
.mood-tracker-pill:hover { background: rgba(255,255,255,0.07); border-color: var(--card-border); color: var(--silver); }
.mood-tracker-pill.selected { background: rgba(212,165,116,0.1); border-color: var(--gold-dim); color: var(--gold); }

/* Recommendation Card */
.recommendation-card {
  background: linear-gradient(135deg, rgba(45,27,105,0.4), rgba(20,20,50,0.6));
  border: 1px solid rgba(212,165,116,0.2); border-radius: var(--radius-lg);
  padding: 1.5rem; display: flex; gap: 1.25rem; align-items: flex-start;
  backdrop-filter: blur(10px); transition: var(--transition);
}
.recommendation-card:hover { border-color: var(--gold-dim); box-shadow: var(--glow-gold); }
.recommendation-cameo {
  width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--gold-dim);
  background: radial-gradient(circle, var(--purple-deep), var(--void));
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
  flex-shrink: 0; animation: cameo-idle 4s ease-in-out infinite; overflow: hidden;
}
.recommendation-cameo img { width: 100%; height: 100%; object-fit: cover; }
.recommendation-body { flex: 1; }
.recommendation-label { font-family: var(--font-ui); font-size: 0.65rem; color: var(--gold-dim); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.3rem; }
.recommendation-title { font-family: var(--font-display); font-size: 0.95rem; color: var(--text-bright); margin-bottom: 0.35rem; }
.recommendation-desc { font-size: 0.88rem; color: var(--silver-dim); line-height: 1.6; margin-bottom: 0.75rem; }

/* ═══════════════════════════════════════════════════════════
   §7  COMMUNITY STYLES
   ═══════════════════════════════════════════════════════════ */

.community-feed { display: flex; flex-direction: column; gap: 1.25rem; }
.community-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.5rem; backdrop-filter: blur(10px); transition: var(--transition);
}
.community-card:hover { border-color: var(--card-hover); box-shadow: var(--glow-purple); }
.community-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.community-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle, var(--purple), var(--deep));
  border: 1.5px solid var(--card-border);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  flex-shrink: 0; overflow: hidden;
}
.community-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-user { flex: 1; }
.community-username { font-family: var(--font-ui); font-size: 0.875rem; font-weight: 600; color: var(--text-bright); }
.community-time { font-family: var(--font-ui); font-size: 0.72rem; color: var(--text-dim); margin-top: 0.1rem; }
.community-card-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-bright); margin-bottom: 0.5rem; }
.community-card-body { font-size: 0.95rem; color: var(--silver-dim); line-height: 1.7; margin-bottom: 1rem; }
.community-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.community-tag {
  display: inline-flex; align-items: center; padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full); font-family: var(--font-ui); font-size: 0.68rem;
  color: var(--violet); background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
}
.community-tag::before { content: '#'; opacity: 0.6; margin-right: 1px; }
.community-stats { display: flex; align-items: center; gap: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--card-border); }
.community-stat-btn {
  display: flex; align-items: center; gap: 0.35rem; font-family: var(--font-ui); font-size: 0.78rem;
  color: var(--silver-dim); background: none; border: none; cursor: pointer; transition: var(--transition); padding: 0; min-height: 44px;
}
.community-stat-btn:hover { color: var(--gold); }
.community-stat-btn.active { color: var(--rose); }
.community-stat-btn.saved { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   §8  ENHANCED FORM STYLES
   ═══════════════════════════════════════════════════════════ */

.form-textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: rgba(10,10,26,0.8); border: 1.5px solid rgba(184,198,219,0.15);
  border-radius: var(--radius); color: var(--text-bright);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  transition: var(--transition); resize: vertical; min-height: 100px;
}
.form-textarea:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(212,165,116,0.1); }
.form-textarea::placeholder { color: var(--text-dim); font-style: italic; }

.form-select {
  width: 100%; padding: 0.75rem 2.5rem 0.75rem 1rem;
  background: rgba(10,10,26,0.8); border: 1.5px solid rgba(184,198,219,0.15);
  border-radius: var(--radius); color: var(--text-bright);
  font-family: var(--font-body); font-size: 1rem; transition: var(--transition);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23d4a574' d='M7 10L1 4h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.form-select:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(212,165,116,0.1); }
.form-select option { background: var(--deep); color: var(--text); }

/* Custom Checkbox */
.form-checkbox { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-family: var(--font-ui); font-size: 0.9rem; color: var(--silver); }
.form-checkbox input[type="checkbox"] { display: none; }
.form-checkbox-box {
  width: 20px; height: 20px; border-radius: 5px;
  border: 1.5px solid rgba(184,198,219,0.25); background: rgba(10,10,26,0.6);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition);
}
.form-checkbox input:checked + .form-checkbox-box { background: linear-gradient(135deg, var(--gold-dim), var(--gold)); border-color: var(--gold); }
.form-checkbox input:checked + .form-checkbox-box::after { content: '\2713'; color: var(--void); font-size: 0.8rem; font-weight: 700; }

/* Custom Radio */
.form-radio { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-family: var(--font-ui); font-size: 0.9rem; color: var(--silver); }
.form-radio input[type="radio"] { display: none; }
.form-radio-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(184,198,219,0.25); background: rgba(10,10,26,0.6);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition);
}
.form-radio input:checked + .form-radio-dot { border-color: var(--gold); background: rgba(212,165,116,0.1); }
.form-radio input:checked + .form-radio-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Toggle Switch */
.form-switch { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.form-switch input[type="checkbox"] { display: none; }
.switch-track {
  width: 44px; height: 24px; border-radius: 12px;
  background: rgba(184,198,219,0.12); border: 1px solid rgba(184,198,219,0.18);
  position: relative; flex-shrink: 0; transition: var(--transition);
}
.switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--silver-dim); transition: transform 0.25s ease, background 0.2s ease;
}
.form-switch input:checked + .switch-track { background: rgba(212,165,116,0.2); border-color: var(--gold-dim); }
.form-switch input:checked + .switch-track::after { transform: translateX(20px); background: var(--gold); box-shadow: 0 0 8px rgba(212,165,116,0.4); }
.switch-label { font-family: var(--font-ui); font-size: 0.875rem; color: var(--silver); }

/* File Upload */
.form-file-upload {
  border: 2px dashed rgba(184,198,219,0.2); border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem; text-align: center; cursor: pointer; transition: var(--transition);
  background: rgba(10,10,26,0.4); position: relative;
}
.form-file-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.form-file-upload:hover,
.form-file-upload.drag-over { border-color: var(--gold-dim); background: rgba(212,165,116,0.04); }
.form-file-upload.drag-over { border-color: var(--gold); box-shadow: 0 0 20px rgba(212,165,116,0.1); }
.form-file-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.5; }
.form-file-text { font-family: var(--font-ui); font-size: 0.875rem; color: var(--silver-dim); }
.form-file-text strong { color: var(--gold-dim); }
.form-file-hint { font-family: var(--font-ui); font-size: 0.72rem; color: var(--text-dim); margin-top: 0.35rem; }

/* ═══════════════════════════════════════════════════════════
   §9  ANIMATION CLASSES (Extended)
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(212,165,116,0.2); }
  50%       { box-shadow: 0 0 28px rgba(212,165,116,0.55); }
}

.fade-in-el    { animation: fadeIn 0.6s ease-out both; }
.slide-up-el   { animation: slideUp 0.55s cubic-bezier(0.4,0,0.2,1) both; }
.slide-left-el { animation: slideLeft 0.5s cubic-bezier(0.4,0,0.2,1) both; }

/* Intersection Observer driven reveal */
.animate-in-hidden {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.animate-in-hidden.visible { opacity: 1; transform: translateY(0); }
.animate-in-hidden.slide-from-left  { transform: translateX(-24px); }
.animate-in-hidden.slide-from-right { transform: translateX(24px); }
.animate-in-hidden.slide-from-left.visible,
.animate-in-hidden.slide-from-right.visible { transform: translateX(0); }

.float     { animation: float 6s ease-in-out infinite; }
.text-shimmer {
  background: linear-gradient(90deg, var(--gold-dim) 0%, var(--gold-bright) 40%, var(--gold-dim) 80%);
  background-size: 200% auto; background-clip: text;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: gold-shimmer 3s linear infinite;
}

/* ═══════════════════════════════════════════════════════════
   §10  RESPONSIVE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr 280px; gap: 2rem; }
  .product-hero { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; order: -1; }
  .toc { position: static; }
  .product-hero { grid-template-columns: 1fr; }
  .product-hero-visual { position: static; }
  .share-buttons { display: none; }
  .path-options { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero::after { display: none; }
  .reading-progress-bar { height: 2px; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .author-links { justify-content: center; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-hero-float { display: none; }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
  .achievement-grid { grid-template-columns: repeat(4, 1fr); }
  .grimoire-header { flex-direction: column; align-items: flex-start; }
  .grimoire-stats { gap: 1.5rem; }
  .type-selector { grid-template-columns: repeat(3, 1fr); }
  .correspondences-grid { grid-template-columns: repeat(2, 1fr); }
  .path-options { grid-template-columns: repeat(2, 1fr); }
  .path-option .path-desc { display: none; }
  .community-stats { gap: 0.75rem; }
  .fab { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 480px) {
  .blog-cat-pill { padding: 0.35rem 0.75rem; font-size: 0.74rem; }
  .blog-post-content { font-size: 1.05rem; }
  .blog-post-content blockquote { padding: 0.75rem 1rem; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .product-badges { gap: 0.35rem; }
  .product-badge { font-size: 0.68rem; }
  .dash-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-number { font-size: 1.8rem; }
  .quick-actions-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .achievement-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .achievement-icon { width: 40px; height: 40px; font-size: 1.3rem; }
  .streak-number { font-size: 2.2rem; }
  .grimoire-stat-number { font-size: 1.6rem; }
  .type-selector { grid-template-columns: repeat(2, 1fr); }
  .entry-form { padding: 1.25rem; }
  .wizard-crystal-step { min-width: 52px; }
  .crystal-icon { font-size: 1.3rem; }
  .wizard-step-label { display: none; }
  .sabbat-card { padding: 1.25rem; }
  .community-card { padding: 1rem; }
  .form-file-upload { padding: 1.75rem 1rem; }
  .path-options { grid-template-columns: 1fr 1fr; }
  .onboarding-wizard { padding: 1.5rem; }
  .countdown-number { font-size: 1.8rem; }
}

/* ═══════════════════════════════════════════════════════════
   §11  PRINT STYLES EXTENSION
   ═══════════════════════════════════════════════════════════ */

@media print {
  .share-buttons,
  .fab,
  .reading-progress-bar,
  .blog-search,
  .blog-categories,
  .blog-pagination,
  .cart-button,
  .cast-button,
  .wizard-progress,
  .mood-tracker,
  .community-stats,
  .abandoned-cart-banner,
  .quick-actions-grid,
  .achievement-badge.locked { display: none !important; }

  .blog-post-content { color: #222; font-size: 11pt; line-height: 1.8; max-width: 100%; }
  .blog-post-content h1 { color: #000; font-size: 18pt; }
  .blog-post-content h2 { color: #3a2060; font-size: 14pt; border-top: none; }
  .blog-post-content h3 { color: #8a6a30; font-size: 12pt; }
  .blog-post-content blockquote { border-left-color: #8a6a30; color: #3a2060; background: #f5f0e8; }
  .blog-post-content code { background: #f0f0f0; color: #4a1a8a; border-color: #ccc; }
  .blog-post-content pre { background: #f8f8f8; border-color: #ddd; }

  .grimoire-entry-card,
  .grimoire-card,
  .sabbat-section { background: #f9f8f5; border: 1px solid #ddd; }
  .grimoire-entry-card::before { display: none; }
  .author-box { background: #f5f5f5; border: 1px solid #ddd; }
  .product-hero { grid-template-columns: 1fr 1fr; }
  .product-hero-image { background: #f0f0f0; }
  .spell-card { background: #f9f8f5; border: 1px solid #ddd; }

  .grimoire-entry-card,
  .spell-card, .sabbat-card, .blog-card, .author-box { page-break-inside: avoid; }
}

/* ═══════════════════════════════════════════════════════════
   §12  ACCESSIBILITY ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

.blog-cat-pill:focus-visible,
.blog-card:focus-visible,
.product-card:focus-visible,
.grimoire-entry-card:focus-visible,
.spell-card:focus-visible,
.community-card:focus-visible,
.path-option:focus-visible,
.type-selector-card:focus-visible,
.achievement-badge:focus-visible,
.quick-action-card:focus-visible,
.wizard-crystal-step:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.cast-button:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.cart-button:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

/* Enhanced sr-only */
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border-width: 0 !important;
}

/* Prefers-reduced-motion — new components */
@media (prefers-reduced-motion: reduce) {
  .reading-progress-bar,
  .cart-button,
  .fab,
  .cast-button,
  .cast-button::before,
  .text-shimmer,
  .crystal-icon,
  .countdown-divider,
  .starfield-layer-2,
  .wizard-step { animation: none !important; transition: none !important; }
  .animate-in-hidden { opacity: 1 !important; transform: none !important; }
  .cart-button { animation: none; box-shadow: var(--glow-gold); }
  .fab { animation: none; }
}

/* High contrast */
@media (forced-colors: active) {
  .cart-button, .cast-button, .fab {
    forced-color-adjust: none;
    background: Highlight; color: HighlightText; border-color: Highlight;
  }
  .blog-card, .product-card, .grimoire-entry-card,
  .spell-card, .community-card { border-color: ButtonText; }
  .reading-progress-bar { background: Highlight; }
}

/* Dark color scheme explicit declaration */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
}

/* ═══════════════════════════════════════════════════════════
   AUDIT ADDITIONS — All critical missing classes
   ═══════════════════════════════════════════════════════════ */

/* ── 1. ACTIVE STATES ────────────────────────────────────── */
.active {
  color: var(--gold) !important;
  border-color: var(--gold) !important;
}
.filter-pill,
.tab-btn,
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 165, 116, 0.25);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.filter-pill:hover,
.tab-btn:hover,
.category-pill:hover {
  border-color: rgba(212, 165, 116, 0.5);
  color: var(--text);
  background: rgba(212, 165, 116, 0.08);
}
.filter-pill.active,
.tab-btn.active,
.category-pill.active {
  background: rgba(212, 165, 116, 0.15);
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 165, 116, 0.15);
}
.tab-btn {
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

/* ── 2. AVATAR SYSTEM ────────────────────────────────────── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(212, 165, 116, 0.4);
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.7rem;
  border-width: 1.5px;
}
.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.4rem;
  border-width: 3px;
  box-shadow: var(--glow-gold);
}
.avatar-xl {
  width: 96px;
  height: 96px;
  font-size: 1.75rem;
  border-width: 3px;
  box-shadow: var(--glow-gold);
}
.avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.avatar-col .avatar-name {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.avatar-stars {
  display: flex;
  gap: 0.1rem;
  font-size: 0.7rem;
  color: var(--gold);
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(212, 165, 116, 0.35);
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple), var(--violet));
}
.author-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(212, 165, 116, 0.35);
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── 3. DAILY PRACTICE ───────────────────────────────────── */
.daily-page {
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
  position: relative;
  z-index: 1;
}
.daily-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  margin-bottom: 2.5rem;
}
.daily-hero-moon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
  filter: drop-shadow(0 0 16px rgba(212, 165, 116, 0.5));
  animation: floatMoon 6s ease-in-out infinite;
}
@keyframes floatMoon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.daily-greeting-text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-dim);
  font-style: italic;
  max-width: 520px;
  margin: 0.5rem auto 0;
}
.breathing-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(12px);
}
.breath-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(212, 165, 116, 0.5);
  box-shadow: 0 0 30px rgba(212, 165, 116, 0.2), inset 0 0 30px rgba(212, 165, 116, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
}
.breath-ring.inhale {
  transform: scale(1.25);
  box-shadow: 0 0 50px rgba(212, 165, 116, 0.4), inset 0 0 40px rgba(212, 165, 116, 0.1);
}
.breath-ring.exhale {
  transform: scale(0.85);
  box-shadow: 0 0 10px rgba(212, 165, 116, 0.1);
}
.breath-count {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1;
}
.breath-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ── 4. CARD OF THE DAY (cotd-*) ─────────────────────────── */
.cotd-card {
  perspective: 1000px;
  cursor: pointer;
  width: 200px;
  height: 340px;
  margin: 0 auto;
}
.cotd-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.cotd-card.flipped .cotd-card-inner { transform: rotateY(180deg); }
.cotd-card-front,
.cotd-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  overflow: hidden;
}
.cotd-card-front {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--midnight) 50%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.cotd-card-front::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: calc(var(--radius-lg) - 4px);
}
.cotd-card-back {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  transform: rotateY(180deg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cotd-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.05em;
}
.cotd-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}
.cotd-keywords span {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid rgba(212, 165, 116, 0.2);
  color: var(--gold-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cotd-meaning {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.cotd-crystal,
.cotd-herb,
.cotd-affirmation {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--silver-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  line-height: 1.4;
}
.cotd-crystal::before { content: '💎'; font-size: 0.8rem; }
.cotd-herb::before    { content: '🌿'; font-size: 0.8rem; }
.cotd-affirmation {
  font-style: italic;
  color: var(--rose-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
}
.cotd-affirmation::before { content: '✨'; font-size: 0.8rem; }

/* ── 5. READING DISPLAY ──────────────────────────────────── */
.reading-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}
.reading-progress {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.reading-progress-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
}
.reading-progress-track {
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.reading-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width 0.6s ease;
}
.reading-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.reading-result {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  line-height: 1.8;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
}
.reading-result p + p { margin-top: 1rem; }
.reading-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.affirmation-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.35rem;
}

/* ── 6. GRIMOIRE PAGE-SPECIFIC ───────────────────────────── */
.grimoire-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.grimoire-hero {
  text-align: center;
  padding: 4rem 1rem 2.5rem;
  position: relative;
}
.grimoire-page {
  min-height: 100vh;
  padding: 0 0 4rem;
  position: relative;
  z-index: 1;
}
.grimoire-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.grimoire-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.grimoire-search input:focus {
  outline: none;
  border-color: rgba(212, 165, 116, 0.5);
  box-shadow: var(--glow-gold);
}
.grimoire-search::before {
  content: '🔍';
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
}
.entry-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.entry-card:hover {
  border-color: var(--card-hover);
  box-shadow: var(--glow-gold);
  transform: translateY(-3px);
}
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
}
.entry-tags span {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(199, 125, 186, 0.1);
  border: 1px solid rgba(199, 125, 186, 0.2);
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.entry-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--silver-dim);
}
.entry-meta time, .entry-meta span { display: flex; align-items: center; gap: 0.25rem; }

/* ── 7. ENCYCLOPEDIA (enc-*) ─────────────────────────────── */
.enc-hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
  position: relative;
}
.enc-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.enc-search input {
  width: 100%;
  padding: 0.85rem 1.1rem 0.85rem 3rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.enc-search input:focus {
  outline: none;
  border-color: rgba(212, 165, 116, 0.5);
  box-shadow: var(--glow-gold);
}
.enc-search::before {
  content: '🔍';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.enc-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.enc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.enc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}
.enc-card:hover {
  border-color: var(--card-hover);
  box-shadow: var(--glow-gold);
  transform: translateY(-3px);
}
.enc-card-icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 0 8px rgba(212, 165, 116, 0.3));
}
.enc-card-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}
.enc-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.enc-detail {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  max-width: 740px;
  margin: 0 auto;
}
.enc-properties {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.enc-property {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}
.enc-property-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--silver-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.enc-property-value {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
}
.enc-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 165, 116, 0.2);
  background: rgba(212, 165, 116, 0.08);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}
.enc-category-pill:hover,
.enc-category-pill.active {
  background: rgba(212, 165, 116, 0.18);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 165, 116, 0.15);
}

/* ── 8. ONBOARDING WIZARD (ob-*) ─────────────────────────── */
.ob-step {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeSlideIn 0.4s ease;
}
.ob-step.active { display: flex; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ob-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-bright);
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.ob-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
  margin-top: -0.75rem;
}
.ob-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}
.ob-option {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.ob-option:hover {
  border-color: rgba(212, 165, 116, 0.45);
  background: rgba(212, 165, 116, 0.06);
  transform: translateY(-2px);
}
.ob-option.selected {
  border-color: var(--gold);
  background: rgba(212, 165, 116, 0.12);
  box-shadow: 0 0 16px rgba(212, 165, 116, 0.2);
}
.ob-option-icon { font-size: 1.75rem; line-height: 1; }
.ob-option-label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}
.ob-option.selected .ob-option-label { color: var(--gold); }
.ob-crystal-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.ob-crystal-step {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.ob-crystal-step.done {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(212, 165, 116, 0.5);
}
.ob-crystal-step.current {
  background: var(--violet);
  border-color: var(--violet);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
  transform: scale(1.3);
}

/* ── 9. SHADOW WORK (sw-*) ───────────────────────────────── */
.sw-hero {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
}
.sw-hero-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5));
}
.sw-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.sw-prompt {
  background: var(--card-bg);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.sw-prompt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
}
.sw-prompt-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-bright);
  line-height: 1.65;
  text-align: center;
  margin-bottom: 1.25rem;
}
.sw-journal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.sw-journal-textarea {
  width: 100%;
  min-height: 180px;
  background: rgba(10, 10, 26, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.sw-journal-textarea:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: var(--glow-purple);
}
.sw-entries {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.sw-entry-card {
  background: var(--card-bg);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition);
}
.sw-entry-card:hover { border-color: rgba(124, 58, 237, 0.4); }
.sw-luna-reflection {
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.3), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.25rem;
  position: relative;
}
.sw-luna-reflection::before {
  content: '🌙';
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  font-size: 1.25rem;
  filter: drop-shadow(0 0 6px rgba(212, 165, 116, 0.4));
}
.sw-luna-reflection p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--rose-light);
  line-height: 1.7;
}

/* ── 10. FORM VALIDATION ─────────────────────────────────── */
input:invalid,
textarea:invalid,
select:invalid {
  border-color: rgba(248, 113, 113, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.1);
}
input:valid,
textarea:valid,
select:valid {
  border-color: rgba(74, 222, 128, 0.35);
}
input:disabled,
textarea:disabled,
select:disabled,
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.form-error {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  animation: fadeSlideIn 0.2s ease;
}
.form-error::before { content: '⚠'; font-size: 0.75rem; }
.form-success {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--success);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  animation: fadeSlideIn 0.2s ease;
}
.form-success::before { content: '✓'; font-weight: 700; }
.form-help {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--silver-dim);
  margin-top: 0.25rem;
  line-height: 1.45;
}

/* ── 11. VOICE CHAT UI ───────────────────────────────────── */
.voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(212, 165, 116, 0.4);
  background: rgba(20, 20, 50, 0.7);
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.voice-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 165, 116, 0.12);
  box-shadow: var(--glow-gold);
}
.voice-btn:active { transform: scale(0.93); }
.voice-btn.recording {
  border-color: var(--danger);
  color: var(--danger);
  animation: pulseRecord 1.2s ease-in-out infinite;
}
@keyframes pulseRecord {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(248, 113, 113, 0); }
}
.voice-recording {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--danger);
}
.voice-recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: blinkDot 1s ease-in-out infinite;
}
@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
.voice-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
}
.voice-waveform-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
  animation: waveBar 0.8s ease-in-out infinite;
  transform-origin: bottom;
}
.voice-waveform-bar:nth-child(2)  { animation-delay: 0.1s; }
.voice-waveform-bar:nth-child(3)  { animation-delay: 0.2s; }
.voice-waveform-bar:nth-child(4)  { animation-delay: 0.3s; }
.voice-waveform-bar:nth-child(5)  { animation-delay: 0.15s; }
.voice-waveform-bar:nth-child(6)  { animation-delay: 0.25s; }
.voice-waveform-bar:nth-child(7)  { animation-delay: 0.05s; }
@keyframes waveBar {
  0%, 100% { height: 4px;  opacity: 0.4; }
  50%       { height: 20px; opacity: 1; }
}
.voice-playback {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}
.voice-playback-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
}
.voice-playback-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}
.voice-playback-time {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--silver-dim);
  white-space: nowrap;
}

/* ── 12. PDF EXPORT ──────────────────────────────────────── */
.pdf-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: transparent;
  border: 1.5px solid rgba(212, 165, 116, 0.4);
  border-radius: var(--radius);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.pdf-export-btn::before { content: '📄'; font-size: 0.9rem; }
.pdf-export-btn:hover {
  background: rgba(212, 165, 116, 0.1);
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
}
.pdf-export-btn:active { transform: scale(0.96); }
@media print {
  .pdf-export-btn { display: none !important; }
  .no-print      { display: none !important; }
  body { background: #fff; color: #000; }
  .reading-result, .sw-prompt, .cotd-card-back {
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    box-shadow: none;
  }
}

/* ── 13. LOADING STATES ──────────────────────────────────── */
.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(212, 165, 116, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spinCW 0.7s linear infinite;
  flex-shrink: 0;
}
.loading-spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}
.loading-spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}
@keyframes spinCW { to { transform: rotate(360deg); } }
.loading-text {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--silver-dim);
  animation: pulseOpacity 1.5s ease-in-out infinite;
}
@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinCW 0.65s linear infinite;
}
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 15, 0.75);
  backdrop-filter: blur(4px);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
}

/* ── 14. LUNA MESSAGE / RECOMMENDATION CARDS ─────────────── */
.luna-message-card {
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.4), rgba(20, 20, 50, 0.6));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.luna-message-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
}
.luna-message-card p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
}
.luna-rec-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem;
  backdrop-filter: blur(10px);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.luna-rec-card:hover {
  border-color: var(--card-hover);
  box-shadow: var(--glow-gold);
}
.luna-rec-card-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
  filter: drop-shadow(0 0 6px rgba(212, 165, 116, 0.3));
}
.luna-rec-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.luna-rec-card-title {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
}
.luna-rec-card-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.luna-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #a78bfa;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.luna-badge::before { content: '✦'; font-size: 0.6rem; }

/* ── 15. SKELETON LOADING ────────────────────────────────── */
@keyframes skeletonShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 400px 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}
.skel-line {
  height: 14px;
  border-radius: var(--radius-full);
  margin-bottom: 0.55rem;
}
.skel-line-sm { height: 10px; }
.skel-line-lg { height: 20px; }
.skel-line-w60 { width: 60%; }
.skel-line-w80 { width: 80%; }
/* Blog card skeleton */
.skel-blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.skel-blog-card .skel-thumb {
  height: 160px;
  border-radius: calc(var(--radius) - 2px);
}
.skel-blog-card .skel-cat   { height: 18px; width: 70px; border-radius: var(--radius-full); }
.skel-blog-card .skel-title { height: 20px; }
.skel-blog-card .skel-title-2 { height: 20px; width: 75%; }
.skel-blog-card .skel-body  { height: 12px; }
.skel-blog-card .skel-body-2 { height: 12px; width: 55%; }
/* Product card skeleton */
.skel-product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.skel-product-card .skel-icon  { width: 64px; height: 64px; border-radius: 50%; }
.skel-product-card .skel-name  { height: 18px; width: 80%; border-radius: var(--radius-full); }
.skel-product-card .skel-price { height: 22px; width: 50%; border-radius: var(--radius-full); }
.skel-product-card .skel-btn   { height: 38px; border-radius: var(--radius); }
/* Stat card skeleton */
.skel-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.skel-stat-card .skel-label { height: 12px; width: 55%; border-radius: var(--radius-full); }
.skel-stat-card .skel-value { height: 32px; width: 70%; border-radius: var(--radius-full); margin-top: 0.25rem; }
.skel-stat-card .skel-delta { height: 10px; width: 40%; border-radius: var(--radius-full); }

/* Apply shimmer to all skel-* child elements */
.skel-blog-card    > *,
.skel-product-card > *,
.skel-stat-card    > * {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 400px 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}

/* ── RESPONSIVE ADJUSTMENTS ──────────────────────────────── */
@media (max-width: 640px) {
  .enc-grid    { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ob-options  { grid-template-columns: repeat(2, 1fr); }
  .reading-card-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .cotd-card   { width: 170px; height: 290px; }
  .voice-btn   { width: 48px; height: 48px; font-size: 1.2rem; }
  .avatar-lg   { width: 60px; height: 60px; font-size: 1.2rem; }
  .enc-detail  { padding: 1.25rem; }
  .breathing-guide { padding: 1.25rem; }
  .breath-ring { width: 100px; height: 100px; }
}
@media (max-width: 420px) {
  .ob-options  { grid-template-columns: 1fr; }
  .enc-tabs    { gap: 0.35rem; }
  .sw-categories { gap: 0.4rem; }
}

/* ── REDUCED-MOTION: AUDIT ADDITIONS ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .daily-hero-moon,
  .breath-ring,
  .voice-btn.recording,
  .voice-waveform-bar,
  .voice-recording-dot,
  .loading-spinner,
  .loading-text,
  .btn-loading::after { animation: none !important; }
  .cotd-card-inner { transition: none !important; }
  .ob-step.active  { animation: none !important; }
  .skel-blog-card    > *,
  .skel-product-card > *,
  .skel-stat-card    > *,
  .skeleton          { animation: none !important; background: rgba(255,255,255,0.06); }
}
/* ═══ END AUDIT ADDITIONS ═══════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════
   BIRTH CHART STYLES
   ═══════════════════════════════════════════════════════════ */

.birth-chart-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.chart-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.chart-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.chart-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .chart-results { grid-template-columns: 1fr; }
}

/* Planet Table */
.planet-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

.planet-table thead th {
  background: rgba(124, 58, 237, 0.2);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.planet-table tbody tr {
  border-bottom: 1px solid rgba(212, 165, 116, 0.07);
  transition: background var(--transition);
}

.planet-table tbody tr:hover {
  background: rgba(212, 165, 116, 0.05);
}

.planet-table tbody td {
  padding: 0.55rem 0.9rem;
  color: var(--text);
  vertical-align: middle;
}

.planet-table .planet-symbol {
  font-size: 1.1rem;
  margin-right: 0.4rem;
}

@media (max-width: 560px) {
  .planet-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Aspect Grid */
.aspect-grid {
  display: grid;
  gap: 2px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0.5rem;
}

.aspect-cell {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: default;
  transition: transform var(--transition);
}

.aspect-cell:hover { transform: scale(1.2); z-index: 2; }
.aspect-cell.conjunction  { background: rgba(212, 165, 116, 0.25); color: var(--gold); }
.aspect-cell.opposition   { background: rgba(248, 113, 113, 0.2);  color: #f87171; }
.aspect-cell.trine        { background: rgba(74, 222, 128, 0.2);   color: #4ade80; }
.aspect-cell.square       { background: rgba(251, 191, 36, 0.2);   color: var(--warning); }
.aspect-cell.sextile      { background: rgba(99, 179, 237, 0.2);   color: #63b3ed; }
.aspect-cell.empty        { background: transparent; opacity: 0.2; }

/* Zodiac Sign Badges */
.sign-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.sign-badge.fire  { background: rgba(239, 68, 68, 0.18);  color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.sign-badge.water { background: rgba(59, 130, 246, 0.18); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.sign-badge.air   { background: rgba(167, 139, 250, 0.18);color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.3); }
.sign-badge.earth { background: rgba(34, 197, 94, 0.18);  color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }

/* Chart Wheel — CSS-based circular chart */
.chart-wheel {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(
    rgba(124, 58, 237, 0.15) 0deg 30deg,
    rgba(34, 197, 94, 0.12)  30deg 60deg,
    rgba(59, 130, 246, 0.15) 60deg 90deg,
    rgba(239, 68, 68, 0.12)  90deg 120deg,
    rgba(239, 68, 68, 0.15)  120deg 150deg,
    rgba(34, 197, 94, 0.12)  150deg 180deg,
    rgba(59, 130, 246, 0.15) 180deg 210deg,
    rgba(239, 68, 68, 0.12)  210deg 240deg,
    rgba(167, 139, 250, 0.15) 240deg 270deg,
    rgba(34, 197, 94, 0.12)  270deg 300deg,
    rgba(167, 139, 250, 0.15) 300deg 330deg,
    rgba(239, 68, 68, 0.12)  330deg 360deg
  );
  border: 2px solid var(--card-border);
  box-shadow: var(--glow-purple);
}

.chart-wheel::before {
  content: '';
  position: absolute;
  inset: 20%;
  background: var(--deep);
  border-radius: 50%;
  border: 1px solid var(--card-border);
}

.chart-wheel::after {
  content: '';
  position: absolute;
  inset: 38%;
  background: var(--abyss);
  border-radius: 50%;
  border: 1px solid rgba(212, 165, 116, 0.2);
}

.chart-wheel-planet {
  position: absolute;
  width: 20px;
  height: 20px;
  transform-origin: 150px 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 2;
  transition: transform var(--transition);
}

.chart-wheel-planet:hover { transform: scale(1.3); }


/* ═══════════════════════════════════════════════════════════
   DREAM JOURNAL STYLES
   ═══════════════════════════════════════════════════════════ */

.dream-entry-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.dream-entry-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--rose), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.dream-entry-card:hover {
  border-color: var(--card-hover);
  box-shadow: var(--glow-purple);
}

.dream-entry-card:hover::before { opacity: 1; }

.dream-timeline {
  position: relative;
  padding-left: 2rem;
}

.dream-timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--violet), transparent);
}

/* Emotion Tags */
.emotion-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}

.emotion-tag.peaceful  { background: rgba(59, 130, 246, 0.2);  color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.35); }
.emotion-tag.anxious   { background: rgba(239, 68, 68, 0.2);   color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.35); }
.emotion-tag.mystical  { background: rgba(167, 139, 250, 0.2); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.35); }
.emotion-tag.joyful    { background: rgba(251, 191, 36, 0.2);  color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }
.emotion-tag.dark      { background: rgba(107, 114, 128, 0.2); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.35); }

/* Symbol Cloud */
.symbol-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(10, 10, 26, 0.4);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

.symbol-cloud .symbol-tag {
  color: var(--text-dim);
  font-family: var(--font-ui);
  cursor: default;
  transition: color var(--transition);
  line-height: 1;
}

.symbol-cloud .symbol-tag:hover    { color: var(--gold); }
.symbol-cloud .symbol-tag.size-xs  { font-size: 0.7rem; }
.symbol-cloud .symbol-tag.size-sm  { font-size: 0.85rem; }
.symbol-cloud .symbol-tag.size-md  { font-size: 1rem; }
.symbol-cloud .symbol-tag.size-lg  { font-size: 1.25rem; color: var(--text); }
.symbol-cloud .symbol-tag.size-xl  { font-size: 1.5rem; color: var(--rose); }

/* Dream Correlation Chart */
.dream-correlation-chart {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.dream-correlation-chart canvas {
  width: 100% !important;
  height: 100% !important;
}


/* ═══════════════════════════════════════════════════════════
   TAROT JOURNAL STYLES
   ═══════════════════════════════════════════════════════════ */

.tarot-journal-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.reading-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Card Frequency Bar */
.card-frequency-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.card-frequency-bar .bar-label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-dim);
  min-width: 130px;
  text-align: right;
}

.card-frequency-bar .bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.card-frequency-bar .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--rose));
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-frequency-bar .bar-count {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--gold);
  min-width: 24px;
}

/* Pattern Insight Card */
.pattern-insight-card {
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.4), rgba(20, 20, 50, 0.6));
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.pattern-insight-card::before {
  content: 'STAR';
  position: absolute;
  top: -10px; right: -10px;
  font-size: 5rem;
  opacity: 0.04;
  color: var(--gold);
}

.pattern-insight-card .insight-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: block;
}

.pattern-insight-card h4 {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

/* Reading Entry Expand (collapsible) */
.reading-entry-expand {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.reading-entry-expand:hover { border-color: var(--card-hover); }

.reading-entry-expand .entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.reading-entry-expand .entry-header:hover { background: rgba(212, 165, 116, 0.04); }

.reading-entry-expand .expand-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: transform var(--transition);
}

.reading-entry-expand.open .expand-chevron { transform: rotate(180deg); }

.reading-entry-expand .entry-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding var(--transition);
  padding: 0 1.4rem;
}

.reading-entry-expand.open .entry-body {
  max-height: 600px;
  padding: 0 1.4rem 1.4rem;
}


/* ═══════════════════════════════════════════════════════════
   LUNA ACADEMY STYLES
   ═══════════════════════════════════════════════════════════ */

.academy-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.course-card:hover {
  border-color: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

.course-card .course-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.course-card .course-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Difficulty Badges */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.difficulty-badge.beginner     { background: rgba(74, 222, 128, 0.15); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.difficulty-badge.intermediate { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.difficulty-badge.advanced     { background: rgba(167, 139, 250, 0.15);color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.3); }

/* Lesson List */
.lesson-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.lesson-item:hover { background: rgba(212, 165, 116, 0.07); color: var(--text); }
.lesson-item.active { background: rgba(124, 58, 237, 0.15); color: var(--text-bright); }
.lesson-item.completed { color: var(--success); }
.lesson-item.locked    { opacity: 0.45; cursor: not-allowed; }

.lesson-item .lesson-icon {
  flex-shrink: 0;
  font-size: 0.9rem;
}

.lesson-item .lesson-duration {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Progress Ring */
.progress-ring {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring .ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 4;
}

.progress-ring .ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 163;
  stroke-dashoffset: 163;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring .ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
}

/* Course Path */
.course-path {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 1.5rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}

.course-path-node {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.course-path-node .node-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--deep);
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.course-path-node.done .node-dot    { border-color: var(--success); box-shadow: 0 0 12px rgba(74, 222, 128, 0.3); }
.course-path-node.active .node-dot  { border-color: var(--gold);    box-shadow: var(--glow-gold); }
.course-path-node.locked .node-dot  { opacity: 0.4; cursor: not-allowed; }

.course-path-connector {
  flex-shrink: 0;
  width: 50px;
  height: 2px;
  background: var(--card-border);
  position: relative;
  top: -10px;
}

.course-path-connector.done { background: var(--success); }

.course-path-node .node-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 70px;
  line-height: 1.3;
}


/* ═══════════════════════════════════════════════════════════
   ALTAR BUILDER STYLES
   ═══════════════════════════════════════════════════════════ */

.altar-workspace {
  background:
    linear-gradient(rgba(212, 165, 116, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 165, 116, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, rgba(45, 27, 105, 0.3), var(--abyss));
  background-size: 40px 40px, 40px 40px, 100% 100%;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  min-height: 400px;
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.altar-workspace .workspace-label {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(212, 165, 116, 0.2);
  text-transform: uppercase;
  pointer-events: none;
}

.altar-item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: var(--radius);
  background: rgba(20, 20, 50, 0.5);
  border: 1px solid transparent;
  cursor: grab;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: absolute;
  user-select: none;
  z-index: 1;
}

.altar-item:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 15px rgba(212, 165, 116, 0.25), inset 0 0 10px rgba(212, 165, 116, 0.05);
  transform: scale(1.08);
  z-index: 10;
}

.altar-item.dragging {
  cursor: grabbing;
  opacity: 0.85;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
  z-index: 100;
  transform: scale(1.12);
}

.altar-item.placed {
  animation: altar-place 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes altar-place {
  0%   { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.altar-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(12px);
}

.altar-sidebar .sidebar-category {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.3rem;
}

.altar-sidebar .item-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.altar-sidebar .palette-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: var(--radius);
  background: rgba(10, 10, 26, 0.5);
  border: 1px solid rgba(212, 165, 116, 0.1);
  cursor: grab;
  transition: background var(--transition), border-color var(--transition);
}

.altar-sidebar .palette-item:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--violet);
}

/* Altar Item Tooltip */
.altar-item-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(6, 6, 15, 0.95);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  max-width: 200px;
  pointer-events: none;
  backdrop-filter: blur(12px);
  box-shadow: var(--glow-purple);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.altar-item-tooltip.visible { opacity: 1; }

.altar-item-tooltip .tip-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.altar-item-tooltip .tip-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Intention Selector */
.intention-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.intention-selector .intention-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}

.intention-selector .intention-btn:hover,
.intention-selector .intention-btn.active {
  background: rgba(212, 165, 116, 0.12);
  border-color: var(--gold-dim);
  color: var(--gold);
}


/* ═══════════════════════════════════════════════════════════
   ENHANCED ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* 3D Card Flip */
.card-flip-container {
  perspective: 1000px;
}

.card-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-flip.flipped { transform: rotateY(180deg); }

.card-flip-front,
.card-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
}

.card-flip-back { transform: rotateY(180deg); }

/* Crystal Glow Pulse */
@keyframes crystal-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.3), 0 0 20px rgba(167, 139, 250, 0.15);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.6), 0 0 50px rgba(124, 58, 237, 0.3);
    filter: brightness(1.15);
  }
}

.crystal-glow {
  animation: crystal-glow-pulse 3s ease-in-out infinite;
}

/* Herb Sway */
@keyframes herb-sway {
  0%, 100% { transform: rotate(-3deg) translateY(0px); }
  25%       { transform: rotate(2deg) translateY(-3px); }
  75%       { transform: rotate(-1deg) translateY(2px); }
}

.herb-sway {
  animation: herb-sway 4s ease-in-out infinite;
  transform-origin: bottom center;
  display: inline-block;
}

/* Moon Orbit */
@keyframes moon-orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-radius, 40px)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--orbit-radius, 40px)) rotate(-360deg); }
}

.moon-orbit {
  animation: moon-orbit 8s linear infinite;
}

/* Ritual Circle */
@keyframes ritual-circle-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ritual-circle {
  animation: ritual-circle-spin 20s linear infinite;
  border: 1px dashed rgba(212, 165, 116, 0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ritual-circle-counter {
  animation: ritual-circle-spin 20s linear infinite reverse;
}

/* Energy Flow */
@keyframes energy-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.energy-flow {
  background: linear-gradient(
    270deg,
    var(--violet),
    var(--rose),
    var(--gold),
    var(--violet)
  );
  background-size: 300% 300%;
  animation: energy-flow 5s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reveal Slide (content reveal from bottom) */
@keyframes reveal-slide-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-slide {
  animation: reveal-slide-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.reveal-slide.delay-1 { animation-delay: 0.1s; }
.reveal-slide.delay-2 { animation-delay: 0.2s; }
.reveal-slide.delay-3 { animation-delay: 0.3s; }
.reveal-slide.delay-4 { animation-delay: 0.4s; }

/* Stagger In (entrance for lists) */
@keyframes stagger-in-item {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.stagger-in > * {
  opacity: 0;
  animation: stagger-in-item 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger-in > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2)  { animation-delay: 0.10s; }
.stagger-in > *:nth-child(3)  { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4)  { animation-delay: 0.20s; }
.stagger-in > *:nth-child(5)  { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6)  { animation-delay: 0.30s; }
.stagger-in > *:nth-child(7)  { animation-delay: 0.35s; }
.stagger-in > *:nth-child(8)  { animation-delay: 0.40s; }
.stagger-in > *:nth-child(9)  { animation-delay: 0.45s; }
.stagger-in > *:nth-child(10) { animation-delay: 0.50s; }

/* Respect reduced motion for all new animations */
@media (prefers-reduced-motion: reduce) {
  .crystal-glow,
  .herb-sway,
  .moon-orbit,
  .ritual-circle,
  .ritual-circle-counter,
  .energy-flow { animation: none !important; }
  .card-flip    { transition: none !important; }
  .reveal-slide { animation: none !important; opacity: 1; }
  .stagger-in > * { animation: none !important; opacity: 1; }
}
