/* ==========================================================================
   गो तुमसर (Go Tumsar) Stylesheet
   Theme: Vibrant Green & Deep Navy (Exact Match to Go Tumsar Logo)
   Features: 100% Mobile Friendly, Native Bottom Nav, Reporter Profiles,
             Reporter Auth (Login & Application), Photo Upload, WhatsApp Share.
   ========================================================================== */

:root {
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-editorial: "Georgia", "Cambria", "Times New Roman", serif;
  
  /* Exact Logo Palette */
  --brand-green: #16a34a;
  --brand-green-vibrant: #22c55e;
  --brand-green-dark: #15803d;
  --brand-green-deep: #14532d;
  --brand-lime: #84cc16;
  --brand-navy: #0f172a;
  --brand-navy-light: #1e293b;
  
  --brand-gradient: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  --brand-glow: rgba(34, 197, 94, 0.25);
  
  /* Light Theme */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f0fdf4;
  --bg-skeleton: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border-subtle: #e2e8f0;
  --border-green: #bbf7d0;
  --border-strong: #cbd5e1;
  
  --accent-primary: #16a34a;
  --accent-primary-hover: #15803d;
  --accent-light: #dcfce7;
  
  --badge-bg: #dcfce7;
  --badge-text: #14532d;
  --badge-border: #86efac;
  
  --whatsapp-green: #25d366;
  --whatsapp-dark: #128c7e;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="dark"] {
  --bg-page: #06100a;
  --bg-surface: #0f1d14;
  --bg-surface-elevated: #162a1e;
  --bg-subtle: #122418;
  --bg-skeleton: #1a3623;
  
  --text-primary: #f0fdf4;
  --text-secondary: #bbf7d0;
  --text-muted: #6ee7b7;
  --text-inverse: #06100a;
  
  --border-subtle: #193822;
  --border-green: #22543d;
  --border-strong: #276749;
  
  --accent-primary: #22c55e;
  --accent-primary-hover: #4ade80;
  --accent-light: rgba(34, 197, 94, 0.15);
  
  --badge-bg: rgba(34, 197, 94, 0.2);
  --badge-text: #86efac;
  --badge-border: rgba(34, 197, 94, 0.4);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  padding-bottom: 2rem;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Header & Navigation */
.top-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.35rem 1rem;
}

.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ef4444;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.sources-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-green);
  color: var(--brand-green-dark);
  font-weight: 600;
}

[data-theme="dark"] .status-pill {
  color: var(--brand-green-vibrant);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .app-header {
  background-color: rgba(15, 29, 20, 0.94);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Brand Logo */
.brand-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
  border: 1px solid var(--border-green);
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  line-height: 1.1;
}

[data-theme="dark"] .brand-name {
  color: #f0fdf4;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-container {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.58rem 2.2rem 0.58rem 2.2rem;
  font-size: 0.88rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  background-color: var(--bg-surface);
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.search-icon-left {
  position: absolute;
  left: 0.8rem;
  color: var(--brand-green);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  color: var(--text-muted);
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Reporter Account Status Badge in Header */
.reporter-auth-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reporter-auth-status.logged-in {
  background-color: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
}

[data-theme="dark"] .reporter-auth-status.logged-in {
  background-color: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.reporter-auth-status.logged-out {
  background-color: var(--bg-subtle);
  color: var(--brand-green-dark);
  border: 1px solid var(--border-green);
}

[data-theme="dark"] .reporter-auth-status.logged-out {
  color: var(--brand-green-vibrant);
}

.btn-post-news {
  background: var(--brand-gradient);
  color: white !important;
  font-weight: 700;
  padding: 0.52rem 0.95rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-post-news:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(22, 163, 74, 0.45);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-green);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
}

.action-btn:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--brand-green);
}

.action-btn.icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

.counter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--brand-green);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Category Nav Bar */
.categories-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.categories-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.category-tab {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid transparent;
}

.category-tab:hover {
  color: var(--brand-green-dark);
  background-color: var(--bg-subtle);
}

.category-tab.active {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 2px 8px var(--brand-glow);
}

