:root {
  --navy: #102a43;
  --blue: #2878c8;
  --blue-soft: #eaf4ff;
  --gold: #c68b2c;
  --gold-soft: #fff6df;
  --cream: #fbf8f1;
  --white: #ffffff;
  --text: #17202a;
  --muted: #64748b;
  --border: #e5e7eb;
  --success: #15803d;
  --success-bg: #ecfdf3;
  --error: #b42318;
  --error-bg: #fff1f0;
  --shadow: 0 18px 50px rgba(16, 42, 67, 0.12);
  --shadow-soft: 0 8px 24px rgba(16, 42, 67, 0.08);
}

body.dark {
  --cream: #071b2f;
  --white: #0d243b;
  --text: #f1f5f9;
  --muted: #b5c1cd;
  --border: #24435f;
  --blue-soft: #123451;
  --gold-soft: #3b2b13;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   SPIRITUAL ATMOSPHERE THEMES
   ========================================== */
body.theme-vrindavan {
  --cream: #fdfaf3;
  --gold: #d97706;
  --gold-soft: #fef3c7;
  --blue-soft: #fdf2d8;
  --border: #fcd34d;
}
body.dark.theme-vrindavan {
  --cream: #1e1305;
  --white: #2a1a08;
  --gold: #fbbf24;
  --gold-soft: #452a0a;
  --border: #78350f;
}

body.theme-ayodhya {
  --cream: #fff9f5;
  --gold: #ea580c;
  --gold-soft: #ffedd5;
  --blue-soft: #ffe4d6;
  --border: #fdba74;
}
body.dark.theme-ayodhya {
  --cream: #1c0f05;
  --white: #2b170a;
  --gold: #f97316;
  --gold-soft: #4d230d;
  --border: #7c2d12;
}

body.theme-shiv {
  --cream: #f4f9fd;
  --blue: #0284c7;
  --blue-soft: #e0f2fe;
  --gold: #0369a1;
  --gold-soft: #bae6fd;
  --border: #7dd3fc;
}
body.dark.theme-shiv {
  --cream: #031424;
  --white: #082038;
  --blue: #38bdf8;
  --blue-soft: #0c2d4d;
  --border: #0369a1;
}

body.theme-waheguru {
  --cream: #fefdf4;
  --gold: #ca8a04;
  --gold-soft: #fef9c3;
  --blue-soft: #fef08a;
  --border: #facc15;
}
body.dark.theme-waheguru {
  --cream: #171503;
  --white: #272306;
  --gold: #eab308;
  --gold-soft: #423b08;
  --border: #713f12;
}

body.theme-shakti {
  --cream: #fff5f5;
  --gold: #dc2626;
  --gold-soft: #fee2e2;
  --blue-soft: #ffe4e6;
  --border: #fca5a5;
}
body.dark.theme-shakti {
  --cream: #1f0808;
  --white: #2e0d0d;
  --gold: #f87171;
  --gold-soft: #4c1111;
  --border: #7f1d1d;
}

body.theme-peace {
  --cream: #f2fbf9;
  --blue: #0d9488;
  --blue-soft: #ccfbf1;
  --gold: #0f766e;
  --gold-soft: #99f6e4;
  --border: #5eead4;
}
body.dark.theme-peace {
  --cream: #031c19;
  --white: #082b26;
  --blue: #2dd4bf;
  --blue-soft: #0e3d36;
  --border: #115e59;
}

.theme-atmosphere-badge {
  display: flex !important;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 16px !important;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(198, 139, 44, 0.18);
  animation: badgeFadeIn 0.4s ease-out;
  text-align: center;
}
.theme-atmosphere-badge[hidden],
.theme-atmosphere-badge:empty {
  display: none !important;
}
@keyframes badgeFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Total Malas Real-time Indicator */
.count-halo-mala {
  display: block;
  margin: 4px auto 2px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* 108 Golden Celebration Aura */
.count-halo.mala-complete,
.count-panel.mala-complete {
  animation: goldenMalaGlow 1.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@keyframes goldenMalaGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 139, 44, 0.85);
    transform: scale(1);
  }
  35% {
    box-shadow: 0 0 35px rgba(198, 139, 44, 0.8), 0 0 0 14px rgba(198, 139, 44, 0.35);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(198, 139, 44, 0.12);
    transform: scale(1);
  }
}

/* Mic Active Sound Wave Animation */
.sound-wave-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 14px;
  vertical-align: middle;
  margin-left: 6px;
}

