/* Modern Vedic Panchang Design System */
:root {
  /* Default: Auspicious Vedic Light Mode */
  --bg-body: #FFFDF0; /* Auspicious light Haldi / Peetambari yellow */
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-color: rgba(234, 88, 12, 0.18);
  --border-gold: rgba(217, 119, 6, 0.35);
  --border-saffron: rgba(234, 88, 12, 0.35);
  --border-red: rgba(220, 38, 38, 0.25);
  
  /* Auspicious Vedic Colors: Yellow, Orange, Red */
  --saffron: #EA580C; /* Auspicious Kesari / સિંદૂરી */
  --saffron-dark: #C2410C;
  --saffron-bg: rgba(234, 88, 12, 0.12);
  
  --gold: #D97706; /* Auspicious Haldi / Gold / પીળો */
  --gold-glow: #F59E0B;
  --yellow-bright: #EAB308;
  --amber-bg: rgba(245, 158, 11, 0.14);
  
  --crimson: #DC2626; /* Auspicious Kumkum Red / કંકુ લાલ */
  --crimson-dark: #991B1B;
  --ruby: #DC2626;
  --ruby-bg: rgba(220, 38, 38, 0.12);
  
  --emerald: #059669; /* Auspicious Tulsi / Durva Green */
  --emerald-bg: rgba(5, 150, 105, 0.12);
  
  --text-primary: #431407; /* Deepest warm Vedic maroon/charcoal - maximum contrast */
  --text-secondary: #78350F; /* Rich warm brown */
  --text-muted: #9A3412; /* Warm terracotta muted */
  --heading-color: #7C2D12;

  --header-bg: rgba(255, 253, 240, 0.92);
  --shadow-panel: 0 8px 24px rgba(217, 119, 6, 0.08), 0 2px 6px rgba(180, 83, 9, 0.04);
  --shadow-panel-hover: 0 12px 32px rgba(234, 88, 12, 0.14);
  
  --font-gu: 'Noto Sans Gujarati', system-ui, -apple-system, sans-serif;
  --font-en: 'Outfit', system-ui, sans-serif;
  
  color-scheme: light;
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --bg-body: #0B0F19;
  --bg-card: rgba(22, 29, 47, 0.75);
  --bg-card-hover: rgba(30, 41, 67, 0.88);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(255, 183, 3, 0.35);
  --border-saffron: rgba(251, 133, 0, 0.35);
  --border-red: rgba(225, 29, 72, 0.35);
  
  --saffron: #FB8500;
  --saffron-dark: #EA580C;
  --saffron-bg: rgba(251, 133, 0, 0.18);
  
  --gold: #FFB703;
  --gold-glow: #F59E0B;
  --yellow-bright: #FDE047;
  --amber-bg: rgba(245, 158, 11, 0.18);
  
  --crimson: #E11D48;
  --crimson-dark: #BE123C;
  --ruby: #EF4444;
  --ruby-bg: rgba(239, 68, 68, 0.18);
  
  --emerald: #10B981;
  --emerald-bg: rgba(16, 185, 129, 0.18);
  
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --heading-color: #FFFFFF;

  --header-bg: rgba(11, 15, 25, 0.9);
  --shadow-panel: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-panel-hover: 0 12px 36px rgba(0, 0, 0, 0.45);
  
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

::selection {
  background: transparent !important;
  color: inherit !important;
}

::-moz-selection {
  background: transparent !important;
  color: inherit !important;
}

/* Prevent Google Translate Bar / Popup / Body Displacement */
.goog-te-banner-frame, 
.goog-te-gadget, 
#goog-gt-tt, 
.goog-te-balloon-frame, 
.skiptranslate,
#goog-gt-voting,
.goog-tooltip {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
  position: static !important;
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(254, 240, 138, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(254, 215, 170, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(254, 202, 202, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(254, 240, 138, 0.4) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-gu);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(225, 29, 72, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-panel);
  margin-bottom: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.glass-panel:hover {
  border-color: var(--border-saffron);
  box-shadow: var(--shadow-panel-hover);
}

/* Header */
.app-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.spiritual-symbols {
  display: flex;
  gap: 0.5rem;
  font-size: 1.85rem;
  color: var(--crimson);
}

.symbol-om, .symbol-swastik {
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.35));
}

.title-block {
  text-align: left;
}

.mantra-text {
  display: block;
  font-size: 0.85rem;
  color: var(--crimson);
  letter-spacing: 1px;
  font-weight: 700;
}

.main-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--heading-color);
  background: linear-gradient(135deg, #7C2D12 0%, #C2410C 50%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .main-title {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.header-right-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--border-saffron);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-gu);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.1);
}

.theme-toggle-btn:hover {
  background: var(--saffron-bg);
  border-color: var(--saffron);
  transform: translateY(-1px);
}

.live-clock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 0.5rem 1.1rem;
  text-align: right;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.06);
}

