/* ==========================================================================
   Hindu Calender - Full Screen Responsive Website Layout
   ========================================================================== */

/* Root Web Portal Container */
.app-root,
.web-portal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-app);
  color: var(--text-primary);
  position: relative;
}

/* Site Header Bar */
.site-header,
.app-header {
  background: linear-gradient(135deg, var(--primary-saffron) 0%, var(--accent-vermillion) 65%, var(--primary-saffron-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(200, 75, 0, 0.32);
  position: sticky;
  top: 0;
  z-index: 1000;
  transform: translateZ(0);
  will-change: transform;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow: hidden;
}

/* App Branding (Logo & Title) */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
  min-width: 0;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow: hidden;
}

.app-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  transition: transform var(--transition-fast);
}

.app-branding:hover .app-logo-badge {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.6);
}

.app-branding:active .app-logo-badge {
  transform: scale(0.96);
}

.app-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.app-logo-badge svg,
.app-logo-badge img,
.app-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* Live Current Date, Tithi & Time Badge in Header (3 Stacked Rows) */
.header-current-date-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 224, 130, 0.38);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
  white-space: nowrap !important;
  gap: 2px;
}

.header-current-date-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffe082;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.header-current-date-badge:active {
  transform: scale(0.97);
}

.header-date-row,
.header-date-row-primary,
.header-date-row-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow: hidden;
  line-height: 1.25;
}

.header-date-row-date {
  gap: 0;
}

.header-date-row-tithi-time {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
  white-space: nowrap !important;
  overflow: hidden;
}

.header-date-row-tithi {
  gap: 0;
}

.header-date-row-time {
  gap: 0;
}

.header-date-day {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.15px;
}

.header-dot-sep {
  font-size: 11px;
  color: rgba(255, 224, 130, 0.7);
  flex-shrink: 0;
}

.header-clock-time {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffe082;
  font-family: 'Outfit', monospace, sans-serif;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive display tokens for header date, time & tithi */
.date-short,
.tithi-short,
.time-short {
  display: none !important;
}

.date-full,
.tithi-full,
.time-full,
.header-clock-sec {
  display: inline !important;
}

.header-date-tithi {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffe082;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-clock-city {
  font-size: 12px;
  font-weight: 700;
  color: #ffe082;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.header-clock-city:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Desktop Navigation Menu in Header */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 5px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.desktop-nav .nav-item {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.desktop-nav .nav-item svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.desktop-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.desktop-nav .nav-item.active {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.desktop-nav .nav-menu-btn {
  font-family: inherit;
  outline: none;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 224, 130, 0.35);
  color: #ffe082;
  cursor: pointer;
}

.desktop-nav .nav-menu-btn svg {
  fill: #ffe082;
  transition: transform var(--transition-fast);
}

.desktop-nav .nav-menu-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: #ffe082;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.desktop-nav .nav-menu-btn:hover svg {
  fill: #ffffff;
  transform: scale(1.08);
}

.desktop-nav .nav-menu-btn:active {
  transform: scale(0.96);
}

.desktop-nav .nav-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffe082;
  animation: pulseGlow 1.8s infinite;
}

/* Header Action Controls */
.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

/* Active Running Choghadiya Badge in Top Bar (3 Stacked Rows) */
a.header-choghadiya-badge,
.header-choghadiya-badge,
.header-choghadiya-badge:link,
.header-choghadiya-badge:visited,
.header-choghadiya-badge:hover,
.header-choghadiya-badge:active,
.header-choghadiya-badge:focus {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 224, 130, 0.4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap !important;
  gap: 2px;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  color: inherit !important;
  outline: none !important;
}

.header-choghadiya-badge *,
.header-choghadiya-badge span {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}

.header-choghadiya-badge:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: #ffe082;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  text-decoration: none !important;
}

.header-choghadiya-badge:active {
  transform: scale(0.97);
  text-decoration: none !important;
}

.header-choghadiya-row,
.header-choghadiya-top,
.header-choghadiya-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.header-choghadiya-row-main {
  gap: 5px;
}

