/* ==========================================================================
   HBN — Haryana Breaking News
   Mobile-First Progressive Web App (PWA) Design System
   Color Tokens: HBN Red #EF1E26 | Navy #081220 | Card #0B1726
   ========================================================================== */

:root,
[data-theme="dark"] {
  /* Brand Colors */
  --hbn-red: #EF1E26;
  --hbn-red-hover: #FF3038;
  --hbn-red-subtle: rgba(239, 30, 38, 0.12);
  --hbn-red-glow: rgba(239, 30, 38, 0.35);

  /* Dark Theme Palette (Primary Default) */
  --hbn-bg-primary: #0B1220;
  --hbn-bg-dark: #070D18;
  --hbn-bg-card: #111A2C;
  --hbn-bg-card-hover: #162238;
  --hbn-bg-elevated: #162238;
  
  --hbn-border: rgba(255, 255, 255, 0.08);
  --hbn-border-subtle: rgba(255, 255, 255, 0.05);
  --hbn-border-active: rgba(239, 30, 38, 0.50);

  /* Typography Colors - High Contrast */
  --hbn-text-primary: #FFFFFF;
  --hbn-text-secondary: #94A3B8;
  --hbn-text-muted: #64748B;

  /* Functional */
  --hbn-success: #10B981;
  --hbn-warning: #F59E0B;
  --hbn-info: #3B82F6;

  /* Radius & Spacing (8px System) */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Nav Heights */
  --header-height: 50px;
  --bottom-nav-height: 60px;
  --safe-bottom: 0px;
}

/* Light Mode Palette (Secondary) */
[data-theme="light"] {
  /* Brand Colors */
  --hbn-red: #EF1E26;
  --hbn-red-hover: #DC2626;
  --hbn-red-subtle: rgba(239, 30, 38, 0.09);
  --hbn-red-glow: rgba(239, 30, 38, 0.25);

  /* Light Theme Palette */
  --hbn-bg-primary: #F8FAFC;
  --hbn-bg-dark: #F1F5F9;
  --hbn-bg-card: #FFFFFF;
  --hbn-bg-card-hover: #F1F5F9;
  --hbn-bg-elevated: #FFFFFF;
  
  --hbn-border: rgba(15, 23, 42, 0.12);
  --hbn-border-subtle: rgba(15, 23, 42, 0.06);
  --hbn-border-active: rgba(239, 30, 38, 0.60);

  --hbn-text-primary: #0F172A;
  --hbn-text-secondary: #334155;
  --hbn-text-muted: #64748B;

  --hbn-success: #16A34A;
  --hbn-warning: #D97706;
  --hbn-info: #2563EB;
}

/* Base Reset & Box Sizing Scoped Exclusively to PWA */
.hbn-pwa-html, .hbn-pwa-body,
.hbn-app-viewport, .hbn-app-shell,
.hbn-app-shell *, .hbn-app-shell *::before, .hbn-app-shell *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hbn-pwa-html, .hbn-pwa-body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--hbn-bg-dark);
  color: var(--hbn-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Noto Sans Devanagari', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   DESKTOP PREVIEW WRAPPER (Smartphone Frame on Desktop, 100% Native on Mobile)
   ========================================================================== */

.hbn-desktop-preview-bar {
  display: none !important;
}

@media (min-width: 820px) {
  body, .hbn-pwa-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #F1F5F9 !important;
    min-height: 100vh;
    padding: 0;
    margin: 0;
  }

  [data-theme="dark"] body,
  [data-theme="dark"] .hbn-pwa-body {
    background: #0B132B !important;
  }

  .hbn-desktop-preview-bar {
    display: none !important;
  }

  .hbn-app-viewport {
    width: 100%;
    max-width: 680px;
    min-height: 100vh;
    height: auto;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.08) !important;
    position: relative;
    overflow: visible;
    background: var(--hbn-bg-primary);
  }

  .hbn-bottom-nav {
    max-width: 680px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-left: 1px solid var(--hbn-border);
    border-right: 1px solid var(--hbn-border);
  }
}


@media (max-width: 819px) {
  :root {
    --safe-bottom: env(safe-area-inset-bottom, 0px);
  }

  .hbn-app-viewport {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background: var(--hbn-bg-primary);
  }
}

/* Explicit app and standalone mode safety clearance */
html.is-hbn-app,
body.is-hbn-app {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Only on phones WITH 3 native system navigation buttons (not gesture phones) */
html.has-button-nav,
body.has-button-nav,
.has-button-nav {
  --safe-bottom: 48px;
}

/* Main App Shell Layout */
.hbn-app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--hbn-bg-primary);
}

/* ==========================================================================
   SCREEN 01 — SPLASH SCREEN
   ========================================================================== */

.hbn-screen-splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #081220;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 60px 24px 40px 24px;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow: hidden;
}

.hbn-screen-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Subtle Haryana Map Silhouette in Splash Background */
.hbn-splash-bg-map {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 360px;
  opacity: 0.05;
  pointer-events: none;
}

.hbn-splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
  z-index: 2;
}

.hbn-splash-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.hbn-splash-logo-img {
  max-width: 220px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

.hbn-splash-badge {
  background: var(--hbn-red);
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px var(--hbn-red-glow);
}

.hbn-splash-brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #FFFFFF;
  text-transform: uppercase;
}

.hbn-splash-tagline {
  font-size: 15px;
  font-weight: 600;
  color: var(--hbn-text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

/* Thin red curved accent underneath */
.hbn-splash-curve-accent {
  width: 70px;
  height: 3px;
  background: var(--hbn-red);
  border-radius: var(--radius-full);
  margin: 16px auto 0 auto;
}

.hbn-splash-boot-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 500;
}

.hbn-splash-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--hbn-red);
  border-radius: 50%;
  animation: hbn-spin 0.8s linear infinite;
}

@keyframes hbn-spin {
  to { transform: rotate(360deg); }
}

.hbn-splash-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.hbn-splash-powered {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hbn-text-muted);
  letter-spacing: 0.5px;
}

.hbn-splash-subline {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hbn-text-secondary);
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */

.hbn-app-header {
  min-height: var(--header-height);
  height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  width: 100%;
  background: var(--hbn-bg-dark);
  border-bottom: 1px solid var(--hbn-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 0;
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

/* Offline Persistent Notification Banner */
.hbn-offline-banner {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.16), rgba(15, 23, 42, 0.98));
  border-bottom: 1px solid rgba(225, 29, 72, 0.35);
  padding: 10px 14px;
  width: 100%;
  z-index: 19;
  flex-shrink: 0;
  box-sizing: border-box;
  animation: hbnFadeIn 0.3s ease-out;
}
.hbn-offline-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hbn-offline-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.hbn-offline-banner-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #F43F5E;
}
.hbn-offline-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hbn-offline-banner-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
}
.hbn-offline-banner-sub {
  font-size: 10.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.hbn-offline-banner-btn {
  background: var(--hbn-red);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
  transition: transform 0.15s, opacity 0.2s;
}
.hbn-offline-banner-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* Saved Posts Section on Home Feed (Hidden in online mode as requested) */
.hbn-home-saved-section {
  display: none !important;
  margin: 10px 0 16px 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.08) 0%, rgba(15, 23, 42, 0.35) 100%);
  border-top: 1px solid rgba(225, 29, 72, 0.22);
  border-bottom: 1px solid rgba(225, 29, 72, 0.22);
  border-radius: 14px;
}
.hbn-saved-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hbn-red);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}


.hbn-header-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  cursor: pointer;
}

.hbn-header-logo-img {
  height: 30px;
  width: auto;
  max-width: 105px;
  object-fit: contain;
  display: block;
}

.hbn-brand-logo {
  background: var(--hbn-red);
  color: #FFF;
  font-size: 13px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

/* Live Data Sync / Update Progress Bar */
.hbn-live-loader {
  position: relative;
  width: 100%;
  height: 3px;
  background: transparent;
  overflow: visible;
  z-index: 25;
  display: none;
}

.hbn-live-loader.is-loading {
  display: block;
}

.hbn-live-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--hbn-red), #FF7B00, var(--hbn-red), transparent);
  background-size: 200% 100%;
  animation: hbnLoaderSlide 1.1s infinite linear;
}

.hbn-live-loader-badge {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 18, 32, 0.96);
  border: 1px solid var(--hbn-border);
  backdrop-filter: blur(8px);
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  white-space: nowrap;
}

@keyframes hbnLoaderSlide {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hbn-spin-icon {
  animation: hbnSpin 0.9s linear infinite;
}

@keyframes hbnSpin {
  100% { transform: rotate(360deg); }
}

.hbn-brand-text {
  display: flex;
  flex-direction: column;
}

.hbn-brand-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--hbn-text-primary);
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.hbn-brand-state-badge {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--hbn-text-secondary);
}

.hbn-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hbn-icon-btn {
  background: transparent;
  border: none;
  color: var(--hbn-text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, color 0.15s;
}

.hbn-icon-btn:hover, .hbn-icon-btn:active {
  background: var(--hbn-bg-card-hover);
}

.hbn-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hbn-notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--hbn-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--hbn-red);
}

/* ==========================================================================
   SCREEN 02 — HOME / NEWS FEED
   ========================================================================== */

.hbn-view-container {
  flex: 1 1 0px;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  display: none;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 28px);
}

.hbn-view-container.is-active {
  display: block;
}

/* Breaking News Ticker */
.hbn-breaking-ticker {
  background: var(--hbn-bg-card);
  border-bottom: 1px solid var(--hbn-border);
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
  padding: 0 12px;
  font-size: 12.5px;
}

.hbn-ticker-badge {
  background: var(--hbn-red);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hbn-ticker-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #FFF;
  border-radius: 50%;
  animation: hbn-pulse 1.4s infinite;
}

@keyframes hbn-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hbn-ticker-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 10px;
  color: var(--hbn-text-primary);
  font-weight: 600;
  cursor: pointer;
}