.category-tab.tab-tumsar {
  border: 1px solid var(--brand-green);
  color: var(--brand-green-dark);
  background-color: #dcfce7;
  font-weight: 700;
}

[data-theme="dark"] .category-tab.tab-tumsar {
  color: var(--brand-green-vibrant);
  background-color: rgba(34, 197, 94, 0.18);
}

.category-tab.tab-tumsar.active {
  background: var(--brand-gradient);
  color: white;
  border-color: transparent;
}

/* Tumsar Banner */
.tumsar-banner {
  max-width: 1280px;
  margin: 1.25rem auto 0;
  padding: 0 1rem;
  display: none;
}

.tumsar-banner.visible {
  display: block;
}

.tumsar-banner-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(21, 128, 61, 0.05) 100%);
  border: 1.5px solid var(--brand-green);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.tumsar-banner-info h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-green-dark);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="dark"] .tumsar-banner-info h2 {
  color: var(--brand-green-vibrant);
}

.tumsar-banner-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 680px;
}

.btn-post-tumsar {
  background: var(--brand-gradient);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px var(--brand-glow);
  transition: all var(--transition-fast);
}

.btn-post-tumsar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--brand-glow);
}

/* Filter Bar & Tags */
.filter-bar {
  max-width: 1280px;
  margin: 1rem auto 0;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.topic-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.topic-tag-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.topic-tag-btn {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.topic-tag-btn:hover {
  border-color: var(--brand-green);
  color: var(--brand-green-dark);
  background-color: var(--bg-subtle);
}

.topic-tag-btn.tag-tumsar {
  border-color: var(--border-green);
  color: var(--brand-green-dark);
  background-color: var(--bg-subtle);
  font-weight: 700;
}

[data-theme="dark"] .topic-tag-btn.tag-tumsar {
  color: var(--brand-green-vibrant);
}

.filter-selectors {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.select-dropdown {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  padding: 0.38rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  font-weight: 600;
}

/* Alert Banner */
.alert-banner {
  max-width: 1280px;
  margin: 1rem auto 0;
  padding: 0 1rem;
  display: none;
}

.alert-banner.visible {
  display: block;
}

.alert-content {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
}

/* Main Container */
.main-container {
  max-width: 1280px;
  margin: 1.25rem auto 2.5rem;
  padding: 0 1rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-primary);
}

.results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: normal;
}

/* Hero Section */
.hero-section {
  margin-bottom: 2rem;
}

.hero-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  transition: all var(--transition-normal);
}

