/* ==========================================================================
   MyLiveTrain - Premium Modern Design System
   Matches Flutter App Palette: Cerulean Blue (#0B71BA), Deep Navy (#213D77),
   Clean Off-White (#F8FAFC), Card White (#FFFFFF), High-Contrast Typography
   ========================================================================== */

:root {
  --brand-primary: #0B71BA;
  --brand-navy: #213D77;
  --brand-cyan: #0284C7;
  --brand-dark: #0F172A;
  --brand-slate: #1E293B;
  --brand-subtext: #64748B;
  --brand-border: #E2E8F0;
  --brand-bg: #F8FAFC;
  --brand-card: #FFFFFF;
  --brand-gold: #F59E0B;
  
  --status-ontime: #10B981;
  --status-ontime-bg: #ECFDF5;
  --status-delayed: #EF4444;
  --status-delayed-bg: #FEF2F2;
  --status-rac: #F59E0B;
  --status-rac-bg: #FFFBEB;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(11, 113, 186, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--brand-bg);
  color: var(--brand-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Header & Top Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-title span {
  color: var(--brand-primary);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--brand-subtext);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-slate);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-primary);
  background: rgba(11, 113, 186, 0.08);
}

.nav-link.active {
  color: var(--brand-primary);
  background: rgba(11, 113, 186, 0.12);
  font-weight: 600;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-navy));
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(11, 113, 186, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 113, 186, 0.35);
}

/* Hero Section with Aurora Mesh & Floating Orbs */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 12% 18%, rgba(11, 113, 186, 0.16) 0%, transparent 45%),
              radial-gradient(circle at 88% 28%, rgba(2, 132, 199, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 50% 90%, rgba(56, 189, 248, 0.10) 0%, transparent 50%),
              linear-gradient(180deg, #F0F7FF 0%, #F8FAFC 100%);
  padding: 3.5rem 1.25rem 4rem;
  border-bottom: 1px solid var(--brand-border);
}

.hero-aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  animation: auroraFloat 14s ease-in-out infinite alternate;
}

.hero-aurora-orb.orb-1 {
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, rgba(11, 113, 186, 0.28), rgba(2, 132, 199, 0.15));
  top: -80px;
  left: -60px;
}

.hero-aurora-orb.orb-2 {
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(16, 185, 129, 0.18));
  top: 50px;
  right: -50px;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.hero-aurora-orb.orb-3 {
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.20), rgba(11, 113, 186, 0.15));
  bottom: 0px;
  left: 35%;
  animation-duration: 20s;
}

@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 25px) scale(1.12); }
  100% { transform: translate(-25px, 40px) scale(0.92); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11, 113, 186, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(11, 113, 186, 0.25);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(11, 113, 186, 0.08);
  transition: transform 0.25s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: badgePulse 1.8s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #0284C7 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--brand-subtext);
  max-width: 700px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

/* Flagship 3-Tab Card (Glassmorphism & Depth) */
.search-card-container {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 22px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  border: 1.5px solid rgba(226, 232, 240, 0.85);
  overflow: hidden;
  text-align: left;
  margin-top: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-tabs-header {
  display: flex;
  background: #F1F5F9;
  border-bottom: 1.5px solid var(--brand-border);
  padding: 0.4rem 0.4rem 0;
  gap: 0.4rem;
}

.search-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-subtext);
  border-radius: 14px 14px 0 0;
  border-bottom: 3.5px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.search-tab-btn .tab-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(11, 113, 186, 0.08);
  color: var(--brand-primary);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, color 0.25s ease;
}

.search-tab-btn:hover {
  color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.7);
}

.search-tab-btn:hover .tab-icon-wrap {
  transform: scale(1.15) rotate(-5deg);
}

.search-tab-btn.active {
  color: var(--brand-primary);
  background: var(--brand-card);
  border-bottom-color: var(--brand-primary);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.search-tab-btn.active .tab-icon-wrap {
  background: var(--brand-primary);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(11, 113, 186, 0.3);
}

.tab-content-panel {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Input Fields & Autocomplete */
.form-grid-between {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto auto;
  gap: 0.85rem;
  align-items: center;
}

.input-group-relative {
  position: relative;
}

.input-box {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 3rem;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: #FFFFFF;
  transition: all 0.25s ease;
}

.input-box:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(11, 113, 186, 0.15);
  background: #FAFCFF;
}

.input-icon-left {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-primary);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive 360 Spin Swap Button */
.btn-swap-stations {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1.5px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-swap-stations:hover {
  background: #EFF6FF;
  border-color: var(--brand-primary);
  transform: rotate(180deg) scale(1.12);
  box-shadow: 0 0 16px rgba(11, 113, 186, 0.25);
}

.btn-swap-stations.spinning {
  animation: swapSpin 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes swapSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.25); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Primary Action Buttons with Light Sweep Shimmer */
.btn-submit-search {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-navy) 100%);
  color: #FFFFFF;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(11, 113, 186, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-submit-search::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  animation: btnLightSweep 4.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes btnLightSweep {
  0% { left: -60%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

.btn-submit-search:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(11, 113, 186, 0.45);
}

.btn-submit-search:active {
  transform: translateY(0) scale(0.97);
}

/* Autocomplete Suggestion Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.15s ease;
}

.autocomplete-item:hover, .autocomplete-item.active {
  background: #F0F9FF;
}

.autocomplete-title {
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 0.92rem;
}

.autocomplete-sub {
  font-size: 0.78rem;
  color: var(--brand-subtext);
}

.station-badge-code {
  background: rgba(11, 113, 186, 0.1);
  color: var(--brand-primary);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: monospace;
}

/* Quick Station / Route Chips */
.quick-chips-wrapper {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-chip-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-subtext);
}

.quick-chip {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: #F1F5F9;
  border: 1px solid var(--brand-border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand-slate);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-chip:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* Content Container */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  width: 100%;
}

/* Cards & Badges */
.card-section {
  background: var(--brand-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.section-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brand-navy);
}

/* Train Cards for Trains Between Stations */
.train-list-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.train-card {
  background: var(--brand-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.train-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-lg);
}

.train-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--brand-border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.train-num-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.train-number-badge {
  background: var(--brand-navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}

.train-name-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.train-timing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.timing-node {
  display: flex;
  flex-direction: column;
}

.time-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1;
}

.station-meta-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-slate);
  margin-top: 0.25rem;
}

.duration-line-wrap {
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.duration-txt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-subtext);
  margin-bottom: 0.25rem;
}