.sound-wave-indicator[hidden] {
  display: none !important;
}

.wave-bar {
  display: inline-block;
  width: 3px;
  height: 100%;
  border-radius: 999px;
  background: var(--success);
  animation: soundWaveMotion 0.8s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { height: 5px; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 13px; animation-delay: 0.25s; }
.wave-bar:nth-child(3) { height: 9px; animation-delay: 0.4s; }
.wave-bar:nth-child(4) { height: 14px; animation-delay: 0.15s; }

@keyframes soundWaveMotion {
  0% { transform: scaleY(0.3); opacity: 0.6; }
  100% { transform: scaleY(1); opacity: 1; }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  padding: 0 0 30px;
  background: var(--cream);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  touch-action: manipulation;
  top: 0 !important;
  position: static !important;
}

main {
  padding: 0 16px;
}

button, input, select {
  font: inherit;
  touch-action: manipulation;
}

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(198, 139, 44, 0.45);
  outline-offset: 3px;
}
a { color: inherit; }

#how-it-works, #counter, .section {
  scroll-margin-top: 115px;
}

/* Desktop Header (Full-Width Top Bar, Non-Sticky) */
.site-header {
  position: static;
  width: 100%;
  margin: 0 0 24px 0;
  padding: 10px 20px;
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 4px 18px rgba(16, 42, 67, 0.04);
  z-index: 1000;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

body.dark .site-header {
  background: rgba(7, 27, 47, 0.96);
  border-bottom: 1px solid rgba(36, 67, 95, 0.85);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.site-logo:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.brand-tagline {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  justify-self: end;
}

/* Header Action Buttons & Flyout Dropdowns */
.header-action-btn,
.header-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

body.dark .header-action-btn,
body.dark .header-settings-btn {
  background: #102a43;
  color: #f1f5f9;
  border-color: #243b53;
}

.header-action-btn:hover,
.header-action-btn[aria-expanded="true"],
.header-settings-btn:hover,
.header-settings-btn[aria-expanded="true"] {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

body.dark .header-action-btn:hover,
body.dark .header-action-btn[aria-expanded="true"],
body.dark .header-settings-btn:hover,
body.dark .header-settings-btn[aria-expanded="true"] {
  background: rgba(37, 99, 235, 0.2);
  border-color: #60a5fa;
  color: #60a5fa;
}

.header-theme-btn:hover {
  background: var(--gold-soft) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

body.dark .header-theme-btn:hover {
  background: rgba(217, 119, 6, 0.2) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

.cogs-svg {
  transition: transform 0.3s ease;
}
.header-settings-btn:hover .cogs-svg,
.header-settings-btn[aria-expanded="true"] .cogs-svg {
  transform: rotate(45deg);
}

.header-action-wrapper {
  position: relative;
  display: inline-flex;
}

.header-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 100000;
  padding: 10px;
  animation: menuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

body.dark .header-dropdown-panel {
  background: #0d2137;
  border-color: #1e3a5f;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.header-dropdown-panel.open {
  display: block;
}

/* Language Dropdown (Desktop & Base) */
.header-lang-dropdown {
  width: 330px;
  max-height: 480px;
  right: -90px;
  display: none;
  flex-direction: column;
  padding: 12px;
}

.header-lang-dropdown.open {
  display: flex;
}

.lang-modal-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lang-sheet-handle {
  display: none;
}

.lang-dropdown-header {
  padding: 2px 2px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

body.dark .lang-dropdown-header {
  border-color: #1e3a5f;
}

.lang-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lang-dropdown-title {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
}

body.dark .lang-dropdown-title {
  color: #ffffff;
}

.lang-close-btn {
  display: none;
}

.lang-search-box {
  padding: 2px 0 0;
}

.lang-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.dark .lang-search-input {
  background: #14314f;
  border-color: #243b53;
  color: #f1f5f9;
}

.lang-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.lang-list {
  overflow-y: auto;
  max-height: 310px;
  padding: 6px 2px 2px;
  scrollbar-width: thin;
}

.lang-group-title {
  padding: 8px 8px 4px;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.lang-item {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.12s ease;
  margin-bottom: 2px;
}

.lang-item:hover {
  background: var(--gold-soft);
  color: #b45309;
  transform: translateX(2px);
}

body.dark .lang-item:hover {
  background: rgba(217, 119, 6, 0.2);
  color: #fef08a;
}

.lang-item.active {
  background: rgba(217, 119, 6, 0.15);
  color: #b45309;
  font-weight: 800;
  border-color: rgba(217, 119, 6, 0.3);
}

body.dark .lang-item.active {
  background: rgba(217, 119, 6, 0.25);
  color: #fef08a;
  border-color: rgba(217, 119, 6, 0.4);
}

.lang-item.active::after {
  content: "✓";
  font-weight: 900;
  color: #b45309;
  margin-left: 6px;
}

.lang-item[hidden] {
  display: none !important;
}

body.dark .lang-item.active::after {
  color: #fef08a;
}

.lang-native { font-size: 0.86rem; }
.lang-eng { font-size: 0.75rem; color: var(--muted); }

/* Settings Dropdown */
.header-settings-dropdown {
  width: 260px;
}

.settings-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
  text-align: left;
  text-decoration: none !important;
  color: var(--text) !important;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.settings-nav-row:hover {
  background: var(--blue-soft);
  color: var(--blue) !important;
  text-decoration: none !important;
}

.settings-nav-arrow {
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 700;
}

.settings-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.settings-nav-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.2;
}

body.dark .settings-nav-badge {
  color: #fef08a;
  background: rgba(217, 119, 6, 0.2);
  border-color: rgba(217, 119, 6, 0.4);
}

.settings-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

body.dark .settings-menu-divider {
  background: #1e3a5f;
}

/* Reminder Modal Overlay & Styles */
.reminder-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 43, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalBgFade 0.2s ease forwards;
}

.reminder-modal-box {
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  animation: menuFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark .reminder-modal-box {
  background: #0d2137;
  border-color: #1e3a5f;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.reminder-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
}

body.dark .reminder-modal-header {
  border-color: #1e3a5f;
}

.reminder-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reminder-modal-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy);
}

body.dark .reminder-modal-title {
  color: #ffffff;
}

.reminder-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

body.dark .reminder-close-btn {
  background: #1e3a5f;
  color: #ffffff;
}

.reminder-close-btn:hover {
  background: var(--error-bg);
  color: var(--error);
}

.reminder-modal-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Option 12: Circular Dial Container & Visuals */
.dial-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 2px;
}

.dial-container {
  position: relative;
  width: 200px;
  height: 200px;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.dial-container:active {
  cursor: grabbing;
}

.clock-dial-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.dial-bg-track {
  fill: none;
  stroke: var(--cream);
  stroke-width: 12;
}

body.dark .dial-bg-track {
  stroke: #102a43;
}

.dial-progress-track {
  fill: none;
  stroke: var(--gold);
  stroke-width: 12;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 100px 100px;
  transition: stroke-dashoffset 0.05s ease-out;
}

.dial-num {
  font-size: 0.74rem;
  font-weight: 800;
  fill: var(--muted);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

body.dark .dial-num {
  fill: #627d98;
}

.dial-handle-glow {
  fill: rgba(217, 119, 6, 0.28);
  pointer-events: none;
}

.dial-handle {
  fill: var(--gold);
  stroke: var(--white);
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.25));
  pointer-events: none;
}

body.dark .dial-handle {
  stroke: #0d2137;
}

.dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  gap: 2px;
}

.dial-digital-time {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1;
}

body.dark .dial-digital-time {
  color: #ffffff;
}

.dial-colon {
  color: var(--gold);
  margin: 0 1px;
}

.dial-ampm-switch {
  display: flex;
  gap: 4px;
  pointer-events: auto;
  margin-top: 2px;
}

.dial-ampm-btn {
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.dark .dial-ampm-btn {
  background: #102a43;
  border-color: #243b53;
  color: #9fb3c8;
}

.dial-ampm-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.dial-hint {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
  margin-top: -4px;
}

.reminder-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reminder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.reminder-btn-phone {
  background: #1a73e8;
  color: #ffffff;
}

.reminder-btn-phone:hover {
  background: #1557b0;
  transform: translateY(-1px);
}

.reminder-btn-browser {
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--border);
}

body.dark .reminder-btn-browser {
  background: #102a43;
  border-color: #243b53;
  color: #f1f5f9;
}

.reminder-btn-browser.active {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.reminder-ics-link {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
  padding: 2px 0;
}

.reminder-ics-link:hover {
  color: var(--gold);
}

.reminder-status-text {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
}

/* Animations for Modal & Sheet */
@keyframes modalBgFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* MOBILE BOTTOM SHEET MODAL (Option 1) */
@media (max-width: 680px) {
  .header-lang-dropdown {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: rgba(8, 22, 43, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: none;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    animation: modalBgFade 0.2s ease forwards !important;
  }

  .header-lang-dropdown.open {
    display: flex !important;
  }

  .lang-modal-sheet {
    width: 100% !important;
    max-width: 500px !important;
    max-height: 82vh !important;
    background: var(--white) !important;
    border-radius: 26px 26px 0 0 !important;
    border-top: 3px solid var(--gold) !important;
    padding: 12px 18px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4) !important;
    animation: sheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    overflow: hidden !important;
  }

  body.dark .lang-modal-sheet {
    background: #0d2137 !important;
    border-top-color: #d97706 !important;
  }

  .lang-sheet-handle {
    display: block;
    width: 42px;
    height: 5px;
    border-radius: 3px;
    background: #cbd5e1;
    margin: 0 auto 12px;
  }

  body.dark .lang-sheet-handle {
    background: #334e68;
  }

  .lang-close-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
  }

  body.dark .lang-close-btn {
    background: #1e3a5f;
    color: #ffffff;
  }

  .lang-list {
    max-height: 55vh !important;
  }

  .lang-item {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .lang-native {
    font-size: 0.95rem;
  }

  .lang-eng {
    font-size: 0.8rem;
  }
}

/* Hide Google default iframe and banner clutter */
#google_translate_element { display: none !important; }
.goog-te-banner-frame, .skiptranslate iframe, #goog-gt-tt {
  display: none !important;
  visibility: hidden !important;
}

@media (max-width: 979px) {
  body {
    padding-top: 72px;
    padding-left: 0;
    padding-right: 0;
  }
  main {
    padding: 0 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    padding: 8px 12px;
    z-index: 9999;
    background: rgba(251, 248, 241, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 4px 16px rgba(16, 42, 67, 0.06);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }
  body.dark .site-header {
    background: rgba(7, 27, 47, 0.95);
    border-bottom: 1px solid rgba(36, 67, 95, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
  .site-header.header-hidden {
    transform: translateY(-100%);
  }
  .site-logo { height: 38px; max-width: 175px; }
  .brand-tagline { display: none; }
  .theme-btn, .custom-lang-btn { padding: 5px 9px; font-size: 0.75rem; min-height: 34px; }
  .custom-lang-menu { width: 280px; }
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  flex-wrap: nowrap;
  justify-self: center;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 980px) {
  .main-nav {
    display: none !important;
  }
}

.hero {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto 30px;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3.5vw, 32px);
  border-radius: 26px;
  background: linear-gradient(120deg, #102a43, #1f5b89);
  color: #ffffff;
  box-shadow: var(--shadow);
}
.hero-content { max-width: 780px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 216, 138, 0.35);
  border-radius: 999px;
  background: rgba(255, 216, 138, 0.12);
  color: #ffe4a8;
  font-size: 0.75rem;
  font-weight: 700;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd88a;
}
.hero h1 {
  max-width: 650px;
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.hero p {
  max-width: 630px;
  color: #dceaf5;
  font-size: 0.9rem;
  line-height: 1.6;
}
.hero-note {
  display: inline-block;
  margin-top: 14px;
  color: #ffe4a8;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Feature 1: Dhyan Fullscreen Centered Mode */
body.zen-mode .site-header,
body.zen-mode .main-nav,
body.zen-mode .site-footer,
body.zen-mode .hero,
body.zen-mode .features-section,
body.zen-mode .section,
body.zen-mode .manual-note,
body.zen-mode .sync-note,
body.zen-mode .share-action-btn,
body.zen-mode .daily-tools,
body.zen-mode .history-area,
body.zen-mode .feedback-settings,
body.zen-mode .install-area {
  display: none !important;
}

body.zen-mode {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100vh !important;
  width: 100vw !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #06111c !important;
}

body.zen-mode main,
body.zen-mode .content-wrap {
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

body.zen-mode .counter-card {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  padding: 10px !important;
  text-align: center !important;
}

body.zen-mode .count-value {
  color: #ffd88a !important;
  font-size: clamp(4rem, 12vw, 6.5rem) !important;
}

body.zen-mode .count-halo {
  width: clamp(220px, 30vw, 280px) !important;
  height: clamp(220px, 30vw, 280px) !important;
  padding: 16px !important;
}

body.zen-mode .count-halo-value {
  color: #ffd88a !important;
  font-size: clamp(3rem, 6.5vw, 4.2rem) !important;
  line-height: 1 !important;
  margin: 2px 0 !important;
}

body.zen-mode .count-halo-label {
  font-size: clamp(0.7rem, 1.4vw, 0.8rem) !important;
  margin-bottom: 2px !important;
}

body.zen-mode .count-halo-mala,
body.zen-mode .count-halo-sub {
  font-size: clamp(0.72rem, 1.4vw, 0.82rem) !important;
}

/* Feature 230: Car Driving Dashboard Mode */
body.car-mode .site-header,
body.car-mode .main-nav,
body.car-mode .site-footer,
body.car-mode .hero,
body.car-mode .features-section,
body.car-mode .section,
body.car-mode .daily-tools,
body.car-mode .history-area,
body.car-mode .feedback-settings,
body.car-mode .install-area {
  display: none !important;
}

body.car-mode {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100vh !important;
  width: 100vw !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #020710 !important;
}

body.car-mode .counter-card {
  background: #081524 !important;
  border: 3px solid var(--gold) !important;
  box-shadow: 0 0 50px rgba(198, 139, 44, 0.25) !important;
  width: 94% !important;
  max-width: 700px !important;
}

body.car-mode .count-value {
  font-size: clamp(5.5rem, 24vw, 9.5rem) !important;
  color: #ffd88a !important;
  letter-spacing: -0.06em !important;
}

/* Feature 324: Stealth Mode */
body.stealth-mode {
  background: #000000 !important;
  color: transparent !important;
  user-select: none !important;
  touch-action: manipulation !important;
  overflow: hidden !important;
}

body.stealth-mode * { visibility: hidden !important; }
body.stealth-mode .stealth-exit-btn,
body.stealth-mode .stealth-toast,
body.stealth-mode .stealth-ripple {
  visibility: visible !important;
}

.stealth-exit-btn {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.65);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
body.stealth-mode .stealth-exit-btn { display: block; }

.stealth-toast {
  display: none;
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999999;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(198, 139, 44, 0.3);
  color: #ffe4a8;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  animation: stealthToastFade 2.2s forwards;
}

@keyframes stealthToastFade {
  0% { opacity: 0; transform: translate(-50%, -40%); }
  15% { opacity: 1; transform: translate(-50%, -50%); }
  75% { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(-50%, -60%); }
}

.stealth-ripple {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.3);
  animation: stealthRippleAnim 0.35s ease-out forwards;
  z-index: 99999;
}

@keyframes stealthRippleAnim {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}

.mode-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.15s ease;
}

.mode-badge-btn:hover {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--gold);
}

.floating-particle-container {
  position: relative;
  width: 100%;
  pointer-events: none;
  overflow: visible;
}

.floating-particle {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(198, 139, 44, 0.45);
  animation: floatFadeUp 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes floatFadeUp {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.6); }
  20% { opacity: 1; transform: translate(-50%, -20px) scale(1.1); }
  75% { opacity: 0.9; transform: translate(-50%, -50px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -85px) scale(0.95); }
}

.share-action-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.share-action-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}
body.dark .share-action-btn {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--border);
}
body.dark .share-action-btn:hover {
  background: var(--surface-hover);
  border-color: var(--gold);
  color: #ffffff;
}

.content-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.content-card {
  width: 100%;
  max-width: 880px;
  margin: 0 auto 30px;
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .content-card {
    padding: 20px 16px;
    border-radius: 18px;
  }
}

.content-card h1 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.025em;
}
body.dark .content-card h1 { color: #ffffff; }

.content-card h2 {
  margin-top: 26px;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
body.dark .content-card h2 { color: #ffffff; }

.content-card p, .content-card li {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.1vw, 0.96rem);
  line-height: 1.7;
}

.content-card ul, .content-card ol {
  margin-left: 20px;
  margin-bottom: 14px;
}

.section {
  width: 100%;
  max-width: 1140px;
  margin: 36px auto;
}
.section-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}
.section-heading h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.025em;
}
body.dark .section-heading h2 { color: #ffffff; }
.section-heading p {
  color: var(--muted);
  font-size: clamp(0.86rem, 1.1vw, 0.95rem);
}

.steps-grid, .features-grid, .guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card, .guide-card {
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.info-card {
  padding: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 120, 200, 0.35);
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.08);
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 13px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 850;
}