.hbn-ticker-content {
  display: inline-block;
  animation: hbn-marquee 35s linear infinite;
  will-change: transform;
}

.hbn-ticker-marquee:hover .hbn-ticker-content,
.hbn-ticker-marquee:active .hbn-ticker-content {
  animation-play-state: paused;
}

@keyframes hbn-marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Category Navigation (Horizontal Scroll with Red Underline) */
.hbn-category-nav {
  display: flex;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--hbn-bg-dark);
  border-bottom: 1px solid var(--hbn-border);
  padding: 0 12px;
  scrollbar-width: none;
}

.hbn-category-nav::-webkit-scrollbar {
  display: none;
}

.hbn-category-tab {
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hbn-text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
  background: transparent;
  border: none;
  flex-shrink: 0;
}

.hbn-category-tab:hover {
  color: var(--hbn-text-primary);
}

.hbn-category-tab.is-active {
  color: var(--hbn-text-primary);
  font-weight: 700;
}

.hbn-category-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: var(--hbn-red);
  border-radius: var(--radius-full);
}

/* Selected District Banner (If chosen) */
.hbn-selected-district-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--hbn-bg-card);
  border-bottom: 1px solid var(--hbn-border);
  padding: 8px 14px;
  font-size: 12px;
}

.hbn-district-strip-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--hbn-text-secondary);
}

.hbn-district-strip-name {
  color: var(--hbn-text-primary);
  font-weight: 700;
}

.hbn-district-strip-change {
  color: var(--hbn-red);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11.5px;
}

/* Home Feed Content Container */
.hbn-feed-wrapper {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Main Hero News Card — Spacious & Modern */
.hbn-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s, border-color 0.18s;
}

.hbn-hero-card:hover {
  border-color: var(--hbn-border-active);
  transform: translateY(-2px);
}

.hbn-hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 240px;
  background: #020617;
  overflow: hidden;
}

.hbn-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hbn-hero-card:hover .hbn-hero-img {
  transform: scale(1.02);
}

/* Floating Top Bar for Badges — Keeps 80%+ of photo uncovered */
.hbn-hero-top-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.hbn-hero-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hbn-breaking-badge {
  background: var(--hbn-red);
  color: #FFF;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
}

.hbn-category-badge {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #FFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hbn-hero-time-pill {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Compact Bottom Overlay — Covers only lower 20-25% so image is clear */
.hbn-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 10px 8px 10px;
  background: linear-gradient(to top, rgba(8, 18, 32, 0.95) 0%, rgba(8, 18, 32, 0.45) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.hbn-hero-headline {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.hbn-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

/* Section Header */
.hbn-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hbn-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--hbn-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hbn-section-title::before {
  content: '';
  width: 3.5px;
  height: 14px;
  background: var(--hbn-red);
  border-radius: var(--radius-full);
}

.hbn-section-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--hbn-red);
  background: none;
  border: none;
  cursor: pointer;
}

/* Top Stories Horizontal Carousel */
.hbn-top-stories-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.hbn-top-stories-carousel::-webkit-scrollbar {
  display: none;
}

.hbn-top-story-card {
  flex: 0 0 240px;
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, border-color 0.18s;
}

.hbn-top-story-card:hover {
  border-color: var(--hbn-border-active);
  transform: translateY(-2px);
}

.hbn-top-story-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0F172A;
}

.hbn-top-story-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.hbn-top-story-headline {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hbn-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbn-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 11px;
  color: var(--hbn-text-muted);
}

.hbn-card-bookmark-btn {
  background: transparent;
  border: none;
  color: var(--hbn-text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.hbn-card-bookmark-btn:hover, .hbn-card-bookmark-btn.is-saved {
  color: var(--hbn-red);
}

.hbn-card-bookmark-btn svg {
  width: 16px;
  height: 16px;
}

/* Latest News Vertical Feed */
.hbn-latest-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hbn-news-card {
  display: flex;
  gap: 12px;
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
}

.hbn-news-card:hover {
  border-color: var(--hbn-border-active);
  transform: translateY(-2px);
}

.hbn-news-card-thumb {
  width: 100px;
  height: 75px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #0F172A;
  flex-shrink: 0;
}

.hbn-news-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.hbn-news-card-category {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--hbn-red);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hbn-news-card-headline {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hbn-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

/* Subtle Integrated Ad Slot */
.hbn-ad-slot-card {
  background: var(--hbn-bg-card-hover);
  border: 1px dashed var(--hbn-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hbn-ad-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--hbn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hbn-ad-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hbn-text-primary);
}

.hbn-ad-cta-btn {
  background: var(--hbn-red);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

/* ==========================================================================
   SCREEN 03 — SHORTS FEED (Full-Screen 9:16 Minimal Editorial)
   ========================================================================== */

.hbn-shorts-feed {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  background: #000;
  position: relative;
}

.hbn-shorts-slide {
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbn-shorts-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Top bar over video */
.hbn-shorts-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.hbn-shorts-top-logo {
  font-size: 13px;
  font-weight: 900;
  background: var(--hbn-red);
  color: #FFF;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.hbn-shorts-top-tabs {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 700;
}

.hbn-shorts-top-tab {
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.hbn-shorts-top-tab.is-active {
  color: #FFF;
  border-bottom: 2px solid var(--hbn-red);
}

/* Right Vertical Action Buttons */
.hbn-shorts-actions-rail {
  position: absolute;
  right: 12px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.hbn-short-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #FFF;
  background: none;
  border: none;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hbn-short-action-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 23, 38, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}

.hbn-short-action-icon-circle:hover {
  transform: scale(1.08);
}

.hbn-short-action-item.is-liked .hbn-short-action-icon-circle {
  background: var(--hbn-red);
  border-color: var(--hbn-red);
}

.hbn-short-action-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Bottom Overlay */
.hbn-shorts-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 65px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 9;
}

.hbn-shorts-creator-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hbn-shorts-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hbn-red);
  color: #FFF;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #FFF;
}

.hbn-shorts-handle {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
}

.hbn-shorts-follow-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s;
}

.hbn-shorts-follow-btn:hover {
  background: var(--hbn-red);
  border-color: var(--hbn-red);
}

.hbn-shorts-caption {
  font-size: 13.5px;
  font-weight: 600;
  color: #F8FAFC;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbn-shorts-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #FDE68A;
  font-weight: 700;
}

.hbn-shorts-tags {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 600;
}

/* Tap indicator for play/pause */
.hbn-shorts-tap-indicator {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 12;
}

.hbn-shorts-tap-indicator.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   SCREEN 04 — DISTRICT SELECTION
   ========================================================================== */

.hbn-district-screen-wrap {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hbn-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.hbn-search-icon {
  position: absolute;
  left: 12px;
  color: var(--hbn-text-muted);
  pointer-events: none;
}

.hbn-search-input {
  width: 100%;
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  border-radius: var(--radius-md);
  padding: 10px 12px 10px 38px;
  font-size: 13.5px;
  color: var(--hbn-text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.hbn-search-input:focus {
  border-color: var(--hbn-red);
}

.hbn-districts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hbn-district-card {
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}

.hbn-district-card:hover {
  border-color: var(--hbn-border-active);
  background: var(--hbn-bg-card-hover);
}

.hbn-district-card.is-selected {
  background: var(--hbn-red) !important;
  border-color: var(--hbn-red) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px var(--hbn-red-glow);
}

.hbn-district-card.is-selected .hbn-district-name,
.hbn-district-card.is-selected .hbn-district-count {
  color: #FFFFFF !important;
}

.hbn-district-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hbn-district-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hbn-text-primary);
  transition: all 0.15s;
}

.hbn-district-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hbn-district-card.is-selected .hbn-district-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.hbn-district-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--hbn-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbn-district-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--hbn-text-muted);
}

.hbn-district-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  color: #FFFFFF;
  margin-left: auto;
  flex-shrink: 0;
}

.hbn-sticky-bottom-action {
  position: sticky;
  bottom: 10px;
  left: 0;
  right: 0;
  padding: 10px 0 0 0;
  background: linear-gradient(to top, var(--hbn-bg-primary) 80%, transparent 100%);
  margin-top: 10px;
}

.hbn-primary-btn {
  width: 100%;
  background: var(--hbn-red);
  color: #FFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--hbn-red-glow);
  transition: transform 0.15s, background 0.15s;
}

.hbn-primary-btn:hover {
  background: var(--hbn-red-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   SCREEN 05 — ARTICLE DETAIL VIEW
   ========================================================================== */

.hbn-article-view {
  background: var(--hbn-bg-primary);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.hbn-article-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--hbn-bg-dark);
  border-bottom: 1px solid var(--hbn-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.hbn-article-body-wrapper {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hbn-article-headline {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--hbn-text-primary);
}

.hbn-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--hbn-text-secondary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hbn-border);
}

.hbn-article-featured-img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  background: #06101C;
  border-radius: var(--radius-md);
  display: block;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hbn-article-text img,
.hbn-article-body img,
.hbn-article-featured-img img {
  max-width: 100% !important;
  height: auto !important;
  max-height: 480px !important;
  object-fit: contain !important;
  border-radius: var(--radius-md);
  margin: 12px auto !important;
  display: block !important;
  background: #06101C;
}

.hbn-article-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--hbn-text-primary);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hbn-article-text p,
.hbn-article-text span,
.hbn-article-text div,
.hbn-article-text li {
  color: inherit;
  line-height: 1.75;
}

.hbn-article-text strong,
.hbn-article-text b {
  color: var(--hbn-text-primary);
  font-weight: 700;
}

.hbn-article-text h1,
.hbn-article-text h2,
.hbn-article-text h3,
.hbn-article-text h4,
.hbn-article-text h5,
.hbn-article-text h6 {
  color: var(--hbn-text-primary);
  font-weight: 700;
  line-height: 1.35;
}

.hbn-article-text p.lead {
  font-size: 17px;
  font-weight: 500;
  color: var(--hbn-text-primary);
}