.visual-track-bar {
  width: 100%;
  height: 2px;
  background: #CBD5E1;
  position: relative;
}

.visual-track-bar::after {
  content: '🚆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  background: #fff;
  padding: 0 4px;
}

/* Running Days Pills */
.days-chips-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.day-pill {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: #F1F5F9;
  color: #94A3B8;
}

.day-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-ontime);
}

/* Class Badges & Actions */
.train-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--brand-border);
}

.classes-badges-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.class-badge {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  border: 1px solid var(--brand-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-slate);
  cursor: pointer;
  transition: all 0.15s ease;
}

.class-badge:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.action-buttons-group {
  display: flex;
  gap: 0.5rem;
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-border);
  background: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-navy);
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(11, 113, 186, 0.05);
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary-action:hover {
  background: var(--brand-navy);
}

/* ==========================================================================
   LIVE TRAIN RUNNING STATUS TIMELINE & TELEMETRY
   ========================================================================== */
.live-status-hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-primary) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.live-status-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.live-train-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
}

.live-delay-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
}

.live-delay-pill.ontime {
  background: var(--status-ontime);
  color: #fff;
}

.live-delay-pill.late {
  background: var(--status-delayed);
  color: #fff;
  animation: pulseDelay 2s infinite;
}

@keyframes pulseDelay {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.live-telemetry-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.2rem;
}

/* Railway Track Timeline */
.timeline-track-container {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}

.timeline-vertical-line {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 19px;
  width: 4px;
  background: #E2E8F0;
  border-radius: 2px;
}

.station-timeline-row {
  position: relative;
  padding: 1rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #F1F5F9;
}

.station-node-icon {
  position: absolute;
  left: -2.5rem;
  top: 1.25rem;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: #CBD5E1;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--brand-border);
  z-index: 2;
  transition: all 0.3s ease;
}

.station-timeline-row.departed .station-node-icon {
  background: var(--status-ontime);
  box-shadow: 0 0 0 2px var(--status-ontime);
}

.station-timeline-row.current {
  background: rgba(11, 113, 186, 0.05);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem 1.25rem 0.5rem;
  margin: 0.5rem 0;
  border: 1.5px solid rgba(11, 113, 186, 0.3);
}

.station-timeline-row.current .station-node-icon {
  width: 26px;
  height: 26px;
  left: calc(-2.5rem - 2px);
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(11, 113, 186, 0.3);
  animation: radarPulse 1.8s infinite;
}

@keyframes radarPulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 113, 186, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(11, 113, 186, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 113, 186, 0); }
}

.station-details-left {
  display: flex;
  flex-direction: column;
}

.station-name-bold {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.station-meta-info {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--brand-subtext);
  margin-top: 0.25rem;
}

.platform-badge {
  background: #F1F5F9;
  color: var(--brand-slate);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
}

.station-timing-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.actual-time-bold {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.scheduled-time-sub {
  font-size: 0.78rem;
  color: var(--brand-subtext);
}

/* Radar Map Container */
.map-radar-wrapper {
  height: 480px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-md);
  margin: 1.5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   PNR STATUS PASSENGER DIGITAL TICKET
   ========================================================================== */
.pnr-ticket-card {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.pnr-ticket-top {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-primary));
  color: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.pnr-ticket-body {
  padding: 2rem;
}

.chart-status-badge {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.chart-status-badge.prepared {
  background: #ECFDF5;
  color: #065F46;
}

.chart-status-badge.not-prepared {
  background: #FFFBEB;
  color: #92400E;
}

.passenger-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.passenger-table th {
  background: #F8FAFC;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-subtext);
  border-bottom: 1.5px solid var(--brand-border);
}

.passenger-table td {
  padding: 1rem;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.95rem;
  color: var(--brand-dark);
}

.status-badge-confirm {
  background: #ECFDF5;
  color: #065F46;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.status-badge-wl {
  background: #FEF2F2;
  color: #991B1B;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* AI Prediction Bar */
.ai-prediction-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.prediction-probability-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #166534;
}

/* FAQ Accordion Section */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  transition: background 0.15s ease;
}

.faq-question-btn:hover {
  background: #F8FAFC;
}

.faq-answer-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--brand-slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* SEO Content Blocks */
.seo-prose-block {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.seo-prose-block h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 1rem;
}

.seo-prose-block h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 1.25rem 0 0.5rem;
}