.info-card h3, .guide-card h2, .guide-card h3 {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.info-card p, .guide-card p {
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.6;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-bottom: 13px;
  border-radius: 12px;
  background: var(--blue-soft);
  font-size: 1.15rem;
}

.guide-card {
  display: flex;
  min-height: 190px;
  padding: 18px;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.guide-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.guide-link {
  margin-top: auto;
  padding-top: 13px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.view-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 17px;
  padding: 10px 15px;
  border-radius: 11px;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

/* Privacy Section */
.privacy-section {
  padding: 22px;
  border: 1px solid rgba(198, 139, 44, 0.28);
  border-radius: 18px;
  background: var(--gold-soft);
}
.privacy-section h2 { margin-bottom: 14px; color: var(--navy); font-size: 1.1rem; }
body.dark .privacy-section h2 { color: #ffffff; }
.privacy-list { display: grid; gap: 12px; list-style: none; }
.privacy-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.privacy-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--white);
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
}
.privacy-item strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 0.83rem; }
.privacy-item p { color: var(--muted); font-size: 0.8rem; line-height: 1.55; }

/* Universal Footer */
.site-footer {
  width: 100%;
  max-width: 1060px;
  margin: 50px auto 0;
  padding: 30px 16px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 42px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  opacity: 0.92;
  margin-bottom: 4px;
}

.footer-desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.footer-links a {
  min-height: 38px;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--blue);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .content-card { padding: 20px; border-radius: 20px; }
  .hero { padding: 28px 19px 32px; border-radius: 21px; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 0.84rem; }
  .steps-grid, .features-grid, .guides-grid { grid-template-columns: 1fr; }
  .privacy-section { padding: 18px; }
  .footer-links { gap: 10px; }
}