.live-indicator {
  font-size: 0.75rem;
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 1.8s infinite;
}

.live-time {
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--saffron-dark);
}

[data-theme="dark"] .live-time {
  color: #FFFFFF;
}

.live-greeting {
  font-size: 0.8rem;
  color: var(--crimson);
  font-weight: 700;
}

/* Hero Date Banner */
.hero-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.hero-date-badge {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.badge-day {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--saffron);
}

.badge-date {
  font-family: var(--font-en);
  font-size: 1.35rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.hero-year-badge {
  background: var(--saffron-bg);
  border: 1px solid var(--border-saffron);
  color: var(--saffron-dark);
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Panchang Vital Grid */
.panchang-vital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vital-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.04);
}

.vital-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.vital-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.vital-value.highlight-tithi {
  color: var(--crimson);
  font-size: 1.3rem;
}

/* Current Active Choghadiya Tracker */
.current-choghadiya-banner {
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.85), rgba(254, 215, 170, 0.8));
  border: 2px solid var(--saffron);
  border-radius: 1rem;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.12);
}

[data-theme="dark"] .current-choghadiya-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(16, 185, 129, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.curr-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--crimson);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pulse-dot-active {
  width: 10px;
  height: 10px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--emerald);
  animation: pulse 1.2s infinite;
}

.curr-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.curr-symbol {
  font-size: 1.5rem;
}

.curr-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading-color);
}

.curr-quality {
  font-size: 0.8rem;
  padding: 0.2rem 0.65rem;
  border-radius: 1rem;
  font-weight: 700;
}

.curr-timer-wrap {
  text-align: right;
}

.timer-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 0.35rem;
  font-weight: 600;
}

.timer-countdown {
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--crimson);
}

/* Special Cards (Grahan, Punam, Amaas, Choth) */
.special-card {
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.card-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.special-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.special-subtitle {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.special-desc {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Grahan Card */
.grahan-card {
  background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
  border: 2px solid var(--crimson);
}

[data-theme="dark"] .grahan-card {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(11, 15, 25, 0.95));
  border: 1px solid rgba(225, 29, 72, 0.5);
}

.grahan-badge {
  background: var(--ruby-bg);
  color: var(--crimson);
  border: 1px solid var(--crimson);
}

.grahan-timings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.timing-box {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
}

[data-theme="dark"] .timing-box {
  background: rgba(0, 0, 0, 0.35);
}

.timing-lbl {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.timing-val {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--saffron-dark);
}

.grahan-notice {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.grahan-notice.visible {
  background: var(--emerald-bg);
  border: 1px solid var(--emerald);
  color: var(--emerald);
}

.grahan-notice.invisible {
  background: var(--amber-bg);
  border: 1px solid var(--gold);
  color: var(--saffron-dark);
}

.sutak-box {
  background: var(--ruby-bg);
  border-left: 4px solid var(--crimson);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.35rem;
  color: var(--crimson-dark);
  font-weight: 600;
}

/* Punam Card */
.punam-card {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 2px solid var(--gold);
}

[data-theme="dark"] .punam-card {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.18), rgba(11, 15, 25, 0.95));
  border: 1px solid rgba(255, 183, 3, 0.45);
}

.punam-badge {
  background: #FEF3C7;
  color: var(--saffron-dark);
  border: 1px solid var(--gold);
}

/* Amaas Card */
.amaas-card {
  background: linear-gradient(135deg, #FFFBEB, #F1F5F9);
  border: 2px solid #64748B;
}

[data-theme="dark"] .amaas-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(11, 15, 25, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.amaas-badge {
  background: #E2E8F0;
  color: #334155;
  border: 1px solid #64748B;
}

/* Choth Card */
.choth-card {
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  border: 2px solid var(--saffron);
}

[data-theme="dark"] .choth-card {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(11, 15, 25, 0.95));
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.choth-badge {
  background: #FFEDD5;
  color: var(--saffron-dark);
  border: 1px solid var(--saffron);
}

.mahayog-alert {
  background: var(--amber-bg);
  border: 1px solid var(--gold);
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--saffron-dark);
  font-weight: 700;
}

.moonrise-highlight {
  background: rgba(254, 240, 138, 0.4);
  border-left: 4px solid var(--saffron);
  padding: 0.75rem 1rem;
  border-radius: 0.35rem;
  margin: 0.75rem 0;
}

[data-theme="dark"] .moonrise-highlight {
  background: rgba(0, 0, 0, 0.35);
  border-left: 4px solid var(--gold);
}

.highlight-time {
  font-family: var(--font-en);
  color: var(--crimson);
  font-weight: 800;
  font-size: 1.15rem;
}

/* Astronomy Section */
.astronomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.astro-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.astro-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.astro-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading-color);
}

