/* ============================================
   ELFENORAKEL - PRODUCTION CSS
   Dark Mode Design - Gold & Teal Akzente
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* === DARK MODE PRIMARY === */
  --background: #0D0D0F;
  --background-subtle: #1a1a1f;
  --background-card: #141418;
  --foreground: #F5F5F5;
  --foreground-muted: #A0A0A0;

  /* === GOLD (Primary Accent) === */
  --accent: #C9A35C;
  --accent-light: #F4E3B1;
  --accent-dark: #8B6914;
  --accent-rgb: 201, 163, 92;
  --gold: #C9A35C;
  --gold-light: #F4E3B1;
  --gold-dark: #8B6914;

  /* === TEAL (Secondary Accent) === */
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-glow: #5EEAD4;
  --teal-deep: #0A4D52;
  --element-kosmos: #0D9488;

  /* === GLASS EFFECTS === */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-gold: rgba(201, 163, 92, 0.2);

  /* Legacy mappings (Kompatibilität) */
  --bg: var(--background);
  --bg-dark: #2B2218;
  --text: var(--foreground);
  --text-light: var(--foreground);
  --text-muted: var(--foreground-muted);

  /* Fonts */
  --font-serif: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(201, 163, 92, 0.1);
  --shadow-md: 0 8px 24px rgba(201, 163, 92, 0.15);
  --shadow-lg: 0 20px 50px rgba(201, 163, 92, 0.2);
  --shadow-glow: 0 0 30px rgba(201, 163, 92, 0.4);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- Base Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === COSMIC BACKGROUND SYSTEM (Premium) === */
/* Layer 0: Background Image */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('../../backgrounds/bg-cosmos-gold.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Layer 1: Dark Gradient Overlay */
.cosmic-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 15, 0.6) 0%,
    rgba(13, 13, 15, 0.75) 40%,
    rgba(13, 13, 15, 0.85) 70%,
    rgba(13, 13, 15, 0.95) 100%
  );
  pointer-events: none;
}

/* Layer 2: Vignette Effect */
.cosmic-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(13, 13, 15, 0.2) 40%,
    rgba(13, 13, 15, 0.5) 70%,
    rgba(13, 13, 15, 0.8) 100%
  );
  pointer-events: none;
}

/* Layer 3: Floating Orbs */
.floating-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 3;
  animation: floatOrb 20s ease-in-out infinite;
}

.orb-gold {
  background: var(--gold);
  width: 384px;
  height: 384px;
  top: -10%;
  left: -5%;
}

.orb-teal {
  background: var(--teal-glow, #5EEAD4);
  width: 320px;
  height: 320px;
  bottom: -10%;
  right: -5%;
  animation-delay: -5s;
}

.orb-purple {
  background: #A78BFA;
  width: 256px;
  height: 256px;
  top: 30%;
  right: 10%;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

/* Layer 4: Starfield Canvas (via JS) */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* Main Content Layer */
.cosmic-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* Legacy fallback for pages using cosmic-bg as wrapper */
.cosmic-bg-wrapper {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(201, 163, 92, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(94, 234, 212, 0.05) 0%, transparent 70%),
    var(--background);
  min-height: 100vh;
}

/* === GLASS MORPHISM === */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
}

.glass-gold {
  background: rgba(201, 163, 92, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-gold);
  border-radius: 1rem;
}

.glass-teal {
  background: rgba(13, 148, 136, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 1rem;
}

/* === BUTTONS - GOLD === */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(201, 163, 92, 0.4);
  color: white;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, var(--gold), var(--teal-glow), var(--gold));
  border-radius: inherit;
  filter: blur(15px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-gold:hover::before {
  opacity: 0.6;
}

/* === BUTTONS - GLASS === */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--foreground);
}

.btn-glass:hover {
  background: var(--glass-bg-strong);
  border-color: var(--teal-glow);
  color: var(--teal-glow);
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.2);
}

.font-cinzel {
  font-family: var(--font-serif);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-accent { color: var(--accent); }
.text-accent-dark { color: var(--accent-dark); }
.bg-accent { background-color: var(--accent); }

/* ---------- Glass Effect ---------- */
.glass-warm {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-gold);
  border-radius: 1.5rem;
}

.glass-dark {
  background: rgba(13, 13, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-warm {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
}

.btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(201, 163, 92, 0.4);
  color: var(--accent-dark);
}

.btn-outline:hover {
  background: rgba(201, 163, 92, 0.1);
  border-color: var(--accent);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--background-card);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid var(--glass-border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: var(--glass-border-gold);
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
}

.badge-accent {
  background: rgba(201, 163, 92, 0.15);
  color: var(--accent-dark);
  border: 1px solid rgba(201, 163, 92, 0.3);
}

.badge-popular {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: white;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(201, 163, 92, 0.5); }
  50% { box-shadow: 0 0 20px rgba(201, 163, 92, 0.8); }
}

/* ---------- Navigation ---------- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.nav-fixed.scrolled {
  background: rgba(13, 13, 15, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--foreground-muted);
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  opacity: 1;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-menu.open {
  transform: translateX(0);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

/* ========== MAGICAL HERO EFFECTS ========== */

