/**
 * Know Your Future — Celestial Theme Styles
 * Domain: future.kihikila.in
 */

:root {
  --bg-deep: #070913;
  --bg-card: rgba(18, 22, 42, 0.82);
  --bg-card-hover: rgba(28, 34, 64, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.035);
  
  --gold-glow: #F5C542;
  --gold-dark: #C69214;
  --gold-light: #FDE68A;
  
  --accent-purple: #8B5CF6;
  --accent-indigo: #6366F1;
  --accent-pink: #EC4899;
  --accent-cyan: #06B6D4;
  
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  
  --border-dim: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 197, 66, 0.35);
  --border-active: rgba(139, 92, 246, 0.6);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-celestial: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(139, 92, 246, 0.15);
  --shadow-glow: 0 0 30px rgba(245, 197, 66, 0.22);
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.45);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 15% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Unicode & Emoji Symbol Fallback Optimization (Prevents missing glyph tofu boxes) */
.brand-icon,
.feature-pill span,
.hero-cta-btn span,
.nav-link span,
.mobile-nav-link span,
.cosmic-badge span,
.zodiac-icon,
.zodiac-symbol,
.tarot-symbol,
.pill-highlight span,
.lang-btn span:first-child {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-style: normal;
  display: inline-block;
  vertical-align: middle;
}

/* Ambient Star Dust Particles */
.star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.content-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFF6D6 0%, #F5C542 50%, #EAB308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cosmic-gradient-text {
  background: linear-gradient(135deg, #A78BFA 0%, #EC4899 50%, #F5C542 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Top Navigation Bar */
.kyf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 19, 0.85);
  border-bottom: 1px solid var(--border-dim);
  transition: all 0.3s ease;
}

.kyf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.kyf-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.25), rgba(139, 92, 246, 0.3));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 0 15px rgba(245, 197, 66, 0.2);
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

.kyf-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.15);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  min-height: 38px;
}

.lang-btn:hover {
  border-color: var(--gold-glow);
  color: var(--gold-glow);
}

/* Mobile Hamburger Toggle Button */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  z-index: 101;
  touch-action: manipulation;
}

.mobile-nav-toggle:hover, .mobile-nav-toggle:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glow);
  outline: none;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 13, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Drawer Panel */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85vw;
  max-width: 340px;
  background: linear-gradient(180deg, #0e1224 0%, #060813 100%);
  border-left: 1px solid var(--border-glow);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dim);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #EF4444;
}

.mobile-drawer-body {
  padding: 1rem 1rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-group-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem 0.25rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  min-height: 48px;
  touch-action: manipulation;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(245, 197, 66, 0.12);
  color: #FFFFFF;
  border-color: var(--border-glow);
  box-shadow: inset 0 0 15px rgba(245, 197, 66, 0.08);
}

.mobile-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-dim);
  background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 991px) {
  .kyf-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
}

@media (min-width: 992px) {
  .kyf-nav {
    display: flex;
  }
  .mobile-nav-toggle {
    display: none;
  }
  .mobile-nav-overlay, .mobile-nav-drawer {
    display: none !important;
  }
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
  position: relative;
}

.cosmic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 0.35rem 1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  font-weight: 400;
}

/* Hero Quick Actions */
.hero-quick-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-cta-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  color: #FFFFFF;
  padding: 0.55rem 1.15rem;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-cta-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-cta-highlight {
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.25), rgba(139, 92, 246, 0.3));
  border-color: var(--gold-glow);
  color: var(--gold-light);
  box-shadow: 0 0 16px rgba(245, 197, 66, 0.3);
}

.hero-cta-highlight:hover {
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.4), rgba(139, 92, 246, 0.45));
  box-shadow: 0 0 25px rgba(245, 197, 66, 0.5);
}

