/* ==========================================================================
   SECURE YATRI - Premium Modern Travel Safety & Protection Platform
   Styling System & Architecture
   ========================================================================== */

:root {
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.35);
  --primary-dark: #059669;
  --primary-light: #34d399;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.4);
  
  --bg-dark: #070d18;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.5);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-danger-glow: 0 0 30px var(--danger-glow);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #0e2038 0%, var(--bg-dark) 55%);
  transition: background var(--transition), color var(--transition);
}

[data-theme="light"] body {
  background: radial-gradient(circle at 50% 0%, #e2e8f0 0%, var(--bg-dark) 60%);
}

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

ul {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   TOP TICKER STYLES
   ========================================================================== */
.top-ticker {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  border-bottom: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  position: relative;
  z-index: 101;
}

.ticker-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.01em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.ticker-compliance {
  font-size: 0.75rem;
  opacity: 0.75;
}

.ticker-helplines {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
}

.ticker-pill {
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ticker-pill:hover {
  color: var(--primary-light);
}

.ticker-pill strong {
  color: #38bdf8;
  font-weight: 700;
}

/* ==========================================================================
   MAIN NAVBAR STYLES
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 13, 24, 0.88);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-shield {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070d18;
  font-weight: 900;
  box-shadow: 0 0 18px var(--primary-glow);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.brand-logo:hover .logo-shield {
  transform: rotate(-6deg) scale(1.05);
}

.brand-name {
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

[data-theme="light"] .brand-name {
  background: linear-gradient(90deg, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-name span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.75rem);
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 0.4rem 0.2rem;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Language Selector Dropdown */
.lang-select-wrapper {
  position: relative;
}

.lang-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

[data-theme="light"] .lang-select {
  background: #f1f5f9;
}

.lang-select:hover, .lang-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Theme Toggle Button */
.btn-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-muted);
  transform: rotate(15deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #070d18;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
}

/* SOS Button in Navbar */
.btn-sos {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--danger-glow);
  font-weight: 700;
  animation: pulse-sos 2.5s infinite;
  white-space: nowrap;
}

.btn-sos:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f87171, #ef4444);
}

@keyframes pulse-sos {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.8); }
}

/* Animated Hamburger Toggle Button (Mobile & Tablet) */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: var(--transition);
  z-index: 1060;
}

[data-theme="light"] .mobile-toggle {
  background: #f1f5f9;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

.mobile-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, width 0.2s ease;
}

