/* ==========================================================================
   Gujarati Calendar Mitra - Components, Cards, Modals & Utilities
   ========================================================================== */

/* Section Title Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title svg {
  width: 20px;
  height: 20px;
  fill: var(--primary-gold);
}

/* ==========================================================================
   1. PANCHANG VIEW STYLES
   ========================================================================== */
.panchang-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Astrological Warning / Auspicious Alert Banner */
.astro-alert-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.astro-alert-banner.panchak-active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}
.astro-alert-banner.vinchhudo-active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}
.alert-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  flex-shrink: 0;
}
.alert-icon-box svg {
  width: 20px;
  height: 20px;
  fill: var(--primary-gold);
}
.alert-texts {
  flex: 1;
}
.alert-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.alert-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Sun & Moon Celestial Timings Card */
.celestial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.celestial-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.celestial-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 179, 0, 0.15);
  color: var(--primary-gold);
  flex-shrink: 0;
}
.celestial-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.celestial-info {
  display: flex;
  flex-direction: column;
}
.celestial-label {
  font-size: 11px;
  color: var(--text-muted);
}
.celestial-time {
  font-family: var(--font-english);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Panchang Key Attributes Grid */
.panchang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.panchang-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition-fast);
}
.panchang-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}
.panchang-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gold);
}
.panchang-card-header svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.panchang-card-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.panchang-card-sub {
  font-size: 11px;
  color: var(--text-secondary);
}
.panchang-tithi-schedule {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
}
.panchang-tithi-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.panchang-tithi-slot .lbl {
  color: var(--text-muted);
}
.panchang-tithi-slot .val {
  font-weight: 700;
  color: var(--text-primary);
}
.panchang-tithi-next {
  color: var(--primary-gold);
  font-size: 10.5px;
  margin-top: 2px;
}

/* Inauspicious & Auspicious Periods Card (Rahu Kaal & Abhijit) */
.muhurat-timings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.timing-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.timing-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}
.timing-badge.auspicious {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}
.timing-badge.inauspicious {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.timing-val {
  font-family: var(--font-english);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   2. FESTIVALS & MUHURAT VIEW STYLES
   ========================================================================== */
.festivals-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Filter Chips Bar */
.filter-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-chips-scroll::-webkit-scrollbar {
  display: none;
}
.chip-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chip-btn:hover {
  border-color: var(--border-highlight);
  color: var(--text-primary);
}
.chip-btn.active {
  background: var(--primary-saffron);
  color: #ffffff;
  border-color: var(--primary-saffron);
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.35);
}

/* Search Bar */
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 38px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border var(--transition-fast);
}
.search-input:focus {
  border-color: var(--primary-gold);
}
.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  pointer-events: none;
}

/* Event / Festival Cards List */
.events-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}
.event-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}
.event-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.event-date-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: center;
  min-width: 48px;
}
.event-date-num {
  font-family: var(--font-english);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-gold);
}
.event-date-month {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.event-date-year {
  font-family: var(--font-english);
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-gold);
  line-height: 1.1;
  margin-top: 1px;
}
.event-details {
  display: flex;
  flex-direction: column;
}
.event-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.event-tithi-sub {
  font-size: 12px;
  color: var(--text-secondary);
}
.event-badge-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   3. MORE & UTILITIES VIEW STYLES
   ========================================================================== */
.utilities-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.utility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.utility-card-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.utility-card-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.utility-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 179, 0, 0.14);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.utility-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.utility-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.utility-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Full Width Card Panels for Tools */
.tool-panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 8px;
  box-shadow: var(--shadow-md);
  display: none;
  animation: fadeInScale 0.2s ease-out;
}
.tool-panel-card.open {
  display: block;
}

/* Hide launcher grid & header when navigating to a specific tool from useful tools links */
.utilities-container.tool-active > .section-header,
.utilities-container.tool-active > .utility-grid {
  display: none !important;
}

.utilities-container.tool-active .tool-panel-card.open {
  margin-top: 0;
}

/* Form Inputs in Utilities */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary-gold);
}
.primary-action-btn {
  background: linear-gradient(135deg, var(--primary-saffron), var(--accent-vermillion));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast);
  width: 100%;
}
.primary-action-btn:hover {
  transform: translateY(-1px);
}

/* Result Display in Tools */
.calc-result-box {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-result-title {
  font-size: 12px;
  color: var(--text-muted);
}
.calc-result-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-gold);
  font-family: var(--font-english);
}