/* --- Fireflies / Wisps --- */
.fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.firefly {
  position: absolute;
  width: var(--size, 6px);
  height: var(--size, 6px);
  background: radial-gradient(circle, rgba(244, 227, 177, 0.9) 0%, rgba(201, 163, 92, 0.6) 40%, transparent 70%);
  border-radius: 50%;
  animation: fireflyFloat var(--duration, 15s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: blur(1px);
  box-shadow:
    0 0 10px rgba(244, 227, 177, 0.8),
    0 0 20px rgba(201, 163, 92, 0.5),
    0 0 40px rgba(201, 163, 92, 0.3);
}

.firefly::after {
  content: '';
  position: absolute;
  inset: -100%;
  background: radial-gradient(circle, rgba(244, 227, 177, 0.15) 0%, transparent 50%);
  animation: fireflyGlow 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes fireflyFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  5% { opacity: 0.8; }
  20% {
    transform: translate(calc(var(--moveX, 50px) * 0.3), calc(var(--moveY, -100px) * 0.3)) scale(1.1);
  }
  40% {
    transform: translate(calc(var(--moveX, 50px) * 0.6), calc(var(--moveY, -100px) * 0.5)) scale(0.9);
    opacity: 1;
  }
  60% {
    transform: translate(calc(var(--moveX, 50px) * 0.8), calc(var(--moveY, -100px) * 0.7)) scale(1.05);
  }
  80% {
    transform: translate(var(--moveX, 50px), calc(var(--moveY, -100px) * 0.9)) scale(0.95);
    opacity: 0.6;
  }
  95% { opacity: 0; }
}

@keyframes fireflyGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.3); }
}

/* --- Mystical Fog Layers --- */
.mist-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.mist {
  position: absolute;
  width: 200%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 800 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: soft-light;
}

.mist-1 {
  animation: mistDrift 60s linear infinite;
  filter: blur(30px);
  background-color: rgba(244, 227, 177, 0.1);
}

.mist-2 {
  animation: mistDrift 45s linear infinite reverse;
  animation-delay: -20s;
  filter: blur(50px);
  opacity: 0.05;
  background-color: rgba(201, 163, 92, 0.1);
}

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

/* --- Starfield --- */
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: starTwinkle var(--duration, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

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

/* --- Light Rays --- */
.light-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.ray {
  position: absolute;
  top: -20%;
  width: 2px;
  height: 140%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(244, 227, 177, 0.03) 20%,
    rgba(244, 227, 177, 0.08) 50%,
    rgba(244, 227, 177, 0.03) 80%,
    transparent 100%
  );
  transform-origin: top center;
  animation: rayPulse var(--duration, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: blur(2px);
}

@keyframes rayPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1) rotate(var(--angle, 0deg)); }
  50% { opacity: 0.7; transform: scaleY(1.1) rotate(var(--angle, 0deg)); }
}

/* --- Aurora Effect --- */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.15;
  mix-blend-mode: screen;
}

.aurora-gradient {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(74, 124, 89, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(201, 163, 92, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 40% 80%, rgba(139, 105, 20, 0.2) 0%, transparent 50%);
  animation: auroraDrift 20s ease-in-out infinite;
}

@keyframes auroraDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(3%, -2%) rotate(1deg); }
  50% { transform: translate(-2%, 3%) rotate(-1deg); }
  75% { transform: translate(-3%, -1%) rotate(0.5deg); }
}

/* --- Magical Runes (orbiting symbols) --- */
.rune-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
}

.rune-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(201, 163, 92, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.rune-ring-1 {
  width: 500px;
  height: 500px;
  animation: runeRotate 60s linear infinite;
}

.rune-ring-2 {
  width: 700px;
  height: 700px;
  animation: runeRotate 90s linear infinite reverse;
}

.rune-symbol {
  position: absolute;
  font-size: 1.2rem;
  color: rgba(201, 163, 92, 0.25);
  text-shadow: 0 0 10px rgba(201, 163, 92, 0.3);
  animation: runeGlow 4s ease-in-out infinite;
}

@keyframes runeRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes runeGlow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

/* --- Hero Title Animation --- */
.hero-title-word {
  display: inline-block;
  animation: heroWordReveal 1.2s ease-out forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
  transform: translateY(40px) rotateX(-15deg);
}

@keyframes heroWordReveal {
  0% {
    opacity: 0;
    transform: translateY(40px) rotateX(-15deg);
    filter: blur(10px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
  }
}

/* --- Hero Subtitle Shimmer --- */
.hero-subtitle {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(244, 227, 177, 1) 25%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(244, 227, 177, 1) 75%,
    rgba(255, 255, 255, 0.85) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Combined animation for hero-title-word + hero-subtitle */
.hero-title-word.hero-subtitle {
  animation: heroWordReveal 1.2s ease-out forwards, subtitleShimmer 8s linear 1.2s infinite;
}

@keyframes subtitleShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Floating CTA Glow --- */
.hero-cta-primary {
  position: relative;
  overflow: visible;
}

.hero-cta-primary::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, #C9A35C, #F4E3B1, #C9A35C);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.6;
  filter: blur(15px);
  animation: ctaGlow 3s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* --- Mouse Parallax Layer Classes --- */
.parallax-layer {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* --- Entrance Animation Delays --- */
.entrance-1 { animation-delay: 0.2s; }
.entrance-2 { animation-delay: 0.4s; }
.entrance-3 { animation-delay: 0.6s; }
.entrance-4 { animation-delay: 0.8s; }
.entrance-5 { animation-delay: 1.0s; }
.entrance-6 { animation-delay: 1.2s; }

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-icon {
  font-size: 4rem;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 100;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* ---------- Paper Texture ---------- */
.paper-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

/* ---------- Oracle Card ---------- */
.oracle-card {
  perspective: 1000px;
  cursor: pointer;
}

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

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

.oracle-card-front,
.oracle-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  overflow: hidden;
}

.oracle-card-back {
  transform: rotateY(180deg);
}

.oracle-card.reversed .oracle-card-back img {
  transform: rotate(180deg);
}

/* ---------- Price Tags ---------- */
.price {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--accent-dark);
}

.price-large {
  font-size: 3rem;
}

.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.5;
}

.price-discount {
  background: rgba(201, 163, 92, 0.2);
  color: var(--accent-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---------- Rating Stars ---------- */
.stars {
  display: flex;
  gap: 0.125rem;
  color: var(--accent);
}

/* ---------- Testimonials ---------- */
.testimonial {
  position: relative;
  padding: 2rem;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 1rem;
  font-size: 5rem;
  font-family: var(--font-serif);
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
}

/* ---------- Form Elements ---------- */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--foreground);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--gold);
  background: var(--glass-bg-strong);
  box-shadow: 0 0 0 3px rgba(201, 163, 92, 0.15);
}

.form-input::placeholder {
  color: var(--foreground-muted);
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

/* ---------- Quantity Selector ---------- */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(201, 163, 92, 0.4);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quantity-btn:hover {
  background: rgba(201, 163, 92, 0.1);
  border-color: var(--accent);
}

.quantity-input {
  width: 4rem;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid rgba(201, 163, 92, 0.4);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 1rem;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--background-card);
  border-top: 1px solid var(--glass-border);
  color: var(--foreground);
  padding: 4rem 0 2rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-light);
}

