/* =======================================================
   Mantra Japa Counter - Core Design System & Stylesheet
   Domain: https://mantrajapacounter.in/
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Cinzel:wght@600;700&display=swap');

:root {
  /* Color Tokens - Sacred Saffron, Gold & Deep Meditative Slates */
  --primary: #E56A24;
  --primary-hover: #C2410C;
  --primary-light: rgba(229, 106, 36, 0.12);
  --primary-glow: rgba(229, 106, 36, 0.35);

  --accent-gold: #F59E0B;
  --accent-gold-hover: #D97706;
  --accent-meru: #FDE68A;
  
  --success: #10B981;
  --success-light: rgba(16, 185, 129, 0.15);
  --warning: #F59E0B;
  --danger: #EF4444;
  --danger-light: rgba(239, 68, 68, 0.12);

  /* Light Theme Defaults */
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-surface-muted: #E2E8F0;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --text-inverse: #FFFFFF;
  
  --border-color: #E2E8F0;
  --border-focus: #E56A24;
  
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 12px 30px -4px rgba(229, 106, 36, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  --counter-glow: 0 0 35px rgba(229, 106, 36, 0.18);
  
  --bead-inactive: #CBD5E1;
  --bead-active: #F59E0B;
  --bead-completed: #E56A24;
  --bead-meru: #F59E0B;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cinzel', Georgia, serif;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-body: #0B0F19;
  --bg-surface: #121827;
  --bg-surface-elevated: #1E293B;
  --bg-surface-muted: #273549;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-inverse: #0B0F19;

  --border-color: #1F293D;
  --border-focus: #F59E0B;

  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 16px 36px -4px rgba(229, 106, 36, 0.25);
  --counter-glow: 0 0 45px rgba(229, 106, 36, 0.32);

  --bead-inactive: #334155;
  --bead-active: #FBBF24;
  --bead-completed: #EA580C;
  --bead-meru: #FDE68A;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
}

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

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

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.tool-container {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-content {
  flex: 1 0 auto;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

/* =======================================================
   Header & Navigation
   ======================================================= */
/* =======================================================
   Site Header & Main Navigation System
   ======================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(18, 24, 39, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .site-header {
  background-color: rgba(11, 15, 25, 0.92);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1.25rem;
}

/* Brand Identity */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-brand:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E293B, #0B0F19);
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 2px 10px rgba(229, 106, 36, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-title span {
  color: var(--primary);
}

/* Desktop Navigation Menu (Horizontal) */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-color);
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
  border-color: rgba(229, 106, 36, 0.25);
  font-weight: 700;
}

.nav-dropdown-btn {
  font-family: inherit;
}

.nav-dropdown-btn .chevron-icon {
  transition: transform 200ms ease;
}

.has-dropdown:hover .nav-dropdown-btn .chevron-icon,
.has-dropdown.open .nav-dropdown-btn .chevron-icon {
  transform: rotate(180deg);
}

/* Desktop Dropdown Menus */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 290px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1), visibility 180ms ease;
  z-index: 1010;
}

[data-theme="light"] .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
}
[data-theme="dark"] .nav-dropdown-menu {
  background: rgba(18, 24, 39, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.40);
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: inherit;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

.has-dropdown:hover .nav-dropdown-menu,
.has-dropdown:focus-within .nav-dropdown-menu,
.has-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.35rem 0.65rem 0.45rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-surface);
  color: var(--primary);
  transform: translateX(2px);
}

.dropdown-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown-icon {
  font-size: 1.2rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.dropdown-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.dropdown-text strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.dropdown-text small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.4rem 0;
}

/* Nav Actions (Theme, Sound, Haptic, PWA, Toggle) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-icon.active {
  color: var(--primary);
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.btn-ambient-nav.playing {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent-gold));
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(229, 106, 36, 0.45);
  animation: pulseAmbient 2.5s infinite ease-in-out;
}

.btn-pwa-install {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pwa-install:hover {
  background: var(--primary);
  color: #fff;
}

/* Animated Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 10px;
  position: relative;
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  border-color: var(--primary);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  position: absolute;
  transition: transform 240ms ease, opacity 180ms ease, background-color 200ms ease;
}

.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(2) { transform: translateY(0); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }

.menu-toggle.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.menu-toggle.active span {
  background: var(--primary);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* =======================================================
   Mobile & Tablet Slide-Out Navigation Drawer
   ======================================================= */
body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 88vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.35);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.drawer-brand .brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.drawer-brand .brand-title span {
  color: var(--primary);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem 1.1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.drawer-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.6rem;
  padding-left: 0.2rem;
}

/* Drawer Cards Grid for Core Tools */
.drawer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.drawer-link-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.65rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.drawer-link-card:hover {
  border-color: var(--primary);
  background: var(--bg-surface);
  transform: translateY(-1px);
}

.drawer-link-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.drawer-link-card .drawer-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.drawer-link-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.drawer-link-name {
  font-size: 0.85rem;
  font-weight: 700;
}