@media (max-width: 480px) {
  .footer-logo {
    height: 34px;
    max-width: 190px;
  }
}

/* ==========================================
   COOKIE / PRIVACY CONSENT BANNER (AdSense)
   ========================================== */
.consent-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 780px;
  z-index: 999999;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(16, 42, 67, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: slideUpConsent 0.3s ease;
}

body.dark .consent-banner {
  background: #0d243b;
  border-color: #24435f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.consent-text {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.consent-text a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.consent-btn {
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

body.dark .consent-btn {
  background: var(--gold);
  color: #102a43;
}

.consent-btn:hover {
  opacity: 0.9;
}

@keyframes slideUpConsent {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 600px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    bottom: 10px;
    padding: 14px 16px;
  }
  .consent-actions {
    justify-content: flex-end;
  }
}

/* ==========================================
   RELATED GUIDES NAVIGATION
   ========================================== */
.related-guides {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.related-guides h2, .related-guides h3 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
}

body.dark .related-guides h2, body.dark .related-guides h3 {
  color: #ffffff;
}

.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.related-guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--cream);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.related-guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow-soft);
}

.related-guide-card h4 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.related-guide-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.related-guide-link {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}

/* ==========================================
   FAQ SECTION STYLING (Accessible Details)
   ========================================== */
