/* ======================================================== */
/* DEFAULT DARK MODE (ROYAL MAROON / GOLD) */
/* ======================================================== */
body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #2b0c03 0%, #150501 50%, #080200 100%);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(env(safe-area-inset-bottom, 16px) + 56px);
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  min-height: 100dvh;
}
.font-devnagari { font-family: 'Rozha One', serif; }
.font-yatra { font-family: 'Yatra One', cursive; }
.gold-foil { background: linear-gradient(135deg, #ffe082 0%, #d4a337 50%, #9a6d17 100%); }
.card-glass {
  background: rgba(36, 14, 5, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 163, 55, 0.28);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.card-glass-subtle {
  background: rgba(24, 8, 2, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 163, 55, 0.16);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.conic-bead {
  background: conic-gradient(#f59e0b var(--p, 0%), rgba(212, 163, 55, 0.15) 0%);
}
@keyframes beadPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
.tap-animate { animation: beadPulse 0.12s ease-in-out; }
@keyframes micGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}
.mic-listening {
  animation: micGlow 1.3s infinite ease-in-out;
  border-color: #ef4444 !important;
  background-color: rgba(185, 28, 28, 0.9) !important;
  color: #ffffff !important;
}
@keyframes gaugePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.8)); }
}
.gauge-glow { animation: gaugePulse 2s infinite ease-in-out; }

.app-screen { animation: fadeIn 0.18s ease-in-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================================== */
/* PROFESSIONAL LIGHT THEME (DIVINE VEDIC SANDSTONE / IVORY) */
/* ======================================================== */
body.light-theme {
  background: radial-gradient(circle at top, #fffdf8 0%, #fdf6e7 45%, #f9edd4 100%) !important;
  color: #381b0a !important;
}
body.light-theme header {
  background: rgba(255, 253, 247, 0.95) !important;
  border-color: rgba(180, 83, 9, 0.22) !important;
  box-shadow: 0 4px 20px rgba(120, 53, 15, 0.08) !important;
}
body.light-theme #appBottomNav {
  background: rgba(255, 253, 247, 0.95) !important;
  border-color: rgba(180, 83, 9, 0.22) !important;
  box-shadow: 0 -4px 20px rgba(120, 53, 15, 0.08) !important;
}
body.light-theme .card-glass {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(180, 83, 9, 0.22) !important;
  box-shadow: 0 8px 24px -4px rgba(120, 53, 15, 0.08) !important;
}
body.light-theme .card-glass-subtle {
  background: rgba(254, 247, 235, 0.9) !important;
  border: 1px solid rgba(180, 83, 9, 0.16) !important;
}

body.light-theme .text-amber-100 { color: #2d1607 !important; }
body.light-theme .text-amber-200 { color: #451a03 !important; }
body.light-theme .text-amber-300 { color: #78350f !important; }
body.light-theme .text-amber-400 { color: #92400e !important; }
body.light-theme .text-amber-200\/80,
body.light-theme .text-amber-200\/70,
body.light-theme .text-amber-200\/60,
body.light-theme .text-amber-300\/80,
body.light-theme .text-amber-300\/70,
body.light-theme .text-amber-400\/60,
body.light-theme .text-amber-400\/70,
body.light-theme .text-amber-400\/80 {
  color: #78350f !important;
  font-weight: 600;
}

/* कुल बैलेंस और हरे टेक्स्ट का हाई-कंट्रास्ट फिक्स */
body.light-theme .text-emerald-300 { 
  color: #046a38 !important; 
  font-weight: 800 !important;
}
body.light-theme .text-emerald-300\/80 { 
  color: #065f46 !important; 
  font-weight: 700 !important;
}
body.light-theme .text-emerald-400\/60 { 
  color: #046a38 !important; 
  font-weight: 600 !important;
}

body.light-theme .text-rose-300 { color: #be123c !important; }
body.light-theme .text-cyan-300 { color: #0e7490 !important; }
body.light-theme .text-cyan-200 { color: #0891b2 !important; }
body.light-theme .text-orange-300 { color: #c2410c !important; }
body.light-theme .text-orange-200\/80 { color: #9a3412 !important; }

/* आज का जप और अंबर बैज का फिक्स (अब /90 भी सपोर्टेड है) */
body.light-theme button.bg-amber-950\/80,
body.light-theme div.bg-amber-950\/80,
body.light-theme .bg-amber-950\/90,
body.light-theme .bg-amber-950\/80,
body.light-theme .bg-amber-950\/70 {
  background-color: #fef3c7 !important;
  border-color: rgba(217, 119, 6, 0.45) !important;
  color: #78350f !important;
}

/* कुल बैलेंस बैज */
body.light-theme .bg-emerald-950\/90,
body.light-theme .bg-emerald-950\/80 {
  background-color: #d1fae5 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: #065f46 !important;
}

body.light-theme .bg-cyan-950\/80,
body.light-theme .bg-cyan-950\/60 {
  background-color: #ecfeff !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  color: #0e7490 !important;
}
body.light-theme .bg-orange-950\/80 {
  background-color: #fff7ed !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
}
body.light-theme input,
body.light-theme select {
  background-color: #ffffff !important;
  border-color: rgba(180, 83, 9, 0.35) !important;
  color: #381b0a !important;
}
body.light-theme input::placeholder {
  color: #a87c55 !important;
}
body.light-theme .conic-bead {
  background: conic-gradient(#d97706 var(--p, 0%), rgba(217, 119, 6, 0.16) 0%) !important;
}
body.light-theme .bg-amber-900\/60 {
  background-color: #fed7aa !important;
}

body.light-theme #authModal,
body.light-theme #cibilModal,
body.light-theme #goalModal {
  background-color: rgba(45, 20, 8, 0.75) !important;
}

body.light-theme .bhakti-virtual-card .text-amber-200,
body.light-theme .bhakti-virtual-card .text-amber-300,
body.light-theme .bhakti-virtual-card .text-amber-400,
body.light-theme .bhakti-virtual-card .text-amber-400\/80,
body.light-theme .bhakti-virtual-card .text-amber-400\/70 {
  color: #fef08a !important;
}

body.light-theme #appBottomNav button {
  color: #8c603b;
}
body.light-theme #appBottomNav button.text-amber-400 {
  color: #b45309 !important;
  font-weight: 700;
}

@media print {
  body { background: white !important; color: black !important; }
  header, footer, nav, #appBottomNav, button { display: none !important; }
  #chequePrintArea { border: 2px solid black !important; color: black !important; }
}