.seo-prose-block p {
  color: var(--brand-slate);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Footer Section */
.site-footer {
  background: var(--brand-dark);
  color: #94A3B8;
  padding: 4rem 1.25rem 2rem;
  margin-top: auto;
  border-top: 1px solid #334155;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  color: #94A3B8;
  max-width: 380px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-link {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Bottom Navigation Bar (Flutter App Look) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--brand-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding: 0.4rem 0.5rem;
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.2rem;
  color: var(--brand-subtext);
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.bottom-nav-icon {
  font-size: 1.25rem;
}

/* Base interactive transitions */

/* -------------------------------------------------------------
 * Extra Modern Visual Flair & Animations
 * ----------------------------------------------------------- */
.metro-train-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(11, 113, 186, 0.16) !important;
  border-color: var(--brand-primary) !important;
}

.passenger-table tbody tr {
  transition: background-color 0.15s ease;
}

.passenger-table tbody tr:hover {
  background-color: rgba(11, 113, 186, 0.035) !important;
}

.pnr-ticket-card {
  position: relative;
  background: #FFFFFF;
}

.pnr-ticket-card::before,
.pnr-ticket-card::after {
  content: '';
  position: absolute;
  top: 75px;
  width: 20px;
  height: 20px;
  background-color: var(--brand-bg);
  border-radius: 50%;
  z-index: 5;
}

.pnr-ticket-card::before {
  left: -10px;
}

.pnr-ticket-card::after {
  right: -10px;
}

.nav-link {
  position: relative;
  transition: all 0.25s ease;
}

.nav-link:hover {
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2.5px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.search-banner-card {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.search-banner-card:focus-within {
  border-color: rgba(11, 113, 186, 0.4) !important;
  box-shadow: 0 8px 24px -4px rgba(11, 113, 186, 0.12) !important;
}

/* -------------------------------------------------------------
 * Railway Track Sidebar & Collapsible Stations
 * ----------------------------------------------------------- */
.railway-track-layout {
  position: relative;
  display: flex;
  gap: 1.5rem;
}

.railway-track-sidebar {
  position: relative;
  width: 44px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.track-steel-rails {
  position: absolute;
  top: 15px;
  bottom: 25px;
  width: 14px;
  border-left: 3px solid #94A3B8;
  border-right: 3px solid #94A3B8;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 12px,
    #64748B 12px,
    #64748B 16px
  );
  z-index: 1;
}

.track-steel-rails.passed {
  border-left-color: #10B981;
  border-right-color: #10B981;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 12px,
    #059669 12px,
    #059669 16px
  );
}

.live-track-beacon {
  position: relative;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B71BA 0%, #0284C7 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 0 6px rgba(11, 113, 186, 0.25), 0 4px 12px rgba(11, 113, 186, 0.4);
  animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 113, 186, 0.6), 0 4px 12px rgba(11, 113, 186, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(11, 113, 186, 0), 0 4px 12px rgba(11, 113, 186, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(11, 113, 186, 0), 0 4px 12px rgba(11, 113, 186, 0.4);
  }
}

.live-train-callout-card {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid #93C5FD;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 4px 14px rgba(11, 113, 186, 0.12);
  position: relative;
}

.intermediate-group-card {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
  margin: 0.75rem 0;
  overflow: hidden;
  transition: all 0.25s ease;
}

.intermediate-group-card.has-live-train {
  background: #F0F9FF;
  border: 1.5px solid #38BDF8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.btn-toggle-intermediate {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  text-align: left;
  transition: background-color 0.2s ease;
}

.btn-toggle-intermediate:hover {
  background-color: rgba(11, 113, 186, 0.06);
  color: var(--brand-primary);
}

.btn-toggle-intermediate .chevron-icon {
  transition: transform 0.25s ease;
}

.intermediate-group-card.expanded .btn-toggle-intermediate .chevron-icon {
  transform: rotate(180deg);
}

.intermediate-stations-list {
  display: none;
  border-top: 1px solid #E2E8F0;
  background: #FFFFFF;
}

.intermediate-group-card.expanded .intermediate-stations-list {
  display: block;
}

.intermediate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.8rem;
  transition: background-color 0.15s ease;
}

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

.intermediate-row:hover {
  background-color: #F8FAFC;
}

.intermediate-row.live-station {
  background-color: #EFF6FF !important;
  font-weight: 700;
}

/* ==========================================================================
   Trains Between Stations Flagship Experience
   ========================================================================== */

/* 1. Route Summary Hero Card */
.route-summary-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #0B71BA 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(11, 113, 186, 0.25);
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.route-summary-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.route-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.route-stations-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.route-station-block {
  display: flex;
  flex-direction: column;
}

.route-station-code {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.1;
}

.route-station-name {
  font-size: 0.85rem;
  color: #93C5FD;
  font-weight: 500;
}

.route-arrow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #60A5FA;
}

.route-meta-stats-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.route-stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.route-stat-item strong {
  color: #FFFFFF;
}

/* Date Navigator Strip */
.date-nav-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
}

.date-nav-btn {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.date-nav-btn:hover {
  background: #FFFFFF;
  color: var(--brand-navy);
}

.date-current-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  padding: 0.35rem 0.75rem;
}

/* 2. Interactive Filter Toolbar */
.filter-toolbar-card {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}

.filter-search-box input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--brand-dark);
  background: #F8FAFC;
  outline: none;
  transition: all 0.2s ease;
}

.filter-search-box input:focus {
  border-color: var(--brand-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(11, 113, 186, 0.12);
}

.filter-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-subtext);
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-select-wrap label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-slate);
}

.sort-dropdown {
  padding: 0.45rem 1.75rem 0.45rem 0.75rem;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-navy);
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.sort-dropdown:focus {
  border-color: var(--brand-primary);
}

/* Category Filter Pills */
.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-border);
  background: #F8FAFC;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-slate);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-pill-btn:hover {
  background: #EFF6FF;
  color: var(--brand-primary);
  border-color: #BFDBFE;
}

.filter-pill-btn.active {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
}

.filter-pill-btn .count-badge {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
}

.filter-pill-btn.active .count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Departure Time Slots */
.departure-slots-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--brand-border);
}

.slot-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-subtext);
  margin-right: 0.25rem;
}

.slot-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-border);
  background: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-slate);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: #F8FAFC;
}

.slot-btn.active {
  background: #EFF6FF;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 700;
}

/* 3. Train Card Flagship Layout */
.train-card-flagship {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.train-card-flagship:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.05);
  border-color: #93C5FD;
}

.train-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F1F5F9;
}

.train-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.t-number-pill {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--brand-navy);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.t-name-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

.t-name-heading:hover {
  color: var(--brand-primary);
}

