/* CSS imports for Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Cinzel:wght@400;600;800&family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* CSS Variables */
:root {
  /* Color Palette */
  --bg-cosmic-dark: #06050b;
  --bg-cosmic-medium: #110924;
  --bg-cosmic-light: #1b1236;
  
  --saffron-primary: #ff6f00;
  --saffron-light: #ffa000;
  --saffron-dark: #e65100;
  
  --gold-primary: #d4af37;
  --gold-light: #f5e08b;
  --gold-dark: #aa7c11;
  
  /* Gradients */
  --bg-gradient: radial-gradient(circle at 50% 30%, var(--bg-cosmic-light) 0%, var(--bg-cosmic-medium) 40%, var(--bg-cosmic-dark) 100%);
  --saffron-gradient: linear-gradient(135deg, var(--saffron-light) 0%, var(--saffron-primary) 50%, var(--saffron-dark) 100%);
  --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  --accent-blue-gradient: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
  
  /* UI Elements */
  --card-bg: rgba(22, 17, 43, 0.7);
  --card-bg-hover: rgba(33, 26, 64, 0.85);
  --card-border: rgba(212, 175, 55, 0.15);
  --card-border-glow: rgba(212, 175, 55, 0.45);
  --card-border-saffron: rgba(255, 111, 0, 0.3);
  --card-border-saffron-glow: rgba(255, 111, 0, 0.6);
  
  /* Text Colors */
  --text-white: #ffffff;
  --text-gold: #f3e5ab;
  --text-light: #e0dced;
  --text-muted: #958fa8;
  --text-saffron: #ffb74d;
  
  /* Transitions & Shadows */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glow-shadow-gold: 0 8px 32px 0 rgba(212, 175, 55, 0.12), 0 0 16px 0 rgba(212, 175, 55, 0.08);
  --glow-shadow-saffron: 0 8px 32px 0 rgba(255, 111, 0, 0.15), 0 0 16px 0 rgba(255, 111, 0, 0.1);
  
  /* Fonts */
  --font-title: 'Cinzel', serif;
  --font-title-accent: 'Cinzel Decorative', serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Lora', serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) var(--bg-cosmic-dark);
}

body {
  font-family: var(--font-body);
  background: var(--bg-cosmic-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cosmic-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Layout Shell */
.app-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px var(--gold-primary);
}

.brand-title {
  font-family: var(--font-title-accent);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 4px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.25));
}

.brand-subtitle {
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 6px;
  color: var(--text-saffron);
  text-transform: uppercase;
}

/* Navigation Dock */
nav {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: sticky;
  top: 1rem;
  z-index: 100;
}

.nav-pill {
  background: rgba(17, 13, 33, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.12);
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.nav-pill i {
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.nav-pill:hover {
  color: var(--text-gold);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.nav-pill.active {
  background: var(--saffron-gradient);
  border-color: var(--saffron-light);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(230, 81, 0, 0.4), 0 0 8px rgba(230, 81, 0, 0.2);
}

.nav-pill.active i {
  color: var(--text-white);
}

/* Main Content Area */
main {
  flex-grow: 1;
  position: relative;
}

.tab-content {
  display: none;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content.active {
  display: block;
}

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

/* --- TAB 1: WISDOM DASHBOARD --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* Glassmorphic Panel Base */
.glass-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--glow-shadow-gold);
  transition: var(--transition-smooth);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0.7;
}

.glass-panel.saffron-accent::before {
  background: var(--saffron-gradient);
}

.shloka-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
}

.wisdom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.wisdom-tag {
  font-family: var(--font-title);
  color: var(--text-saffron);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: bold;
}

.refresh-btn {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.refresh-btn:hover {
  background: var(--gold-gradient);
  color: var(--bg-cosmic-dark);
  border-color: var(--gold-light);
  transform: rotate(180deg);
}

.shloka-sanskrit {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-gold);
  margin-bottom: 1.5rem;
  line-height: 2;
  white-space: pre-line;
  letter-spacing: 0.5px;
  filter: drop-shadow(0 0 8px rgba(243, 229, 171, 0.25));
}

.shloka-translit {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 90%;
}

.shloka-translation {
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  max-width: 95%;
}

.shloka-source {
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--text-saffron);
  letter-spacing: 2px;
}