@media (min-width: 840px) {
  .hero-card {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-card:hover {
  box-shadow: var(--shadow-xl);
}

.hero-image-wrapper {
  position: relative;
  min-height: 240px;
  max-height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1d14, #06100a);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-card:hover .hero-image {
  transform: scale(1.02);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.hero-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.category-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.badge-tumsar-tag {
  background-color: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.source-icon,
.source-badge img,
.hero-meta img,
.news-card img.source-icon {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

.hero-title {
  font-family: var(--font-editorial);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-description {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reporter Strip */
.reporter-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-green);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.reporter-avatar {
  width: 22px;
  height: 22px;
  background: var(--brand-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.reporter-name {
  font-weight: 700;
  color: var(--brand-green-dark);
}

[data-theme="dark"] .reporter-name {
  color: var(--brand-green-vibrant);
}

.reporter-location {
  color: var(--text-muted);
}

/* Real Source Strip for API News */
.source-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.22rem 0.7rem;
  font-size: 0.76rem;
  margin-bottom: 0.75rem;
  width: fit-content;
  max-width: 100%;
}

.source-name-badge {
  font-weight: 800;
  color: var(--brand-navy);
}

[data-theme="dark"] .source-name-badge {
  color: var(--brand-green-vibrant);
}

.source-verified-tag {
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 8px;
}

[data-theme="dark"] .source-verified-tag {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

/* Reader Modal Real Source Box */
.reader-source-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

.reader-source-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: auto;
  gap: 0.5rem;
}

/* News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.news-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-green);
}

.card-media {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: var(--bg-subtle);
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .card-image {
  transform: scale(1.03);
}

.card-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #122418, #09140c);
  color: var(--brand-green-vibrant);
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.card-media-tags {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.card-content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-editorial);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-card:hover .card-title {
  color: var(--brand-green);
}

.card-snippet {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--brand-green);
}

.icon-btn.btn-whatsapp {
  color: var(--whatsapp-green);
}

.icon-btn.btn-whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.15);
}

.icon-btn.bookmarked {
  color: #f59e0b;
}

.btn-read {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  transition: background-color var(--transition-fast);
}

.btn-read:hover {
  background-color: var(--accent-light);
}

/* Skeletons */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-skeleton) 0%,
    var(--border-green) 50%,
    var(--bg-skeleton) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  display: flex;
  flex-direction: column;
}

.skeleton-image {
  height: 180px;
  width: 100%;
}

.skeleton-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.skeleton-line {
  height: 14px;
}

.skeleton-line.short {
  width: 35%;
}

.skeleton-line.title {
  height: 20px;
  width: 90%;
}

/* Load More */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green-dark);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .btn-load-more {
  color: var(--brand-green-vibrant);
}

.btn-load-more:hover {
  background: var(--brand-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--brand-glow);
}

/* Modal Dialogs */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xl);
  max-width: 680px;
  width: 94vw;
  margin: auto;
  padding: 0;
  outline: none;
  overflow: hidden;
}

dialog::backdrop {
  background-color: rgba(6, 16, 10, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Mobile Bottom Sheet for Dialogs */
@media (max-width: 640px) {
  dialog {
    width: 100vw;
    max-width: 100vw;
    margin-bottom: 0;
    margin-top: auto;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    animation: sheet-up 0.3s ease-out;
  }

  @keyframes sheet-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

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

.dialog-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-green-dark);
}

[data-theme="dark"] .dialog-title {
  color: var(--brand-green-vibrant);
}

.dialog-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.dialog-close-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.dialog-body {
  padding: 1.25rem;
  max-height: 75vh;
  overflow-y: auto;
}

.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-subtle);
}

/* Auth Modal Tabs */
.auth-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border-green);
  margin-bottom: 1.25rem;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  color: var(--brand-green-dark);
  border-bottom-color: var(--brand-green);
}

[data-theme="dark"] .auth-tab-btn.active {
  color: var(--brand-green-vibrant);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.demo-login-box {
  background-color: #dcfce7;
  border: 1.5px dashed var(--brand-green);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

[data-theme="dark"] .demo-login-box {
  background-color: rgba(34, 197, 94, 0.15);
}

.btn-demo-quick {
  background: var(--brand-gradient);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--brand-glow);
}

/* Post News Form */
.post-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 580px) {
  .post-form-grid.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-green);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-glow);
  background-color: var(--bg-surface);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Upload Preview Box */
.upload-zone {
  border: 2px dashed var(--border-green);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: center;
  background-color: var(--bg-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-zone:hover {
  border-color: var(--brand-green);
  background-color: rgba(34, 197, 94, 0.1);
}

.upload-preview {
  max-height: 160px;
  border-radius: var(--radius-sm);
  margin: 0.5rem auto 0;
  display: none;
  object-fit: cover;
}

.preset-images {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.preset-btn {
  font-size: 0.74rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-green);
  cursor: pointer;
  font-weight: 600;
}

.preset-btn:hover {
  background-color: var(--brand-green);
  color: white;
}

/* Buttons */
.btn-primary {
  background: var(--brand-gradient);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-green);
  color: var(--text-primary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-whatsapp-action {
  background-color: var(--whatsapp-green);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-action:hover {
  background-color: var(--whatsapp-dark);
}

/* Reader Modal Content */
.reader-hero-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.reader-title {
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.reader-reporter-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--bg-subtle);
  border: 1.5px solid var(--border-green);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 1.5rem;
}

.reader-reporter-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.reader-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

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

@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-green);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.35rem 0.5rem 0.5rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.06);
  }

  [data-theme="dark"] .mobile-bottom-nav {
    background-color: rgba(15, 29, 20, 0.96);
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
  }

  .nav-item.active {
    color: var(--brand-green);
  }

  /* Center Floating Action Button on mobile */
  .nav-item.nav-post-fab {
    margin-top: -16px;
    background: var(--brand-gradient);
    color: white !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--brand-glow);
    border: 3px solid var(--bg-surface);
  }
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