.footer-heading {
  font-family: var(--font-serif);
  color: white;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ---------- Social Icons ---------- */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 163, 92, 0.3);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ---------- Magical Effects ---------- */
@keyframes golden-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(201, 163, 92, 0.3),
                0 0 40px rgba(201, 163, 92, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(201, 163, 92, 0.5),
                0 0 60px rgba(201, 163, 92, 0.3);
  }
}

.glow-effect {
  animation: golden-pulse 3s ease-in-out infinite;
}

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

.sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

/* ---------- Runes Circle ---------- */
.runes-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(201, 163, 92, 0.3);
  animation: rotate-slow 60s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Runes circle bleibt beim Kartenziehen sichtbar */
.runes-circle-container.card-revealed {
  opacity: 0.7;
  transition: opacity 1s ease;
}

/* ---------- Magical Aura System ---------- */
.magical-aura {
  position: absolute;
  inset: -100px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 5;
}

.magical-aura.active {
  opacity: 1;
}

/* Sanftere Aura wenn Karte revealed */
.magical-aura.active.soft {
  opacity: 0.4;
}

/* Golden Energy Rings */
.magical-aura .energy-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
}

.magical-aura.active .energy-ring {
  opacity: 0.4;
  animation: golden-ring-pulse 4s ease-in-out infinite;
}

.magical-aura .energy-ring:nth-child(1) { inset: 25%; animation-delay: 0s; }
.magical-aura .energy-ring:nth-child(2) { inset: 15%; animation-delay: 0.7s; }
.magical-aura .energy-ring:nth-child(3) { inset: 5%; animation-delay: 1.4s; }

@keyframes golden-ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
    box-shadow: 0 0 15px rgba(201, 163, 92, 0.2);
  }
  50% {
    transform: scale(1.03);
    opacity: 0.15;
    box-shadow: 0 0 30px rgba(201, 163, 92, 0.3);
  }
}

/* Mystical Symbols */
.mystical-symbols {
  position: absolute;
  inset: 0;
}

.mystical-symbol {
  position: absolute;
  font-size: 20px;
  color: var(--accent);
  opacity: 0;
  text-shadow: 0 0 10px rgba(201, 163, 92, 0.5);
}

.magical-aura.active .mystical-symbol {
  opacity: 0.5;
  animation: float-symbol 5s ease-in-out infinite;
}

.mystical-symbol:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.mystical-symbol:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.6s; }
.mystical-symbol:nth-child(3) { bottom: 25%; left: 8%; animation-delay: 1.2s; }
.mystical-symbol:nth-child(4) { bottom: 15%; right: 18%; animation-delay: 1.8s; }
.mystical-symbol:nth-child(5) { top: 50%; left: 5%; animation-delay: 0.3s; }
.mystical-symbol:nth-child(6) { top: 45%; right: 5%; animation-delay: 0.9s; }

@keyframes float-symbol {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  50% { transform: translateY(-10px) rotate(5deg); opacity: 0.3; }
}

/* Floating Orbs */
.floating-orbs {
  position: absolute;
  inset: 0;
}

.floating-orb {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, var(--accent-light) 0%, var(--accent) 60%, transparent 80%);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 15px rgba(201, 163, 92, 0.6);
}

.magical-aura.active .floating-orb {
  opacity: 0.7;
  animation: orb-float 6s ease-in-out infinite;
}

.floating-orb:nth-child(1) { top: 15%; left: 25%; animation-delay: 0s; }
.floating-orb:nth-child(2) { top: 30%; right: 15%; animation-delay: 0.8s; }
.floating-orb:nth-child(3) { bottom: 35%; left: 12%; animation-delay: 1.6s; }
.floating-orb:nth-child(4) { bottom: 20%; right: 28%; animation-delay: 2.4s; }

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  25% { transform: translate(8px, -12px) scale(1.1); opacity: 0.5; }
  50% { transform: translate(-4px, -20px) scale(0.9); opacity: 0.4; }
  75% { transform: translate(-10px, -8px) scale(1.05); opacity: 0.5; }
}

/* Sparkle Stars */
.sparkle-stars {
  position: absolute;
  inset: 0;
}

.sparkle-star {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent-light);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0;
}

.magical-aura.active .sparkle-star {
  animation: sparkle-twinkle 2.5s ease-in-out infinite;
}