.hbn-article-text blockquote {
  border-left: 3px solid var(--hbn-red);
  padding: 10px 14px;
  background: var(--hbn-bg-card-hover);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--hbn-text-primary);
}

.hbn-article-text blockquote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: var(--hbn-red);
  margin-top: 6px;
  font-weight: 700;
}

.hbn-article-text ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hbn-article-text a {
  color: var(--hbn-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* Article Share Actions Bar */
.hbn-article-share-strip {
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.hbn-share-btns {
  display: flex;
  gap: 8px;
}

.hbn-share-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.hbn-share-wa {
  background: #25D366;
  color: #FFF;
}

.hbn-share-copy {
  background: var(--hbn-bg-card-hover);
  color: var(--hbn-text-primary);
  border: 1px solid var(--hbn-border);
}

/* ==========================================================================
   SCREEN 06 — MENU / SLIDE-OUT DRAWER
   ========================================================================== */

.hbn-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hbn-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.hbn-drawer-menu {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: var(--hbn-bg-card);
  border-right: 1px solid var(--hbn-border);
  border-left: none;
  display: flex;
  flex-direction: column;
  z-index: 55;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.hbn-drawer-backdrop.is-open .hbn-drawer-menu {
  transform: translateX(0);
}

.hbn-drawer-header {
  padding: 24px 18px;
  background: var(--hbn-bg-dark);
  border-bottom: 1px solid var(--hbn-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hbn-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--hbn-bg-card);
  color: #FFF;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hbn-border);
  overflow: hidden;
  flex-shrink: 0;
}

.hbn-drawer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hbn-user-details h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--hbn-text-primary);
}

.hbn-user-details p {
  font-size: 11.5px;
  color: var(--hbn-text-secondary);
}

.hbn-drawer-nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.hbn-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  color: var(--hbn-text-primary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}

.hbn-drawer-item:hover, .hbn-drawer-item:active {
  background: var(--hbn-bg-card-hover);
  color: var(--hbn-red);
}

.hbn-drawer-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hbn-drawer-item svg {
  width: 18px;
  height: 18px;
  color: var(--hbn-text-secondary);
}

.hbn-drawer-item:hover svg {
  color: var(--hbn-red);
}

.hbn-drawer-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--hbn-border);
  font-size: 11px;
  color: var(--hbn-text-muted);
}

/* ==========================================================================
   SCREEN 07 — SEARCH SCREEN
   ========================================================================== */

.hbn-search-view-wrap {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hbn-search-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hbn-search-filter-tabs::-webkit-scrollbar { display: none; }

.hbn-search-pill-tab {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  color: var(--hbn-text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.hbn-search-pill-tab.is-active {
  background: var(--hbn-red);
  border-color: var(--hbn-red);
  color: #FFFFFF;
}

/* ==========================================================================
   SCREEN 08 — NOTIFICATION PREFERENCES
   ========================================================================== */

.hbn-notif-pref-wrap {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hbn-pref-card {
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hbn-pref-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hbn-text-primary);
}

.hbn-pref-icon--red { background: rgba(239, 30, 38, 0.15); color: var(--hbn-red); }
.hbn-pref-icon--blue { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.hbn-pref-icon--amber { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.hbn-pref-icon--purple { background: rgba(168, 85, 247, 0.15); color: #A855F7; }
.hbn-pref-icon--green { background: rgba(34, 197, 94, 0.15); color: #22C55E; }

.hbn-pref-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.hbn-pref-info {
  flex: 1;
  min-width: 0;
}

.hbn-pref-info h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--hbn-text-primary);
  margin-bottom: 2px;
}

.hbn-pref-info p {
  font-size: 12px;
  color: var(--hbn-text-secondary);
  line-height: 1.3;
}

/* Custom iOS / Android Style Switch */
.hbn-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.hbn-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.hbn-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.25s;
  border-radius: 34px;
}

.hbn-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.hbn-toggle-switch input:checked + .hbn-slider {
  background-color: var(--hbn-red);
}

.hbn-toggle-switch input:checked + .hbn-slider::before {
  transform: translateX(20px);
}

/* ==========================================================================
   SCREEN 09 — SAVED NEWS (Offline Bookmarks)
   ========================================================================== */

.hbn-saved-view-wrap {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   SCREEN 10 — OFFLINE FALLBACK STATE
   ========================================================================== */

.hbn-offline-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  min-height: 70vh;
}

.hbn-offline-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--hbn-text-muted);
}

.hbn-offline-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--hbn-text-primary);
  margin-bottom: 6px;
}

.hbn-offline-desc {
  font-size: 13.5px;
  color: var(--hbn-text-secondary);
  margin-bottom: 20px;
  max-width: 260px;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (5 Fixed Tabs)
   ========================================================================== */

.hbn-bottom-nav {
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  min-height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  width: 100%;
  background: var(--hbn-bg-dark);
  border-top: 1px solid var(--hbn-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 0 4px;
  padding-bottom: var(--safe-bottom);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hbn-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--hbn-text-secondary);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0 6px;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: color 0.15s, transform 0.1s;
}

.hbn-nav-tab:active {
  transform: scale(0.95);
}

.hbn-nav-tab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  pointer-events: none;
}

.hbn-nav-tab span {
  pointer-events: none;
}

.hbn-nav-tab.is-active {
  color: var(--hbn-red);
  font-weight: 800;
}

.hbn-nav-tab.is-active svg {
  stroke: var(--hbn-red);
}

/* ==========================================================================
   PWA CUSTOM INSTALL PROMPT BOTTOM SHEET
   ========================================================================== */

.hbn-install-banner {
  position: absolute;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 10px);
  left: 12px;
  right: 12px;
  background: #0F172A;
  border: 1px solid var(--hbn-border-active);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  z-index: 30;
  animation: hbn-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hbn-slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hbn-install-banner.is-hidden {
  display: none !important;
}

.hbn-install-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hbn-install-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  color: #FFF;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.hbn-banner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hbn-install-text h5 {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
}

.hbn-install-text p {
  font-size: 11px;
  color: var(--hbn-text-secondary);
}