.astro-timings {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.astro-timing-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: rgba(254, 240, 138, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
}

[data-theme="dark"] .astro-timing-row {
  background: rgba(255, 255, 255, 0.03);
}

.astro-timing-row strong {
  font-family: var(--font-en);
  color: var(--saffron-dark);
}

[data-theme="dark"] .astro-timing-row strong {
  color: var(--gold);
}

.day-progress-wrap {
  margin-top: auto;
}

.progress-bar-bg {
  height: 9px;
  background: rgba(234, 88, 12, 0.15);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .progress-bar-bg {
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  width: 50%;
  border-radius: 5px;
  transition: width 0.5s ease;
}

.progress-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.moon-visual-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.moon-details-side {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.moon-phase-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--heading-color);
}

.moon-illum-pct {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Festivals Grid */
.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.festival-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.04);
}

.festival-icon {
  font-size: 1.5rem;
  padding-top: 0.1rem;
}

.festival-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 0.2rem;
}

.festival-brief {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Muhurats Grid */
.muhurats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.muhurat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.04);
}

.muhurat-icon {
  font-size: 1.4rem;
}

.muhurat-info h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 0.2rem;
}

.muhurat-time {
  font-family: var(--font-en);
  display: block;
  color: var(--saffron-dark);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .muhurat-time {
  color: var(--gold);
}

.muhurat-info small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.muhurat-card.inauspicious {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(254, 242, 242, 0.7);
}

[data-theme="dark"] .muhurat-card.inauspicious {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.05);
}

.muhurat-card.inauspicious .muhurat-time {
  color: var(--crimson);
}

/* Choghadiya Tables */
.choghadiya-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.choghadiya-legend {
  display: flex;
  gap: 0.85rem;
  font-size: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.choghadiya-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.choghadiya-table-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.choghadiya-table {
  width: 100%;
  border-collapse: collapse;
}

.choghadiya-table th, .choghadiya-table td {
  padding: 0.65rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.choghadiya-table th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
}

.col-symbol {
  width: 28px;
  font-size: 1rem;
}

.col-time {
  font-family: var(--font-en);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.quality-badge {
  font-size: 0.75rem;
  padding: 0.18rem 0.5rem;
  border-radius: 0.35rem;
  font-weight: 700;
  margin-left: 0.35rem;
}

.quality-badge.auspicious, .badge.auspicious {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald);
}

.quality-badge.neutral, .badge.neutral {
  background: var(--amber-bg);
  color: var(--saffron-dark);
  border: 1px solid var(--gold);
}

.quality-badge.inauspicious, .badge.inauspicious {
  background: var(--ruby-bg);
  color: var(--crimson);
  border: 1px solid var(--crimson);
}

.choghadiya-row.active-row {
  background: rgba(254, 240, 138, 0.7);
  border-left: 4px solid var(--saffron);
}

[data-theme="dark"] .choghadiya-row.active-row {
  background: rgba(255, 183, 3, 0.15);
  border-left: 4px solid var(--gold);
}

.choghadiya-row.active-row .status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 1.2s infinite;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  background: var(--header-bg);
  text-align: center;
  margin-top: 2rem;
}