.badge-new-pill {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-mini-new {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  margin-left: 0.25rem;
}

.pill-highlight {
  border-color: rgba(245, 197, 66, 0.5);
}

/* Feature Switcher Pills */
.feature-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .feature-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0.5rem 0.5rem 1rem;
    scrollbar-width: none;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    /* Soft edge fade for horizontal scrolling indication */
    mask-image: linear-gradient(to right, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
  }

  .feature-tabs::-webkit-scrollbar {
    display: none;
  }

  .feature-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.55rem 1.05rem;
    font-size: 0.86rem;
  }
}

.feature-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  user-select: none;
}

.feature-pill:hover {
  background: var(--bg-card-hover);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.feature-pill.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(99, 102, 241, 0.4));
  border-color: var(--gold-glow);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.25);
  transform: translateY(-2px);
}

/* Module Container */
.module-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.module-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   MODULE 1: DAILY HOROSCOPE & PREDICTION
   =================================================== */
.zodiac-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .zodiac-selector-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.zodiac-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  text-align: center;
}

.zodiac-btn:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  color: #FFFFFF;
}

.zodiac-btn.active {
  border-color: var(--gold-glow);
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.15) 0%, rgba(139, 92, 246, 0.2) 100%);
  color: var(--gold-light);
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.2);
  transform: translateY(-4px);
}

.zodiac-glyph {
  font-size: 1.6rem;
  line-height: 1;
}

.zodiac-name {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.zodiac-date-small {
  font-size: 0.64rem;
  color: var(--text-muted);
}

/* Horoscope Card Display */
.horoscope-display-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.horoscope-display-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F5C542, #8B5CF6, #EC4899, #06B6D4);
}

.horoscope-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 1.25rem;
}

.horo-sign-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.horo-sign-icon {
  font-size: 2.75rem;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.15);
}

.horo-sign-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.horo-sign-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Date Switcher: Yesterday / Today / Tomorrow */
.day-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  border-radius: 25px;
  padding: 3px;
}

.day-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-btn.active {
  background: var(--gold-glow);
  color: #000000;
  box-shadow: 0 2px 10px rgba(245, 197, 66, 0.35);
}

/* Scores Grid */
.scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.score-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  position: relative;
}

.score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.score-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
}

.score-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 0.6rem;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F5C542, #8B5CF6);
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* Category Insights (Overview, Love, Career, Health) */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.insight-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.insight-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.insight-icon {
  font-size: 1.25rem;
}

.insight-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.insight-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Lucky Metadata Bar */
.lucky-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.08), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.lucky-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.lucky-tag {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.lucky-val {
  font-weight: 700;
  color: var(--gold-light);
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Affirmation Card */
.affirmation-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(139, 92, 246, 0.08);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #E2E8F0;
  font-size: 0.98rem;
}

/* ===================================================
   MODULE 2: INTERACTIVE TAROT CARD READING (MYTAROTTODAY STYLE)
   =================================================== */
.tarot-controls {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tarot-modes {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.tarot-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tarot-mode-btn:hover {
  color: #FFFFFF;
}

.tarot-mode-btn.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.tarot-action-btn {
  background: linear-gradient(135deg, var(--gold-glow), var(--gold-dark));
  color: #070913;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.85rem 2.25rem;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245, 197, 66, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tarot-action-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(245, 197, 66, 0.5);
}

.tarot-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Question Box for Yes/No & General Readings */
.tarot-question-box {
  max-width: 550px;
  margin: 0 auto 1.5rem;
  display: none;
}

.tarot-question-box.visible {
  display: block;
}

.tarot-question-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glow);
  border-radius: 25px;
  padding: 0.75rem 1.25rem;
  color: #FFFFFF;
  font-size: 0.95rem;
  text-align: center;
  outline: none;
}

.tarot-question-input:focus {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.25);
}