.sparkle-star:nth-child(1) { top: 8%; left: 35%; animation-delay: 0s; }
.sparkle-star:nth-child(2) { top: 25%; right: 25%; animation-delay: 0.4s; }
.sparkle-star:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 0.8s; }
.sparkle-star:nth-child(4) { bottom: 10%; right: 35%; animation-delay: 1.2s; }
.sparkle-star:nth-child(5) { top: 50%; left: 0%; animation-delay: 0.2s; }
.sparkle-star:nth-child(6) { top: 40%; right: 0%; animation-delay: 1s; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 0.8; transform: scale(1) rotate(180deg); }
}

/* ---------- Card Shuffle Animation ---------- */
@keyframes card-shuffle {
  0%, 100% { transform: translateX(0) rotateY(0); }
  25% { transform: translateX(-12px) rotateY(-10deg); }
  75% { transform: translateX(12px) rotateY(10deg); }
}

.oracle-card-inner.shuffling {
  animation: card-shuffle 0.5s ease-in-out;
}

/* ---------- Card Glow when Revealed ---------- */
.oracle-card.card-revealed {
  box-shadow:
    0 0 30px rgba(201, 163, 92, 0.3),
    0 0 60px rgba(201, 163, 92, 0.2);
  animation: card-warm-glow 3s ease-in-out infinite;
}

@keyframes card-warm-glow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(201, 163, 92, 0.3), 0 0 60px rgba(201, 163, 92, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(201, 163, 92, 0.4), 0 0 80px rgba(201, 163, 92, 0.3);
  }
}

/* ---------- Card Aura Container (exakt Kartengröße) ---------- */
.card-aura-container {
  position: relative;
  /* Echtes Kartenformat: 768×1376px = Seitenverhältnis 0.5581 */
  aspect-ratio: 848 / 1264 !important;
}

/* Card Glow Ring - exakt passend zur Kartengröße, KEIN Overflow */
.card-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.8s ease;
  /* Goldener Glow nur als Box-Shadow, kein Border der die Größe ändert */
  box-shadow:
    0 0 25px rgba(201, 163, 92, 0.4),
    0 0 50px rgba(201, 163, 92, 0.25),
    inset 0 0 15px rgba(201, 163, 92, 0.15);
}

.card-glow-ring.active {
  opacity: 1;
  animation: glow-ring-pulse 3s ease-in-out infinite;
}

@keyframes glow-ring-pulse {
  0%, 100% {
    box-shadow:
      0 0 25px rgba(201, 163, 92, 0.4),
      0 0 50px rgba(201, 163, 92, 0.25),
      inset 0 0 15px rgba(201, 163, 92, 0.15);
  }
  50% {
    box-shadow:
      0 0 35px rgba(201, 163, 92, 0.5),
      0 0 70px rgba(201, 163, 92, 0.35),
      inset 0 0 20px rgba(201, 163, 92, 0.2);
  }
}

/* Runes Ring SVG - exakt passend zur Kartengröße, KEIN Overflow */
.runes-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.runes-ring.active {
  opacity: 1;
}

.runes-ring text {
  animation: runes-glow 4s ease-in-out infinite;
}

@keyframes runes-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* ---------- Particles Container ---------- */
.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 10;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px var(--accent-light);
}

.particle.animate {
  animation: particle-burst 0.8s ease-out forwards;
}

@keyframes particle-burst {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}

/* ---------- Card Info Visibility ---------- */
#card-info {
  opacity: 0;
  transition: opacity 0.8s ease;
}

#card-info.visible {
  opacity: 1;
}

/* ---------- Energy Rings ---------- */
.energy-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 163, 92, 0.2);
  animation: energy-pulse 4s ease-in-out infinite;
}

@keyframes energy-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .btn {
    padding: 0.75rem 1.5rem;
  }

  .hide-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .nav-fixed,
  .back-to-top,
  .preloader,
  .scroll-progress {
    display: none !important;
  }
}

/* ============================================
   UNIVERSELLES KARTEN-SYSTEM
   Alle Orakelkarten MÜSSEN diese Klassen nutzen!
   Aspect-Ratio: 768x1376 (echte Kartengröße)
   ============================================ */

/* Basis-Karte: Behält IMMER das 768:1376 Verhältnis */
.oracle-card-frame {
  aspect-ratio: 848 / 1264;
  overflow: visible;
  border-radius: 0.75rem;
  position: relative;
}

.oracle-card-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  /* Zeigt das komplette Bild ohne Cropping */
}

/* Variante: Mit sichtbarem Rahmen (volle Karte) */
.oracle-card-frame.with-border img {
  object-fit: contain;
  background: #2B2218;
}

/* Variante: Cropped (ohne äußeren dekorativen Rand) */
.oracle-card-frame.cropped img {
  object-fit: cover;
  /* Zoomt leicht rein um den dunklen Rand abzuschneiden */
  transform: scale(1.08);
}

/* Größen-Varianten */
.oracle-card-frame.card-xs { width: 80px; }
.oracle-card-frame.card-sm { width: 120px; }
.oracle-card-frame.card-md { width: 160px; }
.oracle-card-frame.card-lg { width: 200px; }
.oracle-card-frame.card-xl { width: 280px; }
.oracle-card-frame.card-full { width: 100%; max-width: 320px; }

/* Hover-Effekt für alle Karten */
.oracle-card-frame.interactive {
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.oracle-card-frame.interactive:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(201, 163, 92, 0.25),
    0 0 20px rgba(201, 163, 92, 0.15);
}

/* Glow-Effekt */
.oracle-card-frame.glow {
  box-shadow: 0 0 20px rgba(201, 163, 92, 0.2);
}

.oracle-card-frame.glow:hover {
  box-shadow:
    0 0 30px rgba(201, 163, 92, 0.4),
    0 0 60px rgba(201, 163, 92, 0.2);
}

/* ============================================
   NEUE INTERAKTIVE KARTEN-GALERIE
   ============================================ */

