/* ================================================================
   Choghadiya Widgets - Indian Vedic Calendar Stylesheet
   Apple-inspired Dark Glassmorphism, Saffron/Gold Accents & Responsive Layout
   ================================================================ */

:root {
  --saffron-50: #FFFBEB;
  --saffron-100: #FEF3C7;
  --saffron-200: #FDE68A;
  --saffron-300: #FCD34D;
  --saffron-400: #FBBF24;
  --saffron-500: #F59E0B;
  --saffron-600: #D97706;
  --saffron-700: #B45309;
  --saffron-glow: rgba(245, 158, 11, 0.25);
  --saffron-glow-subtle: rgba(245, 158, 11, 0.12);

  --paksha-shukla: #F59E0B;
  --paksha-shukla-bg: rgba(245, 158, 11, 0.15);
  --paksha-krishna: #60A5FA;
  --paksha-krishna-bg: rgba(96, 165, 250, 0.15);

  --moon-waxing: #FDE68A;
  --moon-waning: #94A3B8;

  --card-glass-bg: rgba(18, 18, 26, 0.75);
  --card-glass-border: rgba(255, 255, 255, 0.08);
  --card-glass-hover: rgba(255, 255, 255, 0.12);
}

/* Page Container */
.cal-page-wrapper {
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  min-height: 100vh;
}

/* Ambient glow orbs */
.cal-ambient-1 {
  position: absolute;
  top: 60px;
  left: 5%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.cal-ambient-2 {
  position: absolute;
  top: 400px;
  right: 5%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.10) 0%, rgba(96, 165, 250, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* Header & Meta Bar */
.cal-header-card {
  background: var(--card-glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-glass-border);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.cal-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #10B981;
}

.cal-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.cal-tz-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-tz-box svg {
  color: var(--saffron-400);
}

.cal-tz-box strong {
  color: var(--text-primary);
}

/* Controls Toolbar (Language Selection) */
.cal-controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  width: 100%;
}

/* PC / Desktop: Single-line Capsules Strip */
.cal-lang-capsules {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
  width: 100%;
  justify-content: center;
}

.cal-lang-capsules::-webkit-scrollbar {
  display: none;
}

.cal-lang-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #9CA3AF);
  font-family: var(--font-main, sans-serif);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
}

.cal-lang-capsule:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.22);
}

.cal-lang-capsule.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.26) 100%);
  border-color: rgba(245, 158, 11, 0.6);
  color: #FCD34D;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* Tablet & Mobile Dropdown Wrap */
.cal-lang-dropdown-wrap {
  display: none;
  width: 100%;
}

@media (max-width: 991px) {
  .cal-lang-capsules {
    display: none !important;
  }

  .cal-lang-dropdown-wrap {
    display: block !important;
    width: 100%;
  }

  .cal-lang-dropdown-wrap .cal-select-dropdown {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

.cal-ctrl-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cal-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-select-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.cal-select-chip.active {
  background: var(--saffron-glow-subtle);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--saffron-300);
}

.cal-select-dropdown {
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.cal-select-dropdown option {
  background: #12121a;
  color: #fff;
}

/* Today Showcase Card (Matching iOS IndianCalendarTodayCardView) */
.cal-today-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 25, 20, 0.85) 0%, rgba(18, 18, 26, 0.9) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 24px;
  padding: 26px;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 158, 11, 0.08);
  overflow: hidden;
}

.cal-today-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cal-today-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cal-today-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-400);
}

.cal-today-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.cal-today-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFFFFF 60%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cal-samvat-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.cal-samvat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--saffron-300);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.cal-shaka-pill {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.cal-today-details-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cal-today-detail-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 8px;
}

.cal-today-detail-item strong {
  color: var(--text-primary);
}

.cal-today-moon-col {
  text-align: center;
  padding-left: 10px;
}

.cal-moon-svg-wrap {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  filter: drop-shadow(0 4px 14px rgba(245, 158, 11, 0.35));
}

.cal-moon-phase-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--saffron-300);
  white-space: nowrap;
}

/* Month Navigation Bar */
.cal-nav-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-glass-border);
  border-radius: 20px;
  padding: 16px 22px;
  margin-bottom: 22px;
}

.cal-month-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cal-month-heading {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-month-subtext {
  font-size: 0.9rem;
  color: var(--saffron-400);
  font-weight: 700;
}

.cal-nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-btn-nav {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-btn-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.cal-btn-today {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--saffron-300);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-btn-today:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--saffron-400);
}

.cal-view-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}