/* Train Type Badges */
.t-type-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.t-type-tag.vande-bharat {
  background: linear-gradient(135deg, #1E3A8A, #4338CA);
  color: #FFFFFF;
}

.t-type-tag.rajdhani {
  background: #7F1D1D;
  color: #FEF08A;
  border: 1px solid #B45309;
}

.t-type-tag.shatabdi {
  background: #1E40AF;
  color: #DBEAFE;
}

.t-type-tag.garib-rath {
  background: #065F46;
  color: #A7F3D0;
}

.t-type-tag.superfast {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.t-type-tag.express {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

/* Live Telemetry Pill */
.live-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.live-telemetry-badge.on-time {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.live-telemetry-badge.delayed {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.live-telemetry-badge.scheduled {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-beacon.green {
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulseBeaconGreen 1.6s infinite ease-out;
}

.pulse-beacon.red {
  background: #EF4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
  animation: pulseBeaconRed 1.6s infinite ease-out;
}

@keyframes pulseBeaconGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseBeaconRed {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 7-Days Run Chips */
.days-chips-strip {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.day-chip-box {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: #F1F5F9;
  color: #94A3B8;
  transition: all 0.15s ease;
}

.day-chip-box.active {
  background: #EFF6FF;
  color: var(--brand-primary);
  border: 1px solid #BFDBFE;
}

.day-chip-box.runs-today {
  background: #10B981 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* Timing & Center Visual Track */
.train-journey-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(200px, 2fr) minmax(130px, 1.2fr);
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.journey-node {
  display: flex;
  flex-direction: column;
}

.journey-node.destination {
  align-items: flex-end;
  text-align: right;
}

.journey-time {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.journey-station-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 0.35rem;
}

.journey-city-code {
  font-size: 0.8rem;
  color: var(--brand-slate);
  margin-top: 0.15rem;
}

.journey-day-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
  margin-top: 0.35rem;
}

/* Center Visual Track Component */
.journey-track-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.5rem;
}

.journey-duration-badge {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-navy);
  background: #F8FAFC;
  border: 1px solid var(--brand-border);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.visual-rail-track-line {
  width: 100%;
  height: 4px;
  background: #CBD5E1;
  border-radius: 2px;
  position: relative;
  margin-bottom: 0.5rem;
}

.visual-rail-track-line::before,
.visual-rail-track-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.visual-rail-track-line::before {
  left: 0;
  background: #10B981;
}

.visual-rail-track-line::after {
  right: 0;
  background: #EF4444;
}

.train-tracker-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #FFFFFF;
  border: 1.5px solid var(--brand-primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
}

.journey-meta-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--brand-subtext);
  flex-wrap: wrap;
  justify-content: center;
}

.day-span-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.day-span-badge.same-day {
  background: #ECFDF5;
  color: #065F46;
}

.day-span-badge.next-day {
  background: #FFFBEB;
  color: #B45309;
}

.day-span-badge.multi-day {
  background: #F5F3FF;
  color: #6D28D9;
}

/* Card Footer: Classes & Quick Actions */
.train-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--brand-border);
}

.classes-list-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.class-avail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  border: 1px solid var(--brand-border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-decoration: none;
  transition: all 0.15s ease;
}

.class-avail-badge:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

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

.action-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-btn-pill.primary {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.action-btn-pill.primary:hover {
  background: #095995;
  box-shadow: 0 4px 10px rgba(11, 113, 186, 0.25);
}

.action-btn-pill.secondary {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  color: var(--brand-navy);
}

.action-btn-pill.secondary:hover {
  background: #F8FAFC;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* 4. Why Book Features Strip */
.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.feature-benefit-card {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.feature-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* 5. FAQ Accordion */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-card-item {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question-btn {
  width: 100%;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-chevron {
  transition: transform 0.25s ease;
  color: var(--brand-subtext);
}

.faq-card-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-answer-content {
  display: none;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.88rem;
  color: var(--brand-slate);
  line-height: 1.6;
}

.faq-card-item.open .faq-answer-content {
  display: block;
}

/* ==========================================================================
   Seat Availability & Quota Checker Flagship Experience
   ========================================================================== */

/* 1. Master Seat Hero Banner */
.seat-master-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #0369A1 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(11, 113, 186, 0.25);
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.seat-master-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.seat-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.seat-train-info {
  display: flex;
  flex-direction: column;
}

.seat-train-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.seat-train-num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.seat-train-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.seat-route-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #BAE6FD;
  flex-wrap: wrap;
}

.seat-station-badge {
  color: #FFFFFF;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.seat-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.seat-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.seat-hero-btn.white {
  background: #FFFFFF;
  color: var(--brand-navy);
}

.seat-hero-btn.white:hover {
  background: #F0F9FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.seat-hero-btn.glass {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.seat-hero-btn.glass:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.seat-hero-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.seat-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #E0F2FE;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.seat-meta-chip strong {
  color: #FFFFFF;
}

/* 2. Interactive Class & Quota Selector Toolbar */
.seat-selectors-card {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.selector-group-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.selector-heading-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-slate);
}

.selector-pill-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.class-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--brand-border);
  background: #F8FAFC;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-decoration: none;
  transition: all 0.2s ease;
  user-select: none;
}

.class-tab-pill:hover {
  border-color: var(--brand-primary);
  background: #EFF6FF;
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.class-tab-pill.active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.class-tab-pill.active .pill-sub {
  color: #93C5FD;
}

.pill-sub {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--brand-subtext);
}

/* Quota Tabs */
.quota-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-border);
  background: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-slate);
  text-decoration: none;
  transition: all 0.15s ease;
}

.quota-tab-pill:hover {
  background: #F8FAFC;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.quota-tab-pill.active {
  background: #EFF6FF;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.quota-tab-pill.active.tatkal {
  background: #FFFBEB;
  border-color: #F59E0B;
  color: #B45309;
}

.quota-tab-pill.active.ladies {
  background: #FDF2F8;
  border-color: #EC4899;
  color: #BE185D;
}

/* 3. 14-Day Calendar Day Cards */
.seat-calendar-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.seat-day-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--brand-border);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.seat-day-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -3px rgba(15, 23, 42, 0.08);
}

.seat-day-card.available {
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  border-color: #86EFAC;
}

.seat-day-card.available:hover {
  border-color: #22C55E;
  box-shadow: 0 10px 20px -3px rgba(34, 197, 94, 0.15);
}

.seat-day-card.rac {
  background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
  border-color: #93C5FD;
}

.seat-day-card.rac:hover {
  border-color: #3B82F6;
  box-shadow: 0 10px 20px -3px rgba(59, 130, 246, 0.15);
}

.seat-day-card.waitlist {
  background: linear-gradient(180deg, #FEF2F2 0%, #FFFFFF 100%);
  border-color: #FCA5A5;
}

.seat-day-card.waitlist:hover {
  border-color: #EF4444;
  box-shadow: 0 10px 20px -3px rgba(239, 68, 68, 0.15);
}

.seat-day-card.departed {
  background: #F8FAFC;
  border-color: #E2E8F0;
  opacity: 0.85;
}

.card-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.card-day-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.card-year-tag {
  font-size: 0.72rem;
  color: var(--brand-subtext);
  font-weight: 600;
}

.card-status-main {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.4rem 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.status-txt-avail {
  color: #15803D;
}

.status-txt-rac {
  color: #1D4ED8;
}

.status-txt-wl {
  color: #B91C1C;
}

.status-txt-departed {
  color: #64748B;
}

.card-prob-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.prob-green {
  background: #DCFCE7;
  color: #166534;
}

.prob-blue {
  background: #DBEAFE;
  color: #1E40AF;
}

.prob-amber {
  background: #FEF3C7;
  color: #92400E;
}

.prob-red {
  background: #FEE2E2;
  color: #991B1B;
}

.prob-slate {
  background: #F1F5F9;
  color: #475569;
}

.card-footer-strip {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.card-fare-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.card-book-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.card-book-link:hover {
  color: #095995;
  text-decoration: underline;
}

/* 4. Itemized Ticket Fare Card */
.fare-itemized-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.fare-item-tile {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.fare-tile-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-subtext);
}

.fare-tile-amount {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-top: 0.25rem;
}

/* 5. Tatkal Quick Guide */
.tatkal-guide-banner {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px solid #FCD34D;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.tatkal-guide-text h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 800;
  color: #92400E;
}

.tatkal-guide-text p {
  margin: 0;
  font-size: 0.84rem;
  color: #78350F;
  line-height: 1.4;
}

/* ==========================================================================
   Live Train Locomotive Beacon & Auto-Scroll Enhancements
   ========================================================================== */

/* Standout Live Locomotive Pin Badge */
.live-locomotive-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #0F172A 0%, #0369A1 100%);
  border: 1.5px solid #38BDF8;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45), 0 4px 10px rgba(0, 0, 0, 0.15);
  animation: locoFloat 3s infinite ease-in-out;
  position: relative;
}

@keyframes locoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.loco-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  box-shadow: 0 0 12px #38BDF8;
}