/* ==========================================================================
   4. MODALS & BOTTOM SHEET DRAWERS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2800;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-backdrop.active {
  display: block;
  opacity: 1;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border-top: 1px solid var(--border-highlight);
  padding: 18px 16px 28px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.3s;
  z-index: 3000;
}
.bottom-sheet.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Centered Dialog Modal: Fixes 'Tithi Nondh' popup being fixed on bottom */
.dialog-modal,
#note-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -46%) scale(0.96) !important;
  width: calc(100% - 32px);
  max-width: 480px !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-highlight) !important;
  border-radius: var(--radius-lg) !important;
  padding: 22px 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 24px rgba(255, 179, 0, 0.2) !important;
  z-index: 1500 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  max-height: 85vh;
  overflow-y: auto;
}

.dialog-modal.open,
#note-modal.open {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
.sheet-drag-handle {
  width: 40px;
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  margin: 0 auto 14px;
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.sheet-close-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-close-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* City Search Strip & GPS Button */
.city-search-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.city-search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.city-search-ico {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  fill: var(--text-muted);
  pointer-events: none;
}
.city-search-input {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
  transition: all var(--transition-fast);
}
.city-search-input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 2px var(--primary-gold-subtle);
}
.city-search-clear {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.city-spinner {
  position: absolute;
  right: 12px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--primary-gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.city-gps-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  background: #e65100;
  background: linear-gradient(135deg, #e65100 0%, #f57c00 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 179, 0, 0.4);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.35);
  flex-shrink: 0;
}
.city-gps-quick-btn svg {
  width: 17px;
  height: 17px;
  fill: #ffffff !important;
  color: #ffffff !important;
  flex-shrink: 0;
}
.city-gps-quick-btn span {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 12.5px;
}
.city-gps-quick-btn:hover {
  background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.45);
}
.city-gps-quick-btn:active {
  transform: translateY(0);
}

/* Filter Chips Bar */
.city-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.city-filter-bar::-webkit-scrollbar {
  display: none;
}
.city-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.city-chip:hover {
  border-color: var(--primary-gold);
  color: var(--text-primary);
}
.city-chip.active {
  background: var(--primary-gold-subtle);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  font-weight: 700;
}

/* City Item List in Selector */
.city-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 2px;
}
.city-item-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
.city-item-btn:hover, .city-item-btn.selected {
  background: var(--bg-card-hover);
  border-color: var(--primary-gold);
}
.city-item-btn.selected .city-name {
  color: var(--primary-gold);
  font-weight: 700;
}
.city-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.city-item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.city-item-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.city-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.city-tag-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--primary-gold-subtle);
  color: var(--primary-gold);
}
.city-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
.city-delete-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.city-empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Responsive Grid Enhancements for Wide Screens */
@media (min-width: 768px) {
  .panchang-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
  .events-cards-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 14px !important;
  }
  .utility-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }
  .celestial-card {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .bottom-sheet {
    max-width: 540px !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -46%) scale(0.96) !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-highlight) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .bottom-sheet.open {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .city-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* ==========================================================================
   REAL-TIME MARKET RATES SECTION & CARDS (GOLD, SILVER, US DOLLAR)
   ========================================================================== */

.market-rates-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-top: 10px;
  margin-bottom: 4px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.market-rates-section:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.market-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.market-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: liveMarketPulse 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes liveMarketPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.market-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.market-status-pill {
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.market-timestamp {
  font-size: 11px;
  color: var(--text-secondary);
}

.market-refresh-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.market-refresh-btn:hover {
  background: var(--bg-card-hover);
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

.market-refresh-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.market-refresh-btn.refreshing svg {
  animation: spinRefresh 0.8s linear infinite;
}

@keyframes spinRefresh {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.market-calc-link-btn {
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.3);
  color: var(--text-gold);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.market-calc-link-btn:hover {
  background: var(--primary-gold);
  color: #1a0f00;
  border-color: var(--primary-gold);
  transform: translateY(-1px);
}

/* Market Cards Responsive Grid */
.market-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 960px) {
  .market-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .market-rates-section {
    padding: 12px 10px;
    margin-top: 8px;
    margin-bottom: 4px;
  }
  .market-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }
}

.market-rate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  display: flex;
  flex-direction: column;
}

.market-rate-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-gold);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}

.market-rate-card:active {
  transform: translateY(0);
}

