/* ==========================================================================
   SWAMY SEVA (swamyseva.com) — "Sannidhanam Sacred Modern" Design System
   Tailored for Desktop (1024px–1920px+) & Mobile/Tablet (360px–1023px)
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg-page: #FAF6EE;
  --bg-subtle: #F2EBDD;
  --surface-card: #FFFFFF;
  --surface-elevated: #FFFDF9;
  --surface-header: rgba(250, 246, 238, 0.92);
  --surface-slot: #FCF9F2;

  --text-primary: #181614;
  --text-secondary: #4A443C;
  --text-muted: #736B5E;

  --border-subtle: #E6DEC8;
  --border-strong: #D2C5A8;

  /* Sacred Saffron, Brass Gold, Tulsi Emerald & Indigo Deeksha Accents */
  --accent-saffron: #D45517;
  --accent-saffron-hover: #B8450E;
  --accent-saffron-soft: #FDF0E7;

  --accent-gold: #B67D16;
  --accent-gold-soft: #FBF3DF;

  --accent-indigo: #293866;
  --accent-indigo-soft: #ECEFF8;

  --accent-emerald: #166E44;
  --accent-emerald-soft: #E6F5ED;

  --danger-text: #B42318;

  --shadow-sm: 0 1px 3px rgba(24, 22, 20, 0.05), 0 1px 2px rgba(24, 22, 20, 0.03);
  --shadow-md: 0 8px 24px rgba(32, 25, 15, 0.07), 0 2px 6px rgba(32, 25, 15, 0.04);
  --shadow-lg: 0 20px 44px rgba(24, 20, 14, 0.16);

  /* Schematic Map Variables */
  --map-bg: #F6F0E2;
  --map-subgrid: rgba(182, 125, 22, 0.08);
  --map-grid: rgba(130, 108, 72, 0.28);
  --map-water: #B9D8E8;
  --map-water-stroke: #79ACC7;
  --map-road: #C98A4B;
  --map-park: #A9CFAF;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

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

[data-theme="dark"] {
  --bg-page: #101216;
  --bg-subtle: #171A21;
  --surface-card: #1A1E26;
  --surface-elevated: #212631;
  --surface-header: rgba(16, 18, 22, 0.92);
  --surface-slot: #151820;

  --text-primary: #F5F1E8;
  --text-secondary: #C8C1B4;
  --text-muted: #938C7E;

  --border-subtle: #2B303C;
  --border-strong: #3C4353;

  --accent-saffron: #EE7233;
  --accent-saffron-hover: #F5844A;
  --accent-saffron-soft: rgba(238, 114, 51, 0.15);

  --accent-gold: #E5B249;
  --accent-gold-soft: rgba(229, 178, 73, 0.15);

  --accent-indigo: #8BA4F9;
  --accent-indigo-soft: rgba(139, 164, 249, 0.15);

  --accent-emerald: #38C982;
  --accent-emerald-soft: rgba(56, 201, 130, 0.15);

  --danger-text: #F97066;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 52px rgba(0, 0, 0, 0.6);

  --map-bg: #151922;
  --map-subgrid: rgba(229, 178, 73, 0.06);
  --map-grid: rgba(229, 178, 73, 0.22);
  --map-water: #1E3A4C;
  --map-water-stroke: #346582;
  --map-road: #9C6B3B;
  --map-park: #21452E;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   TOP COMMAND HEADER
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  border: none;
  padding: 4px 2px;
  text-align: left;
  flex-shrink: 0;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #191715;
  color: #F6EFE2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(229, 178, 73, 0.4);
}

.brand-emblem.small {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-kicker {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.brand-domain {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-saffron);
  letter-spacing: 0;
}

/* 1-Click Segmented City Switcher */
.city-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  gap: 3px;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  min-height: 36px;
}

.city-pill:hover {
  color: var(--text-primary);
}