.hbn-install-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hbn-install-cta {
  background: var(--hbn-red);
  color: #FFF;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hbn-install-dismiss {
  background: none;
  border: none;
  color: var(--hbn-text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.hbn-toast-msg {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hbn-border);
  color: #FFF;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hbn-toast-msg.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   SKELETON SHIMMER LOADING STATE
   ========================================================================== */

.hbn-skeleton {
  background: linear-gradient(90deg, #0B1726 25%, #132238 50%, #0B1726 75%);
  background-size: 200% 100%;
  animation: hbn-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes hbn-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hbn-skeleton-card {
  height: 85px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

/* ==========================================================================
   ADS SYSTEM — PWA SPONSORED REELS, INTER-REEL CARDS & INLINE UNITS
   ========================================================================== */

/* Inter-reel Full-Screen Ad Slide (9:16 vertical card) */
.hbn-shorts-slide--ad {
  background: radial-gradient(circle at center, #132238 0%, #081220 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 24px !important;
  text-align: center;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
}

.hbn-short-ad-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #FBBF24;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-block;
}

.hbn-short-ad-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 320px;
}

.hbn-short-ad-sponsor {
  font-size: 13.5px;
  color: var(--hbn-text-secondary);
  margin-bottom: 28px;
}

.hbn-short-ad-sponsor strong {
  color: #FDE68A;
}

.hbn-short-ad-cta {
  background: var(--hbn-red);
  color: #FFFFFF !important;
  font-size: 14.5px;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--hbn-red-glow);
  transition: transform 0.15s, background 0.15s;
}

.hbn-short-ad-cta:active {
  transform: scale(0.96);
}

/* Graphic Banner Image Ad in Shorts */
.hbn-shorts-banner-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.hbn-shorts-banner-img {
  max-width: 92%;
  max-height: 70%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hbn-shorts-banner-overlay {
  position: absolute;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* AdSense / Custom HTML Ad Wrap */
.hbn-shorts-adsense-wrap {
  width: 100%;
  max-width: 336px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 23, 38, 0.7);
  border: 1px dashed var(--hbn-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 16px 0;
}

/* Sponsored Video Reel Badge (on user MP4 reels) */
.hbn-shorts-sponsored-pill {
  position: absolute;
  top: 60px;
  left: 16px;
  background: rgba(245, 158, 11, 0.95);
  color: #000;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  z-index: 12;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
}

.hbn-shorts-sponsor-tag {
  font-size: 11px;
  color: #FDE68A;
  font-weight: 700;
  margin-bottom: 2px;
}

.hbn-shorts-sponsor-cta-btn {
  background: #22C55E;
  color: #FFFFFF !important;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4);
}

/* Article In-Line Ad Unit */
.hbn-article-ad-box {
  background: var(--hbn-bg-card);
  border: 1px dashed var(--hbn-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin: 16px 0;
  text-align: center;
  max-height: 135px !important;
  overflow: hidden !important;
}

.hbn-article-ad-box img,
.hbn-article-ad-box iframe,
.hbn-article-ad-box ins {
  max-height: 115px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  display: block;
}

.hbn-article-ad-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--hbn-text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ==========================================================================
   DEDICATED CATEGORY PAGE VIEW (Like Main Website)
   ========================================================================== */
.hbn-category-page-wrap {
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.hbn-category-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--hbn-bg-dark);
  border-bottom: 1px solid var(--hbn-border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.hbn-category-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--hbn-text-primary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px 4px 0;
}

.hbn-category-back-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.hbn-category-banner {
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(230, 0, 0, 0.12) 0%, rgba(13, 20, 36, 0.8) 100%);
  border-bottom: 1px solid var(--hbn-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hbn-category-title-badge {
  font-size: 20px;
  font-weight: 900;
  color: var(--hbn-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hbn-category-title-badge::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--hbn-red);
  border-radius: 2px;
}

.hbn-category-count-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(230, 0, 0, 0.15);
  color: var(--hbn-red);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(230, 0, 0, 0.25);
}

.hbn-category-feed {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hbn-category-lead-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  margin-bottom: 4px;
  cursor: pointer;
  background: var(--hbn-bg-card);
}

.hbn-category-lead-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hbn-category-lead-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 18, 32, 0.95) 100%);
}

.hbn-category-lead-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 4px;
}

/* ==========================================================================
   CONTACT VIEW STYLING
   ========================================================================== */
.hbn-contact-view-wrap {
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.hbn-contact-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--hbn-bg-dark);
  border-bottom: 1px solid var(--hbn-border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.hbn-contact-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hbn-contact-banner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid var(--hbn-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
}

.hbn-contact-card-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hbn-contact-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hbn-contact-action-card:active {
  transform: scale(0.98);
}

.hbn-action-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFF;
}

.hbn-action-phone {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: #FFF;
}

.hbn-action-email {
  background: linear-gradient(135deg, #E60000 0%, #990000 100%);
  color: #FFF;
}

.hbn-action-address {
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  color: var(--hbn-text-primary);
}

.hbn-contact-action-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   SHORTS & REELS VIDEO & IFRAME WRAPPERS
   ========================================================================== */
.hbn-shorts-media-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  background: #000;
}

.hbn-shorts-iframe {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  border: none;
  pointer-events: none;
}

.hbn-short-like-btn.is-liked svg {
  fill: #EF4444 !important;
  stroke: #EF4444 !important;
  animation: hbn-heart-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes hbn-heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   HERO DOT NAVIGATION (Auto-Slideshow Indicator)
   ========================================================================== */

.hbn-hero-dot-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

.hbn-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s ease, width 0.3s ease;
  display: inline-block;
}

.hbn-hero-dot.active {
  background: #FFF;
  width: 18px;
  border-radius: 4px;
}

/* ==========================================================================
   LANDSCAPE / LEADERBOARD AD SLOTS
   ========================================================================== */

.hbn-landscape-ad {
  width: 100%;
  background: var(--hbn-bg-card);
  border: 1px dashed var(--hbn-border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 135px !important;
  overflow: hidden !important;
}

.hbn-landscape-ad img,
.hbn-landscape-ad iframe,
.hbn-landscape-ad ins {
  max-height: 115px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  display: block;
}

.hbn-landscape-ad--card .hbn-landscape-ad-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
}

.hbn-ad-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--hbn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
}

/* ==========================================================================
   LATEST NEWS CARD — FADE-IN ANIMATION
   ========================================================================== */

@keyframes hbn-card-fadein {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hbn-news-card--animate {
  animation: hbn-card-fadein 0.4s ease both;
}

/* ==========================================================================
   HERO CARD — SMOOTH TRANSITION SUPPORT
   ========================================================================== */

.hbn-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.18s;
}

/* ==========================================================================
   NEW HOME SECTIONS: REELS TRAY, DISTRICT CHIPS, TRENDING & WEATHER
   ========================================================================== */

/* 1. Reels Tray on Home Feed */
.hbn-home-shorts-tray {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hbn-home-shorts-tray::-webkit-scrollbar {
  display: none;
}

.hbn-home-short-card {
  width: 120px;
  min-width: 120px;
  height: 190px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  background: #020617;
  border: 1px solid var(--hbn-border);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}

.hbn-home-short-card:active {
  transform: scale(0.96);
}

.hbn-home-short-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hbn-home-short-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
}

.hbn-home-short-play-badge {
  align-self: flex-end;
  background: rgba(230,0,0,0.9);
  color: #FFF;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.hbn-home-short-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* 2. District Quick Chips Strip on Home */
.hbn-home-districts-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: none;
}

.hbn-home-districts-strip::-webkit-scrollbar {
  display: none;
}

.hbn-home-dist-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  color: var(--hbn-text-primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hbn-home-dist-chip:hover, .hbn-home-dist-chip.active {
  background: var(--hbn-red);
  color: #FFF;
  border-color: var(--hbn-red);
}

/* 3. Trending Bulletin List on Home */
.hbn-home-trending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hbn-home-trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.hbn-home-trending-item:active {
  transform: scale(0.98);
}

.hbn-trending-rank {
  font-size: 20px;
  font-weight: 900;
  color: var(--hbn-red);
  min-width: 24px;
  text-align: center;
  font-style: italic;
}

.hbn-trending-info {
  flex: 1;
}

.hbn-trending-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hbn-text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbn-trending-item-meta {
  font-size: 11px;
  color: var(--hbn-text-muted);
  margin-top: 4px;
}

/* 4. Weather & AQI Hero Experience (Ultra-Compact Single Row) */
.hbn-home-weather-card {
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 2px;
}

.hbn-weather-compact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hbn-weather-compact-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hbn-weather-live-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10B981;
  animation: hbn-pulse 2s infinite;
  flex-shrink: 0;
}

.hbn-weather-city {
  font-size: 13px;
  font-weight: 700;
  color: var(--hbn-text-secondary);
}

.hbn-weather-temp {
  font-size: 14px;
  font-weight: 800;
  color: var(--hbn-text-primary);
  letter-spacing: 0.2px;
}

.hbn-weather-compact-right {
  display: flex;
  align-items: center;
}

.hbn-weather-aqi-pill {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #F59E0B;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hbn-weather-aqi-val {
  font-weight: 800;
}

.hbn-weather-aqi-dot {
  opacity: 0.6;
  font-size: 9px;
}

.hbn-weather-aqi-status {
  font-weight: 600;
}

/* Horizontal Cities Weather Scroll */
.hbn-weather-cities-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hbn-weather-cities-scroll::-webkit-scrollbar {
  display: none;
}

.hbn-weather-city-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 11.5px;
  color: var(--hbn-text-primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.hbn-weather-city-chip:active,
.hbn-weather-city-chip.is-active {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--hbn-red);
  color: #FFF;
}

/* Category Page Ads & Extra Sections */
.hbn-category-ad-slot {
  margin: 14px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hbn-category-ad-card {
  width: 100%;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid var(--hbn-border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hbn-category-ad-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #CBD5E1;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.hbn-category-other-wrap {
  margin: 20px 0 10px 0;
  padding: 14px;
  background: var(--hbn-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hbn-border);
}

.hbn-category-other-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--hbn-text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hbn-category-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.hbn-category-pills-row::-webkit-scrollbar {
  display: none;
}

.hbn-category-pill-btn {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hbn-border);
  color: var(--hbn-text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.hbn-category-pill-btn:active {
  background: var(--hbn-red);
  color: #FFF;
}

/* Home Endless Feed Loader */
.hbn-feed-endless-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hbn-text-muted);
}

.hbn-feed-endless-loader.is-active {
  display: flex;
}

.hbn-feed-injected-ad {
  margin: 14px 0;
  width: 100%;
}

/* Reels / Shorts Big Play Overlay for Low-End Devices */
.hbn-shorts-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 26px;
  pointer-events: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 12;
}

.hbn-shorts-play-overlay.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   ARTICLE TEXT-TO-SPEECH (ऑडियो खबर सुनें)
   ========================================================================== */
.hbn-article-audio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--hbn-border);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 14px 0 16px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hbn-audio-play-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--hbn-red);
  color: #FFF;
  border: none;
  border-radius: 24px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
  transition: transform 0.15s, background 0.15s;
}

.hbn-audio-play-btn:active {
  transform: scale(0.96);
}

.hbn-audio-play-btn.is-playing {
  background: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

.hbn-audio-wave-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.hbn-audio-wave {
  width: 3px;
  height: 100%;
  background: #10B981;
  border-radius: 2px;
  animation: hbnWave 0.75s ease-in-out infinite alternate;
}

.hbn-audio-wave:nth-child(2) { animation-delay: 0.18s; }
.hbn-audio-wave:nth-child(3) { animation-delay: 0.36s; }
.hbn-audio-wave:nth-child(4) { animation-delay: 0.54s; }

@keyframes hbnWave {
  0% { height: 4px; }
  100% { height: 16px; }
}

.hbn-audio-status {
  font-size: 11px;
  color: var(--hbn-text-muted);
  font-weight: 600;
}

/* ==========================================================================
   PWA INTERSTITIAL POPUP MODAL AD
   ========================================================================== */
.hbn-pwa-popup-ad-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: hbnFadeIn 0.3s ease-out;
}

.hbn-pwa-popup-ad-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 32, 0.8);
  backdrop-filter: blur(5px);
}

.hbn-pwa-popup-ad-dialog {
  position: relative;
  z-index: 2;
  background: #0F172A;
  border: 1px solid var(--hbn-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  max-width: 360px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: hbnScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hbn-pwa-popup-ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #1E293B;
  color: #FFF;
}

.hbn-pwa-popup-ad-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hbn-pwa-popup-timer {
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  color: #FFF;
}

.hbn-pwa-popup-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.hbn-pwa-popup-close:hover {
  background: var(--hbn-red);
}

.hbn-pwa-popup-ad-body {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  text-align: center;
}

.hbn-pwa-popup-ad-body img,
.hbn-pwa-popup-ad-body ins,
.hbn-pwa-popup-ad-body iframe {
  max-width: 100% !important;
  max-height: 280px !important;
  margin: 0 auto !important;
}

/* ==========================================================================
   CATEGORY PAGINATION LOAD MORE BUTTON
   ========================================================================== */
.hbn-cat-load-more-btn {
  width: 100%;
  padding: 12px 16px;
  background: #1E293B;
  color: #FFF;
  border: 1px solid var(--hbn-border);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin: 16px 0 24px 0;
  transition: background 0.15s, border-color 0.15s;
}

.hbn-cat-load-more-btn:hover {
  background: #334155;
  border-color: var(--hbn-border-active);
}

/* ==========================================================================
   HIDE DISTRICT CHIPS AS REQUESTED
   ========================================================================== */
.hbn-home-districts-strip,
.hbn-district-bar {
  display: none !important;
}

/* ==========================================================================
   PRIVACY POLICY VIEW
   ========================================================================== */
.hbn-privacy-view-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.hbn-privacy-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}