.faq-section {
  margin-top: 36px;
}

.faq-section h2, .faq-section h3 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
}

body.dark .faq-section h2, body.dark .faq-section h3 {
  color: #ffffff;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  padding: 14px 18px;
  transition: border-color 0.15s ease;
}

.faq-item summary {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 800;
  margin-left: 10px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ================================================================
   Minimalist Professional Side Drawer & Hamburger Navigation
   ================================================================ */
.site-drawer-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
  color: var(--navy);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .site-drawer-btn {
    display: inline-flex !important;
  }
}

body.dark .site-drawer-btn {
  background: #102a43;
  color: #f1f5f9;
  border-color: #243b53;
}

.site-drawer-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.drawer-icon-bar {
  display: block;
  width: 17px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--white);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

body.dark .site-drawer {
  background: #08162b;
  border-color: #1e3a5f;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
}

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

.site-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

body.dark .site-drawer-header {
  border-color: #1e3a5f;
}

.site-drawer-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

body.dark .site-drawer-close {
  border-color: #243b53;
  color: #e2e8f0;
}

.site-drawer-close:hover {
  background: var(--blue-soft);
  color: var(--navy);
}

.site-drawer-body {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-drawer-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-drawer-link:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.site-drawer-link.active {
  background: var(--blue-soft);
  color: var(--navy);
  font-weight: 800;
}

body.dark .site-drawer-link.active {
  color: #ffffff;
  background: rgba(40, 120, 200, 0.22);
}

/* ==========================================
   SCROLL TO TOP FLOATING BUTTON
   ========================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(198, 139, 44, 0.15);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 20px rgba(198, 139, 44, 0.3);
}

.scroll-to-top-btn:active {
  transform: translateY(0) scale(0.96);
}

.scroll-to-top-btn svg {
  display: block;
  transition: transform 0.15s ease;
}

.scroll-to-top-btn:hover svg {
  transform: translateY(-1px);
}

body.dark .scroll-to-top-btn {
  background: #102a43;
  border-color: #334e68;
  color: #f1f5f9;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(217, 119, 6, 0.2);
}

body.dark .scroll-to-top-btn:hover {
  background: rgba(217, 119, 6, 0.2);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.35);
}

@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 22px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================
   SOUND & MANTRA MODAL COMMON STYLES
   ========================================== */
.sound-mode-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.sound-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.sound-status-pill:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--navy);
  transform: translateY(-1px);
}