.market-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.market-card-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.market-card-icon svg {
  width: 16px;
  height: 16px;
}

.market-card-icon.gold-glow {
  background: rgba(255, 179, 0, 0.15);
  color: #ffb300;
  fill: #ffb300;
}

.market-card-icon.gold-warm {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  fill: #f59e0b;
}

.market-card-icon.silver-glow {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  fill: #94a3b8;
}

.market-card-icon.usd-glow {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  fill: #10b981;
}

.market-card-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.market-card-badge.pure {
  background: rgba(255, 179, 0, 0.15);
  color: #ffb300;
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.market-card-badge.hallmark {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.market-card-badge.silver-tag {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.market-card-badge.forex {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.market-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 3px 0 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

@media (max-width: 480px) {
  .market-card-price {
    font-size: 16px;
  }
}

.market-card-unit {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   UPGRADED PRECIOUS METALS & FOREX CALCULATOR STYLES
   ========================================================================== */

.calc-sub-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: 14px;
  gap: 4px;
}

.calc-tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.calc-tab-btn.active {
  background: var(--primary-gold);
  color: #1a0f00;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.calc-live-rates-strip {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 179, 0, 0.08);
  border: 1px solid rgba(255, 179, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  margin-bottom: 12px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.strip-item strong {
  color: var(--text-gold);
  font-weight: 700;
}

.form-row-grid {
  display: flex;
  gap: 10px;
}

.form-check-row {
  margin-bottom: 12px;
}

.check-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-primary);
  cursor: pointer;
}

.check-label-wrap input[type="checkbox"] {
  accent-color: var(--primary-gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.calc-result-breakdown {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breakdown-row strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Forex Banner & Converter Inputs */
.forex-rate-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
  margin-bottom: 16px;
}

.forex-rate-title {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.forex-rate-main {
  font-size: 20px;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
}

.forex-rate-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.forex-converter-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forex-exchange-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -2px 0;
  color: var(--primary-gold);
}

.forex-exchange-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 12px;
  font-weight: 700;
  color: var(--primary-gold);
  pointer-events: none;
  font-size: 15px;
}

.form-input.prefixed {
  padding-left: 28px;
}

/* ==========================================================================
   FIRST-TIME ONBOARDING / INITIAL SETUP SCREEN
   ========================================================================== */
.onboarding-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.onboarding-modal.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.onboarding-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 179, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.onboarding-modal.open .onboarding-card {
  transform: scale(1) translateY(0);
}

.onboarding-header {
  padding: 24px 20px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 179, 0, 0.12) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.onboarding-emblem {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.25), rgba(230, 81, 0, 0.3));
  border: 1.5px solid var(--border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.35);
  margin-bottom: 6px;
  animation: pulseGlow 3s infinite ease-in-out;
}

.onboarding-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 179, 0, 0.5));
}

.onboarding-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-gold);
  line-height: 1.25;
}

.onboarding-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 380px;
}

.onboarding-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.onboarding-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.onboarding-section:hover {
  border-color: var(--border-highlight);
}

.onboarding-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.onboarding-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gold), #d97706);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

/* 1. Language Pills */
.onboarding-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.onboarding-pill {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  cursor: pointer;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  position: relative;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.onboarding-pill:hover:not(.active) {
  border-color: var(--primary-gold);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.onboarding-pill.active {
  background: var(--primary-gold);
  color: #000;
  border-color: var(--primary-gold);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 179, 0, 0.35);
  transform: translateY(-1px);
}

.onboarding-pill .pill-badge {
  position: absolute;
  top: -7px;
  right: 4px;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 8px;
  background: #e65100;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.onboarding-pill.active .pill-badge {
  background: #000;
  color: #ffb300;
}

/* 2. Onboarding Option Cards (Location, Language, Color) */
.onboarding-option-card,
.onboarding-location-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.onboarding-option-card:hover,
.onboarding-location-box:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

.onboarding-option-card .option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.onboarding-option-card .option-info,
.onboarding-loc-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.onboarding-option-card .option-main-text,
.onboarding-loc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.onboarding-option-card .option-sub-text,
.onboarding-loc-state {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.25;
}

.onboarding-theme-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #78350f, #fbbf24);
  flex-shrink: 0;
}

.onboarding-change-city-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(255, 179, 0, 0.14);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  color: var(--text-gold);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  transition: all var(--transition-fast);
}