/* ==========================================================================
   OFFLINE HOME HUB & SAVED FEED STYLES
   ========================================================================== */
.hbn-home-offline-hub {
  padding: 16px 14px 40px;
  animation: hbnFadeIn 0.3s ease;
}

.hbn-offline-hub-hero {
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.16) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 22px;
}

.hbn-offline-hub-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.18);
  border: 1.5px solid rgba(225, 29, 72, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hbn-red, #F43F5E);
  margin-bottom: 14px;
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.25);
}

.hbn-offline-hub-title {
  font-size: 21px;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0 0 8px;
}

.hbn-offline-hub-subtitle {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0 0 18px;
  padding: 0 8px;
}

.hbn-offline-hub-retry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #E11D48;
  color: #FFF;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}

.hbn-offline-hub-retry-btn:active {
  transform: scale(0.96);
  background: #BE123C;
}

.hbn-offline-hub-section {
  margin-top: 10px;
}

.hbn-offline-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hbn-offline-hub-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #F8FAFC;
}

.hbn-offline-hub-badge {
  background: rgba(225, 29, 72, 0.2);
  color: #FDA4AF;
  border: 1px solid rgba(225, 29, 72, 0.35);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.hbn-offline-saved-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hbn-offline-saved-card {
  display: flex;
  gap: 12px;
  background: var(--hbn-card-bg, #0F172A);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hbn-offline-saved-card:active {
  transform: scale(0.985);
  background: rgba(30, 41, 59, 0.9);
}

.hbn-offline-card-thumb {
  width: 90px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #1E293B;
  flex-shrink: 0;
}

.hbn-offline-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hbn-offline-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--hbn-red, #F43F5E);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.hbn-offline-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #F8FAFC;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbn-offline-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94A3B8;
}

.hbn-offline-card-actions {
  display: flex;
  gap: 8px;
}

.hbn-offline-card-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.hbn-offline-card-action-btn.is-read {
  background: rgba(225, 29, 72, 0.2);
  color: #FDA4AF;
  border-color: rgba(225, 29, 72, 0.35);
}

.hbn-offline-empty-state {
  text-align: center;
  padding: 36px 20px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  margin-top: 10px;
}

.hbn-offline-empty-state .hbn-empty-icon {
  color: #64748B;
  margin-bottom: 12px;
}

.hbn-offline-empty-state h4 {
  font-size: 16px;
  font-weight: 700;
  color: #E2E8F0;
  margin: 0 0 6px;
}

.hbn-offline-empty-state p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0;
}


/* ==========================================================================
   THEME-SPECIFIC HIGH-CONTRAST & READABILITY OVERRIDES (LIGHT & DARK)
   ========================================================================== */