/* Hamburger active transformation to 'X' */
.mobile-toggle.is-active .bar-1 {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.is-active .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.is-active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   OFFCANVAS DRAWER & BACKDROP (Mobile & Tablet)
   ========================================================================== */
body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: rgba(10, 17, 30, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

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

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-color: var(--danger);
  transform: rotate(90deg);
}

.drawer-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.drawer-section-title {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* Language Selection Pills in Drawer */
.lang-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.lang-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.5rem 0.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.lang-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.lang-pill.active {
  background: var(--primary);
  color: #070d18;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Drawer Navigation Links */
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.drawer-link:hover, .drawer-link:active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--primary-light);
  transform: translateX(4px);
}

.drawer-icon {
  font-size: 1.15rem;
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-text {
  flex-grow: 1;
}

.drawer-arrow {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: transform var(--transition);
}

.drawer-link:hover .drawer-arrow {
  color: var(--primary-light);
  transform: translateX(3px);
}

/* Emergency Box in Drawer */
.drawer-emergency-box {
  margin-top: auto;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.drawer-sos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.drawer-sos-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.drawer-sos-call strong {
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-pink {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.btn-pink:hover {
  background: #f43f5e;
  color: #ffffff;
}

.drawer-trigger-btn {
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #34d399, #06b6d4, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.stat-item h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Visual & Media Card */
.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.hero-banner-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-banner-img {
  transform: scale(1.03);
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.1) 40%, rgba(7, 13, 24, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.hero-floating-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(7, 13, 24, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--primary-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-overlay-details {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-overlay-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.route-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  animation: progress-pulse 2s infinite ease-in-out;
}

@keyframes progress-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; filter: brightness(1.2); }
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Interactive Safety Simulator */
.interactive-simulator {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 5rem;
  box-shadow: var(--shadow-md);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
}

.sim-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

[data-theme="light"] .form-control {
  background: #f8fafc;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.sim-display {
  background: #090e1a;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  overflow: hidden;
}

.radar-screen {
  position: relative;
  height: 220px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle, #0b1e36 0%, #070e1b 80%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.4) 0deg, transparent 60deg);
  transform-origin: 0 0;
  animation: sweep 4s linear infinite;
  pointer-events: none;
}

@keyframes sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-nodes {
  position: relative;
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
}

.node-safe {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary-light);
  border: 1px solid var(--primary);
  top: 30%;
  left: 20%;
}

.node-police {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid #38bdf8;
  top: 65%;
  left: 60%;
}

.node-user {
  background: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  border: 1px solid #f59e0b;
  top: 50%;
  left: 45%;
  animation: pulse-user 1.5s infinite;
}

@keyframes pulse-user {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 0 15px rgba(245, 158, 11, 0.6); }
}

.sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.sim-metric-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.sim-metric-card .val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-light);
}

.sim-metric-card .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Feature Showcase Grid */
.features-section {
  padding: 4rem 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-img {
  transform: scale(1.08);
}

.feature-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.feature-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.feature-icon-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

/* Stree Suraksha / Women Travel Section */
.stree-section {
  padding: 5rem 0;
  position: relative;
}

.stree-box {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.stree-tag {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

.stree-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.stree-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.stree-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.perk-item span {
  color: #f43f5e;
  font-size: 1.1rem;
}

.stree-img-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.stree-img-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Driver / Cab Check Tool */
.cab-check-section {
  padding: 4rem 0;
}

.cab-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.driver-result-box {
  background: #090e1a;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: none;
  animation: fadeIn 0.4s ease;
}

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

.driver-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.driver-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: 2px solid var(--primary);
}

.driver-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.verification-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.check-item.verified {
  color: var(--primary-light);
}

/* Pricing Plans */
.pricing-section {
  padding: 4rem 0;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card.popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 60%);
  transform: scale(1.04);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #070d18;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.plan-features li.active {
  color: var(--text-main);
}

.plan-features li.active::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

.plan-features li.inactive {
  opacity: 0.4;
}

.plan-features li.inactive::before {
  content: "✕";
  color: var(--text-dim);
}

/* Testimonials */
.testimonials-section {
  padding: 4rem 0;
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.test-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.test-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-light);
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* FAQ Accordion */
.faq-section {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.accordion-item.active .accordion-body {
  max-height: 250px;
  padding-bottom: 1.25rem;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* App Download CTA Banner */
.app-cta-banner {
  background: radial-gradient(circle at 100% 50%, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.95) 70%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  margin: 4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-buttons-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #000000;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Footer */
.footer {
  background: #040810;
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.emergency-numbers-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.emergency-pill {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.emergency-pill strong {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Emergency SOS Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.show {
  display: flex;
}

.sos-modal {
  background: #0b1324;
  border: 2px solid var(--danger);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.5);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.sos-countdown-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--danger);
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: var(--danger);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
  animation: pulse-ring 1s infinite;
}

.sos-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   TOURS & TRAVELS STYLES (Single Driver & Route Selector)
   ========================================================================== */
.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.route-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.route-pill-btn:hover, .route-pill-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

.assigned-driver-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.driver-avatar-badge {
  position: relative;
  width: 55px;
  height: 55px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.driver-verified-tick {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--primary);
  color: #070d18;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
}

.fare-display-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fare-amount {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-light);
}

.fare-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fleet-section {
  padding: 4rem 0;
}

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

.fleet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.fleet-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

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

.fleet-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.fleet-rate {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-light);
}

.fleet-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.fleet-specs span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Specific Responsive Component Helpers */
.brand-tag {
  font-size: 0.65rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
  white-space: nowrap;
}

.nav-apk-btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.route-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  width: 100%;
}

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

.sim-status-footer {
  margin-top: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cab-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.sample-drivers-wrap {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sample-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
}

.sample-cab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.sample-cab-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

.driver-action-buttons {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
   ========================================================================== */

/* 1. Large Desktop (>= 1200px) */
@media (min-width: 1200px) {
  .nav-menu {
    gap: 1.75rem;
  }
}

/* 2. Standard Desktop / Laptops (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-container {
    height: 70px;
  }
  .brand-logo {
    font-size: 1.25rem;
  }
  .logo-shield {
    width: 36px;
    height: 36px;
  }
  .nav-menu {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.875rem;
  }
  .nav-actions {
    gap: 0.65rem;
  }
}

/* 3. Tablets & Hybrid Devices (768px to 991px) */
@media (max-width: 991px) {
  .nav-menu {
    display: none !important;
  }
  
  .mobile-toggle {
    display: flex;
  }

  .nav-container {
    height: 66px;
  }

  .brand-logo {
    font-size: 1.2rem;
    gap: 0.6rem;
  }

  .logo-shield {
    width: 36px;
    height: 36px;
  }

  .nav-actions {
    gap: 0.65rem;
  }

  .ticker-compliance {
    display: none;
  }

  .hero-grid, .sim-grid, .cab-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .interactive-simulator {
    padding: 2rem 1.5rem;
    margin-bottom: 3.5rem;
  }

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

  .features-grid, .pricing-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

/* 4. Mobile Devices (<= 767px) */
@media (max-width: 767px) {
  /* Prevent Any Horizontal Page Jitter/Overflow */
  html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
  }

  * {
    min-width: 0;
  }

  .container {
    padding: 0 1rem;
    max-width: 100%;
  }

  /* Top Ticker Mobile Stacking */
  .top-ticker {
    padding: 0.35rem 0.65rem;
    font-size: 0.725rem;
  }

  .ticker-compliance {
    display: none;
  }

  .ticker-container {
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .ticker-left, .ticker-helplines {
    white-space: normal;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 0.45rem;
  }

  .live-badge {
    padding: 0.12rem 0.5rem;
    font-size: 0.7rem;
  }

  /* Navbar Header Mobile */
  .navbar {
    border-bottom-width: 1px;
  }

  .nav-container {
    height: 58px;
    padding: 0 0.85rem;
  }

  .brand-logo {
    font-size: 1.1rem;
    gap: 0.45rem;
  }

  .brand-tag {
    display: none; /* Hide wide badge on phones to prevent header squeeze */
  }

  .logo-shield {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  #desktopLangWrapper {
    display: none;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .nav-apk-btn {
    padding: 0.38rem 0.75rem;
    font-size: 0.775rem;
    gap: 0.25rem;
  }

  .btn-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .mobile-toggle {
    width: 34px;
    height: 34px;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 2.25rem 0 2rem;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.22;
    margin-bottom: 1rem;
    word-break: break-word;
  }

  .hero-desc {
    font-size: 0.925rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    width: 100%;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 1rem;
  }

  .stat-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
  }

  .stat-item p {
    font-size: 0.85rem;
  }

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

  .hero-card-overlay {
    padding: 0.85rem;
  }

  .hero-floating-badge {
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.7rem;
    padding: 0.3rem 0.55rem;
  }

  .hero-overlay-details {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .hero-overlay-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.8rem;
  }

  /* Section Headers Mobile */
  .section-header {
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .section-desc {
    font-size: 0.875rem;
  }

  /* Route Selector Pills Mobile */
  .route-pills-container {
    gap: 0.4rem;
  }

  .route-pill-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  /* Interactive Simulator Card Mobile */
  .interactive-simulator {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
  }

  .sim-form {
    gap: 1rem;
  }

  .form-control {
    font-size: 0.875rem;
    padding: 0.65rem 0.85rem;
  }

  .fare-display-box {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
  }

  .fare-amount {
    font-size: 1.5rem;
  }

  .sim-display {
    padding: 1rem 0.85rem;
    min-height: auto;
    gap: 0.85rem;
  }

  .route-header-flex {
    margin-bottom: 0.5rem;
  }

  #routeDisplayTitle {
    font-size: 0.825rem !important;
    word-break: break-word;
  }

  .assigned-driver-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .assigned-driver-card > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
  }

  .assigned-driver-card > div:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    width: 100%;
    text-align: left;
  }

  #driverName {
    font-size: 0.975rem !important;
  }

  #driverDetails {
    font-size: 0.75rem !important;
    word-break: break-word;
  }

  .radar-screen {
    height: 160px;
  }

  .node {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    max-width: 90%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .sim-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-top: 0.75rem;
  }

  .sim-metric-card {
    padding: 0.5rem 0.25rem;
  }

  .sim-metric-card .val {
    font-size: 1rem;
  }

  .sim-metric-card .lbl {
    font-size: 0.65rem;
  }

  .sim-status-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.75rem;
  }

  /* Fleet Grid Mobile */
  .fleet-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fleet-section {
    padding: 2.5rem 0;
  }

  .fleet-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .fleet-header {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .fleet-name {
    font-size: 1.15rem;
  }

  .fleet-rate {
    font-size: 1.05rem;
  }

  .fleet-specs {
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }

  .fleet-card button {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  /* Features Grid Mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-section {
    padding: 2.5rem 0;
  }

  .feature-card {
    border-radius: var(--radius-md);
  }

  .feature-img-wrapper {
    height: 170px;
  }

  .feature-body {
    padding: 1.25rem 1rem;
  }

  .feature-title {
    font-size: 1.15rem;
  }

  .feature-desc {
    font-size: 0.875rem;
  }

  .feature-list li {
    font-size: 0.825rem;
    line-height: 1.45;
  }

  /* Pricing / Packages Grid Mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .pricing-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .pricing-card.popular {
    transform: none !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
  }

  .plan-price {
    font-size: 1.75rem;
  }

  .plan-features li {
    font-size: 0.85rem;
  }

  .pricing-card button {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  /* Driver Check Card Mobile */
  .cab-card {
    grid-template-columns: 1fr;
    padding: 1.25rem 0.85rem !important;
    border-radius: var(--radius-md);
    gap: 1.5rem;
  }

  .cab-input-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cab-input-row button {
    width: 100%;
    padding: 0.75rem;
  }

  .sample-drivers-wrap {
    width: 100%;
  }

  .sample-pills-row {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .driver-result-box {
    padding: 1rem 0.85rem;
  }

  .driver-profile {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .verification-checklist {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .driver-action-buttons {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .driver-action-buttons .btn {
    width: 100%;
  }

  /* Testimonials Mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonial-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  /* CTA Banner Mobile */
  .app-cta-banner {
    padding: 1.75rem 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
  }

  .app-cta-banner h2 {
    font-size: 1.5rem !important;
  }

  .cta-buttons-row {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .cta-buttons-row .btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  /* Footer Mobile */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-bottom > div:last-child {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}

/* 5. Extra Small Mobile Screens (<= 480px / 360px - 390px) */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.65rem;
    height: 56px;
  }

  .brand-logo {
    font-size: 1.05rem;
    gap: 0.35rem;
  }

  .logo-shield {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .nav-apk-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.725rem;
  }

  .btn-icon, .mobile-toggle {
    width: 32px;
    height: 32px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .sim-metrics {
    grid-template-columns: 1fr;
  }

  .mobile-drawer {
    width: 90vw;
  }
}

/* 6. Micro Phones (<= 360px) */
@media (max-width: 360px) {
  .nav-apk-btn span {
    font-size: 0.675rem;
  }
  .brand-logo {
    font-size: 0.95rem;
  }
  .container {
    padding: 0 0.65rem;
  }
}