.drawer-link-meta small {
  font-size: 0.70rem;
  color: var(--text-muted);
}

/* Drawer Rows List for Dedicated Mantras */
.drawer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.drawer-link-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.drawer-link-row:hover {
  border-color: var(--primary);
  background: var(--bg-surface);
  transform: translateX(2px);
}

.drawer-link-row.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.drawer-link-row .drawer-icon {
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.drawer-link-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.drawer-link-info strong {
  font-size: 0.86rem;
  font-weight: 600;
}

.drawer-link-info small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Drawer Settings Grid */
.drawer-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.drawer-setting-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.drawer-setting-btn:hover {
  border-color: var(--primary);
  background: var(--bg-surface);
}

.drawer-setting-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.setting-btn-icon {
  font-size: 1.2rem;
}

.setting-btn-label {
  font-size: 0.80rem;
  font-weight: 700;
}

.drawer-setting-status {
  font-size: 0.70rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.drawer-setting-btn.active .drawer-setting-status {
  color: var(--primary);
}

.drawer-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  text-align: center;
}

.drawer-trust-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}


/* Offline Notice Bar */
.offline-banner {
  display: none;
  background: linear-gradient(90deg, #1E293B, #0F172A);
  color: #FDE68A;
  border-bottom: 1px solid #D97706;
  padding: 0.45rem 1rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  animation: slideDown 250ms ease-out;
}

.offline-banner.visible {
  display: block;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* =======================================================
   Hero Section (Homepage & Tools)
   ======================================================= */
.hero {
  text-align: center;
  padding: 2.25rem 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  background: var(--primary-light);
  border: 1px solid rgba(229, 106, 36, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.85rem, 4vw + 0.5rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-gold), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Primary & Secondary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #EA580C, #C2410C);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(229, 106, 36, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(229, 106, 36, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* =======================================================
   Card Component & Panels
   ======================================================= */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
}

.card:hover {
  border-color: rgba(229, 106, 36, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* =======================================================
   Main Japa Counter Instrument
   ======================================================= */
.japa-tool-card {
  padding: 2rem 1.5rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Mantra Selector Bar */
.mantra-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.85rem;
  margin-bottom: 1.5rem;
}

.mantra-badge-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.mantra-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mantra-display-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mantra-display-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Main Digital Counter Display */
.counter-display-wrap {
  position: relative;
  padding: 1.25rem 0 1rem;
}

.counter-value {
  font-size: clamp(3.75rem, 11vw, 6.25rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--text-main);
  text-shadow: var(--counter-glow);
  transition: transform 90ms ease-out;
  user-select: none;
  -webkit-user-select: none;
}

.counter-value.pulse {
  transform: scale(1.06);
}

.counter-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-wrap: wrap;
}

.counter-stats-bar .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stat-item strong {
  color: var(--primary);
  font-weight: 800;
}

/* Massive Tactile Tap Button */
.tap-btn-area {
  margin: 1.5rem 0 1.25rem;
}

.btn-tap-count {
  width: 100%;
  max-width: 440px;
  min-height: 82px;
  padding: 1.15rem 1.5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 50%, #C2410C 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 25px -4px rgba(229, 106, 36, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transition: transform 70ms ease-out, box-shadow 70ms ease-out;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-tap-count:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(229, 106, 36, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.btn-tap-count:active,
.btn-tap-count.tapping {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(229, 106, 36, 0.4), inset 0 3px 6px rgba(0, 0, 0, 0.3);
}

.btn-tap-count .btn-tap-hint {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Multi-Increment Controls Bar */
.increment-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.btn-inc {
  min-width: 48px;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}

.btn-inc:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-inc:active {
  transform: scale(0.95);
}

/* Secondary Action Controls (Undo, Reset, Sound, Haptic) */
.tool-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

/* =======================================================
   Visual Mala (108, 54, 27, Custom Beads)
   ======================================================= */
.mala-visual-section {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.mala-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mala-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mala-status-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Mala Bead Container */
.mala-beads-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0.75rem 0;
  max-height: 220px;
  overflow-y: auto;
}

.bead {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--bead-inactive);
  transition: all 180ms ease;
  position: relative;
  flex-shrink: 0;
}

.bead.completed {
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  box-shadow: 0 0 5px rgba(234, 88, 12, 0.5);
}

.bead.active {
  background: #FDE68A;
  box-shadow: 0 0 10px #F59E0B, 0 0 2px #EA580C;
  transform: scale(1.35);
  z-index: 2;
  animation: beadPulse 1.2s infinite alternate ease-in-out;
}

.bead.meru {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #FDE68A 30%, #F59E0B 70%, #B45309 100%);
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
  margin-right: 4px;
}

@keyframes beadPulse {
  from { transform: scale(1.2); box-shadow: 0 0 6px #F59E0B; }
  to { transform: scale(1.45); box-shadow: 0 0 14px #EA580C; }
}

/* Mala Completion Banner */
.mala-completed-banner {
  display: none;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  color: #FFFFFF;
  text-align: center;
  animation: glowIn 300ms ease-out;
}

.mala-completed-banner.visible {
  display: block;
}

.mala-completed-banner h4 {
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.mala-completed-banner p {
  font-size: 0.88rem;
  color: #E2E8F0;
  margin-bottom: 0.75rem;
}

@keyframes glowIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* =======================================================
   Japa Goals & Progress Bars
   ======================================================= */
.goal-progress-wrap {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.progress-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--card-shadow);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.progress-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-pct {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.progress-track {
  width: 100%;
  height: 9px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #EA580C);
  border-radius: var(--radius-full);
  transition: width 300ms ease-out;
}

.progress-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.progress-sub strong {
  color: var(--text-main);
}

/* =======================================================
   Quick Stats Grid (Streaks & Historical Summary)
   ======================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.stat-card-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.stat-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* =======================================================
   Keyboard Shortcuts Drawer / Helper
   ======================================================= */
.shortcuts-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.kbd {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* =======================================================
   Mantra Cards Grid (Popular Mantras)
   ======================================================= */
.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.section-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.mantra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.mantra-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-smooth);
}

.mantra-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
}

.mantra-card-top {
  margin-bottom: 1.25rem;
}

.mantra-card-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.mantra-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.mantra-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =======================================================
   Related Tools Grid
   ======================================================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.tool-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-smooth);
}

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

.tool-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* =======================================================
   Informational Sections & FAQ Accordion
   ======================================================= */
.info-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.info-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.info-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.step-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

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

/* FAQ Details Accordion */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Rich SEO Guide, Table & Callout Styles */
.info-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.info-section a:hover {
  color: var(--primary-hover);
  text-decoration-thickness: 2px;
}

.info-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.info-section h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.info-callout {
  background: rgba(217, 119, 6, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  color: var(--text-main);
}

.info-callout p {
  margin-bottom: 0 !important;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-main);
}

.key-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.highlight-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.highlight-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.highlight-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0 !important;
  line-height: 1.55;
}

.comparison-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 580px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.comparison-table th {
  background: var(--bg-surface);
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: rgba(217, 119, 6, 0.04);
}

.comparison-table .col-highlight {
  font-weight: 600;
  color: var(--primary);
}

/* =======================================================
   Ad-Ready Reserved Placement Zones
   ======================================================= */
.ad-slot-reserved {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin: 2rem auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* =======================================================
   Modals & Drawers
   ======================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 1.75rem;
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--danger);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.15rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* =======================================================
   Toast Notifications
   ======================================================= */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: toastSlideIn 250ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.toast-success {
  border-left: 4px solid var(--success);
}

.toast.toast-error {
  border-left: 4px solid var(--danger);
}

.toast.toast-info {
  border-left: 4px solid var(--accent-gold);
}

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

/* =======================================================
   Footer
   ======================================================= */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-wrap p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 320px;
  line-height: 1.55;
}

.footer-notice-box {
  background: var(--bg-surface-elevated);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* =======================================================
   Ambient Spiritual Sound & Background Chanting Bar
   ======================================================= */
.ambient-bar-wrapper {
  margin: 0 auto 1.5rem;
  max-width: 720px;
}

.ambient-sound-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-smooth);
  flex-wrap: wrap;
}

.ambient-sound-bar.playing {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, var(--bg-surface), rgba(245, 158, 11, 0.05));
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.15);
}