.header-choghadiya-row-type-time {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
  white-space: nowrap !important;
}

.header-choghadiya-row-type {
  margin-top: 1px;
}

.header-choghadiya-row-time {
  margin-top: 1px;
}

.header-choghadiya-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.9);
  animation: pulseGlow 1.8s infinite;
  flex-shrink: 0;
}

.header-choghadiya-label {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.header-choghadiya-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffe082;
  white-space: nowrap;
}

.header-choghadiya-quality {
  font-size: 11.5px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  white-space: nowrap;
  line-height: 1.2;
}

/* Choghadiya quality placement: in website, row 2; in native app, row 1 beside choghadiyu */
.header-choghadiya-quality-app {
  display: none !important;
}

.header-choghadiya-quality-web {
  display: inline-flex !important;
}

html.is-native-app .header-choghadiya-quality-app,
.is-native-app .header-choghadiya-quality-app {
  display: inline-flex !important;
}

html.is-native-app .header-choghadiya-quality-web,
.is-native-app .header-choghadiya-quality-web {
  display: none !important;
}

.header-choghadiya-quality.amrit,
.header-choghadiya-quality.shubh,
.header-choghadiya-quality.labh {
  background: rgba(34, 197, 94, 0.22);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
}

.header-choghadiya-quality.char {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

.header-choghadiya-quality.udveg,
.header-choghadiya-quality.kaal,
.header-choghadiya-quality.rog {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

.header-choghadiya-time {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Outfit', monospace, sans-serif;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* City & Quick Jump in Header */
.city-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #ffe082;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  transition: all var(--transition-fast);
}

.city-selector-btn:hover {
  background: rgba(0, 0, 0, 0.32);
}

.city-selector-btn svg {
  width: 14px;
  height: 14px;
  fill: #ffe082;
}

.today-quick-btn {
  background: #ffb300;
  color: #78350f;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: transform var(--transition-fast);
}

.today-quick-btn:hover {
  transform: scale(1.05);
}

/* Main Site Content Container */
.site-main,
.app-content {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 20px 6px;
  position: relative;
  overflow: visible;
}

/* Tab Views Container */
.tab-view {
  display: none;
  animation: fadeInScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-view.active {
  display: block;
}

/* Full Screen Website Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 14px 20px 30px;
  margin-top: auto;
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* Section Header Back Button */
.section-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* Footer Quick Tools Section */
.footer-tools-card {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.footer-tools-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-tools-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-gold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.footer-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-tool-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 179, 0, 0.15);
}

.footer-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-tool-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--primary-gold);
  transition: fill var(--transition-fast);
}

.footer-tool-btn:hover .footer-tool-icon svg {
  fill: var(--primary-saffron);
}

.footer-tool-name {
  line-height: 1.2;
}

@media (max-width: 600px) {
  .footer-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .footer-tool-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* Market Rates City Badge */
.market-city-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 179, 0, 0.16);
  color: var(--primary-gold);
  border: 1px solid var(--border-highlight);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.3px;
}

/* Theme Mode (Light / Dark) Toggle Group */
.theme-mode-group {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
  width: fit-content;
}

.theme-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-mode-btn.active {
  background: var(--primary-saffron);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.4);
}

.theme-mode-btn:hover:not(.active) {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* Footer Preferences & Theme Selection Card */
.footer-preferences-card {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.footer-preferences-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-saffron));
}

.footer-pref-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 10px;
  align-items: start;
}

.footer-pref-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.footer-pref-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-city-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
}

.footer-city-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: var(--primary-gold);
}

.footer-city-btn span:not(.footer-btn-tag):not(.footer-theme-preview-dot):not(.footer-city-icon) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}

.footer-btn-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 179, 0, 0.18);
  color: var(--primary-gold);
  font-weight: 700;
  flex-shrink: 0;
}

.footer-city-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-gold);
  transform: translateY(-1px);
}

.footer-theme-preview-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.theme-mode-group {
  display: flex;
  width: 100%;
  gap: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  box-sizing: border-box;
  min-height: 38px;
}