/* Interactive Shuffling Canvas Stage */
.tarot-stage-area {
  position: relative;
  width: 100%;
  min-height: 440px;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 35%, rgba(30, 26, 68, 0.55) 0%, rgba(8, 10, 22, 0.85) 100%);
  border: 1px solid var(--border-glow);
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.7), 0 15px 40px rgba(0, 0, 0, 0.6);
  perspective: 1600px;
  overflow: hidden;
  transition: min-height 0.6s ease;
}

@media (max-width: 768px) {
  .tarot-stage-area {
    min-height: 340px;
  }
}

/* Shuffling Instruction Banner */
.shuffle-instruction {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 0 15px rgba(245, 197, 66, 0.8), 0 2px 6px rgba(0, 0, 0, 0.9);
  z-index: 60;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-align: center;
}

.shuffle-instruction.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
}

@media (max-width: 768px) {
  .shuffle-instruction {
    font-size: 1rem;
    top: 15px;
    width: 90%;
    white-space: normal;
  }
}

/* Animated Deck Card (Riffle & Fan Layout) */
.anim-card {
  position: absolute;
  width: 126px;
  height: 194px;
  border-radius: 10px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 2px 5px rgba(0, 0, 0, 0.3);
  user-select: none;
  z-index: 10;
}

@media (max-width: 768px) {
  .anim-card {
    width: 82px;
    height: 126px;
  }
}

.anim-card:hover:not(.shuffling):not(.selected) {
  transform: translateY(-26px) scale(1.1) !important;
  box-shadow: 0 0 35px rgba(245, 197, 66, 0.95), 0 12px 28px rgba(0, 0, 0, 0.8) !important;
  z-index: 99 !important;
}

.anim-card.selected {
  box-shadow: 0 0 45px rgba(245, 197, 66, 1), 0 0 25px rgba(255, 255, 255, 0.9) !important;
  z-index: 100 !important;
}

.anim-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 10px;
}

.anim-card.flipped .anim-card-inner {
  transform: rotateY(180deg);
}

.anim-card.flipped.reversed .anim-card-inner {
  transform: rotateY(180deg) rotateZ(180deg);
}

.anim-card-back, .anim-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(245, 197, 66, 0.35);
  box-sizing: border-box;
}

.anim-card-back {
  background-color: #121633;
  background-image: url('assets/tarot/card-back.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.anim-card-face {
  transform: rotateY(180deg);
  background: #0A0C16;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anim-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Revealed Reading Layout */
.tarot-reading-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
  animation: fadeIn 0.5s ease;
}

.tarot-reading-panel.visible {
  display: block;
}

/* Single Card Revealed Presentation */
.single-reveal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .single-reveal-layout {
    grid-template-columns: 280px 1fr;
  }
}

.tarot-hero-img-box {
  text-align: center;
  position: relative;
}

.tarot-hero-img {
  width: 220px;
  border-radius: 14px;
  border: 2px solid var(--gold-glow);
  box-shadow: 0 0 30px rgba(245, 197, 66, 0.4), 0 15px 35px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}

.tarot-hero-img.reversed {
  transform: rotate(180deg);
}

/* 3-Card Spread Revealed Grid */
.spread-3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.spread-3-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.spread-3-thumb {
  width: 130px;
  border-radius: 10px;
  border: 1.5px solid var(--gold-glow);
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.3);
  margin: 0.75rem auto 1rem;
  display: block;
}

.spread-3-thumb.reversed {
  transform: rotate(180deg);
}

.oracle-verdict-box {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.oracle-verdict-box.yes {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #34D399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.oracle-verdict-box.no {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #EF4444;
  color: #F87171;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.oracle-verdict-box.maybe {
  background: rgba(245, 197, 66, 0.2);
  border: 1px solid #F5C542;
  color: #FDE68A;
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.3);
}
  justify-content: center;
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.card-status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.card-status-badge.upright {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.card-status-badge.reversed {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.card-keywords {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Tarot Reading Details Panel */
.tarot-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: none;
}

.tarot-details-card.visible {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ===================================================
   MODULE 3: BIRTH CHART & KUNDLI EXPLORER
   =================================================== */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 850px) {
  .tool-grid {
    grid-template-columns: 380px 1fr;
  }
}

.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold-glow);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(245, 197, 66, 0.2);
}