.pillar-card {
  background: rgba(30, 24, 54, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 1rem;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  border-color: var(--card-border-glow);
  background: rgba(43, 33, 79, 0.5);
  transform: translateX(5px);
}

.pillar-title {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Quick Navigation Links */
.quick-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.path-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.path-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.path-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  background: var(--card-bg-hover);
  box-shadow: var(--glow-shadow-gold);
}

.path-card:hover::after {
  transform: scaleX(1);
}

.path-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.path-title {
  font-family: var(--font-title);
  color: var(--text-white);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.path-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- TAB 2: PANTHEON EXPLORER --- */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(30, 25, 50, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  color: var(--text-gold);
  border-color: var(--gold-primary);
  background: rgba(30, 25, 50, 0.8);
}

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

.deity-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.deity-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-glow);
  box-shadow: var(--glow-shadow-gold);
}

.deity-avatar {
  height: 180px;
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.deity-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--bg-cosmic-dark) 5%, rgba(0,0,0,0.1) 80%);
}

.avatar-placeholder {
  height: 180px;
  width: 100%;
  background: linear-gradient(135deg, #1f143d 0%, #0d061c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-art {
  font-size: 4rem;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
  transition: var(--transition-smooth);
}

.deity-card:hover .avatar-art {
  transform: scale(1.15) rotate(5deg);
}

.deity-card-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(230, 81, 0, 0.85);
  border: 1px solid var(--saffron-light);
  color: var(--text-white);
  font-family: var(--font-title);
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  letter-spacing: 1px;
  z-index: 10;
}

.deity-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.deity-name {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.deity-title {
  font-size: 0.8rem;
  color: var(--text-saffron);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.deity-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.deity-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding-top: 0.8rem;
}

.attribute-pill {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--text-gold);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* --- TAB 3: SACRED LITERATURE --- */
.library-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) and (max-width: 1149px) {
  .library-sections {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1150px) {
  .library-sections {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.section-headline {
  font-family: var(--font-title);
  color: var(--text-saffron);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 111, 0, 0.2);
  padding-bottom: 0.5rem;
}

.text-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.text-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.text-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  background: var(--card-bg-hover);
  box-shadow: var(--glow-shadow-gold);
}

.text-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.text-type {
  font-family: var(--font-title);
  font-size: 0.7rem;
  color: var(--text-saffron);
  letter-spacing: 1px;
  background: rgba(255, 111, 0, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.text-heading {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 1.3rem;
}

.text-brief {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.text-keys-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.text-key {
  font-size: 0.75rem;
  color: var(--text-light);
  background: rgba(255,255,255,0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

/* Gita Explorer Sub-section */
.gita-panel {
  background: linear-gradient(135deg, rgba(26, 17, 46, 0.8) 0%, rgba(13, 8, 26, 0.9) 100%);
  border: 1px solid rgba(255, 111, 0, 0.35);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2.5rem;
  box-shadow: var(--glow-shadow-saffron);
}

.gita-panel::before {
  background: var(--saffron-gradient);
}

.gita-title-block {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gita-main-title {
  font-family: var(--font-title-accent);
  color: var(--text-gold);
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.gita-subtitle {
  font-size: 0.9rem;
  color: var(--text-saffron);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gita-explorer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .gita-explorer-grid {
    grid-template-columns: 240px 1fr;
  }
}

.gita-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 0.5rem;
  border-right: 1px solid rgba(255,111,0,0.15);
}

.gita-chapter-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212, 175, 55, 0.1);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.8rem;
  text-align: left;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.gita-chapter-item:hover, .gita-chapter-item.active {
  color: var(--text-gold);
  background: rgba(255, 111, 0, 0.15);
  border-color: var(--saffron-light);
}

.gita-chapter-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 250px;
}

.gita-verse-sanskrit {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.8;
  color: var(--text-gold);
  margin-bottom: 1rem;
  white-space: pre-line;
}

.gita-verse-translation {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  max-width: 90%;
}

.gita-verse-commentary {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
  font-style: italic;
  max-width: 90%;
}

/* --- TAB 4: COSMOLOGY & THE YUGAS --- */
.cosmology-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--gold-gradient);
  box-shadow: 0 0 8px var(--gold-primary);
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  width: 100%;
  padding-left: 45px;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
  }
  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px;
  }
  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px;
    text-align: right;
  }
}