.cal-view-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-view-btn.active {
  background: var(--saffron-glow-subtle);
  color: var(--saffron-300);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ================================================================
   GRID VIEW (Calendar Month Table)
   ================================================================ */
.cal-grid-wrapper {
  background: var(--card-glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-glass-border);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.cal-weekday-cell {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding: 6px 0;
}

.cal-weekday-cell.weekend {
  color: var(--saffron-400);
}

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

.cal-day-cell {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 10px 8px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.cal-day-cell:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

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

.cal-day-cell.is-today {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1.5px solid var(--saffron-400);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.22);
}

.cal-day-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.cal-greg-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.cal-day-cell.is-today .cal-greg-num {
  color: var(--saffron-400);
}

.cal-today-badge-mini {
  background: var(--saffron-500);
  color: #000;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 6px;
  text-transform: uppercase;
}

.cal-day-mid {
  margin: 6px 0;
}

.cal-tithi-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-tithi-badge.shukla {
  background: var(--paksha-shukla-bg);
  color: var(--paksha-shukla);
}

.cal-tithi-badge.krishna {
  background: var(--paksha-krishna-bg);
  color: var(--paksha-krishna);
}

/* Redesigned Responsive Tithi Block */
.cal-tithi-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  max-width: 100%;
  box-sizing: border-box;
}

.cal-tithi-block.shukla {
  background: var(--paksha-shukla-bg);
  color: var(--paksha-shukla);
}

.cal-tithi-block.krishna {
  background: var(--paksha-krishna-bg);
  color: var(--paksha-krishna);
}

.cal-tithi-paksha {
  font-weight: 800;
  opacity: 0.9;
}

.cal-tithi-name {
  font-weight: 700;
  white-space: nowrap;
}

.cal-day-cell.is-purnima {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.05);
}

.cal-day-cell.is-purnima .cal-mini-moon {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.65));
}

.cal-day-cell.is-amavasya {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.4);
}

.cal-day-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.cal-nakshatra-text {
  max-width: 75%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-mini-moon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ================================================================
   LIST VIEW (Matching iOS IndianCalendarMonthDetailView)
   ================================================================ */
.cal-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.cal-list-row {
  background: var(--card-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-glass-border);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cal-list-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(4px);
}

.cal-list-row.is-today {
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.12);
}