.loco-ping-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #38BDF8;
  animation: locoPing 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  pointer-events: none;
}

@keyframes locoPing {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.loco-tag-info {
  display: flex;
  flex-direction: column;
}

.loco-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pulse-red-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
  animation: badgePulse 1.2s infinite;
}

.loco-metrics {
  font-size: 0.72rem;
  color: #BAE6FD;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Intermediate Row Live Station Highlight */
.intermediate-row.live-station {
  background: linear-gradient(90deg, #F0F9FF 0%, #FFFFFF 100%) !important;
  border-left: 4px solid #0284C7;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
  position: relative;
}

/* Halt Card Live Station Highlight */
.station-timeline-row.current {
  border-color: #0284C7 !important;
  background: linear-gradient(90deg, #F0F9FF 0%, #FFFFFF 100%) !important;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.25) !important;
  position: relative;
}

/* Auto-Scroll Pulse Highlight Effect */
.highlight-live-pulse {
  animation: highlightGlow 2.5s ease-out;
}

@keyframes highlightGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7), 0 0 25px rgba(2, 132, 199, 0.5);
    background-color: #E0F2FE !important;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(2, 132, 199, 0), 0 0 35px rgba(2, 132, 199, 0.4);
    background-color: #F0F9FF !important;
  }
  100% {
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.25);
  }
}

/* Live Train Callout Card (Floating between stations) */
.live-train-callout-card {
  background: linear-gradient(135deg, #0C4A6E 0%, #0369A1 60%, #0284C7 100%);
  border: 2px solid #38BDF8;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4), 0 0 20px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.live-train-callout-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38BDF8, transparent);
  animation: scanline 2s infinite linear;
}

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

.live-track-beacon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
  animation: locoBeaconPulse 2s infinite;
}

@keyframes locoBeaconPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 16px rgba(255, 255, 255, 0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 24px rgba(56, 189, 248, 0.8); }
}

/* Floating Jump to Train Button */
.floating-jump-train-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  background: linear-gradient(135deg, #0F172A 0%, #0369A1 100%);
  border: 1.5px solid #38BDF8;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.floating-jump-train-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.55), 0 4px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%);
}

.floating-jump-train-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* ============================================================
   UI ENHANCEMENTS: LIVE TRACKING HUD, ROUTE FILTERS & PROBABILITY
   ============================================================ */

/* 1. Authentic Indian Railways Station Platform Signboard */
.platform-badge {
  background: #FACC15 !important;
  color: #0F172A !important;
  border: 1.5px solid #0F172A !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
  font-size: 0.74rem !important;
  padding: 0.15rem 0.5rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  box-shadow: 1.5px 1.5px 0px #0F172A !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
}

/* 2. Route Timeline Filter Segmented Bar */
.segmented-track-filter {
  display: inline-flex;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--brand-border);
  gap: 4px;
}

.seg-filter-btn {
  border: none;
  background: transparent;
  color: var(--brand-slate);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.seg-filter-btn:hover {
  color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.6);
}

.seg-filter-btn.active {
  background: #FFFFFF;
  color: var(--brand-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#viewTimelineList.halts-only-mode .intermediate-group-card {
  display: none !important;
}

/* 3. Sticky Live Telemetry Floating HUD Bar */
.live-sticky-hud-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 998;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  color: #FFFFFF;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  max-width: 95vw;
}

.live-sticky-hud-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.hud-train-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hud-num-badge {
  background: #38BDF8;
  color: #0F172A;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.hud-speed-pill {
  font-size: 0.82rem;
  color: #7DD3FC;
  font-weight: 700;
}

.hud-next-stop {
  font-size: 0.85rem;
  color: #F1F5F9;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1rem;
}

.hud-jump-action {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 1px solid #38BDF8;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hud-jump-action:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.55);
}

@media (max-width: 768px) {
  .live-sticky-hud-bar {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0.5rem 0.85rem !important;
    gap: 0.5rem !important;
    border-radius: 12px !important;
    width: calc(100% - 1.5rem) !important;
    max-width: 480px !important;
    justify-content: space-between !important;
  }
  .hud-speed-pill,
  .hud-next-stop {
    display: none !important;
  }
}

/* 4. Confirmation Probability Meter for Seat Availability */
.prob-meter-wrapper {
  margin: 0.65rem 0 0.5rem 0;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.prob-meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.prob-meter-track {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.prob-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   SEO ARCHITECTURE & RICH RESULTS STYLING
   ============================================================ */

/* 1. Visible SEO Breadcrumb Navigation Strip */
.seo-breadcrumb-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--brand-border);
  padding: 0.65rem 0;
  font-size: 0.82rem;
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-subtext);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #CBD5E1;
  font-weight: 600;
  font-size: 0.78rem;
}

.breadcrumb-link {
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.breadcrumb-link:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--brand-dark);
  font-weight: 700;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 2. Interactive FAQ Accordion Section */
.faq-section {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.faq-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.faq-section-subtitle {
  font-size: 0.88rem;
  color: var(--brand-subtext);
  margin-bottom: 1.5rem;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  background: #F8FAFC;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.faq-question-btn:hover {
  color: var(--brand-primary);
}

.faq-chevron {
  font-size: 0.8rem;
  color: var(--brand-subtext);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-question-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-answer-content {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.65;
  border-top: 1px dashed transparent;
}

.faq-question-btn[aria-expanded="true"] + .faq-answer-content {
  border-top-color: #E2E8F0;
  padding-top: 0.85rem;
}

/* 3. High-CTR SEO Prose Block */
.seo-prose-block {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  color: #334155;
  line-height: 1.7;
}

.seo-prose-block h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.seo-prose-block h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.seo-prose-block h2:first-child {
  margin-top: 0;
}

.seo-prose-block h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}

.seo-prose-block p {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.seo-prose-block ul, .seo-prose-block ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  font-size: 0.92rem;
}

.seo-prose-block li {
  margin-bottom: 0.5rem;
}

.seo-highlight-callout {
  background: linear-gradient(135deg, rgba(11, 113, 186, 0.06) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
  color: #0F172A;
}

/* 4. Internal Linking Cross-Hub Bar */
.seo-hub-nav {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.seo-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #FFFFFF;
  border: 1.5px solid var(--brand-border);
  color: var(--brand-navy);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.seo-hub-pill:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 113, 186, 0.12);
}

.seo-hub-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
}

