/* ============================================================
   Muhurtas.com — Main Stylesheet
   Tadpatra (ancient bark / palm-leaf manuscript) theme
   ============================================================ */

:root {
  --saffron:      #CC6600;
  --saffron-deep: #B35400;
  --accent:       #8B5E3C;
  --accent-soft:  #A0714D;
  --text-dark:    #2C1810;
  --text-soft:    #5A3D28;
  --text-muted:   #856046;
  --cream:        #F3E4C6;
  --gold:         #C79A3C;
  --bark-1: #E9D3A8;
  --bark-2: #E2C795;
  --bark-3: #D8B87F;
  --card-bg: #EFDDB6;
  --card-bg-2: #E7D0A2;
  --card-border: #C9A66B;
  --card-border-strong: #B8914E;
  --hero-1: #2A1A08;
  --hero-2: #1A1008;
  --hero-3: #0D0804;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 24, 16, 0.10);
  --shadow-lg: 0 10px 30px rgba(44, 24, 16, 0.14);
  --header-h: 66px;
  --trans: 0.22s cubic-bezier(.4,0,.2,1);
  --serif: 'Noto Serif Devanagari', 'Marcellus', 'Georgia', serif;
  --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body); color: var(--text-dark); line-height: 1.62; min-height: 100vh;
  background-color: var(--bark-2);
  background-image:
    repeating-linear-gradient(0deg, rgba(120,80,30,0.035) 0px, rgba(120,80,30,0.035) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(120,80,30,0.025) 0px, rgba(120,80,30,0.025) 1px, transparent 1px, transparent 4px),
    radial-gradient(ellipse 60% 45% at 12% 8%,  rgba(200,150,70,0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 22%, rgba(150,95,40,0.28),  transparent 60%),
    radial-gradient(ellipse 70% 50% at 70% 78%, rgba(120,70,25,0.22),  transparent 65%),
    radial-gradient(ellipse 55% 45% at 25% 92%, rgba(190,140,65,0.25), transparent 60%),
    linear-gradient(150deg, var(--bark-1) 0%, var(--bark-2) 45%, var(--bark-3) 100%);
  background-attachment: fixed;
}
h1,h2,h3,h4,h5 { font-family: var(--serif); line-height: 1.25; color: var(--accent); font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
select, input { font-family: inherit; }
ul { list-style: none; }
.hidden { display: none !important; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.section { padding: 3.5rem 0; }
.section-header { margin-bottom: 1.8rem; text-align: center; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--accent); position: relative; display: inline-block; padding-bottom: 0.5rem; }
.section-title::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 70px; height: 3px; background: linear-gradient(90deg, transparent, var(--saffron), transparent); }
.section-desc { color: var(--text-soft); max-width: 640px; margin: 0.6rem auto 0; font-size: 1rem; }