.cal-list-pill {
  min-width: 50px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cal-list-row.is-today .cal-list-pill {
  background: rgba(245, 158, 11, 0.22);
}

.cal-list-pill-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.cal-list-row.is-today .cal-list-pill-num {
  color: var(--saffron-400);
}

.cal-list-pill-day {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 3px;
}

.cal-list-info {
  flex: 1;
  min-width: 0;
}

.cal-list-main-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-list-sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cal-list-moon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Day Detail Modal */
.cal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cal-modal-backdrop.show {
  display: flex;
  animation: modalFadeIn 0.25s ease-out;
}

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

.cal-modal-card {
  background: #14141c;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

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

.cal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cal-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.cal-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cal-modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.cal-modal-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-modal-table tr:last-child {
  border-bottom: none;
}

.cal-modal-table td {
  padding: 10px 4px;
  font-size: 0.9rem;
}

.cal-modal-table td:first-child {
  color: var(--text-secondary);
  width: 38%;
}

.cal-modal-table td:last-child {
  color: var(--text-primary);
  font-weight: 600;
}


/* FAQ & Explanatory Accordion */
.cal-faq-section {
  margin-top: 40px;
}

.cal-faq-card {
  background: var(--card-glass-bg);
  border: 1px solid var(--card-glass-border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 12px;
}

.cal-faq-question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-faq-question svg {
  color: var(--saffron-400);
}

.cal-faq-answer {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Bottom Store Download CTA Callout */
.cal-promo-callout {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(18, 18, 26, 0.88));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cal-promo-content {
  max-width: 600px;
}

.cal-promo-badge {
  display: inline-block;
  color: var(--saffron-400);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cal-promo-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin: 4px 0 10px;
  line-height: 1.25;
}

.cal-promo-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.cal-promo-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cal-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-main);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cal-store-btn-ios {
  background: linear-gradient(135deg, #1f1f2e, #111118);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.cal-store-btn-ios:hover {
  background: linear-gradient(135deg, #2b2b40, #181822);
  border-color: var(--saffron-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
  color: #ffffff;
}

.cal-store-btn-android {
  background: linear-gradient(135deg, #181c24, #0f1218);
  color: #ffffff;
  border: 1px solid rgba(66, 133, 244, 0.35);
}

.cal-store-btn-android:hover {
  background: linear-gradient(135deg, #222938, #141922);
  border-color: #4285F4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(66, 133, 244, 0.25);
  color: #ffffff;
}

.cal-store-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.cal-store-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.cal-store-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-store-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

/* City Modal (Matches Current Choghadiya) */
.city-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.city-modal-backdrop.show {
  display: flex;
}

.city-modal-card {
  background: #14141c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

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

.modal-search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.modal-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px 10px 38px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.modal-search-input:focus {
  border-color: var(--saffron-400);
}

.modal-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
}

.modal-city-list {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.city-item-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.city-item-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.city-item-state {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* Responsive Breakpoints & Mobile Redesign */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .cal-page-wrapper {
    padding-top: 76px;
    padding-bottom: 48px;
    overflow-x: hidden;
  }

  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .cal-header-card {
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 16px;
  }

  .cal-top-meta {
    gap: 10px;
    padding-bottom: 12px;
  }

  .cal-today-card {
    padding: 20px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
  }

  .cal-today-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cal-today-moon-col {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
  }

  .cal-moon-svg-wrap {
    margin: 0;
    width: 56px;
    height: 56px;
  }

  .cal-nav-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }

  .cal-nav-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .cal-month-heading {
    font-size: 1.35rem;
  }

  /* Grid Container & Cell Optimization */
  .cal-grid-wrapper {
    padding: 12px 6px;
    border-radius: 18px;
    margin-bottom: 24px;
  }

  .cal-weekdays-row {
    gap: 3px;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .cal-weekday-cell {
    font-size: 0.72rem;
    padding: 2px 0;
    letter-spacing: 0;
  }

  .cal-days-grid {
    gap: 4px 3px;
  }

  .cal-day-cell {
    padding: 5px 2px;
    min-height: 72px;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    box-sizing: border-box;
  }

  .cal-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2px;
  }

  .cal-greg-num {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
  }

  .cal-greg-num.is-today-num {
    background: var(--saffron-500);
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.45);
  }

  .cal-day-cell.is-today {
    border-width: 1.5px;
    border-color: var(--saffron-400);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
  }

  .cal-day-cell.is-today .cal-today-badge-mini {
    display: none;
  }

  .cal-mini-moon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .cal-mini-moon svg {
    width: 14px;
    height: 14px;
  }

  .cal-day-mid {
    margin: 3px 0 1px;
    width: 100%;
  }

  .cal-tithi-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 1px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.15;
    gap: 1px;
    white-space: normal;
    overflow: visible;
  }

  .cal-tithi-paksha {
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    opacity: 0.88;
    white-space: nowrap;
  }

  .cal-tithi-name {
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.12;
    white-space: normal;
    word-break: normal;
    text-align: center;
    overflow: visible;
    text-overflow: unset;
  }

  .cal-day-bottom {
    display: none;
  }

  /* Bottom Store Promo CTA */
  .cal-promo-callout {
    padding: 22px 16px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    margin-top: 32px;
  }

  .cal-promo-title {
    font-size: 1.3rem;
  }

  .cal-promo-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cal-store-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Footer Layout Fix: Zero Overflow */
  .footer {
    padding: 28px 0 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .footer-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    padding: 0;
    margin: 8px auto 0;
    box-sizing: border-box;
  }

  .footer-links li {
    display: inline-block;
    margin: 0;
    padding: 0;
  }

  .footer-links a {
    font-size: 0.78rem;
    padding: 3px 5px;
    white-space: nowrap;
  }
}

/* Extra small mobile screens (<= 380px) */
@media (max-width: 380px) {
  .container {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .cal-grid-wrapper {
    padding: 8px 3px;
  }

  .cal-days-grid {
    gap: 3px 2px;
  }

  .cal-day-cell {
    padding: 4px 1px;
    min-height: 66px;
  }

  .cal-greg-num {
    font-size: 0.85rem;
  }

  .cal-greg-num.is-today-num {
    width: 18px;
    height: 18px;
    font-size: 0.70rem;
  }

  .cal-mini-moon {
    width: 12px;
    height: 12px;
  }

  .cal-mini-moon svg {
    width: 12px;
    height: 12px;
  }

  .cal-tithi-paksha {
    font-size: 0.54rem;
  }

  .cal-tithi-name {
    font-size: 0.60rem;
  }

  .footer-links {
    gap: 6px 10px;
  }

  .footer-links a {
    font-size: 0.74rem;
  }
}

/* ================================================================
   AEO & GEO Quick Answer Hero Box & Ad-Free Trust Badges
   ================================================================ */
.cal-aeo-hero-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(18, 18, 26, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.cal-aeo-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.cal-noads-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  font-size: 0.80rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.cal-noads-pill svg {
  color: #10B981;
}

.cal-aeo-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.cal-aeo-summary {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary, #D1D5DB);
  margin: 0;
}

.cal-aeo-summary strong {
  color: #FCD34D;
  font-weight: 700;
}

.cal-regional-links-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cal-regional-links-bar::-webkit-scrollbar {
  display: none;
}

.cal-regional-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary, #9CA3AF);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cal-regional-chip:hover,
.cal-regional-chip.active {
  color: #FFFFFF;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
}