.city-pill.is-active {
  background: var(--surface-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.city-name-short {
  display: none;
}

.city-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.city-pill.is-active .city-count {
  background: var(--accent-saffron-soft);
  color: var(--accent-saffron);
}

/* Header Actions & Desktop Nav */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.nav-tab:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.nav-tab.is-active {
  background: var(--accent-saffron-soft);
  color: var(--accent-saffron);
  border-color: rgba(212, 85, 23, 0.24);
}

.pass-badge {
  background: var(--accent-saffron);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.btn-host-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent-saffron);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 85, 23, 0.25);
  transition: background 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn-host-cta:hover {
  background: var(--accent-saffron-hover);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ==========================================================================
   MAIN CONTAINER & HERO STRIP
   ========================================================================== */
.app-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 24px 56px;
}

.hero-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface-card) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.live-season-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.live-pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--bg-page);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.live-pulse-pill.is-live {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border-color: rgba(22, 110, 68, 0.25);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.live-pulse-pill.is-live .pulse-dot {
  animation: livePulse 1.8s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.sacred-date-badge,
.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.hero-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.32rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.hero-sub {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-strip-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-box-wrap {
  position: relative;
  width: 310px;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--accent-saffron);
  box-shadow: 0 0 0 3px var(--accent-saffron-soft);
}

.btn-near-me {
  height: 42px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-near-me:hover {
  border-color: var(--accent-saffron);
}

.btn-near-me.is-active {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

/* ==========================================================================
   QUICK 8-DAY DATE RIBBON & FILTER STRIP
   ========================================================================== */
.quick-date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.quick-date-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  flex: 1;
}

.quick-date-scroll::-webkit-scrollbar {
  display: none;
}

.date-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  transition: all 0.14s ease;
  flex-shrink: 0;
}

.date-pill:hover {
  border-color: var(--border-strong);
}

.date-pill.is-sacred {
  border-color: rgba(182, 125, 22, 0.45);
}

.date-pill.is-active {
  background: var(--text-primary);
  color: var(--bg-page);
  border-color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.date-pill-top {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.82;
}

.date-pill.is-sacred:not(.is-active) .date-pill-top {
  color: var(--accent-gold);
  opacity: 1;
}

.date-pill-num {
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-open-calendar-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-open-calendar-inline:hover {
  filter: brightness(0.97);
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.meal-filter-group,
.area-filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.meal-filter-group::-webkit-scrollbar,
.area-filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  min-height: 38px;
  transition: all 0.14s ease;
}

.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-chip.is-active {
  background: var(--accent-saffron);
  color: #FFFFFF;
  border-color: var(--accent-saffron);
}

.mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.filter-chip.is-active .mini-dot {
  background: #FFFFFF;
}

.area-chip {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--border-strong);
  background: transparent;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  min-height: 32px;
  transition: all 0.14s ease;
}

.area-chip:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.area-chip.is-active {
  border-style: solid;
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--bg-page);
}

/* ==========================================================================
   FEED SPLIT WORKSPACE: MULTI-COL CARDS + STICKY DESKTOP INSPECTOR
   ========================================================================== */
.feed-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 415px;
  gap: 22px;
  align-items: start;
}

.results-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.results-count-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-text-reset {
  background: none;
  border: none;
  color: var(--accent-saffron);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 2px 6px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.seva-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  overflow: hidden;
}

.seva-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.seva-card.is-selected {
  border-color: var(--accent-saffron);
  box-shadow: 0 0 0 2px var(--accent-saffron-soft), var(--shadow-md);
}

.seva-card-top {
  padding: 16px 18px 12px;
  cursor: pointer;
}

.card-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.state-serving_now {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.status-badge.state-starting_soon {
  background: var(--accent-saffron-soft);
  color: var(--accent-saffron);
}

.status-badge.state-upcoming_today,
.status-badge.state-scheduled {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.status-badge.state-completed_today,
.status-badge.state-past {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.badge-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: livePulse 1.6s infinite;
}

.purity-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.card-title {
  margin: 0 0 6px;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.card-loc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 0.81rem;
  color: var(--text-secondary);
}

.card-area-badge {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 6px;
}

.card-landmark {
  color: var(--text-muted);
}

.card-dist-pill {
  margin-left: auto;
  font-weight: 700;
  color: var(--accent-emerald);
}

.card-slots-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card-slot-box {
  background: var(--surface-slot);
  border: 1px solid var(--border-subtle);
  border-left-width: 3.5px;
  border-radius: 10px;
  padding: 9px 11px;
}

.meal-border-bhiksha {
  border-left-color: var(--accent-saffron);
}

.meal-border-alpaharam {
  border-left-color: var(--accent-indigo);
}

.meal-border-padipooja {
  border-left-color: var(--accent-gold);
}

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

.slot-type-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 5px;
}

.tag-bhiksha {
  background: var(--accent-saffron-soft);
  color: var(--accent-saffron);
}

.tag-alpaharam {
  background: var(--accent-indigo-soft);
  color: var(--accent-indigo);
}

.tag-padipooja {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.slot-time-range {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.slot-menu-line {
  margin: 0 0 7px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slot-cap-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cap-bar-track {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--border-subtle);
  overflow: hidden;
}

.cap-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent-saffron);
}

.cap-text {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.seva-card-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr auto;
  gap: 8px;
  padding: 11px 18px 14px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
}

.btn-card-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent-saffron);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.15s ease;
}