body.dark .sound-status-pill {
  background: #102a43;
  border-color: #243b53;
  color: #f1f5f9;
}

body.dark .sound-status-pill:hover {
  background: rgba(217, 119, 6, 0.18);
  border-color: var(--gold);
  color: var(--gold);
}

.sound-status-pill.sound-on {
  border-color: var(--gold);
  color: var(--navy);
}

body.dark .sound-status-pill.sound-on {
  border-color: var(--gold);
  color: #ffffff;
}

.sound-status-pill.sound-on .sound-pill-icon {
  color: var(--gold);
}

.sound-status-pill.sound-mute {
  opacity: 0.75;
}

.sound-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sound-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 41, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
}

.sound-modal-backdrop.open {
  display: flex;
  animation: modalFadeIn 0.2s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sound-modal-box {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  box-sizing: border-box;
  margin-top: 40px;
  animation: modalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

body.dark .sound-modal-box {
  background: #0d2137;
  border-color: #1e3a5f;
}

.sound-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sound-modal-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 850;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark .sound-modal-title {
  color: #ffffff;
}

.sound-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

body.dark .sound-modal-close {
  background: #102a43;
  border-color: #243b53;
  color: #f1f5f9;
}

.sound-modal-close:hover {
  background: #fed7d7;
  color: #c53030;
  border-color: #feb2b2;
}

.sound-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sound-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

body.dark .sound-option-card {
  background: #102a43;
  border-color: #1e3a5f;
}

.sound-option-card:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.sound-option-card.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 4px 12px rgba(198, 139, 44, 0.18);
}

.sound-opt-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  color: var(--gold);
}