.timeline-badge {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-cosmic-dark);
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  z-index: 10;
}

@media (min-width: 768px) {
  .timeline-badge {
    left: auto;
    right: -10px;
  }
  .timeline-item:nth-child(even) .timeline-badge {
    left: -10px;
    right: auto;
  }
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

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

.timeline-duration {
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: var(--text-saffron);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  display: block;
}

.timeline-title {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Realms / Lokas Map */
.lokas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lokas-title {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.lokas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
}

.loka-bar {
  background: rgba(30, 25, 50, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.loka-bar:hover {
  background: rgba(50, 40, 80, 0.7);
  border-color: var(--gold-primary);
  transform: scale(1.02);
}

.loka-name {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 0.95rem;
  font-weight: bold;
}

.loka-type {
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.loka-type.upper {
  background: rgba(66, 165, 245, 0.15);
  color: #90caf9;
  border: 1px solid rgba(66, 165, 245, 0.3);
}

.loka-type.lower {
  background: rgba(229, 115, 115, 0.15);
  color: #ef9a9a;
  border: 1px solid rgba(229, 115, 115, 0.3);
}

/* --- TAB 5: MEDITATION & SOUNDSCAPE --- */
.meditation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .meditation-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Breathing Visualizer */
.breath-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.mandala-outer {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.mandala-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 70%);
  filter: blur(10px);
}

.mandala-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.25) 0%, rgba(212, 175, 55, 0.25) 100%);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  transition: transform 4s ease-in-out;
  position: relative;
  z-index: 5;
}

.mandala-circle.inhale {
  transform: scale(1.6);
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.45) 0%, rgba(212, 175, 55, 0.45) 100%);
  box-shadow: 0 0 50px rgba(255, 111, 0, 0.5);
}

.mandala-circle.hold-in {
  transform: scale(1.6);
  border-color: var(--saffron-light);
  box-shadow: 0 0 60px rgba(255, 111, 0, 0.7);
}

.mandala-circle.exhale {
  transform: scale(1.0);
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.15) 0%, rgba(212, 175, 55, 0.15) 100%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.mandala-circle.hold-out {
  transform: scale(1.0);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: none;
}

.mandala-center-symbol {
  font-size: 2.2rem;
  color: var(--text-gold);
  filter: drop-shadow(0 0 5px rgba(243, 229, 171, 0.6));
}

.breath-instruction {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  height: 2.5rem;
}

.breath-timer {
  font-size: 1.1rem;
  color: var(--text-saffron);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.breath-controls {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--saffron-gradient);
  border: 1px solid var(--saffron-light);
  color: var(--text-white);
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.5);
  border-color: var(--text-white);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-gold);
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  transition: var(--transition-smooth);
}

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

/* Soundscape Player */
.sound-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chant-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.chant-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.chant-row:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(212,175,55,0.3);
}

.chant-row.active {
  background: rgba(255, 111, 0, 0.08);
  border-color: var(--saffron-primary);
}

.chant-info {
  flex-grow: 1;
  margin-right: 1rem;
}