/* 5. Key Facts Quick Metrics */
.seo-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.seo-fact-card {
  background: #F8FAFC;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.seo-fact-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.seo-fact-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-subtext);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   OFFICIAL GOOGLE PLAY AND APP DOWNLOAD SHOWCASE STYLES
   ========================================================================== */
.nav-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #0F172A;
  color: #FFFFFF !important;
  border: 1.5px solid #334155;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-play-btn:hover {
  background: #0284C7;
  border-color: #38BDF8;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.mobile-header-play-btn {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: #0F172A;
  color: #FFFFFF !important;
  border: 1.5px solid #38BDF8;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.playstore-badge-card {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #0F172A;
  border: 1.5px solid #334155;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  color: #FFFFFF !important;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.playstore-badge-card:hover {
  background: #1E293B;
  border-color: #38BDF8;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
}

.playstore-badge-card.large {
  padding: 0.65rem 1.35rem;
  border-radius: 12px;
}

.playstore-badge-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.playstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.playstore-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
}

.playstore-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.playstore-badge-card.large .playstore-title {
  font-size: 1.25rem;
}

/* App Download Showcase Banner */
.app-download-banner {
  background: linear-gradient(135deg, #0B192C 0%, #1E3E62 50%, #0B71BA 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  color: #FFFFFF;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(11, 113, 186, 0.35);
}

.app-banner-content {
  flex: 1;
  max-width: 620px;
}

.app-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.rating-stars {
  color: #FCD34D;
  font-weight: 800;
}

.app-banner-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.app-banner-title span {
  color: #38BDF8;
}

.app-banner-desc {
  font-size: 0.92rem;
  color: #E2E8F0;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.app-banner-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin-bottom: 1.5rem;
}

.app-feat-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #BAE6FD;
}

.app-banner-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.app-banner-free-tag {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 600;
}

/* Phone Mockup */
.app-banner-preview {
  flex-shrink: 0;
}

.phone-mockup-frame {
  width: 260px;
  background: #0F172A;
  border: 4px solid #334155;
  border-radius: 28px;
  padding: 1.25rem 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-screen-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.mock-speed-box {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
  margin-bottom: 0.85rem;
}

.mock-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #38BDF8;
}

.mock-lbl {
  font-size: 0.72rem;
  color: #94A3B8;
  text-transform: uppercase;
  font-weight: 700;
}