.onboarding-change-city-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.onboarding-change-city-btn:hover {
  background: var(--primary-gold);
  color: #000000;
  transform: translateY(-1px);
}

/* 3. Color & Theme Row */
.onboarding-theme-preview-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  display: inline-block;
  background: linear-gradient(135deg, #78350f, #fbbf24);
}

/* 4. Theme Mode Cards (Clean Light / Dark only) */
.onboarding-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.onboarding-mode-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  text-align: center;
  font-family: inherit;
}

.onboarding-mode-card:hover:not(.active) {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

.onboarding-mode-card.active {
  border-color: var(--primary-gold);
  background: var(--primary-gold);
  color: #000000;
  box-shadow: 0 4px 14px rgba(255, 179, 0, 0.35);
  font-weight: 800;
}

.onboarding-mode-card .mode-name {
  font-size: 14px;
  font-weight: 700;
}

/* Footer Action */
.onboarding-footer {
  padding: 14px 20px 18px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  position: sticky;
  bottom: 0;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.onboarding-start-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
  font-family: inherit;
}

.onboarding-start-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.55);
}

.onboarding-start-btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .onboarding-card {
    max-height: 96vh;
  }
  .onboarding-header {
    padding: 18px 14px 12px;
  }
  .onboarding-title {
    font-size: 16.5px;
  }
  .onboarding-body {
    padding: 14px;
    gap: 12px;
  }
  .onboarding-section {
    padding: 12px;
  }
  .onboarding-footer {
    padding: 12px 14px 16px;
  }
  .onboarding-start-btn {
    height: 44px;
    font-size: 14px;
  }
}

/* ==========================================================================
   MANTRAS PORTAL & 108 JAPA MALA ENGINE STYLES
   ========================================================================== */

.mantras-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 24px;
}

/* Mantras Hero Banner */
.mantras-hero-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mantras-hero-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
}

.mantras-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.mantras-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  font-size: 26px;
  color: #000;
  font-weight: 800;
  flex-shrink: 0;
}

.mantras-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  margin: 0 0 4px 0;
}

.mantras-hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Search & Filter Bar */
.mantras-search-wrap {
  position: relative;
  margin-top: 8px;
}

.mantras-search-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.mantras-search-input:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.mantras-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  pointer-events: none;
}

.mantras-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

/* Category Chips */
.mantras-category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.mantras-category-chips::-webkit-scrollbar {
  display: none;
}

.mantra-cat-chip {
  padding: 7px 16px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.mantra-cat-chip:hover {
  border-color: var(--primary-gold);
  color: var(--text-primary);
}

.mantra-cat-chip.active {
  background: var(--primary-gold);
  color: #000000;
  border-color: var(--primary-gold);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Mantras Cards Grid */
.mantras-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

/* Individual Mantra Card */
.mantra-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.mantra-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-md);
}

/* Card Header */
.mantra-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mantra-avatar-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: var(--bg-card);
}

.mantra-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mantra-header-info {
  flex: 1;
  min-width: 0;
}

.mantra-deity-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.mantra-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mantra-veda-origin {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Shloka Box */
.mantra-shloka-box {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 4px solid var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
}

.mantra-shloka-text {
  font-family: 'Martel', 'Noto Serif Devanagari', 'Samarkan', serif;
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 700;
  color: var(--text-primary);
  white-space: pre-line;
  text-align: center;
  letter-spacing: 0.3px;
}

.mantra-beej-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

.mantra-beej-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.mantra-beej-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-gold);
  letter-spacing: 0.5px;
}

/* Translation Tabs on Card */
.mantra-lang-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
}

.mantra-lang-btn {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mantra-lang-btn.active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-gold);
  font-weight: 700;
}

.mantra-meaning-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Collapsible Details Section */
.mantra-details-accordion {
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

.mantra-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 6px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-gold);
  cursor: pointer;
}

.mantra-accordion-content {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.mantra-accordion-content.open {
  display: flex;
}

.mantra-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.45;
}

.mantra-benefit-bullet {
  color: var(--primary-gold);
  font-weight: bold;
}

/* Yantra Darshan Strip */
.mantra-yantra-preview-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.mantra-yantra-preview-strip:hover {
  border-color: var(--primary-gold);
}