.sound-opt-info {
  flex: 1;
  min-width: 0;
}

.sound-opt-title {
  margin: 0 0 2px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
}

body.dark .sound-opt-title {
  color: #ffffff;
}

.sound-opt-desc {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.sound-opt-check {
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.sound-option-card.active .sound-opt-check {
  opacity: 1;
}

/* Mantra Library Modal */
.mantra-modal-box {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  box-sizing: border-box;
  margin-top: 40px;
  animation: modalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.dark .mantra-modal-box {
  background: #0d2137;
  border-color: #1e3a5f;
}

.mantra-lib-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.mantra-pick-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

body.dark .mantra-pick-card {
  background: #102a43;
  border-color: #1e3a5f;
}

.mantra-pick-card:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.mantra-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(198, 139, 44, 0.2);
  flex-shrink: 0;
  color: var(--gold);
}

.mantra-card-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.mantra-card-body {
  flex: 1;
  min-width: 0;
}

.mantra-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.mantra-card-name {
  font-size: 0.9rem;
  font-weight: 850;
  color: var(--navy);
}

body.dark .mantra-card-name {
  color: #ffffff;
}

.mantra-card-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--gold);
  border: 1px solid rgba(198, 139, 44, 0.3);
}

.mantra-card-preview {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.45;
  font-weight: 600;
}

