/* ==============================================================================
   PRO MASTER GURU DESIGN SYSTEM - LIGHT EXECUTIVE THEME (lpggasprice.pk)
   Clean Modern High-Contrast Energy & Regulatory Intelligence Portal
   WCAG 2.2 AAA Contrast Standards • Zero Cumulative Layout Shift (CLS: 0.00)
============================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  --bg-deep: #f8fafc;
  --bg-base: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --border-card: #cbd5e1;
  --border-focus: #0284c7;

  --text-main: #1e293b;
  --text-bright: #0f172a;
  
  --neon-emerald: #059669;
  --accent-green: #059669;
  --accent-green-light: #059669;
  --accent-green-hover: #047857;

  --cyan-blue: #0284c7;
  --accent-blue: #0284c7;
  --accent-blue-light: #0284c7;

  --gold-bright: #d97706;
  --accent-amber-light: #d97706;

  --crimson-alert: #dc2626;
  
  --text-heading: #0f172a;
  --text-body: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;

  --emerald-main: #059669;
  --emerald-bright: #10b981;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;

  --cyan-main: #0284c7;
  --cyan-bright: #0ea5e9;
  --cyan-light: #f0f9ff;
  --cyan-border: #bae6fd;

  --amber-main: #d97706;
  --amber-bright: #f59e0b;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;

  --crimson-main: #dc2626;
  --crimson-bright: #ef4444;
  --crimson-light: #fef2f2;
  --crimson-border: #fecaca;

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-strong: #94a3b8;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

p, span, h1, h2, h3, h4, h5, h6, li, td, th, div, button, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(99, 102, 241, 0.03) 0px, transparent 50%);
}

a {
  color: var(--cyan-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

a:hover, a:focus {
  color: var(--emerald-main);
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-link img {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.brand-link:hover img {
  transform: scale(1.02);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-heading);
  background: var(--bg-subtle);
  text-decoration: none;
}

.nav-link.active {
  color: var(--emerald-main);
  background: var(--emerald-light);
}

.nav-desktop-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.6rem 1.35rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.nav-desktop-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.hamburger-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-heading);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.mobile-menu-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 2px solid var(--emerald-main);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.mobile-menu-drawer.active {
  display: block;
}

.mobile-menu-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-drawer a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.mobile-cta-btn {
  margin-top: 1rem;
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff !important;
  font-weight: 800;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none !important;
}

/* Layout */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 5rem;
  width: 100%;
}

.hero-section {
  margin-bottom: 2.5rem;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--emerald-light);
  color: var(--emerald-main);
  border: 1px solid var(--emerald-border);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-main);
  box-shadow: 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.page-title {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.15rem;
  color: var(--text-heading);
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 920px;
  margin-bottom: 2rem;
  line-height: 1.68;
}

/* ==============================================================================
   TOP INTERACTIVE TOOL: REAL-TIME CITY LPG RATE & REFILL STATION
============================================================================== */
.hero-station-tool {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2.75rem;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.station-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.station-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.785rem;
  font-weight: 800;
  color: var(--emerald-main);
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ip-detect-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cyan-light);
  border: 1px solid var(--cyan-border);
  color: var(--cyan-main);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.station-heading {
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: -0.3px;
  margin-bottom: 0.35rem;
}

.station-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.station-time-pill {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Search Box */
.station-search-box {
  position: relative;
  margin-bottom: 1.15rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  font-size: 1.1rem;
  color: var(--text-dim);
  pointer-events: none;
}

.city-search-field {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 3rem;
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.city-search-field:focus {
  border-color: var(--cyan-main);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 1.15rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
}

.clear-search-btn:hover {
  color: var(--text-heading);
}

.city-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--cyan-border);
  border-radius: var(--radius-md);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-xl);
  margin-top: 0.35rem;
}

.search-matches-list {
  display: flex;
  flex-direction: column;
}