@media (min-width: 769px) {
  .toast-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

.toast {
  pointer-events: auto;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-green);
  color: var(--text-primary);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  animation: toast-in 0.25s ease-out;
}

@keyframes toast-in {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.app-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1rem;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

.footer-brand {
  font-weight: 800;
  color: var(--text-primary);
}

/* Mobile Responsiveness & Multi-Screen Adaptive Layout */
@media (max-width: 768px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.75rem;
    gap: 0.35rem 0.5rem;
  }

  .header-brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .hamburger-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    flex-shrink: 0;
  }

  .brand-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 1.25rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  /* Subtitle hidden on mobile to avoid text overflow/truncation */
  .brand-subtitle {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .btn-mandi-rates {
    display: none !important;
  }

  .btn-panchang-rates {
    display: none !important;
  }

  /* On mobile, bottom navigation already has prominent center + FAB! Hide header button to avoid collision */
  .btn-post-news {
    display: none !important;
  }

  .auth-status-pill {
    padding: 0.32rem 0.6rem;
    font-size: 0.76rem;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    white-space: nowrap;
  }

  .action-btn.icon-only {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  /* Dedicated Full-Width 2nd Row for Search */
  .search-container {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 0.25rem;
  }

  .search-input {
    height: 38px;
    font-size: 0.85rem;
    padding: 0.45rem 2.2rem;
  }

  /* Live Ticker Strip Mobile */
  .live-ticker-strip {
    padding: 0.28rem 0.6rem;
    gap: 0.4rem;
  }

  .ticker-label {
    font-size: 0.74rem;
    gap: 0.2rem;
  }

  .ticker-label span:not(.ticker-label-icon) {
    display: none !important;
  }

  .ticker-label-icon {
    font-size: 0.95rem;
  }

  .ticker-view-all-btn {
    font-size: 0.72rem;
    padding: 0.15rem 0.35rem;
    white-space: nowrap;
  }

  .ticker-chip {
    padding: 0.18rem 0.5rem;
    font-size: 0.74rem;
  }

  /* Sticky Categories Bar Mobile */
  .categories-bar {
    top: 92px;
    padding: 0.35rem 0.5rem;
  }

  .categories-inner {
    gap: 0.35rem;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .categories-inner::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
    border-radius: var(--radius-full);
    flex-shrink: 0;
  }

  /* Smooth Horizontal Scroll Trending Tags */
  .filter-bar {
    padding: 0.35rem 0.6rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .topic-tags {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .topic-tag-label {
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .topic-tag-btn {
    font-size: 0.72rem;
    padding: 0.2rem 0.52rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Cards & Hero Mobile */
  .hero-section {
    margin-bottom: 1.25rem;
  }

  .hero-card {
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .hero-image-wrapper {
    height: 200px;
  }

  .hero-body {
    padding: 0.85rem;
  }

  .hero-title {
    font-size: 1.18rem;
    line-height: 1.35;
    margin: 0.35rem 0;
  }

  .hero-description {
    font-size: 0.84rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-footer {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-media {
    height: 190px;
  }

  .card-content {
    padding: 0.85rem;
  }

  .card-title {
    font-size: 1.02rem;
    line-height: 1.35;
  }

  .card-snippet {
    font-size: 0.82rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .card-actions {
    gap: 0.35rem;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .btn-read {
    font-size: 0.78rem;
    padding: 0.38rem 0.7rem;
  }
}

/* Extra Small Phones (<= 420px) */
@media (max-width: 420px) {
  .brand-name {
    font-size: 1.15rem;
  }

  .auth-status-pill {
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
  }

  .top-bar-right {
    display: none !important;
  }

  .top-bar-inner {
    justify-content: center;
  }
}

/* Ultra-Narrow Mobile Screens (<= 340px, e.g. Galaxy Z Fold outer display 315px-320px) */
@media (max-width: 340px) {
  .header-inner {
    padding: 0.35rem 0.45rem !important;
    gap: 0.25rem !important;
  }

  .header-brand-wrap {
    gap: 0.3rem !important;
    min-width: 0 !important;
  }

  .hamburger-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .brand-logo-img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
  }

  .brand-name {
    font-size: 1.05rem !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    flex-shrink: 0 !important;
  }

  .header-actions {
    gap: 0.25rem !important;
    flex-shrink: 0 !important;
  }

  .auth-status-pill {
    padding: 0.22rem 0.45rem !important;
    font-size: 0.7rem !important;
    gap: 0.2rem !important;
  }

  .action-btn.icon-only {
    width: 32px !important;
    height: 32px !important;
  }

  .search-input {
    height: 35px !important;
    font-size: 0.8rem !important;
    padding: 0.35rem 1.8rem !important;
  }

  .ticker-view-all-btn {
    font-size: 0.68rem !important;
    padding: 0.1rem 0.25rem !important;
  }
}

/* ==========================================================================
   Comprehensive Mobile Landscape Orientation (< 550px Height)
   Optimized for mobile rotation so bars never consume excessive screen space
   ========================================================================== */
@media (max-height: 550px) and (orientation: landscape) {
  /* 1. Hide top bar completely in landscape */
  .top-bar {
    display: none !important;
  }

  /* 2. Compact single-row header */
  .app-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 95 !important;
  }

  .header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.25rem 0.75rem !important;
    gap: 0.5rem !important;
    height: 42px !important;
  }

  .header-brand-wrap {
    flex-shrink: 0 !important;
    gap: 0.35rem !important;
  }

  .brand-logo-img {
    width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important;
  }

  .brand-name {
    font-size: 1.02rem !important;
    white-space: nowrap !important;
  }

  .brand-subtitle {
    display: none !important;
  }

  .hamburger-btn {
    width: 30px !important;
    height: 30px !important;
  }

  /* Inline search bar on same row */
  .search-container {
    order: 2 !important;
    flex: 1 !important;
    max-width: 300px !important;
    margin-top: 0 !important;
  }

  .search-input {
    height: 30px !important;
    font-size: 0.78rem !important;
    padding: 0.2rem 1.8rem !important;
  }

  .header-actions {
    order: 3 !important;
    display: flex !important;
    gap: 0.35rem !important;
  }

  .btn-post-news, .btn-mandi-rates, .btn-panchang-rates {
    display: none !important;
  }

  .auth-status-pill {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.72rem !important;
  }

  .action-btn.icon-only {
    width: 30px !important;
    height: 30px !important;
  }

  /* 3. Non-sticky relative categories bar */
  .categories-bar {
    position: relative !important;
    top: 0 !important;
    padding: 0.2rem 0.5rem !important;
  }

  .category-tab {
    padding: 0.22rem 0.65rem !important;
    font-size: 0.75rem !important;
  }

  /* 4. Ultra-slim ticker */
  .live-ticker-strip {
    padding: 0.18rem 0.6rem !important;
    font-size: 0.72rem !important;
    height: 26px !important;
  }

  .ticker-chip {
    padding: 0.12rem 0.45rem !important;
    font-size: 0.72rem !important;
  }

  /* 5. Filter bar */
  .filter-bar {
    padding: 0.2rem 0.6rem !important;
  }

  .topic-tag-btn {
    padding: 0.15rem 0.45rem !important;
    font-size: 0.7rem !important;
  }

  /* 6. Main container & body spacing */
  body {
    padding-bottom: 44px !important;
  }

  .main-container {
    padding: 0.5rem 0.75rem 2.8rem !important;
  }

  /* 7. Hero card horizontal layout in landscape */
  .hero-section {
    margin-bottom: 1rem !important;
  }

  .hero-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    height: 180px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .hero-image-wrapper {
    width: 38% !important;
    height: 100% !important;
    min-height: 100% !important;
    flex-shrink: 0 !important;
  }

  .hero-body {
    width: 62% !important;
    padding: 0.65rem 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }

  .hero-title {
    font-size: 1.02rem !important;
    line-height: 1.25 !important;
    margin: 0.15rem 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .hero-description {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 0.35rem !important;
  }

  .hero-footer {
    margin-top: 0 !important;
    padding-top: 0.25rem !important;
  }

  /* 8. 2-column news grid in landscape */
  .news-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .card-media {
    height: 130px !important;
  }

  .card-content {
    padding: 0.65rem 0.75rem !important;
  }

  .card-title {
    font-size: 0.92rem !important;
    line-height: 1.3 !important;
  }

  .card-snippet {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
  }

  /* 9. Slim bottom navigation bar in landscape */
  .mobile-bottom-nav {
    height: 38px !important;
    padding: 0.1rem 0.5rem 0.15rem !important;
  }

  .nav-item {
    padding: 0.1rem 0.35rem !important;
    font-size: 0.62rem !important;
    gap: 0.05rem !important;
  }

  .nav-item svg {
    width: 15px !important;
    height: 15px !important;
  }

  .nav-item.nav-post-fab {
    width: 32px !important;
    height: 32px !important;
    margin-top: -8px !important;
  }

  .nav-item.nav-post-fab svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* 10. Modals in landscape: centered with scrollable body */
  dialog {
    max-height: 94vh !important;
    width: 94% !important;
    max-width: 660px !important;
    margin: auto !important;
    border-radius: 12px !important;
  }

  .dialog-header {
    padding: 0.55rem 0.85rem !important;
  }

  .dialog-body {
    max-height: 72vh !important;
    padding: 0.65rem 0.85rem !important;
  }

  .mandi-grid, .panchang-grid-two, .muhurat-section-grid, .rashifal-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
}


/* ==========================================================================
   Clean Redesign & Market Additions
   ========================================================================== */

/* Live Ticker Strip */
.live-ticker-strip {
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0.35rem 1rem;
  gap: 0.75rem;
  font-size: 0.8rem;
  position: relative;
  z-index: 9;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 800;
  color: var(--brand-green-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.ticker-track::-webkit-scrollbar {
  display: none;
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.65rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ticker-chip:hover {
  border-color: var(--brand-green);
  transform: translateY(-1px);
}

.ticker-chip.gold {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}

.ticker-chip.silver {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.ticker-chip.mandi {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #14532d;
}

.ticker-view-all-btn {
  background: none;
  border: none;
  color: var(--brand-green);
  font-weight: 800;
  font-size: 0.76rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
}

.ticker-view-all-btn:hover {
  text-decoration: underline;
}

/* Mandi & Gold Rates Button in Header */
.btn-mandi-rates {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mandi-rates:hover {
  background: #fef9c3;
  border-color: #facc15;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .btn-mandi-rates {
    display: none;
  }
}

/* Top bar teaser */
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.weather-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  cursor: pointer;
}

.top-market-teaser {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
}

@media (min-width: 900px) {
  .top-market-teaser {
    display: inline-flex;
  }
}

.teaser-divider {
  opacity: 0.4;
}

/* Auth status pill */
.auth-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.auth-status-pill.logged-in {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
}

.auth-status-pill.admin-logged-in {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.auth-status-pill:hover {
  border-color: var(--brand-green);
  transform: translateY(-1px);
}

/* Quick Access Boxes */
.quick-access-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.quick-access-box.admin {
  background: #fffbeb;
  border-color: #fde68a;
}

.btn-quick-fill {
  background: var(--brand-green);
  color: white;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-quick-fill.admin {
  background: #d97706;
}

.btn-quick-fill:hover {
  opacity: 0.9;
}

/* Mandi Modal Layout */
.market-modal {
  width: 92%;
  max-width: 680px;
}

.mandi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.market-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.market-box-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-green-dark);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.85rem;
}

.price-row:last-child {
  border-bottom: none;
}

.price-val {
  font-weight: 800;
  color: var(--text-primary);
}

.price-val.gold-c {
  color: #b45309;
}

/* Admin Dashboard Modal */
.admin-modal {
  width: 94%;
  max-width: 820px;
}

.admin-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.admin-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 0.4rem;
}

[data-theme="dark"] .admin-card-title {
  color: var(--brand-green-vibrant);
}

.admin-posts-list, .admin-reporters-list {
  max-height: 240px;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.admin-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.admin-del-btn {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-del-btn:hover {
  background: #fca5a5;
}

/* Profile Modal */
.profile-modal {
  width: 90%;
  max-width: 420px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.profile-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--brand-green);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-top: 0.25rem;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--brand-green);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-text-link:hover {
  text-decoration: underline;
}


/* ==========================================================================
   Hamburger & Side Navigation Drawer Styles
   ========================================================================== */
.hamburger-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: var(--bg-subtle);
  color: var(--brand-green);
}

.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.side-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.side-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: var(--bg-surface-elevated);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.drawer-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.drawer-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-green-dark);
}

[data-theme="dark"] .drawer-title {
  color: var(--brand-green-vibrant);
}

.drawer-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.drawer-auth-card {
  margin-bottom: 1rem;
}

.drawer-section-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 1.1rem 0 0.5rem;
}

.drawer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: none;
  border: none;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-menu-item:hover, .drawer-menu-item.active {
  background: var(--bg-subtle);
  color: var(--brand-green);
}

.drawer-item-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.drawer-item-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: #dcfce7;
  color: #15803d;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.drawer-footer-info {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================================
   VEDIC PANCHANG, MUHURAT & RASHIFAL STYLES
   ======================================================== */

/* Panchang Button in Header */
.btn-panchang-rates {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fdf4ff;
  color: #7e22ce;
  border: 1px solid #f0abfc;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-panchang-rates:hover {
  background: #fae8ff;
  border-color: #d946ef;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-panchang-rates {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.3);
}

@media (max-width: 768px) {
  .btn-panchang-rates {
    display: none;
  }
}

/* Live Ticker Panchang Chip */
.ticker-chip.panchang {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #6b21a8;
}

[data-theme="dark"] .ticker-chip.panchang {
  background: rgba(147, 51, 234, 0.15);
  border-color: rgba(147, 51, 234, 0.3);
  color: #d8b4fe;
}

/* Panchang Modal & Tabs */
.panchang-modal {
  width: 94%;
  max-width: 760px;
}

.panchang-tabs-nav {
  display: flex;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem 0;
  gap: 0.5rem;
}

.panchang-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.panchang-tab-btn.active {
  color: #7e22ce;
  border-bottom-color: #7e22ce;
}

[data-theme="dark"] .panchang-tab-btn.active {
  color: #c084fc;
  border-bottom-color: #c084fc;
}

/* Panchang Highlights Card */
.panchang-card-highlight {
  background: linear-gradient(135deg, rgba(253, 244, 255, 0.85), rgba(243, 232, 255, 0.7));
  border: 1px solid rgba(216, 180, 254, 0.7);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

[data-theme="dark"] .panchang-card-highlight {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.35), rgba(59, 7, 100, 0.25));
  border-color: rgba(168, 85, 247, 0.35);
}

.panchang-date-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(168, 85, 247, 0.35);
}

.panchang-date-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #581c87;
}

[data-theme="dark"] .panchang-date-title {
  color: #e9d5ff;
}

.panchang-grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.panchang-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .panchang-detail-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Muhurat Section Cards */
.muhurat-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.muhurat-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.muhurat-box-title {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.muhurat-box-title.shubh {
  color: #15803d;
}

.muhurat-box-title.ashubh {
  color: #b91c1c;
}

.muhurat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.85rem;
}

.muhurat-item:last-child {
  border-bottom: none;
}

.muhurat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.muhurat-badge.shubh {
  background: #dcfce7;
  color: #15803d;
}

.muhurat-badge.ashubh {
  background: #fee2e2;
  color: #b91c1c;
}

/* Rashifal 12 Cards Grid */
.rashifal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.rashifal-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.rashifal-card:hover {
  transform: translateY(-2px);
  border-color: #a855f7;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.rashifal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.rashifal-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #6b21a8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="dark"] .rashifal-title {
  color: #c084fc;
}

.rashifal-badges {
  display: flex;
  gap: 0.35rem;
}

.rashifal-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 600;
}

.rashifal-reading {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