.chant-name {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.chant-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chant-play-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.chant-play-btn:hover {
  background: var(--gold-gradient);
  color: var(--bg-cosmic-dark);
  border-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.chant-row.active .chant-play-btn {
  background: var(--saffron-gradient);
  border-color: var(--saffron-light);
  color: var(--text-white);
  box-shadow: 0 0 10px rgba(255, 111, 0, 0.4);
}

.visual-equalizer {
  height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  margin-top: 1.5rem;
}

.eq-bar {
  width: 4px;
  height: 3px;
  background: var(--saffron-primary);
  border-radius: 2px;
  transition: height 0.1s ease-in-out;
}

/* --- TAB 6: DHARMA QUEST QUIZ --- */
.quiz-panel {
  max-width: 650px;
  margin: 0 auto;
}

.quiz-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.progress-bar-bg {
  flex-grow: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  margin: 0 1rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--saffron-gradient);
  width: 0%;
  transition: width 0.3s ease;
}

.question-block {
  margin-bottom: 2rem;
}

.question-text {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quiz-option {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  text-align: left;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.quiz-option:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateX(4px);
}

.quiz-option.correct {
  background: rgba(76, 175, 80, 0.15);
  border-color: #4caf50;
  color: #a5d6a7;
}

.quiz-option.incorrect {
  background: rgba(244, 67, 54, 0.15);
  border-color: #f44336;
  color: #ef9a9a;
}

.quiz-explanation {
  background: rgba(33, 150, 243, 0.1);
  border: 1px dashed rgba(33, 150, 243, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #90caf9;
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.quiz-explanation i {
  margin-right: 0.5rem;
}

.quiz-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Quiz Results Screen */
.quiz-results {
  text-align: center;
  padding: 2rem 1rem;
}

.results-score {
  font-size: 3.5rem;
  font-family: var(--font-title);
  color: var(--text-gold);
  margin-bottom: 0.5rem;
}

.results-badge-wrapper {
  margin: 1.5rem auto;
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-badge-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--gold-primary);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.results-badge-icon {
  font-size: 3.5rem;
  z-index: 5;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.results-badge-title {
  font-family: var(--font-title);
  color: var(--text-saffron);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.results-feedback {
  color: var(--text-muted);
  max-width: 450px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
}

/* --- DEITY & LITERATURE MODALS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 5, 11, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: rgba(18, 14, 38, 0.98);
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  width: 100%;
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
  position: relative;
  animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from {
    transform: scale(0.9) translateY(20px);
  }
  to {
    transform: scale(1) translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.modal-close-btn:hover {
  color: var(--text-gold);
  transform: rotate(90deg);
}

.modal-header-banner {
  height: 160px;
  width: 100%;
  background: linear-gradient(135deg, #1b1236 0%, #0d061c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-header-art {
  font-size: 5rem;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.modal-body {
  padding: 2rem;
}

.modal-title-row {
  margin-bottom: 1.2rem;
  text-align: center;
}

.modal-main-title {
  font-family: var(--font-title-accent);
  color: var(--text-gold);
  font-size: 2.2rem;
}

.modal-subtitle {
  font-family: var(--font-title);
  color: var(--text-saffron);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.modal-tab-trigger {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.85rem;
  padding: 0.6rem 0;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 1px;
}

.modal-tab-trigger:hover, .modal-tab-trigger.active {
  color: var(--text-gold);
  border-bottom-color: var(--gold-primary);
}

.modal-tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.modal-tab-content.active {
  display: block;
}

.symbology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.symbology-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(212,175,55,0.08);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.symbology-item-name {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.symbology-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.story-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

.story-text p {
  margin-bottom: 1rem;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-gold);
  max-width: 500px;
}

/* Custom Gita Selector Styles */
.gita-explorer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .gita-explorer-layout {
    grid-template-columns: 280px 1fr;
  }
}

.gita-selectors {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-right: 0.8rem;
  border-right: 1px solid rgba(255, 111, 0, 0.15);
}

@media (max-width: 767px) {
  .gita-selectors {
    border-right: none;
    border-bottom: 1px solid rgba(255, 111, 0, 0.15);
    padding-right: 0;
    padding-bottom: 1.2rem;
  }
}

.gita-select-input {
  width: 100%;
  background: rgba(17, 13, 33, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-gold);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.gita-select-input:focus, .gita-select-input:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.gita-verses-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.gita-verse-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--text-muted);
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.gita-verse-btn:hover {
  border-color: var(--saffron-light);
  color: var(--text-gold);
  background: rgba(255, 111, 0, 0.1);
  transform: scale(1.1);
}

.gita-verse-btn.active {
  background: var(--saffron-gradient);
  border-color: var(--saffron-light);
  color: var(--text-white);
  box-shadow: 0 0 10px rgba(255, 111, 0, 0.4);
}