/* ---------- Card Carousel ---------- */
.card-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.card-carousel::-webkit-scrollbar {
  display: none;
}

/* ---------- Interactive Card Item ---------- */
.card-item {
  flex: 0 0 180px;
  scroll-snap-align: center;
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.card-item:hover {
  transform: translateY(-15px) scale(1.05);
  z-index: 10;
}

/* Legacy support for direct img children */
.card-item > img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(43, 34, 24, 0.2);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.card-item:hover > img {
  box-shadow:
    0 20px 50px rgba(201, 163, 92, 0.3),
    0 0 30px rgba(201, 163, 92, 0.2);
}

/* Nested oracle-card-frame in card-item */
.card-item .oracle-card-frame {
  width: 100%;
  box-shadow: 0 10px 40px rgba(43, 34, 24, 0.2);
}

.card-item:hover .oracle-card-frame {
  transform: none; /* Disable nested transform, parent handles it */
}

/* Card with floating effect */
.card-item.floating {
  animation: card-float 4s ease-in-out infinite;
}

.card-item.floating:nth-child(2n) {
  animation-delay: 0.5s;
}

.card-item.floating:nth-child(3n) {
  animation-delay: 1s;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Card Preview Items (Clean Fan) ---------- */
.card-preview-item {
  display: block;
  width: 120px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
}

.card-preview-item img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow:
    0 8px 30px rgba(43, 34, 24, 0.2),
    0 0 15px rgba(201, 163, 92, 0.1);
}

.card-preview-item:hover {
  transform: translateY(-25px) scale(1.1) rotate(0deg) !important;
  z-index: 10;
}

.card-preview-item:hover img {
  box-shadow:
    0 20px 50px rgba(201, 163, 92, 0.35),
    0 0 30px rgba(201, 163, 92, 0.25);
}

.card-preview-item.card-preview-center {
  width: 140px;
}

.card-preview-item.card-preview-center img {
  box-shadow:
    0 15px 40px rgba(201, 163, 92, 0.3),
    0 0 25px rgba(201, 163, 92, 0.2);
}

@media (min-width: 768px) {
  .card-preview-item {
    width: 150px;
  }
  .card-preview-item.card-preview-center {
    width: 180px;
  }
}

/* ---------- Card Grid with Hover Reveal ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.card-grid-item {
  position: relative;
  aspect-ratio: 848/1264;
  border-radius: 1rem;
  overflow: visible;
  cursor: pointer;
  transition: opacity 0.3s ease, box-shadow 0.4s ease;
}

.card-grid-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
}

.card-grid-item:hover {
  box-shadow: 0 10px 30px rgba(201, 163, 92, 0.3);
}

.card-grid-item:hover img {
  /* No zoom - keep static */
}

.card-grid-item .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 34, 24, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.card-grid-item:hover .card-overlay {
  opacity: 1;
}

.card-overlay h4 {
  color: white;
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.card-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

/* ---------- Living Card Grid Items ---------- */
.card-grid-item.living {
  box-shadow:
    0 0 0 1px rgba(201, 163, 92, 0.2),
    0 10px 30px -8px rgba(43, 34, 24, 0.25),
    0 0 20px rgba(201, 163, 92, 0.1);
}

.card-grid-item.living:hover {
  box-shadow:
    0 0 0 2px rgba(201, 163, 92, 0.4),
    0 20px 50px -10px rgba(43, 34, 24, 0.35),
    0 0 40px rgba(201, 163, 92, 0.25);
}

.card-grid-item .holo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 200, 180, 0.04) 20%,
    rgba(201, 163, 92, 0.06) 40%,
    rgba(180, 220, 180, 0.04) 60%,
    rgba(180, 200, 220, 0.04) 80%,
    transparent 100%
  );
  background-size: 400% 400%;
  animation: holoShift 12s ease infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 2;
}

.card-grid-item:hover .holo-overlay {
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 220, 200, 0.08) 15%,
    rgba(201, 163, 92, 0.1) 30%,
    rgba(180, 240, 180, 0.08) 45%,
    rgba(180, 200, 240, 0.08) 60%,
    rgba(255, 200, 220, 0.06) 75%,
    transparent 100%
  );
  animation: holoShiftFast 4s ease infinite;
}

.card-grid-item .shine-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.15) 55%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  animation: shineGlide 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

.card-grid-item:hover .shine-overlay {
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.25) 42%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.25) 58%,
    transparent 65%,
    transparent 100%
  );
  animation: shineGlideFast 2.5s ease-in-out infinite;
}

.card-grid-item .card-overlay {
  z-index: 4;
}

/* ---------- Magical Background Sections ---------- */
.section-bg {
  position: relative;
  overflow: hidden;
}

.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-bg > * {
  position: relative;
  z-index: 1;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Interactive CTA Card ---------- */
.cta-card-interactive {
  position: relative;
  background: linear-gradient(135deg, rgba(251, 247, 239, 0.95), rgba(244, 227, 177, 0.9));
  border-radius: 2rem;
  padding: 3rem;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cta-card-interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(201, 163, 92, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.cta-card-interactive:hover::before {
  transform: translateX(100%);
}

.cta-card-interactive:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(201, 163, 92, 0.3);
}

/* ---------- Glowing Border ---------- */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--accent), var(--accent-light), var(--accent));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(8px);
}

.glow-border:hover::after {
  opacity: 0.6;
}

/* ---------- Pulse Ring ---------- */
.pulse-ring {
  position: relative;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-expand 2s ease-out infinite;
}