.form-select option {
  background: #0B0E20;
  color: #FFFFFF;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  color: #FFFFFF;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  transition: all 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.results-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

/* Elemental Gauges */
.element-bars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.elem-bar-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.elem-bar-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.elem-bar-val {
  font-weight: 800;
  font-size: 1.15rem;
}

/* ===================================================
   MODULE 4: LOVE & ZODIAC COMPATIBILITY
   =================================================== */
.compat-wheel-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.compat-sign-select {
  text-align: center;
  min-width: 200px;
}

.compat-heart {
  font-size: 2.5rem;
  color: var(--accent-pink);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

/* ===================================================
   MODULE 5: NUMEROLOGY LIFE PATH
   =================================================== */
.life-path-badge-big {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, var(--gold-dark) 100%);
  color: #070913;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 35px rgba(245, 197, 66, 0.5);
}

/* ===================================================
   MOON PHASE & DAILY TRANSITS FOOTER WIDGET
   =================================================== */
.moon-widget-strip {
  background: linear-gradient(135deg, rgba(13, 16, 36, 0.9), rgba(24, 28, 58, 0.85));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 3rem 0;
  box-shadow: var(--shadow-celestial);
}

.moon-visual {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.moon-icon-large {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.35));
}

.moon-info h4 {
  font-size: 1.2rem;
  color: var(--gold-light);
}

.moon-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Footer & Legal */
.kyf-footer {
  background: #05060D;
  border-top: 1px solid var(--border-dim);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand h4 {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.footer-links h5 {
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 0.9rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-glow);
}

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.disclaimer-text {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.5;
  margin-top: 0.75rem;
}

/* Utility Animations & Badges */
.badge-gold {
  background: rgba(245, 197, 66, 0.15);
  border: 1px solid var(--border-glow);
  color: var(--gold-light);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===================================================
   FAQ & KNOWLEDGE HUB ACCORDION (GEO / GOOGLE AI OVERVIEWS)
   =================================================== */
.faq-section {
  margin: 3.5rem 0 2.5rem;
}

.faq-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item[open] {
  border-color: var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.faq-question {
  padding: 1.15rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--gold-glow);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--gold-light);
}

.faq-answer {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.85rem;
}

/* ===================================================
   MODULE: ANGEL NUMBERS DECODER
   =================================================== */
.angel-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}

.angel-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.5rem 1.15rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.angel-pill-btn:hover, .angel-pill-btn.active {
  border-color: var(--gold-glow);
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.2), rgba(139, 92, 246, 0.25));
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(245, 197, 66, 0.3);
  transform: translateY(-2px);
}

.angel-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.angel-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.angel-cat-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

/* ===================================================
   MODULE: SHUBH MUHURAT & RAHU KAAL CLOCK
   =================================================== */
.muhurat-live-banner {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1.1rem;
}

.muhurat-live-banner.auspicious {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B981;
  color: #34D399;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

.muhurat-live-banner.inauspicious {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #F87171;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
}

.muhurat-live-banner.normal {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--accent-purple);
  color: #DDD6FE;
}