.mantra-yantra-thumb {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.mantra-yantra-thumb svg {
  width: 100%;
  height: 100%;
}

.mantra-yantra-info {
  flex: 1;
  padding-left: 10px;
}

.mantra-yantra-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.mantra-yantra-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Card Actions Row */
.mantra-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.mantra-action-btn {
  height: 38px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.mantra-action-btn:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.mantra-action-btn.primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  border: none;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.mantra-action-btn.primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.mantra-action-btn.audio-playing {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

/* ==========================================================================
   INTERACTIVE 108 JAPA MALA MODAL
   ========================================================================== */
.japa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.japa-modal-backdrop.open {
  display: flex;
}

.japa-card-dialog {
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  text-align: center;
}

.japa-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.japa-modal-close-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.japa-mantra-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.japa-mantra-deity {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-gold);
  margin-top: 2px;
}

.japa-shloka-banner {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: 'Martel', serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
  max-height: 80px;
  overflow-y: auto;
}

/* Circular Japa Counter Display */
.japa-counter-ring-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.japa-svg-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.japa-ring-bg {
  fill: none;
  stroke: var(--bg-card);
  stroke-width: 10;
}

.japa-ring-progress {
  fill: none;
  stroke: url(#japa-grad);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.15s ease-out;
}

.japa-counter-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-surface) 60%, var(--bg-card) 100%);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.japa-count-big {
  font-size: 46px;
  font-weight: 900;
  color: var(--primary-gold);
  line-height: 1;
}

.japa-count-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
}

.japa-tap-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.japa-mala-round-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-gold);
  background: rgba(245, 158, 11, 0.15);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin: 0 auto;
}

.japa-controls-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.japa-ctrl-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.japa-ctrl-btn:hover {
  border-color: var(--primary-gold);
  color: var(--text-primary);
}

.japa-ctrl-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

/* ==========================================================================
   SACRED YANTRA MODAL
   ========================================================================== */
.yantra-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.yantra-modal-backdrop.open {
  display: flex;
}

.yantra-card-dialog {
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  text-align: center;
}

.yantra-stage-wrap {
  width: 260px;
  height: 260px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background: #ffffff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yantra-stage-wrap svg {
  width: 100%;
  height: 100%;
}

.yantra-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.yantra-modal-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .mantras-cards-grid {
    grid-template-columns: 1fr;
  }
  .japa-counter-ring-wrap {
    width: 165px;
    height: 165px;
  }
  .japa-count-big {
    font-size: 40px;
  }
  .yantra-stage-wrap {
    width: 220px;
    height: 220px;
  }
}

/* ===================================================================
   PITRU PAKSHA & SHRADDHA TARPAN STYLES
   =================================================================== */

.selected-date-shraddha-card {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, rgba(180, 83, 9, 0.06) 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
  position: relative;
  overflow: hidden;
}

[data-mode="light"] .selected-date-shraddha-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}

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

.shraddha-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.shraddha-tithi-tag {
  font-size: 12px;
  font-weight: 700;
  color: #d97706;
  background: rgba(217, 119, 6, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

[data-mode="light"] .shraddha-tithi-tag {
  color: #92400e;
  background: #fde68a;
  border-color: #fcd34d;
}

.shraddha-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.35;
}

.shraddha-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.shraddha-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.03);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid #d97706;
}

[data-mode="dark"] .shraddha-desc {
  background: rgba(255, 255, 255, 0.04);
}

/* Shraddha Muhurat Timings Grid */
.shraddha-muhurat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

@media (max-width: 500px) {
  .shraddha-muhurat-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.shraddha-muhurat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.shraddha-muhurat-box.highlight {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.06);
}

[data-mode="light"] .shraddha-muhurat-box.highlight {
  background: #ffffff;
  border-color: #f59e0b;
}

.shraddha-muhurat-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.shraddha-muhurat-time {
  font-size: 12.5px;
  font-weight: 800;
  color: #d97706;
  white-space: nowrap;
}

[data-mode="light"] .shraddha-muhurat-time {
  color: #b45309;
}