/* ── Light Mode Optimizations ── */
[data-theme="light"] body,
[data-theme="light"] .hbn-pwa-body,
[data-theme="light"] .hbn-app-viewport,
[data-theme="light"] .hbn-view-container {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

[data-theme="light"] .hbn-header {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .hbn-header .hbn-brand-name {
  color: #0F172A !important;
}

[data-theme="light"] .hbn-header .hbn-icon-btn {
  color: #1E293B !important;
}

[data-theme="light"] .hbn-breaking-ticker {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .hbn-ticker-marquee {
  color: #0F172A !important;
}

[data-theme="light"] .hbn-category-nav {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .hbn-category-tab {
  color: #475569 !important;
}

[data-theme="light"] .hbn-category-tab.is-active {
  color: #0F172A !important;
}

/* Article View — Ultra Crisp Reading in Light Theme */
[data-theme="light"] #viewArticle,
[data-theme="light"] .hbn-article-body-wrapper {
  background-color: #FFFFFF !important;
}

[data-theme="light"] .hbn-article-top-bar {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .hbn-article-top-bar .hbn-icon-btn {
  color: #1E293B !important;
}

[data-theme="light"] .hbn-article-headline {
  color: #0F172A !important;
}

[data-theme="light"] .hbn-article-meta {
  color: #64748B !important;
  border-bottom-color: #E2E8F0 !important;
}

[data-theme="light"] .hbn-article-text,
[data-theme="light"] .hbn-article-text p,
[data-theme="light"] .hbn-article-text span:not([class*="badge"]),
[data-theme="light"] .hbn-article-text div:not([class*="badge"]):not([class*="ad"]):not([class*="btn"]):not([class*="wave"]):not([class*="audio"]),
[data-theme="light"] .hbn-article-text li,
[data-theme="light"] .hbn-article-text strong,
[data-theme="light"] .hbn-article-text b,
[data-theme="light"] .hbn-article-text em,
[data-theme="light"] .hbn-article-text i {
  color: #1E293B !important;
}

[data-theme="light"] .hbn-article-text strong,
[data-theme="light"] .hbn-article-text b {
  color: #0F172A !important;
  font-weight: 700 !important;
}

[data-theme="light"] .hbn-article-text h1,
[data-theme="light"] .hbn-article-text h2,
[data-theme="light"] .hbn-article-text h3,
[data-theme="light"] .hbn-article-text h4,
[data-theme="light"] .hbn-article-text h5,
[data-theme="light"] .hbn-article-text h6 {
  color: #0F172A !important;
}

[data-theme="light"] .hbn-article-text a {
  color: #EF1E26 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

[data-theme="light"] .hbn-article-text blockquote {
  background: #F1F5F9 !important;
  color: #1E293B !important;
  border-left-color: #EF1E26 !important;
}

[data-theme="light"] .hbn-article-share-strip {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .hbn-share-copy {
  background: #FFFFFF !important;
  color: #1E293B !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .hbn-share-copy:hover,
[data-theme="light"] .hbn-share-copy:active {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

/* Audio Player */
[data-theme="light"] .hbn-article-audio-bar {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .hbn-audio-label {
  color: #0F172A !important;
  font-weight: 700 !important;
}

[data-theme="light"] .hbn-audio-sub {
  color: #475569 !important;
}

/* Bottom Nav */
[data-theme="light"] .hbn-bottom-nav {
  background: #FFFFFF !important;
  border-top: 1px solid #E2E8F0 !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .hbn-nav-tab {
  color: #64748B !important;
}

[data-theme="light"] .hbn-nav-tab.is-active {
  color: #EF1E26 !important;
}

/* Feed Cards */
[data-theme="light"] .hbn-news-card,
[data-theme="light"] .hbn-top-story-card,
[data-theme="light"] .hbn-hero-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .hbn-news-card-headline,
[data-theme="light"] .hbn-top-story-headline {
  color: #0F172A !important;
}

/* Weather Experience */
[data-theme="light"] .hbn-home-weather-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .hbn-weather-city {
  color: #475569 !important;
}

[data-theme="light"] .hbn-weather-temp {
  color: #0F172A !important;
}

[data-theme="light"] .hbn-weather-cities-scroll {
  border-top-color: #E2E8F0 !important;
}

[data-theme="light"] .hbn-weather-city-chip {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #334155 !important;
}

[data-theme="light"] .hbn-weather-city-chip.is-active {
  background: rgba(239, 30, 38, 0.15) !important;
  border-color: var(--hbn-red) !important;
  color: var(--hbn-red) !important;
}

/* District Selection */
[data-theme="light"] .hbn-district-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .hbn-district-card:hover {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

[data-theme="light"] .hbn-district-icon {
  background: #F1F5F9 !important;
  color: #334155 !important;
}

[data-theme="light"] .hbn-district-name {
  color: #0F172A !important;
}

[data-theme="light"] .hbn-district-count {
  color: #64748B !important;
}

/* Contact & Submit View */
[data-theme="light"] .hbn-contact-banner {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%) !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .hbn-contact-banner h3 {
  color: #0F172A !important;
}

[data-theme="light"] .hbn-contact-banner p {
  color: #475569 !important;
}

/* Drawer / Slide Menu */
[data-theme="light"] .hbn-drawer-menu {
  background: #FFFFFF !important;
  border-right-color: #E2E8F0 !important;
}

[data-theme="light"] .hbn-drawer-header {
  background: #F8FAFC !important;
  border-bottom-color: #E2E8F0 !important;
}

[data-theme="light"] .hbn-drawer-item {
  color: #1E293B !important;
}

[data-theme="light"] .hbn-drawer-item svg {
  color: #64748B !important;
}

[data-theme="light"] .hbn-drawer-item:hover,
[data-theme="light"] .hbn-drawer-item:active {
  background: #F1F5F9 !important;
  color: #EF1E26 !important;
}

/* Notification Preferences */
[data-theme="light"] .hbn-pref-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .hbn-pref-title {
  color: #0F172A !important;
}

[data-theme="light"] .hbn-pref-sub {
  color: #64748B !important;
}

/* ── Dark Mode Optimizations ── */
[data-theme="dark"] body,
[data-theme="dark"] .hbn-pwa-body,
[data-theme="dark"] .hbn-app-viewport,
[data-theme="dark"] .hbn-view-container {
  background-color: #06101C !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .hbn-article-text,
[data-theme="dark"] .hbn-article-text p,
[data-theme="dark"] .hbn-article-text span:not([class*="badge"]),
[data-theme="dark"] .hbn-article-text div:not([class*="badge"]):not([class*="ad"]):not([class*="btn"]):not([class*="wave"]):not([class*="audio"]),
[data-theme="dark"] .hbn-article-text li {
  color: #E2E8F0 !important;
}

[data-theme="dark"] .hbn-article-text strong,
[data-theme="dark"] .hbn-article-text b,
[data-theme="dark"] .hbn-article-text h1,
[data-theme="dark"] .hbn-article-text h2,
[data-theme="dark"] .hbn-article-text h3,
[data-theme="dark"] .hbn-article-text h4,
[data-theme="dark"] .hbn-article-text h5,
[data-theme="dark"] .hbn-article-text h6 {
  color: #FFFFFF !important;
}

[data-theme="dark"] .hbn-article-text a {
  color: #60A5FA !important;
}

[data-theme="dark"] .hbn-share-copy {
  background: #111C2B !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .hbn-breaking-ticker {
  background: #0B1726 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

[data-theme="dark"] .hbn-ticker-marquee {
  color: #FFFFFF !important;
}

/* ==========================================================================
   FIRST-TIME USER ONBOARDING MODAL & DYNAMIC MODULAR MAGAZINE PATTERNS
   ========================================================================== */
.hbn-onboard-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hbn-onboard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.hbn-onboard-sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  background: var(--hbn-bg-card, #0B1726);
  color: var(--hbn-text-primary, #FFFFFF);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid var(--hbn-border, rgba(255,255,255,0.12));
  border-bottom: none;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  animation: hbnSheetSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
@keyframes hbnSheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.hbn-onboard-handle {
  width: 40px;
  height: 4px;
  background: rgba(128, 128, 128, 0.4);
  border-radius: 2px;
  margin: 10px auto 4px;
}
.hbn-onboard-header {
  padding: 12px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hbn-border, rgba(255,255,255,0.08));
}
.hbn-onboard-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hbn-onboard-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}
.hbn-onboard-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--hbn-text-primary, #FFF);
  margin: 0;
  line-height: 1.2;
}
.hbn-onboard-subtitle {
  font-size: 11.5px;
  color: var(--hbn-text-secondary, #94A3B8);
  margin: 2px 0 0;
}
.hbn-onboard-skip-btn {
  background: transparent;
  border: none;
  color: var(--hbn-text-muted, #64748B);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}
.hbn-onboard-content {
  padding: 14px 18px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.hbn-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hbn-text-primary, #FFF);
  margin-bottom: 4px;
}
.hbn-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #EF1E26;
  color: #FFF;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hbn-step-desc {
  font-size: 11.5px;
  color: var(--hbn-text-secondary, #94A3B8);
  margin: 0 0 10px;
  line-height: 1.4;
}
.hbn-onboard-district-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 130px;
  overflow-y: auto;
  padding: 2px;
}
.hbn-onboard-chip {
  padding: 6px 11px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--hbn-border, rgba(255,255,255,0.12));
  background: var(--hbn-bg-dark, #111C2B);
  color: var(--hbn-text-secondary, #CBD5E1);
  transition: all 0.15s ease;
  user-select: none;
}
.hbn-onboard-chip.is-active {
  background: #EF1E26 !important;
  color: #FFFFFF !important;
  border-color: #EF1E26 !important;
  box-shadow: 0 2px 8px rgba(239, 30, 38, 0.4);
}
.hbn-onboard-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hbn-onboard-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--hbn-border, rgba(255,255,255,0.08));
  background: var(--hbn-bg-card, #0B1726);
}
.hbn-onboard-submit-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EF1E26 0%, #B91C1C 100%);
  color: #FFF;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(239, 30, 38, 0.35);
}

/* 2-Col Grid Pattern */
.hbn-pattern-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.hbn-pattern-2col-card {
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.hbn-pattern-2col-card:active {
  transform: scale(0.98);
}
.hbn-pattern-2col-img {
  width: 100%;
  height: 95px;
  object-fit: cover;
}
.hbn-pattern-2col-body {
  padding: 8px 9px 9px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hbn-pattern-2col-cat {
  font-size: 9.5px;
  font-weight: 700;
  color: #EF1E26;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.hbn-pattern-2col-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hbn-text-primary);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.hbn-pattern-2col-meta {
  font-size: 10px;
  color: var(--hbn-text-muted);
}

/* Spotlight Big Feature Card */
.hbn-pattern-spotlight {
  background: var(--hbn-bg-card);
  border: 1px solid var(--hbn-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
}
.hbn-pattern-spotlight-img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}
.hbn-pattern-spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hbn-pattern-spotlight-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #EF1E26;
  color: #FFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.hbn-pattern-spotlight-body {
  padding: 12px 14px 14px;
}
.hbn-pattern-spotlight-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--hbn-text-primary);
  margin: 0 0 6px;
}
.hbn-pattern-spotlight-summary {
  font-size: 12px;
  line-height: 1.45;
  color: var(--hbn-text-secondary);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hbn-pattern-spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--hbn-text-muted);
}

/* Light Theme Overrides */
[data-theme="light"] .hbn-onboard-sheet { background:#FFFFFF !important; color:#0F172A !important; border-color:#E2E8F0 !important; }
[data-theme="light"] .hbn-onboard-chip { background:#F1F5F9 !important; color:#334155 !important; border-color:#CBD5E1 !important; }
[data-theme="light"] .hbn-onboard-chip.is-active { background:#EF1E26 !important; color:#FFFFFF !important; border-color:#EF1E26 !important; }
[data-theme="light"] .hbn-onboard-title,
[data-theme="light"] .hbn-step-title,
[data-theme="light"] .hbn-pattern-2col-title,
[data-theme="light"] .hbn-pattern-spotlight-title { color:#0F172A !important; }
[data-theme="light"] .hbn-onboard-subtitle,
[data-theme="light"] .hbn-step-desc,
[data-theme="light"] .hbn-pattern-spotlight-summary { color:#475569 !important; }
[data-theme="light"] .hbn-pattern-2col-card,
[data-theme="light"] .hbn-pattern-spotlight { background:#FFFFFF !important; border-color:#E2E8F0 !important; }
[data-theme="light"] .hbn-onboard-footer { background:#FFFFFF !important; border-color:#E2E8F0 !important; }


/* ==========================================================================
   NAVIGATION BAR SAFETY & DISTRICT CARDS EXPANSION FIX
   ========================================================================== */
.hbn-onboard-sheet {
  max-height: 80vh !important;
  margin-bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
}
.hbn-onboard-content {
  padding: 14px 18px 20px !important;
  overflow-y: auto !important;
  flex: 1 !important;
  -webkit-overflow-scrolling: touch !important;
}
.hbn-onboard-district-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 6px !important;
  max-height: 165px !important;
  overflow-y: auto !important;
  padding: 4px 12px 8px 2px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  scrollbar-width: thin !important;
}
.hbn-onboard-topic-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 6px !important;
  padding: 4px 12px 8px 2px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
.hbn-onboard-footer {
  padding: 14px 18px max(38px, calc(18px + env(safe-area-inset-bottom, 32px))) !important;
  background: var(--hbn-bg-card, #0B1726) !important;
  border-top: 1px solid var(--hbn-border, rgba(255,255,255,0.08)) !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 100 !important;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.2) !important;
}
.hbn-onboard-submit-btn {
  width: 100% !important;
  padding: 14px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #EF1E26 0%, #B91C1C 100%) !important;
  color: #FFF !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(239, 30, 38, 0.35) !important;
  position: relative !important;
  z-index: 101 !important;
}

/* Screen 04 - District Grid & Cards (Full Visibility, No Cropping) */
.hbn-district-screen-wrap {
  padding: 16px 16px max(95px, calc(75px + env(safe-area-inset-bottom, 24px))) !important;
}
.hbn-districts-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  padding-bottom: 24px !important;
}
.hbn-district-card {
  background: var(--hbn-bg-card) !important;
  border: 1px solid var(--hbn-border) !important;
  border-radius: 14px !important;
  padding: 12px !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 90px !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.hbn-district-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
  width: 100% !important;
}
.hbn-district-icon-circle {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(239, 30, 38, 0.12) !important;
  color: #EF1E26 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.hbn-district-card.is-selected .hbn-district-icon-circle {
  background: #FFF !important;
  color: #EF1E26 !important;
}
.hbn-district-badge {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 12px !important;
  background: var(--hbn-bg-dark, #111C2B) !important;
  color: var(--hbn-text-secondary, #94A3B8) !important;
  border: 1px solid var(--hbn-border, rgba(255,255,255,0.1)) !important;
  flex-shrink: 0 !important;
}
.hbn-district-card.is-selected .hbn-district-badge {
  background: #FFF !important;
  color: #EF1E26 !important;
  border-color: #FFF !important;
}
.hbn-district-card-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  width: 100% !important;
}
.hbn-district-name {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--hbn-text-primary) !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.hbn-district-en {
  font-size: 11px !important;
  color: var(--hbn-text-muted) !important;
  white-space: normal !important;
  display: block !important;
}
.hbn-district-card.is-selected .hbn-district-name,
.hbn-district-card.is-selected .hbn-district-en {
  color: #FFFFFF !important;
}
.hbn-sticky-bottom-action {
  position: sticky !important;
  bottom: max(65px, calc(50px + env(safe-area-inset-bottom, 16px))) !important;
  z-index: 60 !important;
  padding: 10px 0 16px 0 !important;
}

/* Light Theme Overrides */
[data-theme="light"] .hbn-district-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}
[data-theme="light"] .hbn-district-name {
  color: #0F172A !important;
}
[data-theme="light"] .hbn-district-en {
  color: #64748B !important;
}
[data-theme="light"] .hbn-district-badge {
  background: #F1F5F9 !important;
  color: #334155 !important;
  border-color: #CBD5E1 !important;
}
[data-theme="light"] .hbn-district-card.is-selected {
  background: #EF1E26 !important;
  border-color: #EF1E26 !important;
}
[data-theme="light"] .hbn-district-card.is-selected .hbn-district-name,
[data-theme="light"] .hbn-district-card.is-selected .hbn-district-en {
  color: #FFFFFF !important;
}
[data-theme="light"] .hbn-onboard-footer {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

/* ==========================================================================
   HBN SOCIAL & LIVE FEED STREAM STYLES
   ========================================================================== */

#viewFeed {
  padding-bottom: max(80px, calc(65px + env(safe-area-inset-bottom, 16px)));
}

.hbn-feed-top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--hbn-surface);
  border-bottom: 1px solid var(--hbn-border);
  padding: 6px 12px 6px 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hbn-feed-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.hbn-feed-top-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hbn-feed-top-title h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--hbn-text-primary);
  font-family: inherit;
}

.hbn-feed-live-dot {
  width: 8px;
  height: 8px;
  background: #EF1E26;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 30, 38, 0.7);
  animation: hbnFeedPulse 1.6s infinite;
}

@keyframes hbnFeedPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 30, 38, 0.8); }
  70% { box-shadow: 0 0 0 7px rgba(239, 30, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 30, 38, 0); }
}

.hbn-feed-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 30, 38, 0.08);
  color: #EF1E26;
  border: 1px solid rgba(239, 30, 38, 0.2);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.hbn-feed-refresh-btn:active {
  transform: scale(0.93);
  background: rgba(239, 30, 38, 0.16);
}

.hbn-feed-refresh-btn svg.spin-anim {
  animation: spin 0.7s linear infinite;
}

.hbn-feed-filter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.hbn-feed-filter-scroll::-webkit-scrollbar {
  display: none;
}

.hbn-feed-filter-chip {
  flex-shrink: 0;
  border: 1px solid var(--hbn-border);
  background: var(--hbn-surface-soft, rgba(255, 255, 255, 0.05));
  color: var(--hbn-text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hbn-feed-filter-chip.is-active {
  background: #EF1E26;
  border-color: #EF1E26;
  color: #FFFFFF !important;
}

/* Sub Filter Bar (Day Range: 1, 2, 7 Days + Sort + Algo Reset) */
.hbn-feed-sub-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  background: var(--hbn-surface, #121417);
  border-bottom: 1px solid var(--hbn-border, rgba(255, 255, 255, 0.08));
  overflow-x: auto;
  white-space: nowrap;
}
.hbn-feed-sub-filter-bar::-webkit-scrollbar {
  display: none;
}
.hbn-time-filter-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hbn-filter-badge-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--hbn-text-muted, #8b949e);
  text-transform: uppercase;
  margin-right: 2px;
}
.hbn-time-chip {
  flex-shrink: 0;
  border: 1px solid var(--hbn-border, rgba(255, 255, 255, 0.12));
  background: var(--hbn-surface-soft, rgba(255, 255, 255, 0.06));
  color: var(--hbn-text-secondary, #c9d1d9);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hbn-time-chip.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff !important;
}
.hbn-feed-sort-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.hbn-feed-sort-chip {
  flex-shrink: 0;
  border: 1px solid var(--hbn-border, rgba(255, 255, 255, 0.12));
  background: transparent;
  color: var(--hbn-text-secondary, #c9d1d9);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hbn-feed-sort-chip.is-active {
  background: #EF1E26;
  border-color: #EF1E26;
  color: #ffffff !important;
}
.hbn-feed-reset-chip {
  flex-shrink: 0;
  border: 1px solid rgba(239, 30, 38, 0.4);
  background: rgba(239, 30, 38, 0.12);
  color: #ff6b6b;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hbn-feed-reset-chip:hover {
  background: #EF1E26;
  color: #ffffff;
}

/* Floating Reels Filter Strip */
.hbn-shorts-floating-bar {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 14px;
  pointer-events: none;
}
.hbn-shorts-pill-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  pointer-events: auto;
}
.hbn-shorts-pill-scroll::-webkit-scrollbar {
  display: none;
}
.hbn-shorts-pill {
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hbn-shorts-pill.is-active {
  background: #EF1E26;
  border-color: #EF1E26;
  box-shadow: 0 2px 8px rgba(239, 30, 38, 0.5);
}

/* Empty State Card in Shorts Feed */
.hbn-shorts-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 80vh;
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
  background: #000000;
  color: #FFFFFF;
  text-align: center;
}
.hbn-shorts-empty-card {
  background: rgba(22, 27, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 32px 22px;
  max-width: 320px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hbn-shorts-empty-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #FFFFFF;
}
.hbn-shorts-empty-card p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 20px 0;
}
.hbn-shorts-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hbn-shorts-empty-btn {
  background: #EF1E26;
  color: #FFFFFF;
  border: none;
  border-radius: 24px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.hbn-shorts-empty-btn.hbn-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Reels Vertical End Slide (All Caught Up) */
.hbn-shorts-end-slide {
  background: radial-gradient(circle at center, #111A2C 0%, #070D18 100%) !important;
  padding: 24px;
  box-sizing: border-box;
}

.hbn-shorts-end-card {
  background: rgba(17, 26, 44, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 36px 24px;
  max-width: 330px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hbn-shorts-end-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1.5px solid rgba(34, 197, 94, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.hbn-shorts-end-title {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.hbn-shorts-end-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0 0 24px 0;
}

.hbn-shorts-end-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hbn-shorts-end-btn {
  background: #EF1E26;
  color: #FFFFFF;
  border: none;
  border-radius: 28px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
  box-shadow: 0 4px 14px rgba(239, 30, 38, 0.4);
}

.hbn-shorts-end-btn:active {
  transform: scale(0.97);
}

.hbn-shorts-end-btn.hbn-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.hbn-feed-stream {
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 10px 40px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hbn-home-social-feed-section {
  margin: 18px 0 22px 0;
}

.hbn-home-social-feed-section .hbn-feed-stream {
  padding: 0;
  max-width: 100%;
  gap: 12px;
}

/* Feed Card */
.hbn-feed-card {
  background: var(--hbn-surface);
  border: 1px solid var(--hbn-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hbn-feed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px 14px;
}

.hbn-feed-card-profile {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hbn-feed-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #EF1E26;
  background: #0F172A;
}

.hbn-feed-meta {
  display: flex;
  flex-direction: column;
}

.hbn-feed-author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hbn-text-primary);
  line-height: 1.2;
}

.hbn-feed-time {
  font-size: 11px;
  color: var(--hbn-text-muted);
}

.hbn-feed-tags {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hbn-feed-district-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(239, 30, 38, 0.12);
  color: #EF1E26;
  padding: 2px 7px;
  border-radius: 4px;
}

.hbn-feed-micro-tag {
  font-size: 10px;
  font-weight: 800;
  background: #10B981;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.hbn-feed-card-media {
  position: relative;
  width: 100%;
  background: var(--hbn-surface-soft, rgba(0, 0, 0, 0.05));
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbn-feed-card-media img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.hbn-feed-card:hover .hbn-feed-card-media img {
  transform: scale(1.015);
}

.hbn-feed-card-body {
  padding: 12px 14px 10px 14px;
}

.hbn-feed-card-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--hbn-text-primary);
  margin: 0 0 6px 0;
  cursor: pointer;
}

.hbn-feed-card-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hbn-text-secondary);
  margin: 0 0 8px 0;
}

.hbn-feed-card-text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.hbn-feed-card-text.is-expanded {
  display: block !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
  overflow: visible !important;
  cursor: default;
}

.hbn-feed-see-more-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 8px 0;
  color: #EF1E26;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  transition: opacity 0.15s ease;
}

.hbn-feed-see-more-btn:active {
  opacity: 0.7;
}

[data-theme="light"] .hbn-feed-see-more-btn {
  color: #DC2626;
}

.hbn-feed-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 30, 38, 0.09);
  color: #EF1E26;
  border: 1px solid rgba(239, 30, 38, 0.25);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 4px;
  transition: background 0.15s ease;
}

.hbn-feed-read-more-btn:hover {
  background: #EF1E26;
  color: #FFFFFF;
}

/* Social Action Bar */
.hbn-feed-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hbn-border);
  padding: 8px 14px;
  background: var(--hbn-surface-soft, rgba(255, 255, 255, 0.02));
}

.hbn-feed-action-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hbn-feed-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--hbn-text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hbn-feed-action-btn svg {
  width: 19px;
  height: 19px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hbn-feed-action-btn:hover {
  color: var(--hbn-text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.hbn-feed-like-btn.is-liked {
  color: #EF1E26 !important;
}

.hbn-feed-like-btn.is-liked svg {
  fill: #EF1E26;
  stroke: #EF1E26;
  transform: scale(1.18);
}

.hbn-feed-save-btn {
  color: var(--hbn-text-secondary);
}
.hbn-feed-save-btn.is-saved {
  color: #EF1E26 !important;
}
.hbn-feed-save-btn.is-saved svg {
  fill: #EF1E26 !important;
  stroke: #EF1E26 !important;
  transform: scale(1.15);
}

.hbn-short-action-item.is-saved .hbn-short-action-icon-circle {
  border-color: #EF1E26 !important;
  background: rgba(239, 30, 38, 0.3) !important;
}
.hbn-short-action-item.is-saved svg {
  fill: #EF1E26 !important;
  stroke: #EF1E26 !important;
}
.hbn-short-action-item.is-saved .hbn-short-action-count {
  color: #EF1E26 !important;
  font-weight: 700;
}

.hbn-feed-wa-btn {
  background: #25D366;
  color: #FFFFFF !important;
  border-radius: 20px;
  padding: 5px 11px;
}

.hbn-feed-wa-btn svg {
  fill: none;
  stroke: #FFFFFF;
  width: 16px;
  height: 16px;
}

.hbn-feed-wa-btn:hover {
  background: #20BA5A;
  color: #FFFFFF !important;
}

/* ==========================================================================
   FEED END CARD — ALL CAUGHT UP & RECAP UX
   ========================================================================== */
.hbn-feed-all-caught-up {
  position: relative;
  text-align: center;
  padding: 36px 20px 32px;
  background: linear-gradient(145deg, rgba(17, 26, 44, 0.95), rgba(11, 18, 32, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  margin: 24px 12px 36px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: hbnFadeIn 0.35s ease;
  overflow: hidden;
}

.hbn-feed-all-caught-up::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.6), transparent);
}

.hbn-feed-caught-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.18);
}

.hbn-feed-caught-title {
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.hbn-feed-caught-desc {
  color: #94A3B8;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 auto 20px;
  max-width: 330px;
}

.hbn-feed-caught-recap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.hbn-feed-caught-recap-btn:hover {
  background: #EF1E26;
  border-color: #EF1E26;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 30, 38, 0.35);
}

.hbn-feed-caught-recap-btn:active {
  transform: translateY(0);
}

.hbn-feed-recap-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(239, 30, 38, 0.08);
  border: 1px solid rgba(239, 30, 38, 0.2);
  border-radius: 12px;
  margin: 10px 12px 14px;
  font-size: 13px;
  color: #E2E8F0;
}

.hbn-feed-recap-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #F87171;
}

.hbn-feed-recap-exit-btn {
  background: transparent;
  border: none;
  color: #EF1E26;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: underline;
}

/* Light theme overrides */
[data-theme="light"] .hbn-feed-all-caught-up {
  background: linear-gradient(145deg, #FFFFFF, #F8FAFC);
  border-color: #E2E8F0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hbn-feed-caught-title {
  color: #0F172A;
}

[data-theme="light"] .hbn-feed-caught-desc {
  color: #64748B;
}

[data-theme="light"] .hbn-feed-caught-recap-btn {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hbn-feed-caught-recap-btn:hover {
  background: #EF1E26;
  border-color: #EF1E26;
  color: #FFFFFF;
}

[data-theme="light"] .hbn-feed-recap-banner {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #1E293B;
}

/* ==========================================================================
   COMMENT BOTTOM SHEET MODAL (Modern slide-up drawer)
   ========================================================================== */

.hbn-comment-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hbn-comment-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hbn-comment-sheet {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 82vh;
  background: var(--hbn-surface, #111827);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  animation: hbnSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border-top: 1px solid var(--hbn-border);
}

@keyframes hbnSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.hbn-comment-handle {
  width: 44px;
  height: 4px;
  background: var(--hbn-border, #475569);
  border-radius: 3px;
  margin: 10px auto 4px auto;
}

.hbn-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px 16px;
  border-bottom: 1px solid var(--hbn-border);
}

.hbn-comment-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--hbn-text-primary);
  margin: 0;
}

.hbn-comment-sub {
  font-size: 11.5px;
  color: var(--hbn-text-muted);
}

.hbn-comment-close-btn {
  background: var(--hbn-surface-soft, rgba(255, 255, 255, 0.1));
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--hbn-text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbn-comment-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}

.hbn-comment-item {
  display: flex;
  gap: 10px;
}

.hbn-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EF1E26, #B91C1C);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.hbn-comment-bubble {
  flex: 1;
  background: var(--hbn-surface-soft, rgba(255, 255, 255, 0.05));
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid var(--hbn-border);
}

.hbn-comment-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.hbn-comment-bubble-author {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hbn-text-primary);
}

.hbn-comment-bubble-time {
  font-size: 10.5px;
  color: var(--hbn-text-muted);
}

.hbn-comment-bubble-text {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--hbn-text-secondary);
  word-break: break-word;
}

.hbn-comment-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--hbn-text-muted);
  font-size: 13px;
}

.hbn-comment-input-bar {
  padding: 10px 14px max(12px, calc(10px + env(safe-area-inset-bottom, 12px))) 14px;
  border-top: 1px solid var(--hbn-border);
  background: var(--hbn-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hbn-comment-author-input {
  width: 100%;
  background: var(--hbn-surface-soft, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--hbn-border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--hbn-text-primary);
  outline: none;
}

.hbn-comment-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hbn-comment-text-input {
  flex: 1;
  background: var(--hbn-surface-soft, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--hbn-border);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--hbn-text-primary);
  outline: none;
}

.hbn-comment-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #EF1E26;
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.hbn-comment-send-btn:active {
  transform: scale(0.92);
}

/* Light Theme Overrides for Social Feed */
[data-theme="light"] .hbn-feed-top-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .hbn-feed-filter-chip {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #334155 !important;
}

[data-theme="light"] .hbn-feed-filter-chip.is-active {
  background: #EF1E26 !important;
  border-color: #EF1E26 !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .hbn-feed-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .hbn-feed-card-title {
  color: #0F172A !important;
}

[data-theme="light"] .hbn-feed-card-text {
  color: #334155 !important;
}

[data-theme="light"] .hbn-feed-actions {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .hbn-comment-sheet {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .hbn-comment-title {
  color: #0F172A !important;
}

[data-theme="light"] .hbn-comment-bubble {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .hbn-comment-bubble-author {
  color: #0F172A !important;
}

[data-theme="light"] .hbn-comment-bubble-text {
  color: #1E293B !important;
}

[data-theme="light"] .hbn-comment-author-input,
[data-theme="light"] .hbn-comment-text-input {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

@keyframes hbnTargetPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 30, 38, 0.7); border-color: #EF1E26; }
  50% { box-shadow: 0 0 0 10px rgba(239, 30, 38, 0); border-color: #EF1E26; }
  100% { box-shadow: 0 0 0 0 rgba(239, 30, 38, 0); }
}
.hbn-target-post-pulse {
  animation: hbnTargetPulse 1.4s ease-in-out 3;
  border-color: #EF1E26 !important;
}

/* ============================================================
   HBN FEED FILTER BOTTOM SHEET (Exact Mobile UI from Screenshot)
   ============================================================ */
.hbn-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.hbn-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.hbn-filter-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px 24px 0 0;
  z-index: 99995;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
}
.hbn-filter-bottom-sheet.is-open {
  transform: translateY(0);
}

.hbn-sheet-handle-bar {
  padding: 10px 0 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
}
.hbn-sheet-handle {
  width: 44px;
  height: 4px;
  background: #4B5563;
  border-radius: 2px;
}

.hbn-filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hbn-filter-sheet-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hbn-filter-sheet-title svg {
  color: #EF1E26;
}
.hbn-filter-sheet-title h3 {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}
.hbn-filter-reset-link {
  background: transparent;
  border: none;
  color: #EF4444;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  transition: opacity 0.2s ease;
}
.hbn-filter-reset-link:active {
  opacity: 0.65;
}

.hbn-filter-sheet-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.hbn-filter-section {
  display: flex;
  flex-direction: column;
}
.hbn-filter-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 10px;
}
.hbn-filter-section-title svg {
  color: #94A3B8;
  flex-shrink: 0;
}

.hbn-filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hbn-filter-pill {
  border: 1px solid #334155;
  background: #1E293B;
  color: #CBD5E1;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.hbn-filter-pill:active {
  transform: scale(0.96);
}
.hbn-filter-pill.is-active {
  background: #EF1E26 !important;
  border-color: #EF1E26 !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(239, 30, 38, 0.45);
}

.hbn-filter-district-search-wrap {
  position: relative;
  margin-top: 10px;
  display: flex;
  align-items: center;
}
.hbn-filter-district-search-wrap svg {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  pointer-events: none;
}
.hbn-filter-search-input {
  width: 100%;
  box-sizing: border-box;
  background: #0B1220;
  border: 1px solid #334155;
  border-radius: 24px;
  padding: 10px 14px 10px 38px;
  font-size: 13.5px;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease;
}
.hbn-filter-search-input:focus {
  border-color: #EF1E26;
}
.hbn-filter-search-input::placeholder {
  color: #64748B;
  font-size: 13px;
}

.hbn-filter-district-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-height: 140px;
  overflow-y: auto;
  padding: 6px;
  background: #0B1220;
  border-radius: 12px;
  border: 1px solid #1E293B;
}

.hbn-filter-district-chip {
  padding: 4px 10px;
  background: #1E293B;
  color: #E2E8F0;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #334155;
}
.hbn-filter-district-chip:hover {
  background: #EF1E26;
  border-color: #EF1E26;
}

.hbn-filter-sheet-footer {
  padding: 14px 18px 20px;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hbn-filter-apply-btn {
  width: 100%;
  height: 48px;
  background: #EF1E26;
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239, 30, 38, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.hbn-filter-apply-btn:active {
  transform: scale(0.98);
  background: #DC2626;
}
.hbn-btn-arrow {
  font-size: 18px;
  font-weight: 900;
}

/* Filter Trigger Button in Feed Strip */
.hbn-feed-filter-trigger-btn {
  flex-shrink: 0;
  width: 34px;
  height: 32px;
  border-radius: 18px;
  border: 1px solid var(--hbn-border, #334155);
  background: var(--hbn-surface-soft, rgba(255, 255, 255, 0.08));
  color: var(--hbn-text-primary, #FFFFFF);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  margin-left: 2px;
  transition: all 0.2s ease;
}
.hbn-feed-filter-trigger-btn:active {
  transform: scale(0.92);
}
.hbn-filter-active-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF1E26;
  display: none;
}
.hbn-filter-active-indicator.is-active {
  display: block;
}

/* Light Mode Overrides for Filter Sheet */
[data-theme="light"] .hbn-filter-bottom-sheet {
  background: #FFFFFF !important;
  border-top-color: #E2E8F0 !important;
}
[data-theme="light"] .hbn-sheet-handle {
  background: #CBD5E1 !important;
}
[data-theme="light"] .hbn-filter-sheet-header {
  border-bottom-color: #E2E8F0 !important;
}
[data-theme="light"] .hbn-filter-sheet-title h3 {
  color: #0F172A !important;
}
[data-theme="light"] .hbn-filter-section-title {
  color: #334155 !important;
}
[data-theme="light"] .hbn-filter-section-title svg {
  color: #64748B !important;
}
[data-theme="light"] .hbn-filter-pill {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}
[data-theme="light"] .hbn-filter-pill.is-active {
  background: #EF1E26 !important;
  border-color: #EF1E26 !important;
  color: #FFFFFF !important;
}
[data-theme="light"] .hbn-filter-search-input {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}
[data-theme="light"] .hbn-filter-sheet-footer {
  background: #FFFFFF !important;
  border-top-color: #E2E8F0 !important;
}