.muhurat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.muhurat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.muhurat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.muhurat-card.rahu::before { background: #EF4444; }
.muhurat-card.abhijit::before { background: #F5C542; }
.muhurat-card.gulika::before { background: #10B981; }
.muhurat-card.yama::before { background: #8B5CF6; }

.muhurat-time-big {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0.5rem 0;
}

/* ===================================================
   MODULE: GEMSTONE RECOMMENDER (RATNA SHASTRA)
   =================================================== */
.gemstone-display-box {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  margin-top: 1.5rem;
}

.gemstone-hero-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.gemstone-icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 2px solid var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  box-shadow: 0 0 25px rgba(245, 197, 66, 0.3);
}

.gemstone-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gem-meta-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

/* ===================================================
   MODULE: RETROGRADE & COSMIC TRANSITS
   =================================================== */
.retro-hero-banner {
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-card);
}

.badge-direct {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid #10B981;
}

.badge-retrograde {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid #EF4444;
}

.retro-dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}

@media (max-width: 768px) {
  .retro-dos-donts {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   MODULE 10: VIRTUAL 3D DICE ROLLER & ORACLE
   =================================================== */
:root {
  --dice-size: 88px;
  --dice-half: 44px;
}

@media (max-width: 600px) {
  :root {
    --dice-size: 72px;
    --dice-half: 36px;
  }
}

.dice-controls-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.dice-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dice-ctrl-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dice-ctrl-btn:hover {
  color: #FFFFFF;
  border-color: var(--border-glow);
}

.dice-ctrl-btn.active {
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.2), rgba(139, 92, 246, 0.3));
  border-color: var(--gold-glow);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.25);
}

.dice-arena {
  background: radial-gradient(ellipse at center, #10162f 0%, #080c1b 70%, #03050c 100%);
  border: 2px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 3rem 1.5rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.75rem;
}

.dice-arena::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed rgba(245, 197, 66, 0.2);
  border-radius: calc(var(--radius-xl) - 6px);
  pointer-events: none;
}

.dice-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  width: 100%;
  padding: 1.5rem 0;
  perspective: 1000px;
}

.dice-scene {
  perspective: 900px;
  perspective-origin: 50% 35%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dice-cube {
  width: var(--dice-size);
  height: var(--dice-size);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  cursor: pointer;
  user-select: none;
}

.dice-cube:hover {
  filter: drop-shadow(0 0 8px rgba(245, 197, 66, 0.5));
}

.dice-shadow {
  width: calc(var(--dice-size) * 0.9);
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  margin-top: 16px;
  transition: transform 1.25s ease, opacity 1.25s ease;
  pointer-events: none;
}

.dice-scene.rolling .dice-shadow {
  transform: scale(0.55);
  opacity: 0.35;
}

/* Face Styles */
.dice-face {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--dice-size);
  height: var(--dice-size);
  border-radius: 14px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 10px;
  align-items: center;
  justify-items: center;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.65), inset 0 0 2px rgba(255, 255, 255, 0.4), 0 0 8px rgba(0, 0, 0, 0.5);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 3D Rotations of Faces */
.face-1 { transform: rotateY(0deg) translateZ(var(--dice-half)); }
.face-6 { transform: rotateY(180deg) translateZ(var(--dice-half)); }
.face-3 { transform: rotateY(90deg) translateZ(var(--dice-half)); }
.face-4 { transform: rotateY(-90deg) translateZ(var(--dice-half)); }
.face-5 { transform: rotateX(90deg) translateZ(var(--dice-half)); }
.face-2 { transform: rotateX(-90deg) translateZ(var(--dice-half)); }

/* Pips positioning in CSS Grid */
.pip {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  pointer-events: none;
}

@media (max-width: 600px) {
  .pip {
    width: 12px;
    height: 12px;
  }
}

.pip-tl { grid-area: 1 / 1; }
.pip-tc { grid-area: 1 / 2; }
.pip-tr { grid-area: 1 / 3; }
.pip-ml { grid-area: 2 / 1; }
.pip-center { grid-area: 2 / 2; }
.pip-mr { grid-area: 2 / 3; }
.pip-bl { grid-area: 3 / 1; }
.pip-bc { grid-area: 3 / 2; }
.pip-br { grid-area: 3 / 3; }

