/* ==========================================================================
   VISHAL VITA — Modern Regional News Portal Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-subtle: #fef2f2;
  --primary-glow: rgba(220, 38, 38, 0.25);
  
  --secondary: #0284c7;
  --accent-gold: #f59e0b;
  --accent-live: #ef4444;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-header: #ffffff;
  
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --font-marathi-heading: 'Baloo 2', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-marathi-body: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-english: 'Outfit', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
  
  --container-width: 1240px;
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-page: #090d16;
  --bg-card: #111827;
  --bg-card-subtle: #1f2937;
  --bg-header: #0f172a;
  
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  
  --border-color: #1e293b;
  --border-light: #182234;
  --primary-subtle: rgba(220, 38, 38, 0.15);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.45);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-marathi-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
  padding-bottom: 90px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Responsive Display Utilities */
.d-none-mobile {
  display: block;
}
.d-mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .d-none-mobile {
    display: none !important;
  }
  .d-mobile-only {
    display: flex !important;
  }
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.top-bar {
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-english);
  font-size: 0.82rem;
  padding: 6px 0;
  color: var(--text-muted);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.75rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  color: var(--text-main);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: var(--transition-fast);
}
.theme-toggle-btn:hover {
  border-color: var(--primary);
}

/* ==========================================================================
   HEADER / BRAND MASTHEAD
   ========================================================================== */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-main {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-symbol {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-marathi-heading);
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-titles .brand-name {
  font-family: var(--font-marathi-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-search-wrap {
  flex-grow: 1;
  max-width: 320px;
  margin: 0 24px;
}
.header-search-wrap input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.header-search-wrap input:focus {
  border-color: var(--primary);
}
.header-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.95rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.mobile-icon-btn:active {
  transform: scale(0.92);
  background: var(--primary-subtle);
  color: var(--primary);
}

.app-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.app-cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  font-size: 1.15rem;
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile Expandable Search Bar */
.mobile-search-bar {
  display: none;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.22s ease forwards;
}
.mobile-search-bar.active {
  display: block;
}
@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mobile-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.mobile-search-inner i {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.mobile-search-inner input {
  flex-grow: 1;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}
.mobile-search-inner input:focus {
  border-color: var(--primary);
}
.mobile-search-inner button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   CATEGORY NAVIGATION
   ========================================================================== */
.category-nav-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-nav-bar::-webkit-scrollbar {
  display: none;
}

.category-nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.cat-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-card-subtle);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}
.cat-chip:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}
.cat-chip.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ==========================================================================
   BREAKING NEWS TICKER
   ========================================================================== */
.ticker-wrap {
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 100%);
  color: #fff;
  padding: 8px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ticker-inner {
  display: flex;
  align-items: center;
  width: 100%;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-right: 14px;
  flex-shrink: 0;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ticker-marquee {
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  flex-grow: 1;
}

.ticker-marquee-inner {
  display: inline-flex;
  gap: 36px;
  animation: marquee 35s linear infinite;
}
.ticker-marquee:hover .ticker-marquee-inner {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.ticker-item:hover {
  text-decoration: underline;
}

/* ==========================================================================
   HERO / LEAD STORIES SECTION
   ========================================================================== */
.hero-section {
  padding: 24px 0 16px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.lead-story-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.lead-story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.lead-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1e293b;
}

.lead-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.lead-story-card:hover .lead-image-wrap img {
  transform: scale(1.03);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 2;
}

.lead-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.meta-dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

.lead-title {
  font-family: var(--font-marathi-heading);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 12px;
}
.lead-title:hover {
  color: var(--primary);
}

.lead-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lead-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(220, 38, 38, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
}
.listen-btn:hover {
  background: var(--primary);
  color: #fff;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}
.share-btn:hover {
  opacity: 0.92;
}

/* Trending Column */
.trending-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
}

.trending-header h3 {
  font-family: var(--font-marathi-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.trending-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trending-thumb {
  width: 88px;
  height: 88px;
  border-radius: 6px;
  overflow: hidden;
  background: #1e293b;
  flex-shrink: 0;
}
.trending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trending-title {
  font-family: var(--font-marathi-heading);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.trending-title:hover {
  color: var(--primary);
}

.trending-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   AUDIO BULLETINS BAR (ऐका ताज्या बातम्या)
   ========================================================================== */
.audio-bulletin-section {
  padding: 18px 0;
}

.audio-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}

.audio-box-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.audio-icon-pulse {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.25);
}

.audio-titles h4 {
  font-family: var(--font-marathi-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.audio-titles p {
  font-size: 0.85rem;
  color: #94a3b8;
}

.audio-stories-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  max-width: 550px;
  scrollbar-width: none;
}
.audio-stories-scroll::-webkit-scrollbar {
  display: none;
}

.audio-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.audio-chip:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   MAIN CONTENT GRID & CATEGORY NEWS
   ========================================================================== */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.section-heading h1,
.section-heading h2 {
  font-family: var(--font-marathi-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
}
.section-heading h1::after,
.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
}

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

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}
.news-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  aspect-ratio: 16 / 10;
  background: #1e293b;
  overflow: hidden;
  position: relative;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-marathi-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title:hover {
  color: var(--primary);
}

.card-snippet {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
}

/* ==========================================================================
   MULTIMEDIA & VIDEO NEWS SECTION
   ========================================================================== */
.videos-section {
  padding: 30px 0;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 30px 0;
}

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

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.video-thumb-wrap {
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
}
.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.video-title {
  padding: 12px;
  font-family: var(--font-marathi-heading);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   APP DOWNLOAD PROMO BANNER
   ========================================================================== */
.app-promo-banner {
  margin: 36px 0;
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #b91c1c 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
  box-shadow: 0 16px 36px var(--primary-glow);
}

.app-promo-text h3 {
  font-family: var(--font-marathi-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}
.app-promo-text p {
  font-size: 1rem;
  opacity: 0.92;
  margin-bottom: 20px;
  line-height: 1.6;
}

.app-store-badges {
  display: flex;
  align-items: center;
  gap: 14px;
}

.store-badge-btn {
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-english);
  font-size: 0.82rem;
  line-height: 1.2;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition-fast);
}
.store-badge-btn:hover {
  transform: translateY(-2px);
  background: #111;
}
.store-badge-btn i {
  font-size: 1.6rem;
}

/* ==========================================================================
   STORY DETAIL PAGE (बातमी तपशील)
   ========================================================================== */
.story-detail-wrap {
  padding: 24px 0 40px 0;
}

.story-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.story-header {
  margin-bottom: 20px;
}

.story-category-tag {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.story-headline {
  font-family: var(--font-marathi-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 14px;
}

.story-date-location {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.story-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  transition: var(--transition-fast);
}
.share-pill.whatsapp {
  background: #25d366;
}
.share-pill.facebook {
  background: #1877f2;
}
.share-pill.copy {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.share-pill:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.story-featured-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 18px 0;
  box-shadow: var(--shadow-md);
}

.story-body-content {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-top: 20px;
}
.story-body-content p {
  margin-bottom: 18px;
}
.story-sources {
  font-size: 0.86rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin: 8px 0 20px;
  line-height: 1.7;
}
.story-sources a {
  color: var(--primary);
  text-decoration: underline;
}
.story-body-content h2 {
  font-family: var(--font-marathi-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin: 28px 0 10px;
  scroll-margin-top: 90px;
}
.story-body-content ul {
  padding-left: 1.2rem;
  margin-bottom: 18px;
}
.story-body-content li {
  margin-bottom: 8px;
}
.story-body-content a {
  color: var(--primary);
  text-decoration: underline;
}

.key-facts-box {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.key-facts-box h4 {
  font-family: var(--font-marathi-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.key-facts-box ul {
  padding-left: 20px;
}
.key-facts-box li {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.extra-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.extra-images-grid img {
  border-radius: var(--radius-sm);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}
.extra-images-grid img:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   PERSISTENT AUDIO PLAYER DOCK (Floating Player)
   ========================================================================== */
.audio-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-header);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 10px 0;
  z-index: 99;
  transform: translateY(120%);
  transition: transform var(--transition-smooth);
}
.audio-dock.active {
  transform: translateY(0);
}

.audio-dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  overflow: hidden;
}

.dock-play-btn {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.dock-info {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-title {
  font-family: var(--font-marathi-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.dock-center {
  flex-grow: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-label {
  font-family: var(--font-english);
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 40px;
}

.dock-scrubber {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: var(--border-color);
  border-radius: 3px;
  outline: none;
}
.dock-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

.dock-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dock-close-btn {
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 6px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0b0f19;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 48px 0 24px 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand h2 {
  font-family: var(--font-marathi-heading);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand p {
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-family: var(--font-marathi-heading);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #94a3b8;
}
.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

/* ==========================================================================
   MOBILE ARCHITECTURE & RESPONSIVE COMPONENTS
   ========================================================================== */

/* Mobile Drawer Overlay & Sliding Panel */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-overlay.open .mobile-drawer-panel {
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
}
.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.mobile-drawer-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.88rem;
}
.drawer-theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.drawer-section-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}
.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-card-subtle);
  transition: all var(--transition-fast);
}
.drawer-nav-link:hover, .drawer-nav-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
}
.drawer-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.drawer-cat-chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-body);
}
.drawer-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.drawer-action-btn.whatsapp-cta {
  background: #25d366;
  color: #fff;
}
.drawer-action-btn.app-cta {
  background: var(--primary);
  color: #fff;
}
.drawer-footer-links {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* Mobile App-Style Bottom Navigation */
.mobile-bottom-nav {
  display: none;
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  right: 18px;
  bottom: 74px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
  z-index: 850;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.back-to-top-btn:active {
  transform: scale(0.9);
}

/* Mobile Sticky Story Share Bar */
.mobile-story-sticky-share {
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  padding: 8px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 980;
}
.mobile-sticky-share-btn {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-sticky-share-btn.whatsapp {
  flex-grow: 1;
  background: #25d366;
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}
.mobile-sticky-share-btn.copy {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Breakpoints)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .story-layout {
    grid-template-columns: 1fr;
  }
  .app-promo-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 20px;
  }
  .app-store-badges {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    padding: 0 14px;
  }

  /* Compact Top Bar */
  .top-info span:not(.top-badge) {
    display: none;
  }

  /* Compact Header */
  .site-header {
    top: 0;
  }
  .header-main {
    padding: 8px 0;
  }
  .brand-logo-wrap {
    gap: 8px;
  }
  .brand-symbol {
    width: 38px;
    height: 38px;
    font-size: 1.45rem;
    border-radius: 9px;
  }
  .brand-titles .brand-name {
    font-size: 1.45rem;
  }
  .brand-tagline {
    display: none;
  }

  .mobile-icon-btn {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex;
  }

  /* Category Navigation Horizontal Scroll */
  .category-nav-inner {
    padding: 6px 14px;
    gap: 6px;
  }
  .cat-chip {
    padding: 6px 12px;
    font-size: 0.88rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Lead Story Mobile */
  .lead-title {
    font-size: 1.3rem;
    line-height: 1.35;
  }
  .lead-content {
    padding: 16px 14px !important;
  }
  .lead-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 14px !important;
  }

  /* News Card Grid Mobile */
  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Story Headline & Body */
  .story-headline {
    font-size: 1.48rem;
    line-height: 1.32;
  }
  .story-body-content {
    font-size: 1.06rem;
    line-height: 1.85;
  }

  /* Sticky Share & Bottom Nav */
  .mobile-story-sticky-share {
    display: flex;
  }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 990;
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav-item i {
    font-size: 1.15rem;
  }
  .bottom-nav-item.active {
    color: var(--primary);
    font-weight: 700;
    position: relative;
  }
  .bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
  }

  /* Audio Dock floats right above Bottom Nav */
  .audio-dock {
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    padding: 8px 0;
    z-index: 985;
  }
  .dock-center {
    display: none;
  }
  .dock-title {
    max-width: 180px;
  }

  /* Audio Bar on homepage */
  .audio-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .audio-stories-scroll {
    max-width: 100%;
  }

  /* Ad Detail on Mobile */
  .ad-detail-actions {
    padding: 18px 16px !important;
  }
  .ad-detail-action-buttons {
    flex-direction: column;
    align-items: stretch !important;
  }
  .ad-action-pill {
    width: 100%;
    justify-content: center;
    padding: 12px !important;
  }
  .ad-back-btn {
    margin-left: 0 !important;
    width: 100%;
    justify-content: center;
  }

  /* Footer on Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Popup Ad on Mobile */
  .ad-popup-card {
    max-width: 92vw;
    max-height: 82vh;
  }
  .ad-popup-body img {
    max-height: 260px;
  }
}

@media (max-width: 480px) {
  .brand-titles .brand-name {
    font-size: 1.35rem;
  }
  .trending-card {
    grid-template-columns: 78px 1fr;
    gap: 10px;
    padding: 10px;
  }
  .trending-thumb {
    width: 78px;
    height: 78px;
  }
  .trending-title {
    font-size: 0.9rem;
  }
  .story-headline {
    font-size: 1.35rem;
  }
}

/* ==========================================================================
   BACKEND ADVERTISEMENTS & ROOM/SPACING SYSTEM
   ========================================================================== */
.section-room {
  margin-top: 40px;
  margin-bottom: 40px;
}

.ad-banner-container {
  margin: 32px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.ad-disclaimer {
  font-size: 0.74rem;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.ad-banner-frame {
  width: 100%;
  max-width: 980px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.ad-banner-frame:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ad-banner-frame img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #f8fafc;
  display: block;
}
[data-theme="dark"] .ad-banner-frame img {
  background: #111827;
}

/* Sidebar Ad */
.ad-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.ad-sidebar-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
  max-height: 280px;
}

/* In-Feed Sponsored Card */
.ad-infeed-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-subtle) 100%);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ad-infeed-card .ad-sponsor-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 8px;
}

/* Popup Advertisement Modal */
.ad-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

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

.ad-popup-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes scaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ad-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
}

.ad-sponsored-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.ad-popup-close-btn {
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition-fast);
}
.ad-popup-close-btn:hover {
  background: var(--primary-hover);
}

.ad-popup-body {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 440px;
  background: #f8fafc;
}
[data-theme="dark"] .ad-popup-body {
  background: #0f172a;
}
.ad-popup-body img {
  max-height: 380px;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.ad-popup-footer {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
}

/* ==========================================================================
   FIREBASE WEB PUSH NOTIFICATIONS UI
   ========================================================================== */

/* Notification Bell Button */
.notification-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.notification-bell-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.notification-bell-btn.active {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: rgba(220, 38, 38, 0.3);
}
.bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  border: 2px solid var(--bg-card);
  display: none;
}
.notification-bell-btn.active .bell-badge {
  display: block;
}

/* Floating Web Notification Opt-in Prompt */
.web-notification-prompt {
  position: fixed;
  bottom: 80px;
  left: 20px;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 18px;
  z-index: 9995;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: slideUpPrompt 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.web-notification-prompt.visible {
  display: flex;
}
@keyframes slideUpPrompt {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 768px) {
  .web-notification-prompt {
    left: 14px;
    right: 14px;
    max-width: none;
    bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  }
}

.prompt-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.prompt-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.prompt-text h4 {
  font-family: var(--font-marathi-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 4px;
}
.prompt-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.prompt-btn-allow {
  background: var(--primary);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: all var(--transition-fast);
}
.prompt-btn-allow:hover {
  background: var(--primary-hover);
}
.prompt-btn-later {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

/* Foreground Push Alert Toast Banner */
.fcm-foreground-banner {
  position: fixed;
  top: 24px;
  right: 24px;
  max-width: 400px;
  width: 90vw;
  background: var(--bg-card);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  z-index: 100000;
  display: none;
  animation: slideDownToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fcm-foreground-banner.show {
  display: block;
}
@keyframes slideDownToast {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.fcm-banner-content {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fcm-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.fcm-banner-text {
  flex-grow: 1;
  overflow: hidden;
}
.fcm-banner-text strong {
  display: block;
  font-family: var(--font-marathi-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcm-banner-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcm-banner-btn {
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.fcm-banner-close {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
}