.theme-mode-group .theme-mode-btn {
  flex: 1;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-mode-group .theme-mode-btn.active {
  background: var(--primary-gold);
  color: #000;
  box-shadow: var(--shadow-sm);
}

.footer-lang-group {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
  width: fit-content;
}

.footer-lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.footer-lang-btn.active {
  background: var(--primary-saffron);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.4);
}

.footer-lang-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Footer Theme Dropdown Button & Dots */
.footer-theme-btn {
  gap: 8px;
}

.footer-theme-preview-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.theme-sheet-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  display: inline-block;
}

.theme-options-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.theme-item-option {
  cursor: pointer;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-kalash-emblem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.2), rgba(230, 81, 0, 0.25));
  border: 1px solid var(--border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 179, 0, 0.25);
  transition: transform var(--transition-fast);
}

.footer-kalash-emblem:hover {
  transform: scale(1.08) rotate(3deg);
}

.footer-kalash-emblem svg,
.footer-kalash-emblem img,
.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(255, 179, 0, 0.5));
}

.footer-brand-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-gold);
}

.footer-tagline {
  font-size: 13px;
  max-width: 600px;
  color: var(--text-muted);
  text-align: center;
}

.footer-bottom {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-copyright {
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-owner {
  font-size: 12px;
  color: var(--primary-gold);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Website-only elements (e.g. Privacy Policy link - strictly hidden in native Android app) */
.website-only {
  display: inline-flex;
}

html.is-native-app .website-only,
.is-native-app .website-only {
  display: none !important;
}

/* ==========================================================================
   WEBSITE MODE SPECIFIC ADAPTATIONS
   In website: Add current choghadiyu section, do not add seconds in remaining time
   ========================================================================== */
html.is-website .header-clock-sec,
.is-website .header-clock-sec {
  display: none !important;
}

html.is-website .app-branding,
.is-website .app-branding {
  order: 1;
  flex-shrink: 0;
}

html.is-website .header-left,
.is-website .header-left {
  order: 2;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

html.is-website .desktop-nav,
.is-website .desktop-nav {
  order: 3;
  margin: 0 auto;
}

html.is-website .header-right,
.is-website .header-right {
  order: 4;
  margin-left: auto;
  flex-shrink: 0;
}

html.is-website .header-current-date-badge,
.is-website .header-current-date-badge {
  max-width: 340px;
}

/* ==========================================================================
   NATIVE ANDROID APP MODE: 2-ROW TOP BAR WITH MATCHED LOGO
   Row 1: Date & Day
   Row 2: Tithi • Time (Time beside and after tithi)
   Choghadiya Row 1: Choghadiya Name
   Choghadiya Row 2: Type Pill + Remaining Time beside & after type
   ========================================================================== */
html.is-native-app .site-header,
.is-native-app .site-header {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.3);
}

html.is-native-app .header-container,
.is-native-app .header-container {
  padding: 10px 18px;
  min-height: 78px;
  gap: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap !important;
}

html.is-native-app .header-left,
.is-native-app .header-left {
  order: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

html.is-native-app .app-branding,
.is-native-app .app-branding {
  order: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

html.is-native-app .desktop-nav,
.is-native-app .desktop-nav {
  display: none !important;
}

html.is-native-app .header-right,
.is-native-app .header-right {
  order: 3;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

html.is-native-app .app-logo-badge,
.is-native-app .app-logo-badge {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
}

html.is-native-app .app-logo-badge svg,
.is-native-app .app-logo-badge svg,
html.is-native-app .app-logo-badge img,
.is-native-app .app-logo-badge img,
html.is-native-app .app-logo-img,
.is-native-app .app-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

html.is-native-app .header-current-date-badge,
.is-native-app .header-current-date-badge {
  padding: 6px 14px;
  gap: 3px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html.is-native-app .header-date-day,
.is-native-app .header-date-day {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

html.is-native-app .header-date-tithi,
.is-native-app .header-date-tithi {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffe082;
}

html.is-native-app .header-dot-sep,
.is-native-app .header-dot-sep {
  font-size: 11px;
  color: rgba(255, 224, 130, 0.7);
}

html.is-native-app .header-clock-time,
.is-native-app .header-clock-time {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

html.is-native-app .header-choghadiya-badge,
.is-native-app .header-choghadiya-badge {
  padding: 6px 14px;
  gap: 3px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html.is-native-app .header-choghadiya-pulse-dot,
.is-native-app .header-choghadiya-pulse-dot {
  width: 9px;
  height: 9px;
}

html.is-native-app .header-choghadiya-label,
.is-native-app .header-choghadiya-label {
  font-size: 12.5px;
  font-weight: 700;
}

html.is-native-app .header-choghadiya-name,
.is-native-app .header-choghadiya-name {
  font-size: 15px;
  font-weight: 800;
}

html.is-native-app .header-choghadiya-quality,
.is-native-app .header-choghadiya-quality {
  font-size: 11.5px;
  font-weight: 700;
  padding: 1.5px 6px;
}

html.is-native-app .header-choghadiya-time,
.is-native-app .header-choghadiya-time {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

html.is-native-app .today-quick-btn,
.is-native-app .today-quick-btn {
  display: none !important;
}

.footer-links {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-privacy-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.footer-privacy-link:hover {
  color: var(--primary-gold);
  background: rgba(255, 179, 0, 0.12);
  border-color: var(--border-highlight);
  text-decoration: none;
}

/* Mobile Bottom Navigation Bar (Hidden on desktop screens >= 961px) */
.bottom-nav {
  display: none;
}

.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
}

.bottom-nav .nav-icon-container {
  width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  margin-bottom: 2px;
}

.bottom-nav .nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: all var(--transition-fast);
}

.bottom-nav .nav-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  transition: color var(--transition-fast);
}

.bottom-nav .nav-item.active {
  color: var(--primary-gold);
}

.bottom-nav .nav-item.active .nav-icon-container {
  background: rgba(255, 179, 0, 0.16);
  color: var(--primary-gold);
}

.bottom-nav .nav-badge-dot {
  position: absolute;
  top: 6px;
  right: calc(50% - 14px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-saffron);
  border: 1px solid var(--bg-surface);
  animation: pulseGlow 2s infinite;
}

/* Responsive Media Queries for Mobile & Tablet */
@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }
  .bottom-nav {
    display: flex;
    height: 66px;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    transform: translateZ(0);
    will-change: transform;
  }
  .site-main,
  .app-content {
    padding-bottom: 6px;
  }
  .site-footer {
    padding-top: 14px;
    padding-bottom: 90px;
  }
}

@media (max-width: 600px) {
  .date-full,
  .tithi-full,
  .time-full,
  .header-clock-sec {
    display: none !important;
  }
  .date-short,
  .tithi-short,
  .time-short {
    display: inline !important;
  }
  .site-main,
  .app-content {
    padding: 12px 10px 6px !important;
  }
  .site-footer {
    padding-top: 12px;
  }
  .header-container {
    padding: 8px 10px;
    gap: 6px;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow: hidden;
  }
  .header-left {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }
  .app-logo-badge {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .app-logo-badge svg {
    width: 23px;
    height: 23px;
  }
  .header-current-date-badge {
    padding: 4px 8px;
    min-width: 0;
    max-width: 155px;
    flex-shrink: 1;
    overflow: hidden;
  }
  .header-date-day {
    font-size: 12px;
  }
  .header-clock-time {
    font-size: 12.5px;
    font-weight: 800;
  }
  .header-date-tithi {
    font-size: 10.5px;
  }
  .header-clock-city {
    font-size: 10.5px;
  }
  .header-right {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }
  .header-choghadiya-badge {
    padding: 4px 8px;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .header-choghadiya-label {
    display: none !important;
  }
  .header-choghadiya-pulse-dot {
    width: 8px;
    height: 8px;
  }
  .header-choghadiya-name {
    font-size: 12.5px;
  }
  .header-choghadiya-quality {
    font-size: 9.5px;
    padding: 1px 4px;
  }
  .header-choghadiya-time {
    font-size: 11px;
  }
  .today-quick-btn {
    padding: 5px 9px;
    font-size: 11.5px;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Native App Mobile Overrides (visibly bigger top bar in app, centered logo, 2 stacked rows) */
  html.is-native-app .header-container,
  .is-native-app .header-container {
    padding: 8px 10px !important;
    min-height: 68px !important;
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  html.is-native-app .header-left,
  .is-native-app .header-left {
    order: 1 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  html.is-native-app .app-branding,
  .is-native-app .app-branding {
    order: 2 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }
  html.is-native-app .header-right,
  .is-native-app .header-right {
    order: 3 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  html.is-native-app .app-logo-badge,
  .is-native-app .app-logo-badge {
    width: 50px !important;
    height: 50px !important;
  }
  html.is-native-app .app-logo-badge svg,
  .is-native-app .app-logo-badge svg,
  html.is-native-app .app-logo-badge img,
  .is-native-app .app-logo-badge img,
  html.is-native-app .app-logo-img,
  .is-native-app .app-logo-img {
    width: 38px !important;
    height: 38px !important;
    object-fit: contain;
  }
  html.is-native-app .header-current-date-badge,
  .is-native-app .header-current-date-badge {
    padding: 4px 8px !important;
    max-width: 175px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    gap: 2px !important;
    min-height: 48px !important;
  }
  html.is-native-app .header-date-day,
  .is-native-app .header-date-day {
    font-size: 12.5px !important;
    font-weight: 800 !important;
  }
  html.is-native-app .header-date-tithi,
  .is-native-app .header-date-tithi {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #ffe082 !important;
  }
  html.is-native-app .header-dot-sep,
  .is-native-app .header-dot-sep {
    font-size: 10px !important;
  }
  html.is-native-app .header-clock-time,
  .is-native-app .header-clock-time {
    font-size: 11.5px !important;
    font-weight: 800 !important;
  }
  html.is-native-app .header-actions,
  .is-native-app .header-actions {
    gap: 0 !important;
    flex-shrink: 0 !important;
  }
  html.is-native-app .header-choghadiya-badge,
  .is-native-app .header-choghadiya-badge {
    padding: 4px 8px !important;
    flex-shrink: 0 !important;
    gap: 2px !important;
    min-height: 48px !important;
  }
  html.is-native-app .header-choghadiya-pulse-dot,
  .is-native-app .header-choghadiya-pulse-dot {
    width: 7px !important;
    height: 7px !important;
  }
  html.is-native-app .header-choghadiya-label,
  .is-native-app .header-choghadiya-label {
    font-size: 11px !important;
  }
  html.is-native-app .header-choghadiya-name,
  .is-native-app .header-choghadiya-name {
    font-size: 12.5px !important;
    font-weight: 800 !important;
  }
  html.is-native-app .header-choghadiya-quality,
  .is-native-app .header-choghadiya-quality {
    font-size: 10px !important;
    padding: 1px 4px !important;
  }
  html.is-native-app .header-choghadiya-time,
  .is-native-app .header-choghadiya-time {
    font-size: 11px !important;
    font-weight: 700 !important;
  }
  html.is-native-app .today-quick-btn,
  .is-native-app .today-quick-btn {
    display: none !important;
  }

  .footer-preferences-card {
    padding: 14px 10px;
  }
  .footer-pref-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    align-items: start !important;
    gap: 10px 8px !important;
  }
  .theme-options-list {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 360px) {
  .header-container {
    padding: 6px 8px;
    gap: 4px;
  }
  .app-logo-badge {
    width: 30px;
    height: 30px;
  }
  .app-logo-badge svg {
    width: 19px;
    height: 19px;
  }
  .header-current-date-badge {
    padding: 3px 6px;
    max-width: 130px;
  }
  .header-date-day {
    font-size: 11px;
  }
  .header-clock-time {
    font-size: 11px;
  }
  .header-choghadiya-badge {
    padding: 3px 6px;
  }
  .header-choghadiya-name {
    font-size: 11.5px;
  }
  .header-choghadiya-quality {
    font-size: 9px;
    padding: 0 3px;
  }
  .header-choghadiya-time {
    font-size: 10px;
  }
  .today-quick-btn {
    padding: 4px 6px;
    font-size: 10.5px;
  }

  html.is-native-app .header-container,
  .is-native-app .header-container {
    padding: 6px 5px !important;
    gap: 4px !important;
    min-height: 62px !important;
  }
  html.is-native-app .header-left,
  .is-native-app .header-left {
    order: 1 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  html.is-native-app .app-branding,
  .is-native-app .app-branding {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin: 0 auto !important;
  }
  html.is-native-app .header-right,
  .is-native-app .header-right {
    order: 3 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  html.is-native-app .app-logo-badge,
  .is-native-app .app-logo-badge {
    width: 44px !important;
    height: 44px !important;
  }
  html.is-native-app .app-logo-badge svg,
  .is-native-app .app-logo-badge svg,
  html.is-native-app .app-logo-badge img,
  .is-native-app .app-logo-badge img,
  html.is-native-app .app-logo-img,
  .is-native-app .app-logo-img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
  }
  html.is-native-app .header-current-date-badge,
  .is-native-app .header-current-date-badge {
    padding: 3px 5px !important;
    max-width: 140px !important;
    gap: 1px !important;
  }
  html.is-native-app .header-date-day,
  .is-native-app .header-date-day {
    font-size: 11px !important;
  }
  html.is-native-app .header-date-tithi,
  .is-native-app .header-date-tithi {
    font-size: 10px !important;
  }
  html.is-native-app .header-clock-time,
  .is-native-app .header-clock-time {
    font-size: 10.5px !important;
  }
  html.is-native-app .header-choghadiya-badge,
  .is-native-app .header-choghadiya-badge {
    padding: 3px 5px !important;
    gap: 1px !important;
  }
  html.is-native-app .header-choghadiya-name,
  .is-native-app .header-choghadiya-name {
    font-size: 11px !important;
  }
  html.is-native-app .header-choghadiya-quality,
  .is-native-app .header-choghadiya-quality {
    font-size: 9px !important;
    padding: 0 3px !important;
  }
  html.is-native-app .header-choghadiya-time,
  .is-native-app .header-choghadiya-time {
    font-size: 10px !important;
  }
  html.is-native-app .today-quick-btn,
  .is-native-app .today-quick-btn {
    display: none !important;
  }
}

/* Mobile App Native Footer Settings & Spacing (Prevent app navigation overlap) */
html.is-native-app .site-footer,
.is-native-app .site-footer {
  padding-top: 14px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

html.is-native-app .footer-bottom,
.is-native-app .footer-bottom {
  padding-top: 14px !important;
  padding-bottom: 8px !important;
  gap: 6px !important;
}

/* Privacy Policy link strictly removed from mobile app footer */
html.is-native-app #footer-website-links,
.is-native-app #footer-website-links,
html.is-native-app .footer-privacy-link,
.is-native-app .footer-privacy-link,
html.is-native-app .website-only,
.is-native-app .website-only {
  display: none !important;
}

html.is-native-app .footer-container,
.is-native-app .footer-container {
  max-width: 860px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

html.is-native-app .footer-preferences-card,
.is-native-app .footer-preferences-card {
  padding: 14px 10px !important;
  max-width: 860px !important;
  width: 100% !important;
}

html.is-native-app .footer-pref-row,
.is-native-app .footer-pref-row {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px 8px !important;
  align-items: start !important;
}

html.is-native-app #footer-pref-notification,
.is-native-app #footer-pref-notification {
  display: flex !important;
}

html.is-native-app .footer-city-btn,
.is-native-app .footer-city-btn {
  padding: 7px 8px !important;
  font-size: 11.5px !important;
  min-height: 38px !important;
}

html.is-native-app .theme-mode-group,
.is-native-app .theme-mode-group {
  width: 100% !important;
  min-height: 38px !important;
}

html.is-native-app .theme-mode-group .theme-mode-btn,
.is-native-app .theme-mode-group .theme-mode-btn {
  font-size: 10.5px !important;
  padding: 5px 3px !important;
}

html.is-native-app .footer-tools-card,
.is-native-app .footer-tools-card {
  max-width: 860px !important;
  width: 100% !important;
  padding: 14px 12px !important;
}

html.is-native-app .footer-tools-grid,
.is-native-app .footer-tools-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}

html.is-native-app .footer-tool-btn,
.is-native-app .footer-tool-btn {
  width: 100% !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
}

/* ==========================================================================
   Website Only Footer Layout (Full Screen matching Header: max-width 1440px)
   Settings in single horizontal line.
   Do NOT apply to mobile app (html.is-native-app).
   ========================================================================== */
html.is-website .site-footer,
.is-website .site-footer,
html:not(.is-native-app) .site-footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  margin-top: auto !important;
}

html.is-website .footer-container,
.is-website .footer-container,
html:not(.is-native-app) .footer-container {
  max-width: 1440px !important;
  width: 100% !important;
  padding: 0 20px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

html.is-website .footer-tools-card,
.is-website .footer-tools-card,
html:not(.is-native-app) .footer-tools-card {
  max-width: 100% !important;
  width: 100% !important;
  padding: 18px 24px !important;
  box-sizing: border-box !important;
  margin-bottom: 12px !important;
}

html.is-website .footer-tools-grid,
.is-website .footer-tools-grid,
html:not(.is-native-app) .footer-tools-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
}

html.is-website .footer-tool-btn,
.is-website .footer-tool-btn,
html:not(.is-native-app) .footer-tool-btn {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  justify-content: center !important;
  padding: 8px 10px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  font-size: 12.5px !important;
}

html.is-website .footer-preferences-card,
.is-website .footer-preferences-card,
html:not(.is-native-app) .footer-preferences-card {
  max-width: 100% !important;
  width: 100% !important;
  padding: 18px 24px !important;
  box-sizing: border-box !important;
  margin-bottom: 16px !important;
}

/* Settings in Single Horizontal Line on Website */
html.is-website .footer-pref-row,
.is-website .footer-pref-row,
html:not(.is-native-app) .footer-pref-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 14px !important;
  width: 100% !important;
}

html.is-website .footer-pref-group,
.is-website .footer-pref-group,
html:not(.is-native-app) .footer-pref-group {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

html.is-website .footer-pref-label,
.is-website .footer-pref-label,
html:not(.is-native-app) .footer-pref-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html.is-website #footer-pref-notification,
.is-website #footer-pref-notification,
html:not(.is-native-app) #footer-pref-notification,
#footer-pref-sound,
#btn-katha-audio {
  display: none !important;
}

html.is-website .footer-city-btn,
.is-website .footer-city-btn,
html:not(.is-native-app) .footer-city-btn {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  font-size: 12.5px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: var(--radius-full) !important;
}

html.is-website .theme-mode-group,
.is-website .theme-mode-group,
html:not(.is-native-app) .theme-mode-group {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  border-radius: var(--radius-full) !important;
}

html.is-website .theme-mode-group .theme-mode-btn,
.is-website .theme-mode-group .theme-mode-btn,
html:not(.is-native-app) .theme-mode-group .theme-mode-btn {
  flex: 1 1 0 !important;
  height: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  padding: 0 6px !important;
  white-space: nowrap !important;
  border-radius: var(--radius-full) !important;
}

/* Responsive adjustments on website for smaller screens */
@media (max-width: 1024px) {
  html.is-website .footer-tools-grid,
  .is-website .footer-tools-grid,
  html:not(.is-native-app) .footer-tools-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  html.is-website .footer-pref-row,
  .is-website .footer-pref-row,
  html:not(.is-native-app) .footer-pref-row {
    flex-wrap: wrap !important;
  }
  html.is-website .footer-pref-group,
  .is-website .footer-pref-group,
  html:not(.is-native-app) .footer-pref-group {
    flex: 1 1 calc(50% - 8px) !important;
  }
  html.is-website .footer-tools-grid,
  .is-website .footer-tools-grid,
  html:not(.is-native-app) .footer-tools-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Privacy Policy link strictly preserved on website */
html.is-website #footer-website-links,
.is-website #footer-website-links,
html:not(.is-native-app) #footer-website-links,
html.is-website .footer-privacy-link,
.is-website .footer-privacy-link,
html:not(.is-native-app) .footer-privacy-link {
  display: inline-flex !important;
}

/* ==========================================================================
   15. RIGHT-SIDE SLIDE-OVER NAVIGATION SIDEBAR & HAMBURGER MENU
   ========================================================================== */

/* Header Hamburger Button */
.header-hamburger-btn,
.nav-hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 224, 130, 0.35);
  border-radius: var(--radius-md);
  color: #ffe082;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}

.header-hamburger-btn svg,
.nav-hamburger-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.header-hamburger-btn:hover,
.nav-hamburger-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: #ffe082;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.header-hamburger-btn:active,
.nav-hamburger-btn:active {
  transform: scale(0.95);
}

/* Sidebar Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Slide-Over Sidebar Drawer from Right */
.sidebar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  overflow: hidden;
}

.sidebar-drawer.open {
  transform: translateX(0);
}

[data-mode="dark"] .sidebar-drawer {
  background: #0f172a;
  border-left-color: rgba(255, 255, 255, 0.12);
}

[data-mode="light"] .sidebar-drawer {
  background: #ffffff;
  border-left-color: rgba(217, 119, 6, 0.2);
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 14px;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  min-height: 48px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffe082;
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.sidebar-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffe082;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-close-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Sidebar Scrollable Content */
.sidebar-scrollable-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-nav-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-sec-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 0 8px 4px;
}

/* Navigation Items in Sidebar */
.sidebar-nav-item,
.sidebar-action-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-family: inherit;
}

[data-mode="dark"] .sidebar-nav-item,
[data-mode="dark"] .sidebar-action-item {
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-nav-item:hover,
.sidebar-action-item:hover {
  background: rgba(217, 119, 6, 0.12);
  border-color: var(--primary-gold);
  transform: translateX(-3px);
}

.sidebar-nav-item.active {
  background: rgba(217, 119, 6, 0.18);
  border-color: var(--primary-gold);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.sidebar-nav-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 6, 0.15);
  border-radius: var(--radius-sm);
  color: var(--primary-gold);
  flex-shrink: 0;
}

.sidebar-nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sidebar-nav-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.sidebar-nav-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.sidebar-badge-pill {
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
  white-space: nowrap;
}

.sidebar-item-chevron {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

[data-mode="dark"] .sidebar-footer {
  background: rgba(15, 23, 42, 0.85);
}

.sidebar-copyright-row {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.85;
}

/* Full Bottom Footer Social Media & App Download Section */
.footer-social-section {
  margin: 22px auto 14px;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

.footer-social-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.2px;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  box-sizing: border-box;
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

/* Google Play Android App Button */
.footer-social-btn.play {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.22) 100%);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
}

.footer-social-btn.play:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Share App Button */
.footer-social-btn.share {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.24) 100%);
  color: var(--primary-gold);
  border-color: rgba(245, 158, 11, 0.38);
  cursor: pointer;
}

.footer-social-btn.share:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Facebook Button */
.footer-social-btn.fb {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.25);
}

.footer-social-btn.fb:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

/* Instagram Button */
.footer-social-btn.insta {
  background: rgba(225, 48, 108, 0.12);
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.25);
}

.footer-social-btn.insta:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border-color: #e1306c;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.4);
}

/* YouTube Button */
.footer-social-btn.yt {
  background: rgba(255, 0, 0, 0.12);
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.25);
}

.footer-social-btn.yt:hover {
  background: #ff0000;
  color: #ffffff;
  border-color: #ff0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
}

.footer-social-btn:hover svg {
  transform: scale(1.1);
}