@keyframes pulse-expand {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

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

.card-reveal.revealed {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Stagger delays for grid */
.card-reveal:nth-child(1) { transition-delay: 0.05s; }
.card-reveal:nth-child(2) { transition-delay: 0.1s; }
.card-reveal:nth-child(3) { transition-delay: 0.15s; }
.card-reveal:nth-child(4) { transition-delay: 0.2s; }
.card-reveal:nth-child(5) { transition-delay: 0.25s; }
.card-reveal:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Social Proof Counter ---------- */
.counter-stat {
  text-align: center;
  padding: 1.5rem;
}

.counter-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent-dark);
  line-height: 1;
}

.counter-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ---------- Testimonial Slider ---------- */
.testimonial-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(43, 34, 24, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  font-family: var(--font-display);
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
}

/* ---------- Urgency Banner ---------- */
.urgency-banner {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-dark));
  color: white;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ---------- Trust Badges ---------- */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.trust-badge:hover {
  opacity: 1;
}

.trust-badge iconify-icon {
  font-size: 2rem;
  color: var(--accent);
}

/* ============================================
   LIVING CARD PAGES - Full Experience
   ============================================ */

/* ---------- Living Page Body & Base Styles ---------- */
.living-page-body {
  background: var(--bg, #FBF7EF);
  color: var(--text, #2B2218);
  font-family: 'Cormorant Garamond', serif;
}

/* ---------- Living Page Layout ---------- */
.living-page {
  padding-top: 5rem;
  padding-bottom: 4rem;
  min-height: 100vh;
  position: relative;
}

.living-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.content-layer {
  position: relative;
  z-index: 1;
}

/* ---------- Card Stage with Mystical Circles ---------- */
.card-column {
  position: relative;
}

.card-stage {
  position: sticky;
  top: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

@media (max-width: 1024px) {
  .card-stage {
    position: relative;
    top: 0;
    padding: 1.5rem;
  }
}

.mystical-circles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 620px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.rune-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}

.rune-circle:nth-child(1) {
  width: 400px;
  height: 600px;
  border: 1px dashed rgba(201, 163, 92, 0.35);
  transform: translate(-50%, -50%);
  animation: runeRotateCW 120s linear infinite;
}

.rune-circle:nth-child(2) {
  width: 360px;
  height: 540px;
  border: 1px dotted rgba(201, 163, 92, 0.25);
  transform: translate(-50%, -50%);
  animation: runeRotateCCW 90s linear infinite;
}

.rune-circle:nth-child(3) {
  width: 320px;
  height: 480px;
  border: 1px dashed rgba(201, 163, 92, 0.2);
  transform: translate(-50%, -50%);
  animation: runeRotateCW 70s linear infinite;
}

@keyframes runeRotateCW {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes runeRotateCCW {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

.rune-symbol {
  position: absolute;
  font-size: 16px;
  color: var(--accent);
  opacity: 0.5;
  text-shadow: 0 0 8px rgba(201, 163, 92, 0.4);
}

.rune-circle:nth-child(1) .rune-symbol:nth-child(1) { top: -12px; left: 50%; transform: translateX(-50%); }
.rune-circle:nth-child(1) .rune-symbol:nth-child(2) { top: 50%; right: -12px; transform: translateY(-50%); }
.rune-circle:nth-child(1) .rune-symbol:nth-child(3) { bottom: -12px; left: 50%; transform: translateX(-50%); }
.rune-circle:nth-child(1) .rune-symbol:nth-child(4) { top: 50%; left: -12px; transform: translateY(-50%); }

/* ---------- Floating Orbs ---------- */
.orb-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 580px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.living-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: livingOrbFloat 10s ease-in-out infinite;
}

.orb-gold,
.living-orb-gold {
  width: 6px; height: 6px;
  background: radial-gradient(circle, var(--accent-light, #F4E3B1), var(--accent, #C9A35C));
  box-shadow: 0 0 12px rgba(201, 163, 92, 0.5);
}

.orb-secondary {
  width: 5px; height: 5px;
  box-shadow: 0 0 10px currentColor;
}

.living-orb-rose {
  width: 5px; height: 5px;
  background: radial-gradient(circle, #FFD4E5, #FFB6C1);
  box-shadow: 0 0 10px rgba(255, 182, 193, 0.4);
}

.living-orb-green {
  width: 5px; height: 5px;
  background: radial-gradient(circle, #C8E6C9, #81C784);
  box-shadow: 0 0 10px rgba(129, 199, 132, 0.4);
}

@keyframes livingOrbFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  25% { transform: translate(10px, -20px); opacity: 0.8; }
  50% { transform: translate(-5px, -35px); opacity: 0.4; }
  75% { transform: translate(-15px, -15px); opacity: 0.7; }
}

/* ---------- The Living Card ---------- */
.living-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 848 / 1264;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 163, 92, 0.3),
    0 25px 50px -12px rgba(43, 34, 24, 0.35),
    0 0 60px rgba(201, 163, 92, 0.2);
  animation: livingCardFloat 8s ease-in-out infinite;
}

@keyframes livingCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.living-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Holographic overlay */
.holo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 200, 180, 0.06) 20%,
    rgba(201, 163, 92, 0.08) 40%,
    rgba(180, 220, 180, 0.06) 60%,
    rgba(180, 200, 220, 0.06) 80%,
    transparent 100%
  );
  background-size: 400% 400%;
  animation: holoShift 12s ease infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes holoShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gliding shimmer effect */
.shine-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.25) 55%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  animation: shineGlide 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineGlide {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

/* ---------- Living Card Hover Effect - Wobbly & Shimmering ---------- */
.card-aura-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-aura-wrapper .living-card {
  transition: box-shadow 0.4s ease;
}

@keyframes cardWobble {
  0%, 100% { transform: translateX(0) rotateY(0deg) translateY(0); }
  20% { transform: translateX(-8px) rotateY(-6deg) translateY(-4px); }
  40% { transform: translateX(6px) rotateY(4deg) translateY(-6px); }
  60% { transform: translateX(-4px) rotateY(-3deg) translateY(-4px); }
  80% { transform: translateX(3px) rotateY(2deg) translateY(-2px); }
}

.card-aura-wrapper:hover .living-card,
.card-aura-wrapper.hover-active .living-card {
  animation: cardWobble 2.5s ease-in-out infinite;
  box-shadow:
    0 0 0 2px rgba(201, 163, 92, 0.5),
    0 35px 70px -15px rgba(43, 34, 24, 0.45),
    0 0 60px rgba(201, 163, 92, 0.35),
    0 0 100px rgba(74, 124, 89, 0.2);
}

.card-aura-wrapper:hover .holo-overlay,
.card-aura-wrapper.hover-active .holo-overlay {
  opacity: 1;
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 220, 200, 0.1) 15%,
    rgba(201, 163, 92, 0.12) 30%,
    rgba(180, 240, 180, 0.1) 45%,
    rgba(180, 200, 240, 0.1) 60%,
    rgba(255, 200, 220, 0.08) 75%,
    transparent 100%
  );
  animation: holoShiftFast 4s ease infinite;
}