.ambient-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.btn-ambient-play {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--accent-gold), var(--primary));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(229, 106, 36, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.btn-ambient-play:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(229, 106, 36, 0.45);
}

.btn-ambient-play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Sound Wave Bars Animation */
.sound-waves {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
  padding: 0 4px;
}

.sound-waves span {
  display: inline-block;
  width: 3px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: height 150ms ease;
}

.ambient-sound-bar.playing .sound-waves span:nth-child(1) {
  animation: waveAnimation 1.1s ease-in-out infinite alternate;
}
.ambient-sound-bar.playing .sound-waves span:nth-child(2) {
  animation: waveAnimation 0.9s ease-in-out infinite 0.2s alternate;
}
.ambient-sound-bar.playing .sound-waves span:nth-child(3) {
  animation: waveAnimation 1.3s ease-in-out infinite 0.4s alternate;
}
.ambient-sound-bar.playing .sound-waves span:nth-child(4) {
  animation: waveAnimation 0.8s ease-in-out infinite 0.1s alternate;
}

@keyframes waveAnimation {
  0% { height: 4px; opacity: 0.5; }
  100% { height: 16px; opacity: 1; }
}

.ambient-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.ambient-track-select {
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}

.ambient-track-select:focus {
  border-color: var(--primary);
}

.ambient-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ambient-volume-slider {
  width: 80px;
  height: 5px;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-ambient-nav {
  position: relative;
}

.btn-ambient-nav.active {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.btn-ambient-nav.active::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* Reduced Motion */
@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;
  }
}