.mock-station-pill {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.mock-badge {
  background: #38BDF8;
  color: #0F172A;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.mock-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.mock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #38BDF8);
}

/* ==========================================================================
   MASTER COMPREHENSIVE MOBILE & TABLET RESPONSIVENESS SUITE
   Fully optimized for all screen sizes: 320px, 360px, 375px, 390px, 414px, 768px, 992px
   ========================================================================== */

/* 1. Large Tablets & Small Laptops (<= 992px) */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .features-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

/* 2. Standard Mobile & Tablet Devices (<= 768px) */
@media (max-width: 768px) {
  /* Global Page Container & Overflow Protection */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
  }

  body {
    padding-bottom: 78px !important; /* Prevents mobile bottom bar from covering page footer/buttons */
  }

  .main-content {
    padding: 0.85rem 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .card-section {
    padding: 1rem 0.85rem !important;
    border-radius: 14px !important;
    margin-bottom: 1.25rem !important;
  }

  /* Header & Navigation */
  .site-header {
    padding: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }

  .header-container {
    padding: 0.65rem 0.85rem !important;
  }

  .brand-logo-img {
    width: 34px !important;
    height: 34px !important;
  }

  .brand-title {
    font-size: 1.15rem !important;
  }

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

  .mobile-header-play-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    background: #0F172A !important;
    color: #FFFFFF !important;
    border: 1.5px solid #38BDF8 !important;
    padding: 0.3rem 0.65rem !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
  }

  .main-nav {
    display: none !important; /* Hide desktop nav; mobile users use bottom navigation */
  }

  /* Mobile App Bottom Navigation Bar (Flutter App Look) */
  .mobile-bottom-nav {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid var(--brand-border) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    padding-bottom: max(0.4rem, env(safe-area-inset-bottom, 0px)) !important;
  }

  .bottom-nav-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    height: 58px !important;
    align-items: center !important;
  }

  .bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.15rem !important;
    padding: 0.3rem 0.2rem !important;
    color: var(--brand-subtext) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }

  .bottom-nav-item.active {
    color: var(--brand-primary) !important;
  }

  .bottom-nav-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Floating Jump to Train Pin Button (Never overlaps bottom bar) */
  .floating-jump-train-btn {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 0.85rem !important;
    padding: 0.45rem 0.9rem !important;
    font-size: 0.8rem !important;
    z-index: 9990 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5) !important;
  }

  /* Breadcrumbs: Horizontally scrollable strip without breaking */
  .seo-breadcrumb-bar {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0.45rem 0.25rem !important;
  }
  .seo-breadcrumb-bar::-webkit-scrollbar {
    display: none !important;
  }
  .breadcrumb-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.35rem !important;
  }

  /* SEO Hub Navigation Pills */
  .seo-hub-nav {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.4rem !important;
    padding-bottom: 0.35rem !important;
    margin: 0.85rem 0 !important;
  }
  .seo-hub-pill {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem !important;
  }

  /* Hero Section */
  .hero-wrapper {
    padding: 1.75rem 0.85rem 2rem 0.85rem !important;
  }
  .hero-badge {
    font-size: 0.74rem !important;
    padding: 0.3rem 0.7rem !important;
    margin-bottom: 0.75rem !important;
  }
  .hero-title {
    font-size: 1.55rem !important;
    line-height: 1.22 !important;
    margin-bottom: 0.5rem !important;
  }
  .hero-subtitle {
    font-size: 0.86rem !important;
    margin-bottom: 1.25rem !important;
  }

  /* Flagship 3-Tab Search Card on Home */
  .search-card-container {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }
  .search-tabs-header {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.3rem !important;
    padding: 0.35rem !important;
    background: #FFFFFF !important;
    border: 1.5px solid var(--brand-border) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  }
  .search-tabs-header::-webkit-scrollbar {
    display: none !important;
  }
  .search-tab-btn {
    flex: 1 0 auto !important;
    white-space: nowrap !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.82rem !important;
    border-radius: var(--radius-md) !important;
  }
  .search-tab-btn span.tab-title-text {
    display: inline-block !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
  }
  .tab-icon-wrap {
    margin-right: 0.3rem !important;
  }
  .tab-content-panel {
    background: #FFFFFF !important;
    border: 1.5px solid var(--brand-border) !important;
    border-top: none !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    padding: 1.15rem 0.95rem !important;
    box-shadow: var(--shadow-md) !important;
  }

  /* Form Grids on Home & Pages: Stack Cleanly with Touch Targets */
  .form-grid-between {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  .form-grid-between .input-group-relative,
  .form-grid-between input,
  .form-grid-between select {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .btn-swap-stations {
    align-self: center !important;
    margin: -0.35rem auto !important;
    transform: rotate(90deg) !important;
  }
  .btn-swap-stations:hover {
    transform: rotate(270deg) scale(1.1) !important;
  }
  .btn-submit-search {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.95rem !important;
    min-height: 46px !important;
  }

  /* Home PNR & Live Search Forms */
  #tabPnr form,
  #tabLive form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  #tabPnr form .input-group-relative,
  #tabLive form .input-group-relative,
  #tabLive form select,
  #tabPnr form button,
  #tabLive form button {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
  }

  /* Popular Searches & Quick Date Chips */
  .quick-chips-wrapper,
  .quick-chips-wrapper-scroll {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    margin-top: 0.75rem !important;
  }
  .quick-chips-wrapper::-webkit-scrollbar {
    display: none !important;
  }
  .quick-chip-label {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 0.75rem !important;
  }
  .quick-chip,
  .btn-quick-date {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 0.35rem 0.7rem !important;
    font-size: 0.78rem !important;
  }

  /* Trust Metrics Grid (2x2 on Mobile) */
  .trust-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
    margin-bottom: 1.75rem !important;
  }
  .trust-metrics-grid > div {
    padding: 1rem 0.65rem !important;
  }
  .trust-metrics-grid div[style*="font-size: 2rem"] {
    font-size: 1.5rem !important;
  }

  /* Section Headings */
  .section-heading-wrap {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  .section-heading {
    font-size: 1.25rem !important;
  }

  /* App Download Showcase Banner on Mobile */
  .app-download-banner {
    flex-direction: column !important;
    padding: 1.5rem 1rem !important;
    text-align: center !important;
    gap: 1.5rem !important;
    border-radius: 14px !important;
  }
  .app-banner-content {
    max-width: 100% !important;
  }
  .app-banner-title {
    font-size: 1.4rem !important;
  }
  .app-banner-features {
    grid-template-columns: 1fr !important;
    text-align: left !important;
    max-width: 280px !important;
    margin: 0 auto 1.25rem auto !important;
  }
  .app-banner-actions {
    justify-content: center !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .phone-mockup-frame {
    width: 240px !important;
    margin: 0 auto !important;
  }

  /* =========================================================
     PAGE: LIVE TRAIN RUNNING STATUS
     ========================================================= */
  .live-status-hero {
    padding: 1.15rem 0.95rem !important;
    border-radius: 14px !important;
    margin-bottom: 1.25rem !important;
  }
  .live-status-hero > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .live-status-hero h1 {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
  }
  .live-delay-pill {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.82rem !important;
  }

  /* Location Banner in Hero */
  .live-status-hero div[style*="background: rgba(15, 23, 42, 0.55)"] {
    padding: 0.85rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .live-status-hero div[style*="background: rgba(15, 23, 42, 0.55)"] > div:last-child {
    text-align: left !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.15) !important;
    padding-top: 0.5rem !important;
  }

  /* Hero Telemetry Metrics Grid: 2x2 on Mobile */
  .live-telemetry-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }
  .live-telemetry-metrics-grid > div {
    padding: 0.65rem 0.75rem !important;
  }
  .live-telemetry-metrics-grid div[style*="font-size: 1.35rem"],
  .live-telemetry-metrics-grid div[style*="font-size: 1.25rem"] {
    font-size: 1.05rem !important;
  }

  /* Controls Toolbar on Live Status */
  .timeline-controls-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.85rem !important;
    gap: 0.65rem !important;
  }
  .timeline-controls-toolbar > div:last-child {
    display: flex !important;
    width: 100% !important;
    gap: 0.35rem !important;
  }
  .timeline-controls-toolbar > div:last-child button {
    flex: 1 1 auto !important;
    justify-content: center !important;
    padding: 0.45rem 0.4rem !important;
    font-size: 0.74rem !important;
  }

  /* Station Timeline Station Row */
  #viewTimelineList {
    padding: 0.5rem 0.2rem !important;
  }
  .railway-track-layout {
    gap: 0.4rem !important;
  }
  .railway-track-sidebar {
    width: 14px !important;
    margin-right: 4px !important;
  }
  .station-timeline-row {
    padding: 0.75rem 0.7rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    border-radius: 10px !important;
  }
  .station-timeline-row > div:first-child {
    width: 100% !important;
  }
  .station-timeline-row > div:last-child {
    width: 100% !important;
    text-align: left !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px dashed #E2E8F0 !important;
    padding-top: 0.45rem !important;
    margin-top: 0.2rem !important;
  }

  /* Intermediate Non-Stop Group Accordion */
  .btn-toggle-intermediate {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.78rem !important;
  }
  .intermediate-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
    padding: 0.55rem 0.75rem !important;
  }
  .intermediate-row > div:last-child {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.76rem !important;
  }

  /* Live In-Transit Beacon Callout Card */
  .live-train-callout-card {
    padding: 0.85rem 0.95rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
  }
  .live-track-beacon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.25rem !important;
  }

  /* =========================================================
     PAGE: TRAINS BETWEEN STATIONS
     ========================================================= */
  .route-meta-stats-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
    padding: 0.75rem !important;
  }
  .route-stat-item {
    font-size: 0.78rem !important;
  }

  /* Filter Toolbar */
  .filter-toolbar-card {
    padding: 0.85rem !important;
  }
  .filter-top-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .filter-search-box {
    width: 100% !important;
  }
  .sort-select-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .sort-select-wrap select {
    flex: 1 !important;
  }
  .filter-pills-row,
  .departure-slots-row {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }
  .filter-pill-btn,
  .slot-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.76rem !important;
  }

  /* Train Card Flagship */
  .train-card-flagship {
    padding: 0.95rem 0.85rem !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
  }
  .train-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.75rem !important;
  }
  .train-identity {
    gap: 0.5rem !important;
  }
  .t-name-heading {
    font-size: 1.05rem !important;
  }

  /* Journey Row: Beautiful 3-Column Travel App Layout */
  .train-journey-row {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin-bottom: 1rem !important;
  }
  .journey-node.origin {
    text-align: left !important;
    align-items: flex-start !important;
  }
  .journey-node.destination {
    text-align: right !important;
    align-items: flex-end !important;
  }
  .journey-time {
    font-size: 1.25rem !important;
  }
  .journey-station-title {
    font-size: 0.82rem !important;
    max-width: 110px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .journey-city-code {
    font-size: 0.72rem !important;
  }
  .journey-track-center {
    padding: 0 0.15rem !important;
  }
  .journey-duration-badge {
    font-size: 0.72rem !important;
    padding: 0.15rem 0.45rem !important;
    margin-bottom: 0.25rem !important;
  }
  .visual-rail-track-line {
    height: 3px !important;
    margin-bottom: 0.25rem !important;
  }
  .journey-meta-details {
    font-size: 0.68rem !important;
    gap: 0.25rem !important;
  }

  /* Card Footer: Classes & Actions */
  .train-footer-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding-top: 0.75rem !important;
  }
  .classes-list-wrap {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 0.25rem !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }
  .class-avail-badge {
    flex: 0 0 auto !important;
    padding: 0.25rem 0.55rem !important;
    font-size: 0.76rem !important;
  }
  .quick-actions-wrap {
    display: flex !important;
    width: 100% !important;
    gap: 0.45rem !important;
  }
  .action-btn-pill {
    flex: 1 1 50% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.55rem 0.45rem !important;
    font-size: 0.8rem !important;
  }

  /* =========================================================
     PAGE: SEAT AVAILABILITY
     ========================================================= */
  .seat-master-hero {
    padding: 1.15rem 0.95rem !important;
    border-radius: 14px !important;
  }
  .seat-hero-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }
  .seat-train-name {
    font-size: 1.3rem !important;
  }
  .seat-hero-actions {
    width: 100% !important;
    display: flex !important;
    gap: 0.4rem !important;
  }
  .seat-hero-btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.45rem 0.6rem !important;
    font-size: 0.78rem !important;
  }

  /* Seat Search Form: Vertical Stack */
  .form-grid-seats {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
  }
  .form-grid-seats .input-group-relative,
  .form-grid-seats input,
  .form-grid-seats select,
  .form-grid-seats button {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
  }
  .form-grid-seats .btn-swap-stations {
    align-self: center !important;
    margin: -0.25rem auto !important;
    transform: rotate(90deg) !important;
  }

  /* Class & Quota Pill Selectors: Horizontal Scroll */
  .seat-selectors-card {
    padding: 0.95rem 0.85rem !important;
    border-radius: 12px !important;
  }
  .selector-pill-row {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }
  .class-tab-pill {
    flex: 0 0 auto !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem !important;
  }
  .quota-tab-pill {
    flex: 0 0 auto !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.76rem !important;
  }

  /* 14-Day Calendar: 2-Column Clean Grid on Mobile */
  .seat-calendar-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
  }
  .seat-day-card {
    padding: 0.85rem 0.75rem !important;
    border-radius: 12px !important;
  }
  .card-day-title {
    font-size: 0.84rem !important;
  }
  .card-status-main {
    font-size: 1.1rem !important;
    margin: 0.25rem 0 0.35rem 0 !important;
  }
  .card-prob-badge {
    font-size: 0.68rem !important;
    padding: 0.15rem 0.4rem !important;
  }
  .card-footer-strip {
    font-size: 0.72rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.45rem !important;
  }
  .card-fare-val {
    font-size: 0.92rem !important;
  }

  /* Itemized Fare Grid */
  .fare-itemized-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }
  .fare-item-tile {
    padding: 0.75rem !important;
  }
  .fare-tile-amount {
    font-size: 1.1rem !important;
  }

  /* =========================================================
     PAGE: PNR STATUS CHECK
     ========================================================= */
  .pnr-ticket-card {
    border-radius: 14px !important;
  }
  .pnr-ticket-top {
    padding: 1.15rem 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }
  .pnr-ticket-top div[style*="font-size: 2.1rem"] {
    font-size: 1.55rem !important;
  }
  .chart-status-badge {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.82rem !important;
  }
  .pnr-ticket-body {
    padding: 1rem 0.85rem !important;
  }
  .pnr-ticket-body div[style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  /* Generic Search Banner Cards across all pages */
  .search-banner-card {
    padding: 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 1.25rem !important;
  }
  .search-banner-card form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    align-items: stretch !important;
  }
  .search-banner-card .input-group-relative,
  .search-banner-card input,
  .search-banner-card select,
  .search-banner-card button {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
  }

  /* =========================================================
     TABLES: TIMETABLE & PASSENGERS (Smooth Touch Scroll)
     ========================================================= */
  .table-responsive-wrapper,
  div[style*="overflow-x: auto"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    margin-bottom: 1rem !important;
  }
  table.passenger-table {
    min-width: 680px !important; /* Prevents squishing 9 columns */
  }
  table.passenger-table th,
  table.passenger-table td {
    padding: 0.65rem 0.55rem !important;
    font-size: 0.82rem !important;
  }

  /* Footer */
  .site-footer {
    padding: 2rem 1rem 1.5rem 1rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
}

/* 3. Small Mobile Devices (<= 420px) */
@media (max-width: 420px) {
  .hero-title {
    font-size: 1.4rem !important;
  }
  .brand-title {
    font-size: 1.05rem !important;
  }
  .live-status-hero div[style*="font-size: 1.6rem"] {
    font-size: 1.2rem !important;
  }
  .pnr-ticket-top div[style*="font-size: 2.1rem"] {
    font-size: 1.35rem !important;
  }
  .journey-station-title {
    max-width: 85px !important;
  }
  .journey-time {
    font-size: 1.15rem !important;
  }
  .seat-calendar-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
  }
  .seat-day-card {
    padding: 0.75rem 0.6rem !important;
  }
  .card-status-main {
    font-size: 1rem !important;
  }
}