@keyframes holoShiftFast {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card-aura-wrapper:hover .shine-overlay,
.card-aura-wrapper.hover-active .shine-overlay {
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 42%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.35) 58%,
    transparent 65%,
    transparent 100%
  );
  background-size: 250% 100%;
  animation: shineGlideFast 2s ease-in-out infinite;
}

@keyframes shineGlideFast {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

.glow-border {
  position: absolute;
  inset: -6px;
  border-radius: 1.4rem;
  background: linear-gradient(135deg,
    rgba(201, 163, 92, 0.6),
    rgba(74, 124, 89, 0.5),
    rgba(255, 182, 193, 0.4),
    rgba(201, 163, 92, 0.6)
  );
  background-size: 300% 300%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
  filter: blur(12px);
}

.card-aura-wrapper:hover .glow-border,
.card-aura-wrapper.hover-active .glow-border {
  opacity: 1;
  animation: glowBorderRotate 3s ease infinite;
}

@keyframes glowBorderRotate {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Card Info Panel ---------- */
.card-title-main {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.principle-subtitle {
  font-size: 1.1rem;
  color: var(--accent-dark);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ---------- The Whole - 22 Principles Visualization ---------- */
.whole-section {
  background: linear-gradient(135deg, rgba(201, 163, 92, 0.08), rgba(201, 163, 92, 0.03));
  border: 1px solid rgba(201, 163, 92, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.whole-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.whole-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
}

.principles-wheel {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--accent-dark);
  text-align: center;
  line-height: 1.2;
}

.wheel-segment {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(201, 163, 92, 0.3);
  border-radius: 50%;
  transform-origin: center;
  transition: all 0.3s ease;
}

.wheel-segment.active {
  background: var(--accent);
  box-shadow: 0 0 15px rgba(201, 163, 92, 0.6);
  width: 16px;
  height: 16px;
}

/* Element colors for wheel segments */
.wheel-segment.element-earth { background: rgba(74, 124, 89, 0.5); }
.wheel-segment.element-earth.active { background: #4a7c59; box-shadow: 0 0 15px rgba(74, 124, 89, 0.6); }
.wheel-segment.element-fire { background: rgba(220, 100, 60, 0.5); }
.wheel-segment.element-fire.active { background: #dc6c3c; box-shadow: 0 0 15px rgba(220, 100, 60, 0.6); }
.wheel-segment.element-water { background: rgba(70, 130, 180, 0.5); }
.wheel-segment.element-water.active { background: #4682b4; box-shadow: 0 0 15px rgba(70, 130, 180, 0.6); }
.wheel-segment.element-air { background: rgba(176, 196, 222, 0.5); }
.wheel-segment.element-air.active { background: #b0c4de; box-shadow: 0 0 15px rgba(176, 196, 222, 0.6); }
.wheel-segment.element-aether { background: rgba(147, 112, 219, 0.5); }
.wheel-segment.element-aether.active { background: #9370db; box-shadow: 0 0 15px rgba(147, 112, 219, 0.6); }
.wheel-segment.element-light { background: rgba(255, 215, 0, 0.5); }
.wheel-segment.element-light.active { background: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
.wheel-segment.element-shadow { background: rgba(75, 0, 130, 0.5); }
.wheel-segment.element-shadow.active { background: #4b0082; box-shadow: 0 0 15px rgba(75, 0, 130, 0.6); }
.wheel-segment.element-kosmos,
.wheel-segment.element-cosmos { background: rgba(138, 43, 226, 0.5); }
.wheel-segment.element-kosmos.active,
.wheel-segment.element-cosmos.active { background: #8a2be2; box-shadow: 0 0 15px rgba(138, 43, 226, 0.6); }

.principle-description {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---------- Element Badge ---------- */
.element-badge-living,
.element-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Element colors for badges */
.element-badge-living.element-earth,
.element-badge.element-earth { background: rgba(74, 124, 89, 0.1); border: 1px solid rgba(74, 124, 89, 0.3); color: #4a7c59; }

.element-badge-living.element-fire,
.element-badge.element-fire { background: rgba(220, 100, 60, 0.1); border: 1px solid rgba(220, 100, 60, 0.3); color: #dc6c3c; }

.element-badge-living.element-water,
.element-badge.element-water { background: rgba(70, 130, 180, 0.1); border: 1px solid rgba(70, 130, 180, 0.3); color: #4682b4; }

.element-badge-living.element-air,
.element-badge.element-air { background: rgba(176, 196, 222, 0.1); border: 1px solid rgba(176, 196, 222, 0.3); color: #708090; }

.element-badge-living.element-light,
.element-badge.element-light { background: rgba(255, 215, 0, 0.1); border: 1px solid rgba(255, 215, 0, 0.3); color: #b8860b; }

.element-badge-living.element-shadow,
.element-badge.element-shadow { background: rgba(75, 0, 130, 0.1); border: 1px solid rgba(75, 0, 130, 0.3); color: #4b0082; }

.element-badge-living.element-kosmos,
.element-badge.element-kosmos,
.element-badge.element-cosmos { background: rgba(138, 43, 226, 0.1); border: 1px solid rgba(138, 43, 226, 0.3); color: #6a0dad; }

/* ---------- Correspondences Grid ---------- */
.correspondences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

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

.correspondence-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(201, 163, 92, 0.2);
  border-radius: 0.75rem;
  padding: 0.875rem;
  text-align: center;
  transition: all 0.3s ease;
}

.correspondence-item:hover {
  background: rgba(201, 163, 92, 0.1);
  border-color: rgba(201, 163, 92, 0.4);
}

.correspondence-icon { font-size: 1.25rem; margin-bottom: 0.25rem; }
.correspondence-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(58, 47, 34, 0.5); margin-bottom: 0.125rem; }
.correspondence-value { font-family: var(--font-serif); font-size: 0.8rem; font-weight: 500; color: var(--text); }

/* ---------- Essence Keywords ---------- */
.essence-section { margin-bottom: 2rem; position: relative; }
.essence-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.essence-title { font-family: var(--font-serif); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-dark); }

.essence-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.keyword {
  position: relative;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  border: 1px solid rgba(201, 163, 92, 0.3);
  border-radius: 50px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  transition: all 0.4s ease;
  cursor: default;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.keyword::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(201, 163, 92, 0.3), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  z-index: -1;
}

.keyword:hover {
  background: linear-gradient(135deg, rgba(201, 163, 92, 0.15), rgba(255,255,255,0.6));
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 163, 92, 0.2);
}

.keyword:hover::before { width: 150%; height: 150%; }
.keyword .keyword-icon { margin-right: 0.5rem; opacity: 0.7; }

.keyword:nth-child(1) { animation: keywordFloat 6s ease-in-out infinite; animation-delay: 0s; }
.keyword:nth-child(2) { animation: keywordFloat 6s ease-in-out infinite; animation-delay: 0.5s; }
.keyword:nth-child(3) { animation: keywordFloat 6s ease-in-out infinite; animation-delay: 1s; }
.keyword:nth-child(4) { animation: keywordFloat 6s ease-in-out infinite; animation-delay: 1.5s; }
.keyword:nth-child(5) { animation: keywordFloat 6s ease-in-out infinite; animation-delay: 2s; }
.keyword:nth-child(6) { animation: keywordFloat 6s ease-in-out infinite; animation-delay: 2.5s; }

@keyframes keywordFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ---------- Meaning Cards - Light & Shadow ---------- */
.meanings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .meanings-grid { grid-template-columns: 1fr; }
}

.meaning-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(201, 163, 92, 0.2);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.4s ease;
  overflow: hidden;
}

.meaning-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.meaning-card:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(201, 163, 92, 0.15);
}

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

.meaning-card.light-card { border-left: 3px solid rgba(74, 222, 128, 0.5); }
.meaning-card.shadow-card { border-left: 3px solid rgba(251, 191, 36, 0.5); }

.meaning-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }

.meaning-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.light-card .meaning-icon { background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(253, 224, 71, 0.2)); }
.shadow-card .meaning-icon { background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(156, 163, 175, 0.2)); }

.meaning-title { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--text); }
.meaning-text { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }

/* ---------- Affirmation Box ---------- */
.affirmation-box {
  position: relative;
  background: linear-gradient(135deg, rgba(201, 163, 92, 0.08), rgba(74, 124, 89, 0.06), rgba(201, 163, 92, 0.08));
  border: 1px solid rgba(201, 163, 92, 0.25);
  border-radius: 1.5rem;
  padding: 2rem 2rem 2rem 2.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.affirmation-box::before {
  content: '✦';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.6;
  animation: affirmationGlow 3s ease-in-out infinite;
}

.affirmation-box::after {
  content: '✦';
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.4;
  animation: affirmationGlow 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

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

.affirmation-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.affirmation-label { font-family: var(--font-serif); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-dark); }
.affirmation-text { font-size: 1.15rem; font-style: italic; line-height: 1.8; color: var(--text); text-align: center; }

/* ---------- Wisdom Box ---------- */
.wisdom-box {
  background: rgba(201, 163, 92, 0.06);
  border: 1px solid rgba(201, 163, 92, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.wisdom-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.wisdom-title { font-family: var(--font-serif); font-size: 0.9rem; font-weight: 600; color: var(--accent-dark); }
.wisdom-text { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }

/* ---------- Card Navigation Bar ---------- */
.card-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(201, 163, 92, 0.2);
  margin-top: 1.5rem;
}

.nav-link-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-dark);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.nav-link-card:hover { color: var(--accent); }

/* ---------- Audio Toggle ---------- */
.audio-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
}

.audio-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(201, 163, 92, 0.3);
  color: var(--accent-dark);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.audio-toggle:hover {
  background: rgba(201, 163, 92, 0.1);
  border-color: var(--accent);
}

.audio-toggle.playing {
  background: rgba(201, 163, 92, 0.15);
  box-shadow: 0 0 20px rgba(201, 163, 92, 0.3);
}
