/* ==========================================================================
   State360 Ultra-Premium Design System & Theme Engine (Poppins Font Family)
   ========================================================================== */

:root {
  /* Color Palette - Light Theme with Subtle Premium Blue Tint */
  --bg-primary: #edf3fc;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;


  --bs-body-color: #0f172a;
  --bs-body-color-rgb: 15, 23, 42;

  --border-color: #e2e8f0;
  --border-glass: rgba(226, 232, 240, 0.8);

  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --hero-bg-gradient: linear-gradient(135deg,
      #050810 0%,
      #0b1220 25%,
      #111c38 48%,
      #1b2860 68%,
      #29216f 84%,
      #33276f 100%);
  --page-hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #172554 100%);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --silver-gradient: linear-gradient(135deg, #64748b 0%, #475569 100%);
  --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --hero-gradient-text: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);

  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 20px 30px -10px rgba(37, 99, 235, 0.15), 0 10px 15px -5px rgba(15, 23, 42, 0.06);
  --btn-shadow-primary: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
  --btn-shadow-hover: 0 8px 22px 0 rgba(37, 99, 235, 0.45);
  --glow-primary: 0 0 20px rgba(37, 99, 235, 0.15);

  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
}

[data-theme="dark"] {
  /* Color Palette - Ultra Premium Dark Theme High Contrast */
  --bg-primary: #070a12;
  --bg-surface: #0f172a;
  --bg-elevated: #1a2234;
  --bg-card: #121827;
  --bg-glass: rgba(15, 23, 42, 0.85);

  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e1;

  --border-color: #242f46;
  --border-glass: rgba(255, 255, 255, 0.08);

  --accent-primary: #3b82f6;
  --accent-primary-hover: #60a5fa;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --hero-bg-gradient: linear-gradient(135deg, #050810 0%, #0d1322 50%, #151c33 100%);
  --page-hero-gradient: linear-gradient(135deg, #0b1120 0%, #141d33 60%, #1e1b4b 100%);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --silver-gradient: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  --danger-gradient: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  --hero-gradient-text: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);

  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 20px 35px -5px rgba(59, 130, 246, 0.25);
  --btn-shadow-primary: 0 4px 16px 0 rgba(59, 130, 246, 0.4);
  --btn-shadow-hover: 0 8px 25px 0 rgba(59, 130, 246, 0.55);
  --glow-primary: 0 0 30px rgba(59, 130, 246, 0.2);

  --bs-secondary-color: #cbd5e1;
  --bs-body-color: #f8fafc;
  --bs-body-color-rgb: 248, 250, 252;
}

/* Base Reset & Typography (Poppins Font Family) */
body {
  background-color: #132a60;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] body {
  background-color: var(--bg-primary);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-wrapper {
  flex: 1;
}

/* Explicit text-body & text-muted Class Overrides for High Legibility across themes */
.text-body {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .text-body {
  color: #f8fafc !important;
}

.text-muted {
  color: #cbd5e1 !important;
}

.card-custom .text-muted,
.card .text-muted,
.bg-card .text-muted,
.bg-surface .text-muted,
.bg-white .text-muted,
footer .text-muted,
.site-footer .text-muted {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .card-custom .text-muted,
[data-theme="dark"] .card .text-muted,
[data-theme="dark"] footer .text-muted,
[data-theme="dark"] .site-footer .text-muted {
  color: #cbd5e1 !important;
}

/* Gradient Text Utilities */
.text-gradient-hero {
  background: var(--hero-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Ultra Premium Buttons */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--accent-gradient) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: var(--btn-shadow-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  color: #ffffff !important;
}

.btn-outline-primary {
  background: var(--bg-elevated);
  border: 1.5px solid var(--accent-primary) !important;
  color: var(--accent-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
  background: var(--accent-gradient) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-2px);
}

.btn-outline-danger {
  background: var(--bg-elevated);
  border: 1.5px solid #ef4444 !important;
  color: #ef4444 !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: var(--danger-gradient) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--bg-surface);
  border-color: var(--accent-primary) !important;
  color: var(--accent-primary) !important;
  transform: translateY(-2px);
}

/* =============================================
   ULTRA PREMIUM GLASSMORPHISM NAVBAR SYSTEM
   ============================================= */
.navbar-state360 {
  background-color: #ffffff !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--border-glass, rgba(226, 232, 240, 0.8));
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  padding: 0.65rem 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1030;
}

[data-theme="dark"] .navbar-state360 {
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Brand Logo Container & Animation */
.brand-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-logo-img {
  height: 40px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.25));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.navbar-brand:hover .site-logo-img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 6px 16px rgba(37, 99, 235, 0.4));
}

.brand-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 50rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  margin-left: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Nav Link Pill Styling */
.navbar-nav .nav-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem !important;
  margin: 0 0.15rem;
  border-radius: 50rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.navbar-nav .nav-link-pill:hover {
  color: var(--accent-primary) !important;
  background: var(--bg-surface, rgba(37, 99, 235, 0.08));
  border-color: rgba(37, 99, 235, 0.15);
  transform: translateY(-1.5px);
}

.navbar-nav .nav-link-pill.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  border-color: transparent !important;
}

[data-theme="dark"] .navbar-nav .nav-link-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

/* Nav Icon Wrappers with Distinct Accents */
.nav-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.nav-link-pill:hover .nav-icon-wrap {
  transform: scale(1.15) rotate(5deg);
}

.icon-states {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.icon-gold {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.icon-silver {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
}

.icon-shutdown {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.icon-bank {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.12);
}

.icon-public {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.nav-link-pill.active .nav-icon-wrap {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Ultra Premium Theme Toggle Button */
.theme-btn-premium {
  background: var(--bg-elevated, rgba(255, 255, 255, 0.9));
  border: 1px solid var(--border-color, rgba(226, 232, 240, 0.8));
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  border-radius: 50rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-btn-premium:hover {
  transform: translateY(-1.5px) scale(1.03);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .theme-btn-premium {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

[data-theme="dark"] .theme-btn-premium:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile Toggler */
.navbar-toggler-premium {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.4rem 0.65rem;
  color: var(--accent-primary);
  transition: all 0.2s ease;
}

.navbar-toggler-premium:hover {
  background: var(--bg-surface);
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

/* Ultra Premium Light-Dark Midnight Hero Section */
.hero-section {
  position: relative;
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--hero-bg-gradient);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px -15px rgba(11, 17, 32, 0.6);
  color: #ffffff;
  overflow: hidden;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5 {
  color: #ffffff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--card-shadow);
  font-size: 0.85rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 35%, #93c5fd 70%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.text-gradient-hero,
.hero-title .text-gradient-hero {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 30%, #a855f7 65%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  filter: drop-shadow(0 0 25px rgba(96, 165, 250, 0.4));
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #cbd5e1 !important;
  max-width: 650px;
  line-height: 1.6;
}

/* Hero Calculator / Instant Location Selector Card */
.hero-calculator-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.75) 0%, rgba(11, 18, 32, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(5, 8, 16, 0.6), 0 0 30px rgba(59, 130, 246, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.hero-calculator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

.hero-calculator-card:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 25px 50px rgba(5, 8, 16, 0.75), 0 0 40px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.hero-calc-subtext {
  color: #94a3b8;
}

.hero-calc-label {
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.hero-calc-select {
  background-color: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(96, 165, 250, 0.3) !important;
  color: #f8fafc !important;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.hero-calc-select:focus {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.35) !important;
  color: #ffffff !important;
}

.hero-calc-select option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

.hero-calc-badge {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #93c5fd !important;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 2rem;
  transition: all 0.2s ease;
  display: inline-block;
  margin-top: 0.25rem;
}

.hero-calc-badge:hover {
  background: rgba(59, 130, 246, 0.35);
  border-color: #60a5fa;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.hero-calc-datasource-link {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.hero-calc-datasource-link:hover {
  color: #60a5fa !important;
  transform: translateX(3px);
}

/* Dedicated Inner Page Hero Header (Ultra Premium Midnight Gradient Backdrop) */
.page-hero {
  position: relative;
  padding: 3rem 2.25rem;
  border-radius: var(--radius-xl);
  background: var(--hero-bg-gradient);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 20px 40px -15px rgba(11, 17, 32, 0.6), 0 0 25px rgba(59, 130, 246, 0.15);
  color: #ffffff;
  margin-bottom: 2rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero h4,
.page-hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 35%, #93c5fd 70%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.page-hero p,
.page-hero .text-muted {
  color: #cbd5e1 !important;
}

/* Attractive Breadcrumb Container */
.breadcrumb-custom {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}

.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before {
  content: "›";
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0 0.5rem;
}

.breadcrumb-custom a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.breadcrumb-custom a:hover {
  color: var(--accent-primary);
}

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Premium Related Links Card Component */
.related-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
}

.related-link-card:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-primary);
  transform: translateX(6px);
  box-shadow: var(--card-shadow-hover);
  color: var(--accent-primary);
}

.related-link-card .link-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-primary);
  margin-right: 0.85rem;
  transition: all 0.25s ease;
}

.related-link-card:hover .link-icon {
  background: var(--accent-gradient);
  color: #ffffff;
}

/* ==========================================================================
   Ultra-Premium Markdown Content Typography & Headings (.seo-markdown-body)
   ========================================================================== */
.seo-markdown-body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 0.975rem;
}

.seo-markdown-body h1,
.seo-markdown-body h2 {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 1.85rem;
  margin-bottom: 1rem;
  padding-left: 0.85rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.seo-markdown-body h1::before,
.seo-markdown-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 4px;
  background: var(--accent-gradient);
  border-radius: 4px;
}

.seo-markdown-body h3 {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.seo-markdown-body h3::before {
  content: '▸';
  font-size: 1.1rem;
  color: var(--accent-primary);
}

.seo-markdown-body h4,
.seo-markdown-body h5,
.seo-markdown-body h6 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.seo-markdown-body p {
  margin-bottom: 1.15rem;
  color: var(--text-secondary);
}

.seo-markdown-body strong {
  font-weight: 700;
  color: var(--text-primary);
}

.seo-markdown-body ul,
.seo-markdown-body ol {
  padding-left: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.seo-markdown-body li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.seo-markdown-body li::marker {
  color: var(--accent-primary);
  font-weight: bold;
}

.seo-markdown-body blockquote {
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
  box-shadow: var(--card-shadow);
}

.seo-markdown-body code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background-color: var(--bg-elevated);
  color: var(--accent-primary);
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
}

.seo-markdown-body a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.seo-markdown-body a:hover {
  color: var(--accent-primary-hover);
}

/* Glassmorphism Cards */
.card-custom {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-custom:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
}

/* Form Controls in Light and Dark Mode */
.form-select,
.form-control {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.form-select:focus,
.form-control:focus {
  background-color: var(--bg-elevated);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: var(--glow-primary);
}

/* Dark Mode Form Select Option Contrast Fix */
[data-theme="dark"] select option {
  background-color: #141b2d;
  color: #f8fafc;
}

/* Rate Pill Card */
.rate-val {
  font-family: 'Poppins', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Tables & Dark Mode Resolution */
.table-custom {
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
  font-family: 'Poppins', sans-serif;
}

.table-custom th {
  background-color: var(--bg-elevated) !important;
  color: var(--text-muted) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.table-custom td {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
  padding: 1rem;
  vertical-align: middle;
}

/* -------------------------------------------------------
   Override Bootstrap's internal CSS table variables
   for the custom data-theme="dark" toggle.
   Bootstrap sets --bs-table-bg: transparent and
   --bs-table-color to dark by default; these must
   be reassigned in dark mode.
   ------------------------------------------------------- */
[data-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-active-bg: rgba(255, 255, 255, 0.05);
  --bs-table-hover-bg: rgba(99, 102, 241, 0.1);
  --bs-table-color: #f8fafc;
  --bs-table-border-color: #242f46;
  color: #f8fafc;
  border-color: #242f46;
}

/* Force all cells (th & td) in any .table to use dark bg + light text */
[data-theme="dark"] .table> :not(caption)>*>* {
  background-color: var(--bg-card, #121827) !important;
  color: #f8fafc !important;
  border-bottom-color: #242f46 !important;
  box-shadow: none !important;
}

/* Table header darker shade */
[data-theme="dark"] .table>thead>*>th,
[data-theme="dark"] .table>thead>*>td {
  background-color: var(--bg-elevated, #1a2234) !important;
  color: #cbd5e1 !important;
  border-bottom-color: #3d4f6b !important;
}

/* Hover row highlight */
[data-theme="dark"] .table>tbody>tr:hover>* {
  background-color: rgba(99, 102, 241, 0.1) !important;
  color: #f8fafc !important;
}

/* Holiday-table specific hover with left accent */
[data-theme="dark"] .holiday-table>tbody>tr.holiday-row:hover>td {
  background-color: rgba(99, 102, 241, 0.12) !important;
  box-shadow: inset 3px 0 0 #3b82f6 !important;
}

/* Remove Bootstrap's default striped/hover table white overrides */
[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>* {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: #f8fafc !important;
}

/* table-responsive wrapper in dark mode */
[data-theme="dark"] .table-responsive {
  background-color: var(--bg-card, #121827);
}

/* Footer Styling */
footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

/* ==========================================================================
   Mobile Responsive Optimizations (Decreased Paddings & Margins)
   ========================================================================== */
@media (max-width: 768px) {

  /* Hero & Page Header Spacing */
  .hero-section {
    padding: 1.5rem 1.15rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: var(--radius-lg) !important;
  }

  .page-hero {
    padding: 1.5rem 1.15rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: var(--radius-lg) !important;
  }

  .hero-badge {
    margin-bottom: 0.75rem !important;
    padding: 0.35rem 0.85rem !important;
    font-size: 0.75rem !important;
  }

  .hero-title {
    font-size: 1.85rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.25 !important;
  }

  .hero-subtitle {
    font-size: 0.925rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.5 !important;
  }

  /* Card Padding Reduction */
  .card-custom {
    padding: 1.15rem !important;
    border-radius: var(--radius-md) !important;
  }

  .hero-calculator-card {
    padding: 1.15rem !important;
    border-radius: var(--radius-lg) !important;
  }

  /* Breadcrumb Spacing */
  .breadcrumb-custom {
    padding: 0.35rem 0.85rem !important;
    margin-bottom: 1rem !important;
    font-size: 0.8rem !important;
  }

  /* Section Spacing Utilities Override for Mobile */
  .mb-5 {
    margin-bottom: 1.5rem !important;
  }

  .mb-4 {
    margin-bottom: 1.15rem !important;
  }

  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .p-4,
  .p-md-5 {
    padding: 1.15rem !important;
  }

  .g-4,
  .gy-4 {
    --bs-gutter-y: 1rem !important;
    --bs-gutter-x: 1rem !important;
  }

  .g-3 {
    --bs-gutter-y: 0.75rem !important;
    --bs-gutter-x: 0.75rem !important;
  }

  /* Rate Value Font Size */
  .rate-val {
    font-size: 1.45rem !important;
  }

  /* Table Compactness */
  .table-custom th,
  .table-custom td {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.825rem !important;
  }

  /* Navigation Header Mobile Padding */
  .navbar-state360 {
    padding: 0.5rem 0 !important;
  }

  .container-fluid {
    padding-left: 0.70rem !important;
    padding-right: 0.70rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem !important;
  }

  .card-custom {
    padding: 1rem !important;
  }
}

/* =============================================
   HOLIDAY TABLE PREMIUM STYLES (DARK THEME COMPATIBLE)
   ============================================= */
.holiday-table {
  border-collapse: separate;
  border-spacing: 0;
}

.holiday-table thead th {
  background: var(--bg-elevated, #f8fafc);
  color: var(--text-muted, #6c757d);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-color);
}

.holiday-table tbody tr.holiday-row {
  transition: background 0.15s ease, box-shadow 0.15s ease;
  border-bottom: 1px solid var(--border-color);
}

.holiday-table tbody tr.holiday-row:hover {
  background: rgba(99, 102, 241, 0.06);
  box-shadow: inset 3px 0 0 var(--accent-primary, #6366f1);
}

.holiday-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

/* Dark theme table overrides */
[data-theme="dark"] .holiday-table thead th {
  background: var(--bg-elevated, #1a2234);
  color: var(--text-muted, #cbd5e1);
}

[data-theme="dark"] .holiday-table tbody tr.holiday-row:hover {
  background: rgba(99, 102, 241, 0.12);
}

/* Date badge component */
.holiday-date-badge {
  min-width: 38px;
  text-align: center;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border-radius: 8px;
  padding: 4px 6px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.holiday-date-badge .day-num {
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 700;
}

.holiday-date-badge .month-name {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Bootstrap subtle badge & emphasis overrides for light theme */
.text-primary-emphasis {
  color: #1d4ed8 !important;
}

.text-info-emphasis {
  color: #0284c7 !important;
}

.text-warning-emphasis {
  color: #b45309 !important;
}

.text-success-emphasis {
  color: #15803d !important;
}

.text-danger-emphasis {
  color: #b91c1c !important;
}

.text-secondary-emphasis {
  color: #475569 !important;
}

/* Bootstrap subtle badge overrides for dark theme */
[data-theme="dark"] .bg-primary-subtle {
  background-color: rgba(59, 130, 246, 0.18) !important;
}

[data-theme="dark"] .text-primary,
[data-theme="dark"] .text-primary-emphasis {
  color: #60a5fa !important;
}

[data-theme="dark"] .border-primary-subtle {
  border-color: rgba(59, 130, 246, 0.3) !important;
}

[data-theme="dark"] .bg-secondary-subtle {
  background-color: rgba(100, 116, 139, 0.2) !important;
}

[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-secondary-emphasis {
  color: #94a3b8 !important;
}

[data-theme="dark"] .border-secondary-subtle {
  border-color: rgba(100, 116, 139, 0.3) !important;
}

[data-theme="dark"] .bg-info-subtle {
  background-color: rgba(14, 165, 233, 0.18) !important;
}

[data-theme="dark"] .text-info,
[data-theme="dark"] .text-info-emphasis {
  color: #38bdf8 !important;
}

[data-theme="dark"] .border-info-subtle {
  border-color: rgba(14, 165, 233, 0.3) !important;
}

[data-theme="dark"] .bg-danger-subtle {
  background-color: rgba(239, 68, 68, 0.15) !important;
}

[data-theme="dark"] .text-danger,
[data-theme="dark"] .text-danger-emphasis {
  color: #f87171 !important;
}

[data-theme="dark"] .border-danger-subtle {
  border-color: rgba(239, 68, 68, 0.3) !important;
}

[data-theme="dark"] .bg-warning-subtle {
  background-color: rgba(245, 158, 11, 0.15) !important;
}

[data-theme="dark"] .text-warning,
[data-theme="dark"] .text-warning-emphasis {
  color: #fbbf24 !important;
}

[data-theme="dark"] .border-warning-subtle {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

[data-theme="dark"] .bg-warning-subtle .text-dark {
  color: #fbbf24 !important;
}

[data-theme="dark"] .badge.bg-warning {
  background-color: #f59e0b !important;
  color: #0f172a !important;
}

[data-theme="dark"] .text-body-emphasis {
  color: #f8fafc !important;
}

[data-theme="dark"] .text-body-secondary {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .bg-success-subtle {
  background-color: rgba(34, 197, 94, 0.15) !important;
}

[data-theme="dark"] .text-success,
[data-theme="dark"] .text-success-emphasis {
  color: #4ade80 !important;
}

[data-theme="dark"] .border-success-subtle {
  border-color: rgba(34, 197, 94, 0.3) !important;
}

[data-theme="dark"] .bg-primary-subtle {
  background-color: rgba(59, 130, 246, 0.15) !important;
}

[data-theme="dark"] .text-primary {
  color: #60a5fa !important;
}

[data-theme="dark"] .border-primary-subtle {
  border-color: rgba(59, 130, 246, 0.3) !important;
}

[data-theme="dark"] .bg-body-tertiary {
  background-color: var(--bg-elevated, #1a2234) !important;
}

[data-theme="dark"] .bg-body {
  background-color: var(--bg-surface, #0f172a) !important;
}

/* =============================================
   DISCLAIMER & DATA SOURCE BLOCK (DARK THEME COMPATIBLE)
   ============================================= */
.disclaimer-source-block {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.06);
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .disclaimer-source-block {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.disclaimer-icon {
  flex-shrink: 0;
}

/* =============================================
   ADMIN SEO PANEL & FORM DARK THEME FIXES
   ============================================= */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--bg-elevated, #1a2234) !important;
  border-color: var(--border-color, #242f46) !important;
  color: var(--text-primary, #f8fafc) !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: var(--bg-elevated, #1a2234) !important;
  border-color: var(--accent-primary, #3b82f6) !important;
  color: var(--text-primary, #f8fafc) !important;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .form-control::placeholder {
  color: var(--text-muted, #64748b) !important;
}

[data-theme="dark"] .input-group-text {
  background-color: var(--bg-elevated, #1a2234) !important;
  border-color: var(--border-color, #242f46) !important;
  color: var(--text-muted, #cbd5e1) !important;
}

[data-theme="dark"] .accordion-button {
  background-color: var(--bg-elevated, #1a2234) !important;
  color: var(--text-primary, #f8fafc) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: rgba(59, 130, 246, 0.1) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .accordion-button::after {
  filter: invert(1);
}

[data-theme="dark"] .accordion-item {
  background-color: transparent !important;
  border-color: var(--border-color, #242f46) !important;
}

[data-theme="dark"] .accordion-body {
  color: var(--text-muted, #cbd5e1) !important;
}

[data-theme="dark"] .modal-content {
  background-color: var(--bg-surface, #0f172a) !important;
  border-color: var(--border-color, #242f46) !important;
  color: var(--text-primary, #f8fafc) !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: var(--border-color, #242f46) !important;
}

[data-theme="dark"] .border {
  border-color: var(--border-color, #242f46) !important;
}

[data-theme="dark"] .border-bottom {
  border-bottom-color: var(--border-color, #242f46) !important;
}

/* =============================================
   SITE LOGO IMAGE IN HEADER/FOOTER
   ============================================= */
.site-logo-img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .site-logo-img {
    height: 28px;
    max-width: 90px;
  }

  .holiday-table thead th {
    font-size: 0.65rem;
    padding: 0.6rem 0.75rem;
  }

  .holiday-table tbody td {
    padding: 0.65rem 0.75rem;
  }

  .holiday-date-badge {
    min-width: 32px;
    padding: 3px 5px;
  }

  .holiday-date-badge .day-num {
    font-size: 0.85rem;
  }
}

/* =============================================
   POWER SHUTDOWN PAGE — PREMIUM STYLES
   ============================================= */

/* Stat Cards */
.shutdown-stat-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 1rem);
  padding: 1.1rem 1rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shutdown-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.shutdown-stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.shutdown-stat-card .stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.2rem;
  word-break: break-word;
}

.shutdown-stat-card .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Date Marker (left timeline dot) */
.shutdown-date-marker {
  min-width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  flex-shrink: 0;
}

.shutdown-date-marker.today {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  }

  50% {
    box-shadow: 0 4px 22px rgba(245, 158, 11, 0.7);
  }
}

.shutdown-date-marker .day-num {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.shutdown-date-marker .month-name {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

/* Timeline connector line */
.shutdown-time-range {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated, #f8fafc);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
}

[data-theme="dark"] .shutdown-time-range {
  background: var(--bg-elevated, #1a2234);
}

/* Outage Card */
.shutdown-outage-card {
  border-left: 3px solid #ef4444 !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.shutdown-outage-card:hover {
  box-shadow: var(--card-shadow-hover) !important;
  transform: translateX(3px);
}

/* Card header bar */
.shutdown-card-header {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(239, 68, 68, 0.02) 100%);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .shutdown-card-header {
  background: rgba(239, 68, 68, 0.08);
}

/* Substation icon */
.shutdown-sub-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* Time badge inside card */
.shutdown-time-badge {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Label pill */
.shutdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-elevated, #f1f5f9);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .shutdown-label {
  background: var(--bg-elevated, #1a2234);
}

/* Affected Area Tag */
.shutdown-area-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-primary, #6366f1);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  transition: background 0.15s ease;
}

.shutdown-area-tag:hover {
  background: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .shutdown-area-tag {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

/* Search bar box */
#shutdown-search {
  font-size: 0.95rem;
  transition: box-shadow 0.2s;
}

#shutdown-search:focus {
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.2) !important;
  border-color: var(--accent-primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .shutdown-time-range {
    display: none;
  }

  .shutdown-stat-card .stat-number {
    font-size: 1.1rem;
  }

  .shutdown-date-marker {
    min-width: 44px;
    height: 44px;
    border-radius: 9px;
  }

  .shutdown-date-marker .day-num {
    font-size: 1rem;
  }

  .shutdown-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
}

/* =============================================
   CHENNAI AREA-WISE POWER STATUS & BANNER STYLES
   ============================================= */

/* Status Banner Cards */
.status-banner-card {
  position: relative;
  border-radius: var(--radius-xl, 1.5rem);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.status-banner-success {
  background: #ffffff;
  border: 1.5px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
}

.status-banner-success .status-banner-title {
  color: #047857 !important;
}

.status-banner-success .status-banner-desc {
  color: #334155 !important;
}

.status-banner-success .status-banner-desc strong {
  color: #047857 !important;
}

.status-banner-success .status-banner-metric-item {
  color: #047857 !important;
}

.status-banner-success .status-banner-badge {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

/* Disclaimer & Data Source Block Styling */
.disclaimer-source-block {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

[data-theme="dark"] .disclaimer-source-block {
  background: var(--bg-card, #121827);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Dark Mode Overrides for Status Banner */
[data-theme="dark"] .status-banner-success {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.5) 0%, rgba(6, 95, 70, 0.3) 100%) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  box-shadow: 0 15px 35px -10px rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .status-banner-success .status-banner-title {
  color: #34d399 !important;
}

[data-theme="dark"] .status-banner-success .status-banner-desc {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .status-banner-success .status-banner-desc strong {
  color: #6ee7b7 !important;
}

[data-theme="dark"] .status-banner-success .status-banner-metric-item {
  color: #a7f3d0 !important;
}

[data-theme="dark"] .status-banner-success .status-banner-badge {
  background-color: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
}

[data-theme="dark"] .status-banner-success .border-top {
  border-color: rgba(52, 211, 153, 0.25) !important;
}

/* Pulsing Status Beacon */
.status-beacon-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-beacon-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: beacon-pulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
  display: inline-block;
}

@keyframes beacon-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Zone Filter Pills */
.zone-pill-btn {
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 2rem;
  padding: 0.35rem 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.zone-pill-btn.active {
  background: var(--accent-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Chennai Area Status Box Cards */
.chennai-area-status-box {
  padding: 0.85rem 1rem !important;
  border-radius: var(--radius-md, 0.75rem) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chennai-area-status-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.chennai-area-status-box.normal-active {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

[data-theme="dark"] .chennai-area-status-box.normal-active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.chennai-area-status-box.outage-active {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
}

/* =============================================
   ULTRA-PREMIUM SHUTDOWN FILTER CONTAINER STYLES
   ============================================= */
.shutdown-filter-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.shutdown-filter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 35%, #3b82f6 70%, #6366f1 100%);
}

[data-theme="dark"] .shutdown-filter-card {
  background: var(--bg-card, #121827);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Custom Date Input Pill */
.shutdown-date-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--bg-elevated, #f8fafc);
  border: 1.5px solid var(--border-color);
  border-radius: 2rem;
  padding: 0.2rem 0.65rem;
  transition: all 0.25s ease;
}

.shutdown-date-picker-wrap:focus-within,
.shutdown-date-picker-wrap:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .shutdown-date-picker-wrap {
  background: var(--bg-elevated, #1a2234);
  border-color: rgba(255, 255, 255, 0.15);
}

#shutdown-date-select {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.15rem 0.25rem;
  outline: none !important;
  box-shadow: none !important;
}

/* Holiday Custom Date Input Pill */
.holiday-date-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--bg-elevated, #f8fafc);
  border: 1.5px solid var(--border-color);
  border-radius: 2rem;
  padding: 0.25rem 0.75rem;
  min-width: 160px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.holiday-date-picker-wrap:focus-within,
.holiday-date-picker-wrap:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .holiday-date-picker-wrap {
  background: var(--bg-elevated, #1a2234);
  border-color: rgba(255, 255, 255, 0.15);
}

#holiday-custom-date {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.15rem 0.25rem;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  width: 100%;
}

/* Search Box Container */
.shutdown-search-box {
  background: var(--bg-elevated, #f8fafc);
  border: 1.5px solid var(--border-color);
  border-radius: 2rem;
  padding: 0.35rem 0.85rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.shutdown-search-box:focus-within {
  border-color: var(--accent-primary) !important;
  background: var(--bg-surface) !important;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.25) !important;
}

[data-theme="dark"] .shutdown-search-box {
  background: var(--bg-elevated, #1a2234);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .shutdown-search-box:focus-within {
  background: #0f172a !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.3) !important;
}

#shutdown-search {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary) !important;
}

#shutdown-search::placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Scrollbar Hiding Utility */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Skeleton Loading Shimmer Utility */
.skeleton-shimmer {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer-anim 1.4s ease infinite;
  border-radius: 0.5rem;
  display: inline-block;
  min-height: 1.2rem;
  width: 100%;
}

[data-theme="dark"] .skeleton-shimmer {
  background: linear-gradient(90deg, #1e293b 25%, #334155 37%, #1e293b 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer-anim 1.4s ease infinite;
}

@keyframes skeleton-shimmer-anim {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

/* Premium Gold Rate Filter Section & Search Box */
.gold-filter-panel {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(217, 119, 6, 0.02) 50%, rgba(37, 99, 235, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.08);
  transition: all 0.3s ease;
}

[data-theme="dark"] .gold-filter-panel {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(30, 27, 75, 0.4) 100%);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 35px -10px rgba(245, 158, 11, 0.15);
}

.gold-search-box {
  background: var(--bg-surface);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 50rem;
  padding: 0.3rem 0.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.gold-search-box:focus-within {
  border-color: #f59e0b !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35) !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .gold-search-box {
  background: #0f172a;
  border-color: rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .gold-search-box:focus-within {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.45) !important;
}

.quick-city-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 50rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.quick-city-chip:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.quick-city-chip.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #000000 !important;
  border-color: #d97706 !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .quick-city-chip {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .quick-city-chip:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  color: #fbbf24;
}

[data-theme="dark"] .quick-city-chip.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #000000 !important;
  border-color: #fbbf24 !important;
}

.spin-icon {
  display: inline-block;
  animation: spin-pulse 3s linear infinite;
}

@keyframes spin-pulse {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Row Flash Highlight */
@keyframes row-flash-anim {
  0% {
    background-color: rgba(245, 158, 11, 0.45) !important;
  }

  50% {
    background-color: rgba(245, 158, 11, 0.25) !important;
  }

  100% {
    background-color: transparent;
  }
}

.table-row-highlight {
  animation: row-flash-anim 2.5s ease-out;
}

/* ==========================================================================
   State360 Ultra-Premium Navigation Bar (Glassmorphic Dock Design System)
   ========================================================================== */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* Centralized Responsive Container-Fluid Padding System */
/* .container-fluid {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
} */

@media (min-width: 992px) {
  .container-fluid {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (min-width: 1400px) {
  .container-fluid {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

header.navbar-state360,
.navbar-state360 {
  position: sticky !important;
  top: 0 !important;
  z-index: 1080 !important;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 100%;
}

[data-theme="dark"] .navbar-state360 {
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Ensure Hero & Body Sections Stay Below Navbar in Stacking Context */
.main-wrapper,
.hero-section,
.page-hero {
  position: relative;
  z-index: 1;
}

/* Brand Styling */
.navbar-state360 .navbar-brand {
  position: relative;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.navbar-state360 .navbar-brand:hover {
  transform: translateY(-1px);
}

.brand-logo-container {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(79, 70, 229, 0.12) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.site-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo-icon i,
.brand-logo-icon [class*="bi-"] {
  color: inherit;
  -webkit-text-fill-color: currentcolor !important;
}

/* Ensure all Bootstrap Icons across the platform render with computed color */
.bi,
i[class*="bi-"] {
  -webkit-text-fill-color: currentcolor;
}

.navbar-brand:hover .brand-logo-container {
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.35);
  border-color: rgba(37, 99, 235, 0.5);
  transform: scale(1.04);
}

.brand-title {
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 35%, #0284c7 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.65rem !important;
  filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.25));
  transition: all 0.3s ease;
}

[data-theme="dark"] .brand-title {
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 35%, #38bdf8 70%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.4));
}

.navbar-brand:hover .brand-title {
  filter: drop-shadow(0 4px 18px rgba(56, 189, 248, 0.5));
}

.brand-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 0.18rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 50rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(79, 70, 229, 0.12) 100%);
  color: var(--accent-primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
  text-transform: uppercase;
}

[data-theme="dark"] .brand-badge-premium {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Nav Pills Dock Container (Single Unbroken Row on Desktop) */
.navbar-state360 .navbar-nav {
  gap: 0.2rem;
  background: rgba(241, 245, 249, 0.65);
  padding: 0.25rem 0.35rem;
  border-radius: 50rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap !important;
  align-items: center;
  max-width: 100%;
}

[data-theme="dark"] .navbar-state360 .navbar-nav {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem !important;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary) !important;
  border-radius: 50rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.nav-link-pill:hover {
  color: var(--accent-primary) !important;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-link-pill:hover {
  color: #60a5fa !important;
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.nav-link-pill.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
  font-weight: 600;
}

[data-theme="dark"] .nav-link-pill.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}

/* Customized Nav Icon Wrappers with Specific Gradients */
.nav-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.nav-link-pill:hover .nav-icon-wrap {
  transform: scale(1.15) rotate(5deg);
}

/* Icon Gradient Variants */
.icon-states {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.icon-gold {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.icon-silver {
  background: rgba(100, 116, 139, 0.16);
  color: #475569;
}

.icon-shutdown {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
}

.icon-bank {
  background: rgba(99, 102, 241, 0.16);
  color: #6366f1;
}

.icon-public {
  background: rgba(244, 63, 94, 0.16);
  color: #f43f5e;
}

/* Active State Icons turn crisp white */
.nav-link-pill.active .nav-icon-wrap {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .icon-states {
  color: #34d399;
}

[data-theme="dark"] .icon-gold {
  color: #fbbf24;
}

[data-theme="dark"] .icon-silver {
  color: #cbd5e1;
}

[data-theme="dark"] .icon-shutdown {
  color: #f87171;
}

[data-theme="dark"] .icon-bank {
  color: #818cf8;
}

[data-theme="dark"] .icon-public {
  color: #fb7185;
}

/* Glassmorphic Dropdown Menu for Holidays (Desktop & Mobile) */
.dropdown-menu-glass {
  background: var(--bg-surface, rgba(255, 255, 255, 0.98)) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-color, rgba(226, 232, 240, 0.8)) !important;
  border-radius: 1.25rem !important;
  padding: 0.5rem !important;
  box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.25) !important;
  min-width: 250px;
  margin-top: 0.5rem !important;
  z-index: 1090 !important;
}

[data-theme="dark"] .dropdown-menu-glass {
  background: rgba(15, 23, 42, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8) !important;
}

.dropdown-menu-glass .dropdown-item {
  color: var(--text-primary);
  border-radius: 0.75rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu-glass .dropdown-item:hover {
  background: var(--bg-elevated, rgba(37, 99, 235, 0.08));
  color: var(--accent-primary);
  transform: translateX(3px);
}

[data-theme="dark"] .dropdown-menu-glass .dropdown-item {
  color: #f8fafc;
}

[data-theme="dark"] .dropdown-menu-glass .dropdown-item:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #60a5fa;
}

.dropdown-menu-glass .dropdown-item.active {
  background: var(--accent-gradient) !important;
  color: #ffffff !important;
}

.dropdown-menu-glass .dropdown-item.active .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Desktop Hover & Click Dropdown Support */
@media (min-width: 1200px) {

  .nav-item.dropdown:hover>.dropdown-menu,
  .nav-item.dropdown.show>.dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .nav-item.dropdown>.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  }
}

/* Theme Toggle Button */
.theme-btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.9rem;
  border-radius: 50rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(241, 245, 249, 0.85);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.theme-btn-premium:hover {
  background: #ffffff;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

[data-theme="dark"] .theme-btn-premium {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

[data-theme="dark"] .theme-btn-premium:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: #60a5fa;
  color: #60a5fa;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

/* Navbar Toggler */
.navbar-toggler-premium {
  width: 40px;
  height: 40px;
  border-radius: 50rem !important;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

[data-theme="dark"] .navbar-toggler-premium {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc;
}

.navbar-toggler-premium:hover {
  transform: scale(1.05);
  background: var(--bg-surface);
}

/* Ultra-Attractive Left-Aligned Mobile Dropdown & Menu Card Styling */
@media (max-width: 1199.98px) {
  .navbar-state360 .navbar-collapse {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.2);
    animation: mobileMenuSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-theme="dark"] .navbar-state360 .navbar-collapse {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.75);
  }

  @keyframes mobileMenuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.98);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .navbar-state360 .navbar-nav {
    background: transparent;
    border: none;
    padding: 0;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: none;
    margin-left: 0 !important;
    margin-right: auto !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100%;
  }

  .nav-link-pill {
    width: 100%;
    padding: 0.7rem 1.1rem !important;
    border-radius: 0.85rem !important;
    font-size: 0.92rem;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .navbar-state360 .dropdown-menu-glass {
    position: static !important;
    float: none !important;
    box-shadow: none !important;
    border: 1px solid var(--border-color) !important;
    background: rgba(241, 245, 249, 0.5) !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.25rem !important;
    padding: 0.5rem !important;
    border-radius: 0.85rem !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: 100%;
    text-align: left !important;
  }

  [data-theme="dark"] .navbar-state360 .dropdown-menu-glass {
    background: rgba(30, 41, 59, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }
}

.body-text {
  background: linear-gradient(135deg,
      #ffffff 0%,
      #dff6ff 22%,
      #67e8f9 42%,
      #c4b5fd 100%);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  display: inline-block;

  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

/* ==========================================================================
   ULTRA-PREMIUM FOOTER SYSTEM (.footer-state360)
   ========================================================================== */
.footer-state360 {
  position: relative;
  background: var(--bg-card, #ffffff);
  border-top: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 -10px 30px -10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

[data-theme="dark"] .footer-state360 {
  background: var(--bg-card, #0f172a);
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 -15px 40px -10px rgba(0, 0, 0, 0.5);
}

.footer-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 35%, #06b6d4 70%, #10b981 100%);
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 50rem;
  background: var(--bg-elevated, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .footer-trust-badge {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.footer-column-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease, color 0.25s ease;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--accent-primary) !important;
  transform: translateX(4px);
}

.footer-link:hover .footer-link-arrow {
  color: var(--accent-primary);
  transform: translateX(2px);
}

[data-theme="dark"] .footer-link:hover {
  color: #60a5fa !important;
}

[data-theme="dark"] .footer-link:hover .footer-link-arrow {
  color: #60a5fa;
}

.footer-bottom-bar {
  border-top-color: var(--border-color, #e2e8f0) !important;
}

[data-theme="dark"] .footer-bottom-bar {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}