.blessing-text {
  font-size: 1.1rem;
  color: var(--crimson);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

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

.domain-ref a {
  color: var(--saffron-dark);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-en);
}

.domain-ref a:hover {
  text-decoration: underline;
}

.developer-credit {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.65rem;
  font-family: var(--font-en);
}

.developer-credit strong, .developer-credit a {
  color: var(--saffron);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.developer-credit a:hover {
  color: var(--crimson);
  text-decoration: underline;
}

/* Pulse animation */
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 0.85rem;
  }
  
  .glass-panel {
    padding: 1.15rem 0.95rem;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
  }

  .app-header {
    padding: 0.85rem 0 0.65rem;
  }
  
  .header-inner {
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
  }
  
  .header-branding {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .spiritual-symbols {
    font-size: 1.5rem;
  }
  
  .title-block {
    text-align: center;
  }
  
  .main-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }
  
  .sub-location {
    font-size: 0.78rem;
  }
  
  .header-right-group {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
  }
  
  .theme-toggle-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .live-clock-card {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    min-width: auto;
    border-radius: 2rem;
  }
  
  .live-indicator {
    font-size: 0.7rem;
  }
  
  .live-time {
    font-size: 1rem;
  }
  
  .live-greeting {
    display: none;
  }

  .hero-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
  }
  
  .hero-date-badge {
    justify-content: space-between;
    width: 100%;
  }
  
  .badge-day {
    font-size: 1.5rem;
  }
  
  .badge-date {
    font-size: 1.15rem;
  }
  
  .hero-year-badge {
    text-align: center;
    font-size: 0.92rem;
    padding: 0.35rem 0.75rem;
    width: 100%;
  }

  .panchang-vital-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.15rem;
  }
  
  .vital-item {
    padding: 0.75rem 0.5rem;
  }
  
  .vital-label {
    font-size: 0.78rem;
  }
  
  .vital-value {
    font-size: 1.05rem;
  }
  
  .vital-value.highlight-tithi {
    font-size: 1.15rem;
  }

  .current-choghadiya-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
  }
  
  .curr-badge {
    justify-content: center;
  }
  
  .curr-name-wrap {
    justify-content: center;
  }
  
  .curr-name {
    font-size: 1.35rem;
  }
  
  .curr-timer-wrap {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }
  
  .timer-countdown {
    font-size: 1.2rem;
  }

  .special-card {
    padding: 1.15rem 0.95rem;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
  }
  
  .special-title {
    font-size: 1.25rem;
  }
  
  .grahan-timings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .timing-box {
    padding: 0.5rem 0.35rem;
  }
  
  .timing-val {
    font-size: 1rem;
  }

  .astronomy-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .astro-timing-row {
    padding: 0.45rem 0.65rem;
    font-size: 0.88rem;
  }
  
  .moon-visual-wrap {
    justify-content: center;
    gap: 1rem;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
  }

  .festivals-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  
  .festival-card {
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .muhurats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  
  .muhurat-card {
    padding: 0.75rem 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  
  .muhurat-icon {
    font-size: 1.2rem;
  }
  
  .muhurat-info h4 {
    font-size: 0.9rem;
  }
  
  .muhurat-time {
    font-size: 0.85rem;
  }

  .choghadiya-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .choghadiya-legend {
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .choghadiya-dual-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .choghadiya-table-title {
    font-size: 1.05rem;
  }
  
  .choghadiya-table {
    font-size: 0.82rem;
  }
  
  .choghadiya-table th, .choghadiya-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .col-symbol {
    width: 22px;
    font-size: 0.9rem;
  }
  
  .col-name {
    font-size: 0.82rem;
  }
  
  .quality-badge {
    font-size: 0.68rem;
    padding: 0.1rem 0.35rem;
    margin-left: 0.15rem;
  }
  
  .col-time {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .app-footer {
    padding: 1.75rem 0;
    margin-top: 1.25rem;
  }
  
  .blessing-text {
    font-size: 0.98rem;
  }
  
  .credits-text {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .muhurats-grid {
    grid-template-columns: 1fr;
  }
  
  .panchang-vital-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .main-title {
    font-size: 1.35rem;
  }
}