.shraddha-muhurat-note {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Pitru Tarpan & Mantra Guidance Box */
.shraddha-mantra-box {
  background: rgba(217, 119, 6, 0.08);
  border: 1px dashed rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-top: 8px;
}

[data-mode="light"] .shraddha-mantra-box {
  background: #fffdf5;
  border-color: #f59e0b;
}

.shraddha-mantra-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.shraddha-mantra-tag {
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
}

.shraddha-mantra-shloka {
  font-family: 'Noto Serif Devanagari', 'Anek Gujarati', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: 6px 0;
  line-height: 1.5;
}

.shraddha-panchabali-note {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 6px;
  border-top: 1px dotted rgba(217, 119, 6, 0.25);
  padding-top: 6px;
}

/* Panchang View Shraddha Banner */
.panchang-shraddha-banner {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

[data-mode="light"] .panchang-shraddha-banner {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #f59e0b;
}

.event-card.shraddha-card {
  border-left: 4px solid #d97706;
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(217, 119, 6, 0.04) 100%);
}

[data-mode="light"] .event-card.shraddha-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
  border-left-color: #d97706;
}

.event-card.holiday-card {
  border-left: 4px solid #ef4444;
}

.event-card.holiday-card .event-date-box {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.event-card.holiday-card .event-date-num {
  color: #ef4444;
}

.event-card.holiday-card .event-date-month {
  color: var(--text-secondary);
}

.event-card.holiday-card .event-date-year {
  color: #ef4444;
}

/* ==========================================================================
   GOOGLE ADS BANNER SLOTS (UNIQUE IMPRESSION PER SCREEN)
   ========================================================================== */
.google-ad-banner-slot {
  width: 100%;
  max-width: 1200px;
  margin: 12px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

.google-ad-banner-slot.top-banner {
  margin-top: 4px;
  margin-bottom: 14px;
}

.google-ad-banner-slot.bottom-banner {
  margin-top: 20px;
  margin-bottom: 12px;
}

.ad-banner-wrapper {
  width: 100%;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  position: relative;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

[data-mode="dark"] .ad-banner-wrapper {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-mode="light"] .ad-banner-wrapper {
  background: rgba(254, 252, 232, 0.5);
  border-color: rgba(217, 119, 6, 0.25);
}

.ad-label-tag {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  user-select: none;
  opacity: 0.75;
}

.ad-content-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  text-align: center;
  overflow: hidden;
}

/* Responsive Ad Container Constraints */
@media (max-width: 600px) {
  .google-ad-banner-slot {
    margin: 8px auto 10px;
    padding: 0 4px;
  }
  .ad-banner-wrapper {
    padding: 6px 8px;
    min-height: 54px;
  }
}

/* ==========================================================================
   14. SEO & AEO (ANSWER ENGINE OPTIMIZATION) FAQ & RICH CONTENT SECTIONS
   ========================================================================== */
.seo-aeo-section {
  width: 100%;
  max-width: 1200px;
  margin: 32px auto 24px;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.seo-aeo-header {
  margin-bottom: 20px;
  text-align: left;
}

.seo-aeo-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seo-aeo-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.seo-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .seo-faq-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seo-faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.seo-faq-item[open] {
  border-color: var(--primary-gold);
  background: var(--bg-card);
  box-shadow: 0 2px 12px rgba(217, 119, 6, 0.08);
}

.seo-faq-summary {
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.seo-faq-summary::-webkit-details-marker {
  display: none;
}

.seo-faq-summary::after {
  content: "▾";
  font-size: 16px;
  color: var(--primary-gold);
  transition: transform 0.2s ease;
}

.seo-faq-item[open] .seo-faq-summary::after {
  transform: rotate(180deg);
}

.seo-faq-answer {
  padding: 0 16px 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.seo-faq-answer p {
  margin: 0 0 8px 0;
}

.seo-faq-answer p:last-child {
  margin-bottom: 0;
}

/* Breadcrumb Styling for Structured Navigation */
.seo-breadcrumbs-nav {
  padding: 8px 4px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.seo-breadcrumbs-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.seo-breadcrumbs-nav a:hover {
  color: var(--primary-gold);
}

.seo-breadcrumbs-nav .breadcrumb-sep {
  opacity: 0.5;
}

.seo-breadcrumbs-nav .current-crumb {
  color: var(--primary-gold);
  font-weight: 600;
}

/* ==========================================================================
   AGE CALCULATOR POPUP MODAL
   ========================================================================== */
.age-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.age-modal-backdrop.open {
  display: flex;
}

.age-card-dialog {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  box-sizing: border-box;
}

.age-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.age-dialog-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-dialog-icon {
  font-size: 24px;
}

.age-dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-gold);
  margin: 0;
}

.age-dialog-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
}

.age-modal-close-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.age-modal-close-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.age-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.age-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
}

.age-stat-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-gold);
}

.age-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