.search-match-item {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-match-item:last-child {
  border-bottom: none;
}

.search-match-item:hover {
  background: var(--cyan-light);
}

/* Province Tabs */
.province-filter-nav {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
}

.prov-tab-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.prov-tab-btn:hover {
  color: var(--text-heading);
  background: var(--bg-muted);
}

.prov-tab-btn.active {
  background: var(--cyan-main);
  color: #ffffff;
  border-color: var(--cyan-main);
  font-weight: 800;
}

/* City Scroller */
.city-pill-scroller {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 0.75rem;
  margin-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.city-select-pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  padding: 0.55rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.city-select-pill:hover {
  background: var(--cyan-light);
  border-color: var(--cyan-bright);
}

.city-select-pill.active {
  background: var(--emerald-light);
  border-color: var(--emerald-main);
  color: var(--emerald-main);
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--emerald-border);
}

.pill-rate {
  font-size: 0.775rem;
  font-weight: 800;
  color: var(--amber-main);
  margin-left: 0.35rem;
}

.all-cities-dropdown-row {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

/* Capacity Row */
.station-capacity-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.capacity-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.weight-select-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weight-select-pill:hover {
  background: var(--bg-muted);
}

.weight-select-pill.active {
  background: var(--cyan-main);
  color: #ffffff;
  border-color: var(--cyan-main);
  font-weight: 800;
}

.custom-weight-input-row {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Rates Grid */
.station-rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.rate-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-md);
  min-width: 0;
  overflow: hidden;
}

.rate-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.official-card {
  background: var(--emerald-light);
  border: 1.5px solid var(--emerald-border);
}

.retail-card {
  background: var(--crimson-light);
  border: 1.5px solid var(--crimson-border);
}

.variance-card {
  background: var(--amber-light);
  border: 1.5px solid var(--amber-border);
}

.rate-card-badge {
  font-size: 0.785rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.official-badge { color: var(--emerald-main); }
.retail-badge { color: var(--crimson-main); }
.variance-badge { color: var(--amber-main); }

.rate-metric-row {
  margin-bottom: 0.5rem;
}

.rate-unit-price {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.official-card .rate-unit-price { color: var(--emerald-main); }
.retail-card .rate-unit-price { color: var(--crimson-main); }

.rate-cylinder-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-top: 0.35rem;
}

.variance-total {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 900;
  color: var(--amber-main);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.variance-sub {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--amber-main);
  margin-bottom: 0.5rem;
}

.rate-card-meta {
  font-size: 0.825rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Actions Bar */
.station-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.action-info {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.action-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-action {
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-call {
  background: var(--emerald-main);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-call:hover {
  background: #047857;
  transform: translateY(-1px);
}

.btn-verify {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  color: var(--text-heading) !important;
}

.btn-verify:hover {
  border-color: var(--cyan-main);
  background: var(--cyan-light);
}

.btn-complaint {
  background: var(--crimson-light);
  border: 1px solid var(--crimson-border);
  color: var(--crimson-main) !important;
}

.btn-complaint:hover {
  background: #fee2e2;
}

/* Above-The-Fold Intent Cards */
.above-fold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.direct-answer-card {
  background: var(--cyan-light);
  border: 1.5px solid var(--cyan-border);
  border-left: 6px solid var(--cyan-main);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-md);
}

.direct-answer-title {
  color: var(--cyan-main);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.direct-answer-content {
  font-size: 0.975rem;
  color: #0c4a6e;
  line-height: 1.65;
}

.alert-card {
  background: var(--crimson-light);
  border: 1.5px solid var(--crimson-border);
  border-left: 6px solid var(--crimson-main);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-md);
}

.alert-title {
  color: var(--crimson-main);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-content {
  font-size: 0.975rem;
  color: #7f1d1d;
  line-height: 1.65;
}

/* Featured Image Cards */
.featured-image-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  margin-bottom: 3.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.featured-image-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  margin: 0 auto;
}

.image-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Real-Time Telemetry Monitor Widget */
.telemetry-monitor {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-lg);
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.telemetry-title-group h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.telemetry-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.refresh-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-heading);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: var(--emerald-light);
  border-color: var(--emerald-main);
  color: var(--emerald-main);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.telemetry-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.telemetry-card.highlight {
  background: var(--emerald-light);
  border-color: var(--emerald-border);
}

.card-label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.5rem;
}

.card-price {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.telemetry-card.highlight .card-price {
  color: var(--emerald-main);
}

.card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tabs */
.monitor-tabs {
  margin-top: 1.5rem;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.925rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-heading);
}

.tab-btn.active {
  color: var(--emerald-main);
  border-bottom-color: var(--emerald-main);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.news-wire-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-wire-item {
  background: var(--bg-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.news-wire-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
}

.news-wire-time {
  font-size: 0.825rem;
  color: var(--text-dim);
  white-space: nowrap;
  font-family: var(--font-mono);
}

/* Content Sections & Tables */
.content-section {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.3px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.68;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.data-table th {
  background: var(--bg-subtle);
  color: var(--text-heading);
  font-weight: 800;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-medium);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--bg-subtle);
}

.badge-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.775rem;
  font-weight: 800;
  border-radius: 9999px;
}

.badge-success { background: var(--emerald-light); color: var(--emerald-main); border: 1px solid var(--emerald-border); }
.badge-warning { background: var(--amber-light); color: var(--amber-main); border: 1px solid var(--amber-border); }
.badge-danger { background: var(--crimson-light); color: var(--crimson-main); border: 1px solid var(--crimson-border); }
.badge-info { background: var(--cyan-light); color: var(--cyan-main); border: 1px solid var(--cyan-border); }

/* Calculators */
.calculator-box {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.calc-group {
  margin-bottom: 1.5rem;
}

.calc-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.calc-input, .calc-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.calc-input:focus, .calc-select:focus {
  border-color: var(--emerald-main);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.calc-result-panel {
  background: var(--emerald-light);
  border: 1.5px solid var(--emerald-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-total {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 900;
  color: var(--emerald-main);
  line-height: 1.1;
  margin: 0.5rem 0;
  letter-spacing: -0.5px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.active {
  border-color: var(--emerald-main);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--emerald-main);
}

.faq-icon {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emerald-main);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--crimson-main);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.68;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.25rem 2.5rem;
  color: var(--text-muted);
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.02);
}

.footer-container {
  max-width: 1260px;
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-heading);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--emerald-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (max-width: 920px) {
  .nav-desktop-cta { display: none !important; }
  .nav-links { display: none; }
  .hamburger-btn { display: inline-flex !important; }
  .above-fold-grid { grid-template-columns: 1fr; }
  .telemetry-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .station-rates-grid { grid-template-columns: 1fr; }
  .station-actions-bar { flex-direction: column; align-items: stretch; }
  .action-buttons-group { flex-direction: column; }
}

@media (max-width: 768px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Scroll to Top Floating Action Button */
  .scroll-to-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.92);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease;
  }
  .scroll-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .scroll-to-top-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.45), 0 3px 8px rgba(0, 0, 0, 0.12);
  }
  .scroll-to-top-btn:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 3px;
  }
  .scroll-to-top-btn:active {
    transform: translateY(0) scale(0.96);
  }
  @media (max-width: 640px) {
    .scroll-to-top-btn {
      bottom: 1.1rem;
      right: 1.1rem;
      width: 40px;
      height: 40px;
    }
  }