.btn-card-primary:hover {
  background: var(--accent-saffron-hover);
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 0.81rem;
  font-weight: 600;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.btn-card-action:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

/* ==========================================================================
   STICKY INSPECTOR PANEL (DESKTOP) & DETAIL CONTENT
   ========================================================================== */
.desktop-inspector-col {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.inspector-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.inspector-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.inspector-title {
  margin: 6px 0 3px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.28;
}

.inspector-org {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.inspector-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 41px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-primary {
  border: none;
  background: var(--accent-saffron);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-saffron-hover);
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

.inspector-meta-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.83rem;
  margin-bottom: 16px;
}

.inspector-meta-box p {
  margin: 0 0 6px;
}

.inspector-meta-box p:last-child {
  margin-bottom: 0;
}

.inspector-note {
  color: var(--text-secondary);
  font-style: italic;
  padding-top: 4px;
  border-top: 1px dashed var(--border-strong);
}

.inspector-section {
  margin-bottom: 16px;
}

.inspector-sec-heading {
  margin: 0 0 9px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.detail-slots-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-slot-card {
  border: 1px solid var(--border-subtle);
  background: var(--surface-slot);
  border-radius: var(--radius-md);
  padding: 12px;
}

.detail-slot-card.is-inactive-date {
  opacity: 0.68;
}

.detail-slot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.detail-slot-title {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.detail-slot-time,
.detail-slot-menu {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.btn-slot-reserve {
  margin-top: 4px;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-saffron);
}

.btn-slot-reserve:hover {
  text-decoration: underline;
}

.facility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.facility-tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.inspector-verify-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.inspector-verify-bar strong {
  display: block;
  color: var(--text-primary);
}

.inspector-verify-bar span {
  color: var(--text-muted);
}

.btn-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-emerald);
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  font-size: 0.79rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn-verify.is-verified {
  opacity: 0.75;
  cursor: default;
}

/* ==========================================================================
   VIEW 2: INTERACTIVE MANDALA–MAKARAVILAKKU CALENDAR
   ========================================================================== */
.calendar-top-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-title {
  margin: 5px 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.section-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.deeksha-tracker-box {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  box-shadow: var(--shadow-sm);
}

.deeksha-tracker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 0.8rem;
}

.deeksha-label {
  font-weight: 700;
}

.deeksha-active-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.deeksha-active-badge.is-active {
  background: var(--accent-saffron-soft);
  color: var(--accent-saffron);
}

.deeksha-preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.mini-pill {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  font-size: 0.76rem;
  font-weight: 600;
}

.mini-pill.is-active {
  background: var(--accent-saffron);
  color: #FFFFFF;
  border-color: var(--accent-saffron);
}

.mini-date-input {
  height: 29px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  font-size: 0.76rem;
}

.milestone-jump-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.milestone-jump-bar::-webkit-scrollbar {
  display: none;
}

.milestone-bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.milestone-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  font-size: 0.79rem;
  font-weight: 600;
  white-space: nowrap;
}

.milestone-chip.major {
  border-color: rgba(182, 125, 22, 0.45);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-weight: 700;
}

.calendar-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.calendar-matrix-card,
.calendar-day-panel {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.calendar-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.month-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
}

.month-tab {
  border: none;
  background: transparent;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.month-tab.is-active {
  background: var(--surface-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.cal-dot.bhiksha { background: var(--accent-saffron); }
.cal-dot.alpaharam { background: var(--accent-indigo); }
.cal-dot.padipooja { background: var(--accent-gold); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.cal-cell {
  min-height: 86px;
  padding: 8px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: border-color 0.14s ease, transform 0.12s ease, background 0.14s ease;
}

.cal-cell.is-empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.cal-cell:not(.is-empty):hover {
  border-color: var(--accent-saffron);
  transform: translateY(-1px);
}

.cal-cell.has-sacred {
  background: var(--accent-gold-soft);
  border-color: rgba(182, 125, 22, 0.35);
}

.cal-cell.is-today {
  border-color: var(--accent-emerald);
  box-shadow: inset 0 0 0 1px var(--accent-emerald);
}

.cal-cell.is-selected {
  background: var(--text-primary);
  color: var(--bg-page);
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.cal-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cal-day-num {
  font-size: 0.94rem;
  font-weight: 800;
}

.cal-vrata-pill {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-saffron);
  color: #FFFFFF;
}

.cal-sacred-label {
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-gold);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cal-cell.is-selected .cal-sacred-label,
.cal-cell.is-selected .cal-count-label {
  color: rgba(250, 246, 238, 0.88);
}

[data-theme="dark"] .cal-cell.is-selected .cal-sacred-label,
[data-theme="dark"] .cal-cell.is-selected .cal-count-label {
  color: rgba(16, 18, 22, 0.85);
}

.cal-count-label {
  font-size: 0.69rem;
  color: var(--text-muted);
}

.cal-dots-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.cal-pill-count {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  color: #FFFFFF;
}

.cal-pill-count.bhiksha { background: var(--accent-saffron); }
.cal-pill-count.alpaharam { background: var(--accent-indigo); }
.cal-pill-count.padipooja { background: var(--accent-gold); }

/* Calendar Right Day Timeline */
.calendar-day-panel {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.day-panel-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vrata-highlight-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-saffron-soft);
  color: var(--accent-saffron);
}

.day-panel-date {
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.18rem;
}

.sacred-callout-box {
  background: var(--accent-gold-soft);
  border-left: 3.5px solid var(--accent-gold);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.sacred-callout-box strong {
  display: block;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.sacred-callout-box p {
  margin: 0;
  color: var(--text-secondary);
}

.day-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.stat-mini {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
}

.btn-view-in-feed {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-saffron);
  margin-bottom: 16px;
}

.btn-view-in-feed:hover {
  background: var(--bg-subtle);
}

.timeline-group {
  margin-bottom: 16px;
}

.timeline-group-title {
  margin: 0 0 8px;
  font-size: 0.79rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-slot);
}

.timeline-time-col {
  display: flex;
  flex-direction: column;
  font-size: 0.76rem;
  border-right: 1px solid var(--border-subtle);
  padding-right: 8px;
}

.tl-start {
  font-weight: 800;
  color: var(--text-primary);
}

.tl-end {
  color: var(--text-muted);
}

.tl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.tl-centre-name {
  margin: 0 0 3px;
  font-size: 0.9rem;
  font-weight: 700;
}

.tl-area {
  margin: 0 0 7px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tl-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tl-primary {
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  background: var(--accent-saffron);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-tl-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.btn-tl-link:hover {
  color: var(--accent-saffron);
  text-decoration: underline;
}

/* ==========================================================================
   VIEW 3: INTERACTIVE SCHEMATIC CITY MAP
   ========================================================================== */
.map-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.schematic-map-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.schematic-map-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.schematic-map-title {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.77rem;
  font-weight: 600;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.live { background: var(--accent-emerald); }
.legend-dot.bhiksha { background: var(--accent-saffron); }
.legend-dot.alpaharam { background: var(--accent-indigo); }
.legend-dot.padipooja { background: var(--accent-gold); }

.schematic-svg-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.schematic-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-geo-label {
  font-size: 11px;
  font-weight: 700;
  fill: var(--text-muted);
  opacity: 0.75;
  letter-spacing: 0.04em;
}

.map-compass-n {
  font-size: 10px;
  font-weight: 800;
  fill: var(--accent-saffron);
}

.map-pin-group {
  cursor: pointer;
}

.map-pin-dot {
  fill: var(--accent-saffron);
  stroke: #FFFDF8;
  stroke-width: 2px;
  transition: r 0.15s ease;
}

.map-pin-group.meal-alpaharam .map-pin-dot {
  fill: var(--accent-indigo);
}

.map-pin-group.meal-padipooja .map-pin-dot {
  fill: var(--accent-gold);
}

.map-pin-group.is-live .map-pin-dot {
  fill: var(--accent-emerald);
}

.map-pin-pulse {
  fill: var(--accent-emerald);
  opacity: 0.25;
  animation: livePulse 1.8s infinite;
}

.map-pin-ring {
  fill: none;
  stroke: var(--accent-saffron);
  stroke-width: 2.5px;
}

.map-pin-tag-bg {
  fill: var(--surface-card);
  stroke: var(--border-strong);
  stroke-width: 1px;
}

.map-pin-group.is-selected .map-pin-tag-bg {
  fill: var(--text-primary);
  stroke: var(--text-primary);
}

.map-pin-tag-text {
  font-size: 10.5px;
  font-weight: 700;
  fill: var(--text-primary);
}

.map-pin-group.is-selected .map-pin-tag-text {
  fill: var(--bg-page);
}

.schematic-map-hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   VIEW 4: MY BHIKSHA QR PASSES
   ========================================================================== */
.passes-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.passes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 18px;
}

.pass-ticket-card {
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pass-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pass-centre-title {
  margin: 6px 0 4px;
  font-size: 1.06rem;
}

.pass-meta-line {
  margin: 0 0 4px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.pass-time-highlight {
  margin: 0;
  font-size: 0.86rem;
  color: var(--accent-saffron);
}

.pass-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pass-token-code {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.pass-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
}

.btn-text-danger {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--danger-text);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   MODALS, RSVP PASS GENERATOR, HOST FORM & SLIDE-UP SHEET
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 12, 14, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.modal-card.modal-wide {
  max-width: 640px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-title {
  margin: 5px 0 2px;
  font-family: var(--font-serif);
  font-size: 1.24rem;
}

.modal-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.rsvp-step-section {
  margin-bottom: 16px;
}

.rsvp-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.rsvp-slot-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.slot-choice-btn {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-slot);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-choice-btn span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.slot-choice-btn.is-active {
  border-color: var(--accent-saffron);
  background: var(--accent-saffron-soft);
  box-shadow: 0 0 0 1px var(--accent-saffron);
}

.swamy-count-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.count-pill {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  font-size: 0.84rem;
  font-weight: 700;
}

.count-pill.is-active {
  background: var(--text-primary);
  color: var(--bg-page);
  border-color: var(--text-primary);
}

.qr-pass-showcase {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}

.qr-token-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-saffron);
  color: #FFFFFF;
  margin-bottom: 6px;
}

.qr-pass-details h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.qr-pass-details p {
  margin: 0 0 4px;
  font-size: 0.82rem;
}

.qr-address-note {
  color: var(--text-muted);
}

/* Host Form */
.host-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.81rem;
  font-weight: 600;
}

.form-field input,
.form-field select {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  font-size: 0.87rem;
  font-weight: 500;
}

.purity-pledge {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  font-size: 0.8rem;
  font-weight: 600;
}

.purity-pledge input {
  margin-top: 3px;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* Detail Sheet for Mobile / Tablet */
.sheet-panel {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface-card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.sheet-handle-bar {
  display: flex;
  justify-content: center;
  padding: 10px 0 2px;
}

.sheet-handle-bar span {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: var(--border-strong);
}

/* Empty States & Toast */
.empty-state-card {
  grid-column: 1 / -1;
  background: var(--surface-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
}

.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--bg-subtle);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-region {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  background: #181614;
  color: #FFFDF8;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-saffron);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-item.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

/* Mobile Bottom Nav hidden on Desktop */
.mobile-bottom-nav {
  display: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS — TABLET & MOBILE RESOLUTION PERFECTION
   ========================================================================== */
@media (max-width: 1099px) {
  .feed-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .desktop-inspector-col {
    display: none;
  }

  .calendar-workspace,
  .map-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-day-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }

  .brand-btn {
    order: 1;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .btn-host-cta span {
    display: none;
  }

  .btn-host-cta {
    padding: 9px 11px;
  }

  .city-switcher {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .city-pill {
    padding: 8px 6px;
    font-size: 0.82rem;
  }

  .app-main {
    padding: 14px 16px 96px;
  }

  .hero-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 15px 16px;
    gap: 13px;
  }

  .hero-strip-right {
    width: 100%;
  }

  .search-box-wrap {
    flex: 1;
    width: auto;
  }

  /* Thumb-First Bottom Navigation */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: var(--surface-card);
    border-top: 1px solid var(--border-subtle);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
  }

  .mob-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 2px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.69rem;
    font-weight: 700;
    border-radius: 10px;
  }

  .mob-nav-btn.is-active {
    color: var(--accent-saffron);
  }

  .mob-nav-btn.accent {
    color: var(--accent-gold);
  }

  .mob-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .mob-pass-dot {
    position: absolute;
    top: -4px;
    right: -9px;
    background: var(--accent-saffron);
    color: #FFFFFF;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0 4px;
    border-radius: 99px;
  }

  /* Bottom Sheet Alignment on Mobile */
  #detail-sheet-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .sheet-panel {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
  }

  .sheet-panel .inspector-card {
    border: none;
    box-shadow: none;
    padding: 12px 18px 28px;
  }

  .toast-region {
    bottom: 80px;
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 600px) {
  .cards-grid,
  .passes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-date-bar {
    gap: 8px;
  }

  .btn-open-calendar-inline span {
    display: none;
  }

  .btn-open-calendar-inline {
    padding: 10px 12px;
  }

  .cal-grid {
    gap: 4px;
  }

  .cal-cell {
    min-height: 64px;
    padding: 5px 4px;
    border-radius: 8px;
  }

  .cal-day-num {
    font-size: 0.82rem;
  }

  .cal-sacred-label,
  .cal-count-label {
    display: none;
  }

  .cal-pill-count {
    font-size: 0.58rem;
    padding: 1px 3.5px;
  }

  .qr-pass-showcase {
    flex-direction: column;
    text-align: center;
  }

  .form-row-2,
  .form-row-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .pass-ticket-top {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

/* ==========================================================================
   OFFICIAL SWAMYSEVA.COM FOOTER
   ========================================================================== */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-card);
  margin-top: 28px;
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 24px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand-col {
  max-width: 560px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.footer-mission {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.footer-links-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer-link-btn {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.14s ease;
}

.footer-link-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.footer-link-btn.highlight {
  background: var(--accent-saffron-soft);
  color: var(--accent-saffron);
  border-color: rgba(212, 85, 23, 0.28);
  font-weight: 700;
}

.footer-bottom-bar {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 24px 24px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .app-footer {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .app-main {
    padding-bottom: 28px;
  }

  .footer-inner,
  .footer-bottom-bar {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   WHATSAPP ALERTS, ADSENSE MINIMAL SLOTS, SYNC STATUS & SEO STRIP
   ========================================================================== */
.btn-wa-alerts {
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(22, 110, 68, 0.35);
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-wa-alerts:hover {
  filter: brightness(0.96);
}

.btn-inline-edit {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-saffron);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
}

/* Zero-CLS Minimal Google AdSense Containers */
.ad-slot-sidebar {
  margin-top: 14px;
  min-height: 96px;
}

.ad-slot-prefooter {
  margin-top: 28px;
  min-height: 92px;
}

.ad-minimal-shell {
  background: var(--surface-elevated);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  text-align: center;
}

.ad-badge-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ad-preview-note {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Crawlable Editorial City Strip */
.seo-editorial-strip {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.seo-col h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  color: var(--text-primary);
}

.seo-col p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Footer Sync Row */
.footer-sync-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.sync-status-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.btn-sync-now {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* WhatsApp Modal & Bot Simulator */
.wa-tabs-row {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
  margin-bottom: 16px;
}

.wa-preview-bubble,
.wa-chat-terminal {
  background: #141E19;
  color: #EBF7F0;
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid rgba(56, 201, 130, 0.3);
}

.wa-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.wa-sim-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.wa-sim-input-row input {
  flex: 1;
  height: 41px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
}

@media (max-width: 900px) {
  .seo-editorial-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .btn-wa-alerts span {
    display: none;
  }

  .btn-wa-alerts {
    padding: 0 12px;
  }

  .btn-photo-cta span,
  .btn-photo-inline span {
    display: none;
  }

  .btn-photo-cta {
    padding: 9px 11px;
  }

  .btn-photo-inline {
    padding: 0 12px;
  }
}

/* ==========================================================================
   FLYER PHOTO CAPTURE, OCR UPLOAD & MULTI-SWAMY CONTRIBUTORS
   ========================================================================== */
.btn-photo-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(182, 125, 22, 0.45);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.btn-photo-cta:hover {
  transform: translateY(-1px);
  border-color: var(--accent-gold);
}

.btn-photo-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(199, 91, 18, 0.35);
  background: var(--accent-saffron-soft);
  color: var(--accent-saffron);
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
}

.flyer-shortcut-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-soft);
  border: 1px dashed rgba(182, 125, 22, 0.45);
  font-size: 0.82rem;
}

.flyer-shortcut-banner strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.flyer-shortcut-banner span {
  color: var(--text-secondary);
}

.photo-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 14px;
  transition: border-color 0.15s ease;
}

.photo-dropzone.has-photo {
  border-style: solid;
  border-color: var(--accent-emerald);
}

.photo-empty-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.photo-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-saffron-soft);
  color: var(--accent-saffron);
  margin-bottom: 4px;
}

.photo-empty-prompt strong {
  font-size: 0.94rem;
  color: var(--text-primary);
}

.photo-empty-prompt span {
  font-size: 0.79rem;
  color: var(--text-muted);
}

.photo-preview-wrap {
  position: relative;
  margin-bottom: 12px;
}

.photo-preview-wrap img {
  max-height: 210px;
  max-width: 100%;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid var(--border-subtle);
  margin: 0 auto;
  display: block;
}

.photo-ocr-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 700;
}

.photo-pick-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-dedup-hint {
  margin: 2px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.contrib-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.contrib-pill.is-multi {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.flyer-preview-card {
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
}

.flyer-preview-card img {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  border-radius: 8px;
  background: #FFFFFF;
}

.contributors-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contributor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.contributor-row strong {
  color: var(--text-primary);
}

.contributor-phone {
  font-weight: 700;
  color: var(--accent-saffron);
  text-decoration: none;
  font-size: 0.79rem;
}

.contributor-via {
  font-size: 0.69rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  margin-left: 6px;
}

/* ==========================================================================
   PADI POOJA MODULE, PIN ICONS, PRESIDING GURU SWAMYS, MAPS LINK & +91 INPUTS
   ========================================================================== */
.nav-tab {
  white-space: nowrap;
}

.nav-tab-padipooja.is-active {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border-color: rgba(184, 125, 20, 0.34);
}

@media (min-width: 901px) and (max-width: 1320px) {
  .desktop-nav {
    gap: 2px;
  }
  .nav-tab {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
  .btn-photo-cta span {
    display: none;
  }
}

.hero-strip-padipooja {
  background: linear-gradient(
    135deg,
    var(--surface-card) 0%,
    var(--accent-gold-soft) 100%
  );
  border-color: rgba(184, 125, 20, 0.28);
}

.padi-gold-pill {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid rgba(184, 125, 20, 0.3);
}

.padi-gold-pill .pulse-dot {
  background: var(--accent-gold);
}

.btn-padi-host {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent-gold);
  color: #FFFFFF;
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(184, 125, 20, 0.28);
  transition: filter 0.15s ease;
}

.btn-padi-host:hover {
  filter: brightness(1.06);
}

.padi-pooja-card {
  border-color: rgba(184, 125, 20, 0.32);
}

.padi-pooja-card.is-selected {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--accent-gold-soft), var(--shadow-md);
}

.padi-closing-act-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.padi-schedule-banner {
  margin: 6px 0 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--accent-gold-soft);
  border-left: 3px solid var(--accent-gold);
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.padi-schedule-banner strong {
  color: var(--accent-gold);
}

.translated-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.71rem;
  font-weight: 700;
}

/* Location Pin Icon before Area Names */
.pin-inline-icon {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 3px;
  color: var(--accent-saffron);
  flex-shrink: 0;
}

.card-area-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.area-chip .pin-inline-icon {
  width: 12px;
  height: 12px;
  margin-right: 2px;
  opacity: 0.88;
}

.area-chip.is-active .pin-inline-icon {
  color: currentColor;
}

/* Presiding Guru Swamy(s) Row on Cards */
.card-guru-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 4px 0 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.card-guru-row strong {
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
}

/* Optional Field Hint Tag */
.field-opt-tag {
  font-style: normal;
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Google Maps Link OR Manual Address Box */
.address-or-maps-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.maps-link-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.maps-link-input-row input {
  flex: 1;
  min-width: 0;
}

.btn-parse-maps {
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 85, 23, 0.35);
  background: var(--accent-saffron-soft);
  color: var(--accent-saffron);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.btn-parse-maps:hover {
  background: var(--accent-saffron);
  color: #FFFFFF;
}

.maps-parse-status {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.maps-parse-status.is-error {
  color: #C0392B;
}

.or-divider-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.or-divider-line::before,
.or-divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* +91 10-Digit Phone Input Group */
.phone-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-input-group:focus-within {
  border-color: var(--accent-saffron);
  box-shadow: 0 0 0 3px var(--accent-saffron-soft);
}

.phone-prefix-addon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  background: var(--bg-subtle);
  border-right: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  user-select: none;
  flex-shrink: 0;
}

.phone-input-group input.phone-10-input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
}

@media (max-width: 600px) {
  .maps-link-input-row {
    flex-direction: column;
  }
  .btn-parse-maps {
    padding: 9px 12px;
  }
}