/* ── HEADER ── */
.site-header { position: sticky; top: 0; z-index: 1000; height: var(--header-h); background: linear-gradient(180deg, #F1E0BC, #E7D2A6); border-bottom: 2px solid var(--saffron); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 100%; }
.logo { display: flex; align-items: center; gap: 0.5rem; line-height: 1.05; flex-shrink: 0; text-decoration: none; }
.logo-om { font-size: 1.6rem; color: var(--saffron); }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--accent); letter-spacing: 0.3px; }
.logo-name b { color: var(--saffron); font-weight: 700; }
.logo-tagline { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.logo-sub { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 0.2rem; margin-left: auto; }
.site-nav a { font-size: 0.92rem; font-weight: 500; color: var(--text-soft); padding: 0.5rem 0.85rem; border-radius: 8px; transition: all var(--trans); }
.site-nav a:hover { background: rgba(203,102,0,0.12); color: var(--accent); }
.site-nav a.active { background: var(--accent); color: var(--cream); }
.header-controls { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.6rem; }
.lang-switch { appearance: none; background: #F5E8CB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B5E3C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.6rem center; border: 1.5px solid var(--card-border-strong); border-radius: 8px; padding: 0.42rem 1.8rem 0.42rem 0.7rem; font-size: 0.85rem; font-weight: 600; color: var(--accent); cursor: pointer; }
.lang-switch:focus { outline: 2px solid var(--saffron); outline-offset: 1px; }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1.5px solid var(--card-border-strong); border-radius: 8px; background: #F5E8CB; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; transition: var(--trans); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; gap: 0.2rem; position: absolute; top: var(--header-h); left: 0; right: 0; background: #ECDBB4; border-bottom: 2px solid var(--saffron); padding: 1rem 1.25rem; box-shadow: var(--shadow-md); z-index: 999; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.7rem 1rem; border-radius: 8px; font-weight: 500; color: var(--text-soft); }
.mobile-nav a:hover, .mobile-nav a.active { background: rgba(203,102,0,0.14); color: var(--accent); }
.dark-toggle { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #F5E8CB; border: 1.5px solid var(--card-border-strong); transition: var(--trans); }
.dark-toggle:hover { background: rgba(203,102,0,0.16); }
.nav-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.mobile-nav-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-radius: 8px; font-weight: 500; color: var(--text-soft); transition: var(--trans); }
.mobile-nav-link:hover, .mobile-nav-link.active { background: rgba(203,102,0,0.14); color: var(--accent); }
.mobile-lang-wrap { padding: 0.7rem 1rem; border-top: 1px solid var(--card-border); }
.lang-switch--mobile { width: 100%; }

/* ── HERO ── */
.hero { min-height: 80vh; background: linear-gradient(140deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%); color: #F6E8CE; position: relative; overflow: hidden; display: flex; align-items: center; padding: 2.5rem 0; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; width: 100%; position: relative; z-index: 2; }
.hero-grid { display: flex; flex-wrap: nowrap; width: 100%; align-items: flex-start; }
.hero-left { flex: 0 0 50%; width: 50%; max-width: 50%; box-sizing: border-box; padding-right: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.hero-right { flex: 0 0 50%; width: 50%; max-width: 50%; box-sizing: border-box; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }

/* Navagraha orbital animation */
.graha-system { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 700px; z-index: 1; pointer-events: none; opacity: 0.25; }
.graha-sun { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2.8rem; filter: drop-shadow(0 0 25px rgba(199,154,60,0.7)); }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(199,154,60,0.2); border-radius: 50%; }
.orbit-1 { width: 80px; height: 80px; margin: -40px 0 0 -40px; animation: spin 12s linear infinite; }
.orbit-2 { width: 130px; height: 130px; margin: -65px 0 0 -65px; animation: spin 18s linear infinite reverse; }
.orbit-3 { width: 190px; height: 190px; margin: -95px 0 0 -95px; animation: spin 28s linear infinite; }
.orbit-4 { width: 240px; height: 240px; margin: -120px 0 0 -120px; animation: spin 22s linear infinite reverse; }
.orbit-5 { width: 310px; height: 310px; margin: -155px 0 0 -155px; animation: spin 45s linear infinite; }
.orbit-6 { width: 370px; height: 370px; margin: -185px 0 0 -185px; animation: spin 35s linear infinite reverse; }
.orbit-7 { width: 440px; height: 440px; margin: -220px 0 0 -220px; animation: spin 60s linear infinite; }
.orbit-8 { width: 530px; height: 530px; margin: -265px 0 0 -265px; animation: spin 80s linear infinite reverse; }
.orbit-9 { width: 620px; height: 620px; margin: -310px 0 0 -310px; animation: spin 90s linear infinite; }
.graha { position: absolute; top: -0.6em; left: 50%; transform: translateX(-50%); font-size: 1rem; color: rgba(199,154,60,0.9); filter: drop-shadow(0 0 6px rgba(199,154,60,0.5)); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Neumorphic card base — clean modern elevation */
.neu-card {
  background: rgba(255,240,210,0.06);
  border: 1px solid rgba(199,154,60,0.35);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Hero Controls Bar — Timezone and Location on same line */
.hero-controls-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  width: 100%;
}
.hero-controls-bar .tz-group {
  flex: 1 1 54%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hero-controls-bar .loc-group {
  flex: 1 1 46%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tz-row { display: flex; flex-direction: column; gap: 0.4rem; }
.tz-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #D9B98A; font-weight: 600; white-space: nowrap; }
.tz-select-wrap { display: flex; align-items: center; width: 100%; }
.tz-select { width: 100%; height: 42px; appearance: none; background: rgba(255,240,210,0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E0B978' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.9rem center; border: 1.5px solid rgba(199,154,60,0.4); border-radius: 10px; padding: 0.6rem 2.2rem 0.6rem 0.8rem; color: #F6E8CE; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: var(--trans); box-sizing: border-box; }
.tz-select:hover { border-color: var(--gold); background-color: rgba(255,240,210,0.12); }
.tz-select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.tz-select option, .tz-select optgroup { background: #1A1008; color: #F6E8CE; }

/* Location row */
.loc-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 42px;
  background: rgba(255,240,210,0.08);
  border: 1.5px solid rgba(199,154,60,0.4);
  border-radius: 10px;
  padding: 0 0.65rem;
  box-sizing: border-box;
  margin-top: 0;
  min-width: 0;
  transition: var(--trans);
}
.loc-row:hover {
  border-color: var(--gold);
  background-color: rgba(255,240,210,0.12);
}
.loc-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(199,154,60,0.15);
  border: 1px solid rgba(199,154,60,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  color: #F6E8CE;
  flex-shrink: 0;
}
.loc-btn:hover { background: var(--saffron); border-color: var(--saffron); transform: scale(1.05); color: #fff; }
.loc-label {
  font-size: 0.82rem;
  color: #F6E8CE;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

@media (max-width: 580px) {
  .hero-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .hero-controls-bar .tz-group,
  .hero-controls-bar .loc-group {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Clock */
.clock-block { margin-top: 0.5rem; }
.cur-muhurat-card { padding: 1.4rem; overflow: hidden; word-wrap: break-word; }

.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(199, 154, 60, 0.2);
  margin-bottom: 0.6rem;
}

.split-cell {
  display: flex;
  flex-direction: column;
}

.split-cell--next-head,
.split-cell--next-timer {
  border-left: 1px solid rgba(199, 154, 60, 0.15);
  padding-left: 1rem;
}

.cur-eyebrow, .next-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D9B98A;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.next-eyebrow {
  color: var(--gold);
}

.next-chevron {
  color: var(--gold);
}

.cur-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(1.35)} }

.split-name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.split-name-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cur-name, .cur-muhurat-name,
.next-name, .next-muhurat-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: #FFF7E8;
  line-height: 1.2;
}

.next-muhurat-name {
  color: #fef08a;
}

.cur-name-alt, .cur-muhurat-alt,
.next-name-alt, .next-muhurat-alt {
  font-size: 0.95rem;
  color: var(--gold);
  font-family: var(--serif);
}

.cur-time, .cur-muhurat-time {
  font-size: 0.88rem;
  color: #E7CFA6;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.cur-timer-box {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.45);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #86efac;
}

.cur-timer-box .timer-icon {
  color: #22c55e;
}

.cur-timer-box .timer-label {
  color: #bbf7d0;
  font-size: 0.72rem;
  font-weight: 600;
}

.cur-timer-box .cur-countdown {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.05em;
  font-size: 0.84rem;
}

.cur-timer-box .next-time-sub {
  font-size: 0.7rem;
  color: #a7f3d0;
  opacity: 0.9;
}

.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0; }
.badge.ati-shubh, .badge--ati-shubh { background: rgba(199,154,60,0.25); color: #F0CE7E; border: 1px solid rgba(199,154,60,0.6); }
.badge.shubh, .badge--shubh { background: rgba(111,207,122,0.16); color: #8FE09B; border: 1px solid rgba(111,207,122,0.4); }
.badge.ashubh, .badge--ashubh { background: rgba(180,120,60,0.2); color: #D4A574; border: 1px solid rgba(180,120,60,0.5); }
.badge.neutral, .badge--neutral { background: rgba(210,180,140,0.16); color: #E2C79A; border: 1px solid rgba(210,180,140,0.4); }
.badge--lg { font-size: 0.85rem; padding: 0.35rem 0.95rem; }
.cur-desc, .cur-muhurat-desc { font-size: 0.82rem; color: #C9A876; margin-top: 0.6rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cur-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.cur-tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 600; padding: 0.22rem 0.6rem; border-radius: 999px; letter-spacing: 0.02em; white-space: nowrap; }
.cur-tag--do { background: rgba(111,207,122,0.14); color: #8FE09B; border: 1px solid rgba(111,207,122,0.35); }
.cur-tag--dont { background: rgba(180,120,60,0.14); color: #D4A574; border: 1px solid rgba(180,120,60,0.35); }
.cur-tags-group { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.cur-tags-group + .cur-tags-group { margin-top: 0.35rem; }
.cur-tags-heading { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.cur-tags-heading--do { background: rgba(111,207,122,0.22); color: #6FCF7A; }
.cur-tags-heading--dont { background: rgba(180,120,60,0.22); color: #D4A574; }
.cur-tags-warning { font-size: 0.72rem; color: #D4A574; margin-top: 0.5rem; line-height: 1.4; opacity: 0.85; }
.mini-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #C9A876; font-weight: 600; margin: 0.3rem 0 0.5rem; }

/* Hero — Muhurats Row Header & Filter Pills */
.hero-muhurats { margin-top: 1.2rem; }
.hero-muhurats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 0.65rem;
}
.hero-muhurats-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A876;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.muhurat-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(199, 154, 60, 0.25);
  color: #d4c2a4;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  user-select: none;
}

.filter-pill:hover {
  background: rgba(199, 154, 60, 0.14);
  border-color: rgba(199, 154, 60, 0.45);
  color: #fff;
}

.filter-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1208;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(199, 154, 60, 0.4);
}

.filter-pill .pill-count {
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.filter-pill.active .pill-count {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.filter-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.filter-pill--ati-shubh .pill-dot { background: var(--gold); }
.filter-pill--shubh .pill-dot { background: #6FCF7A; }
.filter-pill--ashubh .pill-dot { background: #e0964e; }
.filter-pill--neutral .pill-dot { background: #C9A876; }

/* Hero — muhurat scroll row */
.muhurat-scroll { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; scrollbar-color: rgba(199,154,60,0.5) transparent; }
.muhurat-scroll::-webkit-scrollbar { height: 5px; }
.muhurat-scroll::-webkit-scrollbar-thumb { background: rgba(199,154,60,0.5); border-radius: 4px; }
.m-slot { flex-shrink: 0; min-width: 130px; max-width: 165px; background: rgba(255,240,210,0.05); border: 1px solid rgba(199,154,60,0.2); border-left-width: 4px; border-radius: 12px; padding: 0.65rem 0.85rem; transition: var(--trans); backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(0,0,0,0.22); cursor: pointer; position: relative; }
.m-slot:hover { background: rgba(199,154,60,0.16); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }

/* Current Tile in Slider with Solid Green Background */
.m-slot.now {
  background: linear-gradient(145deg, #16a34a 0%, #15803d 100%) !important;
  border: 2px solid #86efac !important;
  border-left-width: 5px !important;
  border-left-color: #86efac !important;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.55), 0 0 0 2px rgba(134, 239, 172, 0.45) !important;
  transform: translateY(-2px);
}

.m-slot.now .m-slot-date {
  color: #fef08a !important;
}

.m-slot.now .m-slot-date::before {
  background: #fef08a !important;
}

.m-slot.now .m-slot-name {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.m-slot.now .m-slot-alt {
  color: #dcfce7 !important;
}

.m-slot.now .m-slot-time {
  color: #ffffff !important;
  font-weight: 600;
  opacity: 0.95;
}

.m-slot.now .m-slot-now {
  background: #ffffff !important;
  color: #15803d !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.m-slot.ati-shubh { border-left-color: var(--gold); }
.m-slot.shubh { border-left-color: #6FCF7A; }
.m-slot.ashubh { border-left-color: #B8914E; }
.m-slot.neutral { border-left-color: #C9A876; }
.m-slot-date { font-size: 0.68rem; font-weight: 700; color: #facc15; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.3rem; }
.m-slot-date::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.75; }
.m-slot-name { font-family: var(--serif); font-size: 0.95rem; color: #FFF7E8; }
.m-slot-alt { font-size: 0.78rem; color: var(--gold); }
.m-slot-time { font-size: 0.74rem; color: #C9A876; margin-top: 0.3rem; }
.m-slot-now { font-size: 0.62rem; font-weight: 800; color: #ffffff; background: #16a34a; padding: 2px 7px; border-radius: 999px; letter-spacing: 0.08em; position: absolute; top: 6px; right: 6px; box-shadow: 0 2px 6px rgba(22, 163, 74, 0.4); animation: pulse-badge 2s infinite; }
@keyframes pulse-badge { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.88; transform: scale(0.96); } }

@media (max-width: 680px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .split-cell--next-head,
  .split-cell--next-timer {
    border-left: none;
    border-top: 1px solid rgba(199, 154, 60, 0.15);
    padding-left: 0;
    padding-top: 0.6rem;
  }
  .hero-muhurats-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── PANCHANG SECTION (Card wrap with scrollable body) ── */
.pk-card-wrap {
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(44, 24, 16, 0.08);
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2));
}
.pk-bar-date {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent);
  background: linear-gradient(90deg, var(--card-bg), var(--card-bg-2));
  border-bottom: 1.5px solid var(--card-border);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  margin-bottom: 0;
}
.pk-scroll-wrap {
  max-height: 330px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(199, 154, 60, 0.45) transparent;
  scroll-behavior: smooth;
}
.pk-scroll-wrap::-webkit-scrollbar {
  width: 6px;
}
.pk-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}
.pk-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(199, 154, 60, 0.45);
  border-radius: 4px;
}
.pk-scroll-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
.pk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.pk-col { padding: 0; }
.pk-col + .pk-col { border-left: 1px solid var(--card-border); }
.pk-col-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(199, 154, 60, 0.18);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.75rem 1.4rem;
  border-bottom: 1px solid var(--card-border);
  font-weight: 600;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pk-list { margin: 0; padding: 0; }
.pk-item { display: flex; border-bottom: 1px solid var(--card-border); }
.pk-item:last-child { border-bottom: none; }
.pk-label { width: 42%; font-weight: 600; color: var(--saffron-deep); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.4rem; border-right: 1px solid var(--card-border); }
.pk-value { flex: 1; font-family: var(--serif); font-size: 1rem; color: var(--text-dark); padding: 0.75rem 1rem; }
.pk-item:nth-child(even) { background: rgba(255,248,225,0.35); }
.pk-item--danger .pk-label--danger { color: #B35400; }
.pk-item--danger .pk-value--danger { color: #B35400; font-weight: 600; }
.pk-item--auspicious .pk-label--auspicious { color: #2D8F3E; }
.pk-item--auspicious .pk-value--auspicious { color: #2D8F3E; font-weight: 600; }

/* Legacy panchang-table (kept for compatibility) */
.panchang-wrap { background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2)); border: 1.5px solid var(--card-border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.panchang-bar { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: center; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); color: var(--cream); padding: 0.9rem 1.5rem; font-size: 0.92rem; }
.panchang-bar b { color: #F0CE7E; font-family: var(--serif); }
.panchang-table { width: 100%; border-collapse: collapse; }
.panchang-table tr { border-bottom: 1px solid var(--card-border); }
.panchang-table tr:last-child { border-bottom: none; }
.panchang-table td { padding: 0.85rem 1.4rem; vertical-align: top; }
.panchang-table td.pk-label { width: 34%; font-weight: 600; color: var(--saffron-deep); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.03em; border-right: 1px solid var(--card-border); }
.panchang-table td.pk-value { font-family: var(--serif); font-size: 1.05rem; color: var(--text-dark); }
.panchang-table tr:nth-child(even) { background: rgba(255,248,225,0.35); }
.pk-value .pk-danger { color: var(--saffron-deep); font-weight: 600; }
.panchang-grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.panchang-grid2 > div { border-right: 1px solid var(--card-border); }
.panchang-grid2 > div:last-child { border-right: none; }
.panchang-col-title { background: rgba(203,102,0,0.14); color: var(--accent); font-family: var(--serif); font-size: 1rem; padding: 0.7rem 1.4rem; border-bottom: 1px solid var(--card-border); font-weight: 600; }

/* ── MUHURAT SECTION CONTROLS & MODERN CARDS ── */
.muhurat-section-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: -0.8rem; margin-bottom: 1.2rem; }

.muhurat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.m-period-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 0.25rem;
}

.m-period-tab {
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  background: transparent;
  transition: var(--trans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
}

.m-period-tab:hover {
  color: var(--accent);
  background: rgba(199, 154, 60, 0.12);
}

.m-period-tab.active {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(203, 102, 0, 0.35);
}

.m-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.m-jump-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  border-radius: 9px;
  color: #16a34a;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
}

.m-jump-now-btn:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  transform: translateY(-1px);
}

.m-view-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 9px;
  padding: 0.2rem;
}

.m-view-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--trans);
}

.m-view-btn:hover {
  color: var(--accent);
  background: rgba(199, 154, 60, 0.12);
}

.m-view-btn.active {
  background: var(--accent);
  color: var(--cream);
}

/* Quality filter pills row */
.m-quality-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.m-q-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(199, 154, 60, 0.08);
  border: 1px solid rgba(199, 154, 60, 0.25);
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--trans);
}

.m-q-pill:hover {
  background: rgba(199, 154, 60, 0.16);
  border-color: var(--gold);
}

.m-q-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.m-q-pill.ati-shubh.active {
  background: linear-gradient(135deg, #c79a3c, #9e7520);
  border-color: #c79a3c;
  color: #1a1208;
}

.m-q-pill.shubh.active {
  background: linear-gradient(135deg, #22c55e, #15803d);
  border-color: #22c55e;
  color: #ffffff;
}

.m-q-pill.ashubh.active {
  background: linear-gradient(135deg, #ea580c, #b45309);
  border-color: #ea580c;
  color: #ffffff;
}

.m-q-pill.neutral.active {
  background: linear-gradient(135deg, #78716c, #57534e);
  border-color: #78716c;
  color: #ffffff;
}

.m-q-count {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

/* ── MULTI-COLUMN CARDS GRID (3-columns on desktop) ── */
.muhurat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1rem;
}

.m-card {
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2));
  border: 1.5px solid var(--card-border);
  border-left-width: 4px;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 0 4px 16px rgba(44, 24, 16, 0.08);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
}

.m-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(44, 24, 16, 0.14);
  border-color: var(--gold);
}

.m-card--ati-shubh { border-left-color: var(--gold); }
.m-card--shubh { border-left-color: #22c55e; }
.m-card--ashubh { border-left-color: #d97706; }
.m-card--neutral { border-left-color: #8b5e3c; }

/* Top row inside card */
.m-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.m-card-meta-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.m-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(199, 154, 60, 0.16);
  padding: 2px 7px;
  border-radius: 6px;
}

.m-card-period-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Card body */
.m-card-body {
  flex: 1;
}

.m-card-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.m-card-alt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-card-dot {
  opacity: 0.5;
}

.m-card-deity {
  color: var(--accent-soft);
  font-weight: 500;
}

/* Card footer */
.m-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(199, 154, 60, 0.2);
  gap: 0.5rem;
}

.m-card-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.m-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: var(--trans);
}

.m-card-link:hover {
  color: var(--saffron);
  transform: translateX(2px);
}

/* ══════════════════════════════════════════════════════════════
   CURRENT HOUR / ACTIVE STATE (EXACTLY MATCHING TOP SLIDER)
   ══════════════════════════════════════════════════════════════ */
.m-card.now,
.m-card.m-card--now {
  background: linear-gradient(145deg, #16a34a 0%, #15803d 100%) !important;
  border: 2px solid #86efac !important;
  border-left-width: 5px !important;
  border-left-color: #86efac !important;
  box-shadow: 0 6px 24px rgba(22, 163, 74, 0.55), 0 0 0 2px rgba(134, 239, 172, 0.45) !important;
  transform: translateY(-3px);
}

.m-card.now .m-card-num {
  background: #ffffff !important;
  color: #15803d !important;
  font-weight: 800;
}

.m-card.now .m-card-period-tag {
  color: #fef08a !important;
}

.m-card.now .m-card-name {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.m-card.now .m-card-alt,
.m-card.now .m-card-deity {
  color: #dcfce7 !important;
}

.m-card.now .m-card-footer {
  border-top-color: rgba(255, 255, 255, 0.25) !important;
}

.m-card.now .m-card-time {
  color: #fef08a !important;
  font-weight: 700;
}

.m-card.now .m-card-link {
  color: #ffffff !important;
}

.m-card-now {
  font-size: 0.65rem;
  font-weight: 800;
  color: #15803d;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: pulse-badge 2s infinite;
}

@keyframes jump-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(134, 239, 172, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.jump-pulse {
  animation: jump-pulse 1.2s ease-out;
}

/* ── COMPACT SCROLLABLE LIST VIEW CONTAINER ── */
.muhurat-list-container {
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(44, 24, 16, 0.08);
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2));
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(199, 154, 60, 0.45) transparent;
}

.muhurat-list-container::-webkit-scrollbar {
  width: 6px;
}
.muhurat-list-container::-webkit-scrollbar-thumb {
  background: rgba(199, 154, 60, 0.45);
  border-radius: 4px;
}
.muhurat-list-container .muhurat-grid {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.muhurat-grid { display: flex; flex-direction: column; background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2)); border: 1px solid var(--card-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 6px 20px rgba(44, 24, 16, 0.08); }
.muhurat-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--card-border); transition: background var(--trans); text-decoration: none; }
.muhurat-row:last-child { border-bottom: none; }
.muhurat-row:hover { background: rgba(199,154,60,0.1); }
.muhurat-row:nth-child(even) { background: rgba(255,248,225,0.3); }
.muhurat-row:nth-child(even):hover { background: rgba(199,154,60,0.14); }
.muhurat-row--ati-shubh { border-left: 4px solid var(--gold); }
.muhurat-row--shubh { border-left: 4px solid #6FCF7A; }
.muhurat-row--ashubh { border-left: 4px solid #B8914E; }
.muhurat-row--neutral { border-left: 4px solid #C9A876; }
.muhurat-num { width: 2rem; height: 2rem; border-radius: 50%; background: rgba(199,154,60,0.15); color: var(--accent); font-weight: 700; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.muhurat-period-ico { font-size: 0.95rem; }
.muhurat-name-wrap { display: flex; align-items: baseline; gap: 0.4rem; flex: 1; min-width: 0; }
.muhurat-name { font-family: var(--serif); font-size: 1rem; color: var(--text-dark); }
.muhurat-subname { font-size: 0.78rem; color: var(--text-muted); }
.muhurat-time { font-size: 0.88rem; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 120px; text-align: right; }

.muhurat-row.now,
.muhurat-row.muhurat-row--active {
  background: linear-gradient(145deg, #16a34a 0%, #15803d 100%) !important;
  border-left: 5px solid #86efac !important;
  box-shadow: inset 0 0 0 1px rgba(134, 239, 172, 0.4) !important;
}

.muhurat-row.now .muhurat-num {
  background: #ffffff !important;
  color: #15803d !important;
}

.muhurat-row.now .muhurat-name {
  color: #ffffff !important;
  font-weight: 800;
}

.muhurat-row.now .muhurat-subname {
  color: #dcfce7 !important;
}

.muhurat-row.now .muhurat-time {
  color: #fef08a !important;
  font-weight: 700;
}

.muhurat-row.now .muhurat-row-arrow {
  color: #ffffff !important;
  opacity: 0.9 !important;
}

/* ── CALENDAR SECTION ── */
.calendar-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.cal-nav-btn { width: 40px; height: 40px; border-radius: 10px; font-size: 1.2rem; color: var(--accent); background: var(--card-bg); border: 1.5px solid var(--card-border); transition: var(--trans); display: flex; align-items: center; justify-content: center; }
.cal-nav-btn:hover { background: rgba(203,102,0,0.16); }
.cal-month-label { min-width: 190px; text-align: center; font-family: var(--serif); font-size: 1.1rem; color: var(--accent); margin: 0; }
.cal-view-btns { margin-left: auto; display: flex; gap: 0.3rem; background: var(--card-bg); border: 1.5px solid var(--card-border); border-radius: 10px; padding: 0.3rem; }
.cal-view-btn { padding: 0.4rem 0.9rem; border-radius: 7px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); transition: var(--trans); display: inline-flex; align-items: center; gap: 0.3rem; }
.cal-view-btn.active { background: var(--accent); color: var(--cream); }
/* Legacy cal-controls / cal-nav / cal-toggle aliases */
.cal-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.cal-nav { display: flex; align-items: center; gap: 0.5rem; background: var(--card-bg); border: 1.5px solid var(--card-border); border-radius: 10px; padding: 0.3rem; }
.cal-nav button { width: 34px; height: 34px; border-radius: 7px; font-size: 1.2rem; color: var(--accent); transition: var(--trans); }
.cal-nav button:hover { background: rgba(203,102,0,0.16); }
#cal-month-year { min-width: 190px; text-align: center; font-family: var(--serif); font-size: 1.1rem; color: var(--accent); }
.cal-toggle { margin-left: auto; display: flex; gap: 0.3rem; background: var(--card-bg); border: 1.5px solid var(--card-border); border-radius: 10px; padding: 0.3rem; }
.cal-toggle button { padding: 0.4rem 0.9rem; border-radius: 7px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); transition: var(--trans); }
.cal-toggle button.active { background: var(--accent); color: var(--cream); }
.cal-grid-wrap { background: var(--card-bg); border: 1.5px solid var(--card-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cal-header-row { display: grid; grid-template-columns: repeat(7,1fr); background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
.cal-header-cell { text-align: center; padding: 0.6rem 0; color: var(--cream); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cal-body { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-cell { min-height: 78px; padding: 0.4rem 0.5rem; border-right: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); cursor: pointer; transition: var(--trans); display: flex; flex-direction: column; gap: 0.15rem; position: relative; }
.cal-cell:hover { background: rgba(203,102,0,0.1); }
.cal-cell--other { opacity: 0.42; cursor: default; }
.cal-cell.today { background: linear-gradient(135deg, rgba(199,154,60,0.28), rgba(203,102,0,0.14)); }
.cal-cell.today .cal-day-num { color: var(--accent); font-weight: 800; }
.cal-cell.selected { box-shadow: inset 0 0 0 2px var(--saffron); }
.cal-day-num { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--text-dark); }
.cal-tithi { font-size: 0.66rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-fest-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 2px; }
.cal-fest-dot--major { background: var(--saffron-deep); }
.cal-fest-dot--moderate { background: var(--saffron); }
.cal-fest-label { font-size: 0.62rem; font-weight: 600; color: var(--saffron-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ── CALENDAR LIST VIEW & WEEK NAVIGATION ── */
.cal-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  margin-bottom: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.cal-list-toolbar-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cal-list-week-badge {
  background: var(--saffron);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.cal-list-week-dates {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}
.cal-list-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
}
.cal-scroll-hint-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cal-jump-today-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 153, 51, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: var(--trans);
}
.cal-jump-today-btn:hover {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}
.cal-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 540px;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 0.2rem 0.4rem 0.2rem 0.1rem;
}
.cal-list-wrap::-webkit-scrollbar {
  width: 6px;
}
.cal-list-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
}
.cal-list-wrap::-webkit-scrollbar-thumb {
  background: var(--saffron);
  border-radius: 6px;
}
.cal-list-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: var(--trans);
  scroll-margin-top: 10px;
}
.cal-list-card:hover { border-color: var(--saffron); }
.cal-list-card--current-week {
  border-left: 4px solid var(--saffron);
}
.cal-list-card--today {
  border-color: var(--saffron);
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 14px rgba(255, 153, 51, 0.18);
  background: linear-gradient(to right, rgba(255, 153, 51, 0.06), var(--card-bg));
}
.cal-list-card-header { display: flex; align-items: center; gap: 0.9rem; }
.cal-list-day-num { font-family: var(--sans); font-size: 1.6rem; font-weight: 800; color: var(--accent); min-width: 2.2rem; text-align: center; }
.cal-list-day-name { font-weight: 600; color: var(--text-dark); }
.cal-list-month-year { font-size: 0.82rem; color: var(--text-muted); }
.cal-today-badge { margin-left: auto; background: var(--saffron); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; }
.cal-list-panchang { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.6rem; font-size: 0.86rem; color: var(--text-soft); }
.cal-label { color: var(--saffron-deep); font-weight: 600; }
.cal-list-fests { margin-top: 0.6rem; }
.cal-list-fest-item { padding: 0.4rem 0; font-size: 0.88rem; }
.cal-fest-hi { color: var(--text-muted); font-size: 0.8rem; }
.cal-fest-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.cal-list-no-fest { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── MODAL ── */
.mdl-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(30,20,10,0.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
body.modal-open { overflow: hidden; }
.mdl-box { background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2)); border: 1.5px solid var(--card-border-strong); border-radius: var(--radius-lg); max-width: 540px; width: 100%; max-height: 88vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); }
.mdl-close-btn { position: absolute; top: 0.8rem; right: 0.9rem; width: 34px; height: 34px; border-radius: 8px; font-size: 1.4rem; color: var(--accent); background: rgba(203,102,0,0.1); }
.mdl-header { padding: 1.4rem 1.6rem 0.8rem; border-bottom: 1px solid var(--card-border); }
.mdl-date-heading { color: var(--accent); font-size: 1.3rem; }
.mdl-body { padding: 1.2rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.mdl-section-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--saffron-deep); margin-bottom: 0.35rem; font-family: var(--body); font-weight: 700; }
.mdl-tithi-row { display: flex; align-items: baseline; gap: 0.7rem; }
.mdl-tithi-num { font-size: 1.4rem; font-weight: 800; color: var(--saffron); font-family: var(--sans); }
.mdl-tithi-name { font-family: var(--serif); font-size: 1.1rem; }
.mdl-tithi-paksha { font-size: 0.85rem; color: var(--text-muted); }
.mdl-nakshatra { font-family: var(--serif); font-size: 1.1rem; }
.mdl-fest-item { padding: 0.5rem 0; border-top: 1px solid var(--card-border); }
.mdl-fest-name { font-family: var(--serif); font-size: 1.05rem; color: var(--accent); }
.mdl-fest-name-hi { color: var(--text-muted); font-size: 0.85rem; }
.mdl-fest-desc { font-size: 0.85rem; color: var(--text-soft); margin-top: 0.2rem; }
.mdl-no-fest { color: var(--text-muted); font-size: 0.9rem; }
.mdl-footer { padding: 1rem 1.6rem; border-top: 1px solid var(--card-border); display: flex; gap: 0.8rem; justify-content: flex-end; }
.mdl-dismiss-btn { background: var(--accent); color: var(--cream); padding: 0.5rem 1.2rem; border-radius: 8px; font-weight: 600; }

/* ── CARDS & BUTTONS ── */
.card { background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2)); border: 1.5px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; }
.types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.2rem; }
.type-card { background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2)); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 4px 16px rgba(44, 24, 16, 0.08), 0 1px 3px rgba(44, 24, 16, 0.04); transition: var(--trans); display: flex; flex-direction: column; gap: 0.7rem; }
.type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(44, 24, 16, 0.14); border-color: var(--saffron); }
.type-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-soft)); color: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 3px 8px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.18); }
.type-card h3 { color: var(--text-dark); font-size: 1.15rem; }
.type-card p { color: var(--text-soft); font-size: 0.9rem; flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; background: linear-gradient(135deg, var(--saffron), var(--saffron-deep)); color: #fff; font-weight: 700; padding: 0.7rem 1.5rem; border-radius: 10px; font-size: 0.95rem; transition: var(--trans); box-shadow: var(--shadow-sm); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; }
.btn-outline:hover { background: var(--accent); color: var(--cream); }
.btn-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── FORMS ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--saffron-deep); text-transform: uppercase; letter-spacing: 0.03em; }
.field input, .field select { padding: 0.65rem 0.8rem; border: 1.5px solid var(--card-border-strong); border-radius: 9px; background: #F7EDD3; color: var(--text-dark); font-size: 0.95rem; }
.field input:focus, .field select:focus { outline: 2px solid var(--saffron); outline-offset: -1px; border-color: var(--saffron); }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.blog-card { background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2)); border: 1.5px solid var(--card-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--trans); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--saffron); }
.blog-thumb { height: 160px; background: linear-gradient(135deg, var(--accent), var(--saffron)); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,0.5); }
.blog-body { padding: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.blog-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--saffron-deep); font-weight: 700; }
.blog-body h3 { color: var(--text-dark); font-size: 1.15rem; }
.blog-body p { font-size: 0.9rem; color: var(--text-soft); flex: 1; }
.blog-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: auto; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--accent); margin-bottom: 0.6rem; }
.article .article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 2px solid var(--card-border); }
.article p { margin-bottom: 1.1rem; color: var(--text-dark); font-size: 1.05rem; }
.article h2 { font-size: 1.5rem; margin: 1.8rem 0 0.7rem; color: var(--saffron-deep); }
.article h3 { font-size: 1.2rem; margin: 1.3rem 0 0.5rem; color: var(--accent); }
.article ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.1rem; }
.article ul li { margin-bottom: 0.4rem; }
.article blockquote { border-left: 4px solid var(--saffron); padding: 0.6rem 1.2rem; background: rgba(203,102,0,0.08); margin: 1.2rem 0; font-style: italic; color: var(--text-soft); }
.kundli-result { display: grid; grid-template-columns: 400px 1fr; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
#kundli-chart svg { margin: 0 auto; }
.about-prose { max-width: 780px; margin: 0 auto; }
.about-prose p { margin-bottom: 1.1rem; color: var(--text-dark); font-size: 1.05rem; }
.about-prose h2 { margin: 1.8rem 0 0.7rem; color: var(--saffron-deep); font-size: 1.5rem; }
.share-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

/* ── FOOTER ── */
.site-footer { background: linear-gradient(135deg, #0D0804, #1A1008); color: #D6BE95; padding: 3rem 0 1.4rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.4rem; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--serif); font-size: 1.4rem; color: #FFF7E8; margin-bottom: 0.7rem; text-decoration: none; }
.footer-logo b { color: var(--gold); }
.footer-logo-om { font-size: 1.3rem; color: var(--gold); }
.footer-logo-name { font-family: var(--serif); font-size: 1.3rem; color: #FFF7E8; }
.footer-about, .footer-about-text { font-size: 0.88rem; color: #B99A6E; line-height: 1.7; max-width: 340px; }
.footer-about-col {}
.footer-info-col {}
.footer-col h4, .footer-col-heading { color: #F0CE7E; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; font-family: var(--body); font-weight: 700; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.88rem; color: #B99A6E; transition: var(--trans); display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(199,154,60,0.2); padding-top: 1.4rem; text-align: center; }
.footer-disclaimer { font-size: 0.78rem; color: #8C744F; max-width: 700px; margin: 0 auto 0.6rem; line-height: 1.6; }
.footer-copy, .footer-copyright { font-size: 0.8rem; color: #A5885C; margin-top: 0.6rem; }
.footer-icon-credit { font-size: 0.75rem; color: #8C744F; margin-top: 0.4rem; }
.footer-icon-credit a { color: var(--gold); }

/* ── DARK MODE — Pure blacks + gold/yellow ── */
[data-theme="dark"] {
  --bark-1: #1a1a1a; --bark-2: #141414; --bark-3: #0f0f0f;
  --card-bg: #1e1e1e; --card-bg-2: #252525;
  --card-border: #333; --card-border-strong: #444;
  --text-dark: #e0e0e0; --text-soft: #b0b0b0; --text-muted: #808080;
  --accent: #D4A54A; --accent-soft: #B8914E;
  --saffron: #e8a020; --saffron-deep: #CC8800;
  --cream: #f0f0f0; --gold: #E0B050;
  --hero-1: #181818; --hero-2: #111111; --hero-3: #0a0a0a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] body { background-color: var(--bark-2); background-image: none; }
[data-theme="dark"] .site-header { background: linear-gradient(180deg, #1a1a1a, #111); border-bottom-color: #333; }
[data-theme="dark"] .logo-name { color: #e0e0e0; }
[data-theme="dark"] .site-nav a { color: #b0b0b0; }
[data-theme="dark"] .site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
[data-theme="dark"] .site-nav a.active { background: #333; color: #fff; }
[data-theme="dark"] .lang-switch { background-color: #252525; border-color: #444; color: #e0e0e0; }
[data-theme="dark"] .dark-toggle { background: #252525; border-color: #444; color: #e0e0e0; }
[data-theme="dark"] .dark-toggle:focus { outline: none; }
[data-theme="dark"] .dark-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
[data-theme="dark"] .hamburger { background: #252525; border-color: #444; }
[data-theme="dark"] .hamburger span { background: #e0e0e0; }
[data-theme="dark"] .mobile-nav { background: #1a1a1a; border-bottom-color: #333; }
[data-theme="dark"] .mobile-nav a { color: #b0b0b0; }
[data-theme="dark"] .section-title { color: var(--gold); }
[data-theme="dark"] .hero { background: linear-gradient(140deg, #151515 0%, #0e0e0e 55%, #080808 100%); }
[data-theme="dark"] .graha-system { opacity: 0.2; }
[data-theme="dark"] .neu-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); box-shadow: 0 10px 32px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.05); }
[data-theme="dark"] .loc-row { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .loc-row:hover { border-color: var(--gold); background: rgba(255, 255, 255, 0.07); }
[data-theme="dark"] .loc-btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); color: #e0e0e0; }
[data-theme="dark"] .m-slot { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
[data-theme="dark"] .type-card { box-shadow: 0 4px 18px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04); }
[data-theme="dark"] .type-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.6), 0 0 0 1px rgba(224,176,80,0.25); }
[data-theme="dark"] .tz-select option, [data-theme="dark"] .tz-select optgroup { background: #1a1a1a; }
[data-theme="dark"] .pk-bar-date { background: linear-gradient(90deg, #1e1e1e, #252525); border-color: #333; color: var(--gold); }
[data-theme="dark"] .pk-grid { background: linear-gradient(160deg, #1e1e1e, #252525); border-color: #333; }
[data-theme="dark"] .pk-col + .pk-col { border-left-color: #333; }
[data-theme="dark"] .pk-col-heading { background: rgba(224,176,80,0.1); color: var(--gold); }
[data-theme="dark"] .pk-item { border-bottom-color: #333; }
[data-theme="dark"] .pk-label { color: var(--saffron); border-right-color: #333; }
[data-theme="dark"] .pk-value { color: #e0e0e0; }
[data-theme="dark"] .pk-item:nth-child(even) { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .pk-item--danger .pk-label--danger,
[data-theme="dark"] .pk-item--danger .pk-value--danger { color: #E0A040; }
[data-theme="dark"] .pk-item--auspicious .pk-label--auspicious,
[data-theme="dark"] .pk-item--auspicious .pk-value--auspicious { color: #7FCF8A; }
[data-theme="dark"] .panchang-wrap { background: linear-gradient(160deg, #1e1e1e, #252525); border-color: #333; }
[data-theme="dark"] .panchang-bar { background: linear-gradient(90deg, #252525, #333); }
[data-theme="dark"] .panchang-table td.pk-label { color: var(--saffron); }
[data-theme="dark"] .panchang-table td.pk-value { color: #e0e0e0; }
[data-theme="dark"] .panchang-table tr { border-bottom-color: #333; }
[data-theme="dark"] .panchang-table tr:nth-child(even) { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .muhurat-grid { background: linear-gradient(160deg, #1e1e1e, #252525); border-color: #333; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .muhurat-row { border-bottom-color: #333; }
[data-theme="dark"] .muhurat-row:nth-child(even) { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .muhurat-name { color: #e0e0e0; }
[data-theme="dark"] .muhurat-num { background: rgba(224,176,80,0.12); color: var(--gold); }
[data-theme="dark"] .m-period-tabs,
[data-theme="dark"] .m-view-toggle {
  background: #1e1e1e;
  border-color: #333;
}
[data-theme="dark"] .m-period-tab {
  color: #b0b0b0;
}
[data-theme="dark"] .m-period-tab:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .m-jump-now-btn {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
[data-theme="dark"] .m-jump-now-btn:hover {
  background: #16a34a;
  color: #ffffff;
}
[data-theme="dark"] .m-q-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #b0b0b0;
}
[data-theme="dark"] .m-card {
  background: linear-gradient(160deg, #1e1e1e, #252525);
  border-color: #333;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .m-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  border-color: var(--gold);
}
[data-theme="dark"] .m-card-name {
  color: #e0e0e0;
}
[data-theme="dark"] .m-card-num {
  background: rgba(224, 176, 80, 0.12);
  color: var(--gold);
}
[data-theme="dark"] .m-card-time {
  color: #c9a876;
}
[data-theme="dark"] .m-card-link {
  color: var(--gold);
}
[data-theme="dark"] .muhurat-list-container {
  background: linear-gradient(160deg, #1e1e1e, #252525);
  border-color: #333;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .m-card.now,
[data-theme="dark"] .m-card.m-card--now {
  background: linear-gradient(145deg, #16a34a 0%, #15803d 100%) !important;
  border-color: #86efac !important;
}
[data-theme="dark"] .card, [data-theme="dark"] .type-card, [data-theme="dark"] .blog-card { background: linear-gradient(160deg, #1e1e1e, #252525); border-color: #333; }
[data-theme="dark"] .type-card h3, [data-theme="dark"] .blog-body h3 { color: #e0e0e0; }
[data-theme="dark"] .type-icon { background: linear-gradient(135deg, #333, #444); }
[data-theme="dark"] .cal-grid-wrap { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .cal-header-row { background: linear-gradient(90deg, #252525, #333); }
[data-theme="dark"] .cal-cell { border-color: #333; }
[data-theme="dark"] .cal-day-num { color: #e0e0e0; }
[data-theme="dark"] .cal-nav-btn { background: #252525; border-color: #444; color: var(--gold); }
[data-theme="dark"] .cal-view-btns { background: #252525; border-color: #444; }
[data-theme="dark"] .cal-list-toolbar { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .cal-list-week-dates { color: var(--gold); }
[data-theme="dark"] .cal-jump-today-btn { background: #252525; border-color: #444; color: var(--gold); }
[data-theme="dark"] .cal-jump-today-btn:hover { background: var(--saffron); color: #121212; }
[data-theme="dark"] .cal-list-wrap::-webkit-scrollbar-track { background: #1a1a1a; }
[data-theme="dark"] .cal-list-card { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .cal-list-card--today { background: linear-gradient(to right, rgba(255, 153, 51, 0.12), #1e1e1e); }
[data-theme="dark"] .cal-list-day-num { color: var(--gold); }
[data-theme="dark"] .mdl-box { background: linear-gradient(160deg, #1e1e1e, #252525); border-color: #444; }
[data-theme="dark"] .mdl-dismiss-btn { background: #444; color: #e0e0e0; }
[data-theme="dark"] .site-footer { background: linear-gradient(135deg, #0a0a0a, #111); }
[data-theme="dark"] .field input, [data-theme="dark"] .field select { background: #252525; color: #e0e0e0; border-color: #444; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: var(--gold); }
[data-theme="dark"] .badge.ashubh, [data-theme="dark"] .badge--ashubh { background: rgba(180,145,78,0.15); color: #C9A876; border-color: rgba(180,145,78,0.4); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid { flex-wrap: wrap; }
  .hero-left, .hero-right { flex: 0 0 100%; width: 100%; max-width: 100%; padding: 0; }
  .hero-left { margin-bottom: 1.5rem; }
  .graha-system { width: 400px; height: 400px; left: 50%; top: 30%; opacity: 0.15; }
  .orbit-7, .orbit-8, .orbit-9 { display: none; }
  .live-clock { font-size: clamp(2rem, 8vw, 3rem); }
  .pk-grid { grid-template-columns: 1fr; }
  .pk-col + .pk-col { border-left: none; border-top: 1px solid var(--card-border); }
  .kundli-result { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav, .header-controls .lang-switch { display: none; }
  .header-controls { margin-left: auto; }
  .hamburger { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .panchang-grid2 { grid-template-columns: 1fr; }
  .panchang-grid2 > div { border-right: none; border-bottom: 1px solid var(--card-border); }
  .footer-grid { grid-template-columns: 1fr; }
  .muhurat-row { flex-wrap: wrap; }
  .muhurat-time { min-width: auto; text-align: left; }
  .calendar-controls { gap: 0.5rem; }
  .cal-month-label { min-width: auto; font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .cal-cell { min-height: 58px; }
  .cal-tithi { display: none; }
  .pk-label { width: 38%; font-size: 0.78rem; }
}

/* ══════════════════════════════════════════════════════════════
   INTERACTIVE MUHURAT POPOVER / TOOLTIP
══════════════════════════════════════════════════════════════ */
.muhurat-popover {
  position: fixed;
  z-index: 10000;
  width: 310px;
  max-width: 92vw;
  background: #1f1814;
  background: linear-gradient(145deg, #251d18 0%, #1a1411 100%);
  border: 1px solid rgba(199, 154, 60, 0.4);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 0.95rem;
  color: #f5eedb;
  font-family: inherit;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
}

.muhurat-popover.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.pop-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.pop-title-wrap {
  flex: 1;
}

.pop-title-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff7e8;
  line-height: 1.2;
}

.pop-title-alt {
  font-size: 0.85rem;
  color: var(--gold);
}

.pop-close-btn {
  background: none;
  border: none;
  color: #a8947b;
  cursor: pointer;
  padding: 2px 5px;
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.pop-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.pop-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(199, 154, 60, 0.2);
  font-size: 0.76rem;
}

.pop-time {
  color: #e7cfa6;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pop-deity {
  font-size: 0.74rem;
  color: #d4c2a4;
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.pop-deity strong {
  color: var(--gold);
}

.pop-tags {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
}

.pop-tag-item {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1.3;
}

.pop-tag-item.do {
  color: #86efac;
}

.pop-tag-item.dont {
  color: #fca5a5;
}

.pop-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #c79a3c 0%, #a77c25 100%);
  color: #1a1208 !important;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pop-more-link:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════
   CALENDAR TOOLTIP / POPOVER
   ══════════════════════════════════════════════════════════════ */
.calendar-popover {
  position: fixed;
  z-index: 10000;
  width: 330px;
  max-width: 92vw;
  background: linear-gradient(145deg, #251d18 0%, #1a1411 100%);
  border: 1px solid rgba(199, 154, 60, 0.45);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 1rem 1.1rem;
  color: #f5eedb;
  font-family: inherit;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(199, 154, 60, 0.4) transparent;
}

.calendar-popover.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.cal-pop-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(199, 154, 60, 0.25);
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
}

.cal-pop-title-wrap {
  flex: 1;
  min-width: 0;
}

.cal-pop-date {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff7e8;
  line-height: 1.25;
}

.cal-pop-hindu-date {
  font-size: 0.82rem;
  color: var(--gold);
  margin-top: 0.2rem;
  font-family: var(--serif);
}

.cal-pop-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0d0b8;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--trans);
}

.cal-pop-close-btn:hover {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}

.cal-pop-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cal-pop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.65rem;
  background: rgba(255, 240, 210, 0.04);
  border: 1px solid rgba(199, 154, 60, 0.15);
  border-radius: 9px;
  padding: 0.6rem 0.75rem;
}

.cal-pop-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cal-pop-lbl {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c9a876;
  font-weight: 600;
}

.cal-pop-val {
  font-size: 0.84rem;
  color: #fff;
  font-weight: 600;
}

.cal-pop-val small {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: normal;
}

.cal-pop-timings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.cal-pop-time-pill {
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cal-pop-time-pill--shubh {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.cal-pop-time-pill--shubh .cal-pop-time-tag {
  color: #86efac;
  font-size: 0.7rem;
  font-weight: 700;
}

.cal-pop-time-pill--shubh .cal-pop-time-val {
  color: #dcfce7;
  font-size: 0.78rem;
  font-weight: 600;
}

.cal-pop-time-pill--ashubh {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.cal-pop-time-pill--ashubh .cal-pop-time-tag {
  color: #fca5a5;
  font-size: 0.7rem;
  font-weight: 700;
}

.cal-pop-time-pill--ashubh .cal-pop-time-val {
  color: #fee2e2;
  font-size: 0.78rem;
  font-weight: 600;
}

.cal-pop-sun-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #e7cfa6;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 240, 210, 0.03);
  border-radius: 6px;
}

.cal-pop-section-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  margin-top: 0.2rem;
}

.cal-pop-festivals {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cal-pop-fest-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: rgba(199, 154, 60, 0.1);
  border: 1px solid rgba(199, 154, 60, 0.25);
  border-radius: 7px;
  padding: 0.45rem 0.6rem;
}

.cal-pop-fest-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.cal-pop-fest-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff7e8;
}

.cal-pop-fest-hi {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: normal;
}

.cal-pop-fest-desc {
  font-size: 0.75rem;
  color: #d9b98a;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.cal-cell--pop-active {
  outline: 2px solid var(--gold) !important;
  outline-offset: -2px;
  background: rgba(199, 154, 60, 0.25) !important;
}

.cal-list-card--pop-active {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(199, 154, 60, 0.4) !important;
}

/* ══════════════════════════════════════════════════════════════
   DEDICATED MUHURAT PAGES (muhurat.php)
══════════════════════════════════════════════════════════════ */
.breadcrumb-wrap { padding: 1rem 0 0.5rem; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; color: #a8947b; }
.breadcrumb a { color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-separator { color: #665544; }
.breadcrumb-current { color: #f5eedb; font-weight: 600; }

.muhurat-detail-hero {
  padding: 1.5rem 0 2rem;
  background: linear-gradient(180deg, rgba(199, 154, 60, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(199, 154, 60, 0.15);
}

.muhurat-hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.period-pill, .slot-pill {
  font-size: 0.74rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e0d0b8;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.muhurat-hero-title {
  margin: 0.2rem 0 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.muhurat-hero-title .title-hi {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #fff7e8;
  line-height: 1.15;
}

.muhurat-hero-title .title-en {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--gold);
  font-weight: 500;
}

.muhurat-hero-deity {
  font-size: 0.95rem;
  color: #e2d2ba;
  margin-bottom: 1.2rem;
  max-width: 720px;
}

.muhurat-hero-deity strong {
  color: var(--gold);
}

/* Real-Time Timing Card */
.muhurat-live-timing-card {
  background: linear-gradient(145deg, rgba(35, 26, 20, 0.95), rgba(25, 18, 14, 0.95));
  border: 1.5px solid rgba(199, 154, 60, 0.35);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  margin-top: 1rem;
  max-width: 680px;
}

.muhurat-live-timing-card.timing-card--active {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25), 0 8px 24px rgba(34, 197, 94, 0.2);
}

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

.timing-card-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #16a34a;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.timing-card-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0;
}

.timing-time-range {
  font-family: var(--font-mono, monospace);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff7e8;
}

.detail-time-date {
  font-size: 0.95rem;
  color: #facc15;
  margin-right: 0.4rem;
  font-weight: 600;
}

.timing-timer-block {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.timer-lbl { color: #86efac; font-weight: 500; }
.timer-countdown { color: #4ade80; font-family: var(--font-mono, monospace); font-weight: 700; }

.timing-card-footer {
  margin-top: 0.5rem;
  font-size: 0.74rem;
  color: #a8947b;
}

/* Detail Content Layout */
.muhurat-detail-content-wrap { padding: 2rem 0 3rem; }
.detail-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 1.8rem; }
.detail-main-col { display: flex; flex-direction: column; gap: 1.4rem; }
.detail-side-col { display: flex; flex-direction: column; gap: 1.4rem; }

.detail-card {
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: 4px 4px 14px rgba(0,0,0,0.25);
}

.detail-card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
}

.card-title-icon { color: var(--gold); }

.rich-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e5d5be;
}

/* Sacred Mantra Card */
.mantra-card {
  border-color: rgba(199, 154, 60, 0.4);
  background: linear-gradient(160deg, rgba(35, 26, 18, 0.9), rgba(24, 17, 12, 0.9));
}

.mantra-box {
  background: rgba(199, 154, 60, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.8rem;
}

.mantra-sanskrit {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.6;
  font-weight: 700;
  color: #ffd880;
  margin-bottom: 0.5rem;
}

.mantra-translit {
  font-size: 0.88rem;
  color: #d4c2a4;
  margin-bottom: 0.6rem;
}

.mantra-meaning {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #f0e2cd;
}

.mantra-tip {
  font-size: 0.82rem;
  color: #a8947b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Do's & Don'ts Grid */
.dodont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.dodont-col {
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.dodont-col--do {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.dodont-col--dont {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.dodont-heading {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dodont-heading--do { color: #86efac; }
.dodont-heading--dont { color: #fca5a5; }

.dodont-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.dodont-col--do .dodont-list li { color: #d1fae5; display: flex; align-items: baseline; gap: 0.4rem; }
.dodont-col--dont .dodont-list li { color: #fee2e2; display: flex; align-items: baseline; gap: 0.4rem; }

/* FAQs */
.faq-accordion { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
}
.faq-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.faq-answer {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #dfceb8;
}

/* Sidebar Muhurats Navigation */
.sidebar-muhurats-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.side-m-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: #f5eedb;
  text-decoration: none;
  font-size: 0.84rem;
  transition: all 0.15s ease;
}

.side-m-item:hover {
  background: rgba(199, 154, 60, 0.12);
  border-color: rgba(199, 154, 60, 0.3);
  color: var(--gold);
}

.side-m-item.active {
  background: rgba(199, 154, 60, 0.2);
  border-color: var(--gold);
  color: #fff7e8;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   ALL 30 MUHURATS DIRECTORY PAGE
══════════════════════════════════════════════════════════════ */
.directory-hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(199, 154, 60, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(199, 154, 60, 0.15);
}

.directory-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.7rem);
  color: #fff7e8;
  margin-bottom: 0.5rem;
}

.directory-desc {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: #dfceb8;
  font-size: 1rem;
  line-height: 1.6;
}

.directory-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dir-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(199, 154, 60, 0.25);
  color: #e5d5be;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dir-filter-btn:hover {
  background: rgba(199, 154, 60, 0.15);
  color: #fff;
}

.dir-filter-btn.active {
  background: var(--gold);
  color: #1a1208;
  font-weight: 700;
  border-color: var(--gold);
}

.muhurat-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.3rem;
  padding: 2rem 0 4rem;
}

.directory-card {
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2));
  border: 1px solid var(--card-border);
  border-left-width: 4px;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.directory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border-color: var(--gold);
}

.directory-card.ati-shubh { border-left-color: var(--gold); }
.directory-card.shubh { border-left-color: #6FCF7A; }
.directory-card.ashubh { border-left-color: #B8914E; }
.directory-card.neutral { border-left-color: #C9A876; }

.dir-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.dir-card-slot {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a8947b;
  text-transform: uppercase;
}

.dir-card-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff7e8;
  margin-bottom: 0.15rem;
}

.dir-card-alt {
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.dir-card-deity {
  font-size: 0.78rem;
  color: #d4c2a4;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  flex: 1;
}

.dir-card-footer {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .dodont-grid { grid-template-columns: 1fr; }
}

/* Connecting Muhurats Nav (Prev / Next) */
.connecting-muhurats-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.con-muhurat-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2));
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  color: #fff7e8;
  transition: all 0.15s ease;
}

.con-muhurat-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.con-muhurat-btn--next {
  text-align: right;
  justify-content: flex-end;
}

.con-info {
  display: flex;
  flex-direction: column;
}

.con-info small {
  font-size: 0.74rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.con-info strong {
  font-size: 0.95rem;
  font-family: var(--serif);
}

.con-arrow {
  color: var(--gold);
  display: flex;
  align-items: center;
}

/* Sidebar Components */
.detail-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.sidebar-card {
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg-2));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  box-shadow: 4px 4px 14px rgba(0,0,0,0.25);
}

.sidebar-card-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
}

.sidebar-dl {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.5rem 0.6rem;
  font-size: 0.84rem;
  margin: 0;
}

.sidebar-dl dt {
  color: #a8947b;
  font-weight: 500;
}

.sidebar-dl dd {
  margin: 0;
  color: #f5eedb;
  font-weight: 600;
}

.all-muhurat-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.3rem;
  scrollbar-width: thin;
}

.mini-m-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: #e5d5be;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.mini-m-item:hover {
  background: rgba(199, 154, 60, 0.12);
  border-color: rgba(199, 154, 60, 0.25);
  color: #fff;
}

.mini-m-item.active {
  background: rgba(199, 154, 60, 0.22);
  border-color: var(--gold);
  color: #fff7e8;
  font-weight: 700;
}

.mini-m-num {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: rgba(199, 154, 60, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mini-m-name {
  flex: 1;
}

.mini-m-name small {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .connecting-muhurats-nav { flex-direction: column; }
  .con-muhurat-btn--next { text-align: left; justify-content: flex-start; flex-direction: row-reverse; }
}