/* THEMES */
/* 1. Celestial Obsidian (Default) */
.theme-obsidian .dice-face {
  background: radial-gradient(circle at 35% 35%, #232c4d 0%, #10162a 65%, #070a14 100%);
  border: 2px solid rgba(212, 175, 55, 0.65);
}

.theme-obsidian .pip {
  background: radial-gradient(circle at 35% 35%, #fffbe6 0%, #ffd700 55%, #b8860b 100%);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.85), inset 0 1px 1px #FFFFFF;
}

/* 2. Mystic Pearl (Ivory) */
.theme-ivory .dice-face {
  background: radial-gradient(circle at 35% 35%, #FFFFFF 0%, #edf0f7 65%, #c8cdd9 100%);
  border: 2px solid rgba(148, 163, 184, 0.75);
}

.theme-ivory .pip {
  background: radial-gradient(circle at 35% 35%, #2a3a68 0%, #0e1733 75%, #050914 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 3. Crimson Ruby */
.theme-ruby .dice-face {
  background: radial-gradient(circle at 35% 35%, #881337 0%, #4c0519 65%, #1f0108 100%);
  border: 2px solid rgba(251, 191, 36, 0.7);
}

.theme-ruby .pip {
  background: radial-gradient(circle at 35% 35%, #fffbeb 0%, #fbbf24 55%, #b45309 100%);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.85), inset 0 1px 1px #FFFFFF;
}

/* Actions & Outcomes */
.dice-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.dice-roll-btn {
  padding: 0.95rem 2.4rem;
  font-size: 1.15rem;
}

.dice-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  margin-top: 1.5rem;
}

.dice-sum-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dice-sum-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 0 25px rgba(245, 197, 66, 0.4);
}

.dice-breakdown-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dice-pip-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
}

.dice-oracle-content {
  line-height: 1.8;
  color: var(--text-secondary);
}

.dice-oracle-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.dice-verdict-pill {
  display: inline-block;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.2), rgba(139, 92, 246, 0.25));
  border: 1px solid var(--gold-glow);
  color: var(--gold-light);
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.dice-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.dice-stat-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  text-align: center;
}

.dice-history-drawer {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.dice-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.dice-history-item:last-child {
  border-bottom: none;
}

/* ===================================================
   MOBILE OPTIMIZATION, PERFORMANCE & ACCESSIBILITY
   =================================================== */
@media (max-width: 768px) {
  /* Prevent iOS Safari 100% zoom-in on input focus */
  input[type="text"],
  input[type="date"],
  input[type="time"],
  input[type="number"],
  select,
  textarea,
  .tarot-question-input,
  .form-select {
    font-size: 16px !important;
    min-height: 44px;
  }

  /* Fast touch responsiveness without 300ms click delay */
  button,
  .feature-pill,
  .hero-cta-btn,
  .nav-link,
  .mobile-nav-link,
  .zodiac-btn,
  .tarot-mode-btn,
  .dice-ctrl-btn,
  .dice-roll-btn,
  .angel-pill-btn {
    touch-action: manipulation;
  }

  /* Responsive Spacing & Grid Adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .kyf-header-inner {
    height: 62px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  /* Compatibility Wheel on Mobile */
  .compat-wheel-box {
    gap: 0.75rem;
  }

  .compat-sign-select {
    min-width: 140px;
    flex: 1;
  }

  /* 3D Dice Tray on Mobile */
  .dice-arena {
    padding: 2rem 1rem;
    min-height: 200px;
  }

  .dice-container {
    gap: 1.25rem;
  }

  .dice-controls-panel {
    padding: 0.85rem 1rem;
    justify-content: center;
  }

  .dice-btn-group {
    justify-content: center;
  }

  /* Moon Phase Widget on Mobile */
  .moon-widget-strip {
    padding: 1.25rem;
    flex-direction: column;
    text-align: center;
  }

  .moon-widget-strip div:last-child {
    text-align: center !important;
  }
}

/* Reduced Motion Preference for Accessibility & Low-Power */
@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;
  }

  .star-canvas {
    display: none;
  }
}