/* Custom Tool Button Styles */
.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.tool-btn:hover {
  border-color: var(--navy);
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.tool-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Gold Theme Button (For primary action) */
.tool-btn.gold-btn {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

.tool-btn.gold-btn:hover {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(198, 139, 44, 0.25);
}

body.dark .tool-btn {
  background: var(--white);
  border-color: var(--border);
  color: var(--text);
}

body.dark .tool-btn:hover {
  background: var(--cream);
  border-color: var(--blue);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.dark .tool-btn.gold-btn {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: #ffffff;
}

body.dark .tool-btn.gold-btn:hover {
  background: var(--gold);
  color: var(--cream);
}

/* ==========================================
   HERO SEGMENTED CAPSULE BAR (OPTION 3)
   ========================================== */
.hero-segmented-bar {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  gap: 4px;
  transition: all 0.2s ease;
}

.segmented-pill-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  border: none;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

body.dark .segmented-pill-btn {
  color: #ffffff;
}

.segmented-pill-btn:hover {
  background: var(--gold-soft);
  color: var(--gold);
  transform: translateY(-1px);
}

.segmented-pill-btn:active {
  transform: translateY(0) scale(0.98);
}

.segmented-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

body.dark .hero-segmented-bar {
  background: var(--white);
  border-color: var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

body.dark .segmented-divider {
  background: var(--border);
}

@media (max-width: 580px) {
  .hero-segmented-bar {
    border-radius: 16px;
    padding: 6px;
    width: 100%;
    max-width: 360px;
    flex-direction: column;
    gap: 4px;
  }
  .segmented-pill-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
  }
  .segmented-divider {
    display: none;
  }
}

/* ==========================================
   UNIFIED SADHANA DASHBOARD & PRACTICE MATRIX
   ========================================== */
.sadhana-dashboard-card {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(16, 42, 67, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.dark .sadhana-dashboard-card {
  background: #0d2137;
  border-color: #1e3a5f;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.practice-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.matrix-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--cream);
  transition: all 0.15s ease;
}
body.dark .matrix-card {
  background: #102a43;
  border-color: #1e3a5f;
}
.matrix-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}
.matrix-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
body.dark .matrix-title-wrap {
  color: #9fb3c8;
}
.matrix-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s ease;
}
body.dark .matrix-edit-btn {
  background: #14314f;
  border-color: #243b53;
  color: #63b3ed;
}
.matrix-edit-btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}
.matrix-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 2px 0 3px;
}
body.dark .matrix-value {
  color: #ffffff;
}
.matrix-value.matrix-timer {
  color: var(--navy);
  font-family: inherit;
}
body.dark .matrix-value.matrix-timer {
  color: #ffffff;
}
.matrix-unit {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.matrix-subnote {
  font-size: 0.71rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}
body.dark .matrix-subnote {
  color: #829ab1;
}
.target-edit-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 1px 0 2px;
}
.matrix-target-input {
  width: 75px;
  height: 26px;
  min-height: 26px;
  padding: 2px 6px;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 850;
  background: var(--white);
  color: var(--navy);
  outline: none;
}
body.dark .matrix-target-input {
  background: #0d2137;
  color: #ffffff;
}
.matrix-save-btn {
  height: 26px;
  min-height: 26px;
  padding: 2px 8px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}
/* Apple Health Inset History */
.matrix-history-inset {
  border-top: 1px solid var(--border);
  padding-top: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.dark .matrix-history-inset {
  border-color: #1e3a5f;
}
.matrix-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.matrix-history-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
body.dark .matrix-history-title {
  color: #9fb3c8;
}
.matrix-stats-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--blue);
  text-decoration: none;
  transition: all 0.15s ease;
}
body.dark .matrix-stats-link {
  color: #63b3ed;
}
.matrix-stats-link:hover {
  color: var(--gold);
}
.matrix-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.matrix-history-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--cream);
  font-size: 0.78rem;
  color: var(--text);
}
body.dark .matrix-history-list li {
  background: #102a43;
  color: #f1f5f9;
}
.matrix-history-list li span {
  color: var(--muted);
  font-weight: 600;
}
body.dark .matrix-history-list li span {
  color: #9fb3c8;
}
.matrix-history-list li strong {
  color: var(--navy);
  font-weight: 850;
}
body.dark .matrix-history-list li strong {
  color: #ffffff;
}
@media (max-width: 420px) {
  .sadhana-dashboard-card {
    padding: 11px;
  }
  .practice-matrix-grid {
    gap: 7px;
  }
  .matrix-card {
    padding: 10px 9px;
  }
  .matrix-value {
    font-size: 1.12rem;
  }
}

/* ==========================================
   WCAG 2.2 AAA: PREFERS-REDUCED-MOTION SUPPORT
   ========================================== */
@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;
  }
}


