/* ==========================================================================
   PaRide - Custom Green Design System & Theme Engine
   ========================================================================== */

:root {
  /* Green Theme Palette */
  --bg-dark: #08120e;
  --bg-card: #101f16;
  --bg-card-hover: #16291e;
  --bg-surface: #0b1811;
  --bg-glass: rgba(16, 31, 22, 0.75);
  
  --primary-green: #10b981;
  --primary-green-glow: #10d070;
  --primary-green-dark: #059669;
  --green-deep: #064e3b;
  --green-light: #d1fae5;
  --green-accent: #34d399;
  
  --border-green: rgba(16, 185, 129, 0.25);
  --border-green-hover: rgba(16, 208, 112, 0.5);
  --shadow-green: 0 8px 32px rgba(16, 185, 129, 0.2);
  --shadow-glow: 0 0 25px rgba(16, 208, 112, 0.35);

  --text-main: #f0fdf4;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --text-green: #10b981;

  --red-accent: #ef4444;
  --blue-accent: #3b82f6;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Fluid scale */
  --space-xs: clamp(0.4rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.6vw, 1.2rem);
  --space-md: clamp(1rem, 2.4vw, 2rem);
  --space-lg: clamp(1.5rem, 4vw, 3rem);
  --section-pad: clamp(2.4rem, 7vw, 5rem);
  --container-pad: clamp(12px, 3.2vw, 20px);
  --title-xl: clamp(1.85rem, 5vw, 3.4rem);
  --title-lg: clamp(1.55rem, 3.6vw, 2.5rem);
  --title-md: clamp(1.15rem, 2.2vw, 1.4rem);
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.text-gradient {
  background: linear-gradient(135deg, #10b981 0%, #10d070 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-green { color: var(--primary-green-glow); }
.text-red { color: var(--red-accent); }
.font-mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-align { display: flex; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.75rem; }
.fs-18 { font-size: 1.125rem; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-decoration: none;
  min-height: 44px;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green-glow));
  color: #042416;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(16, 185, 129, 0.12);
  color: var(--text-main);
  border: 1px solid var(--border-green);
}

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

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

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

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease-out;
}

.glow-effect:hover::after {
  transform: scale(1);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-green);
  border-radius: 18px;
  padding: clamp(1rem, 2.8vw, 1.8rem);
  box-shadow: var(--shadow-green);
  transition: border-color 0.3s, transform 0.3s;
  min-width: 0;
}

.glass-card:hover {
  border-color: var(--border-green-hover);
}

.glow-border {
  border: 1px solid var(--primary-green-glow);
  box-shadow: var(--shadow-glow);
}

.green-gradient-border {
  position: relative;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--primary-green-glow), var(--green-deep)) border-box;
  border: 1px solid transparent;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pulse {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary-green-glow);
  border: 1px solid var(--primary-green);
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary-green-glow);
}

.pulse-green {
  width: 8px;
  height: 8px;
  background-color: var(--primary-green-glow);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 208, 112, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 208, 112, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 208, 112, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 208, 112, 0); }
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #042416 0%, #064e3b 50%, #042416 100%);
  border-bottom: 1px solid var(--border-green);
  padding: 0.5rem 0;
  font-size: 0.88rem;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.announcement-content .link-btn {
  color: var(--primary-green-glow);
  text-decoration: none;
  font-weight: 600;
}

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

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 18, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-green);
  padding: 0.9rem 0;
}

.header-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo-img,
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--primary-green-glow);
  background: linear-gradient(160deg, #0d281a 0%, #064e3b 100%);
  box-shadow: 0 0 14px rgba(16, 208, 112, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  color: var(--primary-green-glow);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-mark::before,
.brand-logo-img::before {
  content: "P";
  transform: translateY(-1px);
}

.brand-mark::after,
.brand-logo-img::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 22%;
  right: 22%;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-green-glow);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--primary-green-glow);
  font-style: italic;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.3s;
  padding: 0.4rem 0.2rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-green-glow);
  border-bottom: 2px solid var(--primary-green);
}

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

.header-actions .btn {
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: var(--section-pad) 0;
  min-height: calc(100dvh - 120px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-map-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: contrast(1.2) brightness(0.7);
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.18) 0%, rgba(8, 18, 14, 0.95) 75%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--border-green);
  border-radius: 50px;
  color: var(--primary-green-glow);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--title-xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

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

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: rgba(16, 31, 22, 0.6);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  font-size: 1.4rem;
  color: var(--primary-green-glow);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

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

/* Interactive Card & Floating Widget */
.hero-card-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.interactive-pass-card {
  width: 100%;
  max-width: 360px;
  height: 220px;
  border-radius: 20px;
  background: linear-gradient(135deg, #093822 0%, #064e3b 50%, #0d281a 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
  cursor: pointer;
}

.interactive-pass-card:hover {
  transform: rotate(0deg) scale(1.03);
}

.pass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pass-chip {
  font-size: 1.8rem;
  color: #f59e0b;
}

.pass-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--primary-green-glow);
}

.pass-number {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

.pass-holder {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.pass-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.pass-card-footer .label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.pass-card-footer .val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-green-glow);
}

.status-indicator {
  font-size: 0.75rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.live-activity-floating {
  margin-top: -30px;
  margin-left: -40px;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.activity-icon {
  font-size: 1.4rem;
}

.activity-text {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
}

.activity-text span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.activity-time {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Sections Common */
.section-padding {
  padding: var(--section-pad) 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-green-glow);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--title-lg);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Payment Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  display: flex;
  flex-direction: column;
}

.tech-card-icon {
  width: 54px;
  height: 54px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--border-green);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-green-glow);
  margin-bottom: 1.2rem;
}

.tech-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.tech-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.tech-list {
  list-style: none;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Interactive Map Layout */
.map-wrapper {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.2rem;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.map-sidebar h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  border-bottom: 1px solid var(--border-green);
  padding-bottom: 0.6rem;
}

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

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-green);
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary-green-glow);
}

.form-control option {
  background: #0b1811;
  color: #f0fdf4;
}

.map-controls-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.map-pin-inner {
  background: #10b981;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #042416;
  font-size: 16px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 15px rgba(16, 208, 112, 0.8);
}

.vehicle-pin-inner {
  background: #3b82f6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px #3b82f6;
}

.map-popup h4 {
  margin: 0 0 4px 0;
  color: #059669;
}

.map-popup p {
  margin: 0;
  font-size: 12px;
  color: #4b5563;
}

.map-popup-tag {
  display: inline-block;
  margin-top: 6px;
  background: #d1fae5;
  color: #047857;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.tx-empty {
  text-align: center;
  color: #9ca3af;
  padding: 1.5rem;
}

.radio-chip:has(input:checked) {
  border-color: var(--primary-green-glow);
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-green-glow);
}

.route-summary-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.summary-row.highlight {
  border-top: 1px solid var(--border-green);
  padding-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.map-container-box {
  position: relative;
  height: clamp(260px, 58vw, 480px);
  min-height: 240px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-green);
}

#leafletMap {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-legend {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 500;
  background: rgba(8, 18, 14, 0.9);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-green);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-dot.green { background: #10b981; }
.legend-dot.blue { background: #3b82f6; }
.legend-dot.polyline { width: 14px; height: 3px; background: #10d070; border-radius: 2px; }

/* Simulator Section */
.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.terminal-device {
  background: #06110a;
  border: 2px solid var(--primary-green);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 0 30px rgba(16, 208, 112, 0.25);
}

.terminal-screen-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.terminal-status-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-green-glow);
  border-radius: 50%;
}

.terminal-vehicle-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--border-green);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.6rem;
  color: var(--primary-green-glow);
}

.terminal-screen-body {
  background: #020804;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  min-height: 260px;
  margin: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.nfc-wave-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: nfcPulse 1.6s infinite ease-in-out;
}

@keyframes nfcPulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

.fare-display-box {
  margin-top: 1rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--border-green);
}

.fare-display-box .label { font-size: 0.75rem; color: var(--text-muted); display: block; }
.fare-display-box .amount { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--primary-green-glow); }

.screen-success-state .success-icon-wrap {
  font-size: 4rem;
  color: var(--primary-green-glow);
  margin-bottom: 0.5rem;
}

.receipt-preview-snippet {
  margin: 0.8rem 0;
  display: flex;
  flex-direction: column;
}

.receipt-preview-snippet .amount { font-size: 2.2rem; font-weight: 800; }
.receipt-preview-snippet .ref { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }

.terminal-controls-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.preset-fare-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.fare-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
}

.fare-preset-btn span { font-size: 0.78rem; color: var(--text-muted); }

.radio-group-horizontal {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.radio-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-green);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.action-buttons-sim {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Receipt Display */
.receipt-box {
  background: #fdfbf7;
  color: #111827;
  border-radius: 12px;
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.receipt-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.receipt-logo.brand-mark,
.receipt-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.05rem;
  box-shadow: none;
}

.receipt-header h4 { font-family: var(--font-heading); font-size: 0.92rem; }
.receipt-header p { font-size: 0.7rem; color: #6b7280; }

.receipt-divider {
  border-bottom: 2px dashed #d1d5db;
  margin: 0.6rem 0;
}

.receipt-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.r-line { display: flex; justify-content: space-between; }
.r-line.total { border-top: 1px solid #e5e7eb; padding-top: 0.4rem; font-size: 1.05rem; }

/* Wallet Dashboard Grid */
.wallet-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 1.8rem;
}

.wallet-balance-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.balance-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.balance-label { font-size: 0.85rem; color: var(--text-muted); }
.balance-main { font-family: var(--font-heading); font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 800; color: var(--primary-green-glow); line-height: 1; margin-top: 0.3rem; }

.wallet-chip-icon { font-size: 2rem; color: var(--primary-green); }

.wallet-actions { display: flex; flex-direction: column; gap: 0.6rem; }

.carbon-impact-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.carbon-icon { font-size: 1.5rem; }

/* Transaction History Table */
.transaction-history-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tx-filters { display: flex; gap: 0.4rem; }

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.tx-table th {
  padding: 0.8rem;
  border-bottom: 1px solid var(--border-green);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.tx-table td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.tx-table tr:hover td {
  background: rgba(16, 185, 129, 0.05);
}

.tx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tx-badge.ride { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tx-badge.topup { background: rgba(16, 185, 129, 0.15); color: var(--primary-green-glow); }
.tx-badge.bonus { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* Fare Calculator */
.fare-calc-card {
  max-width: 960px;
  margin: 0 auto;
}

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

.calc-inputs { display: flex; flex-direction: column; gap: 1.4rem; }

.slider-control {
  width: 100%;
  accent-color: var(--primary-green-glow);
  cursor: pointer;
  height: 6px;
  border-radius: 3px;
}

.calc-breakdown-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid var(--border-green);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.calc-line { display: flex; justify-content: space-between; font-size: 0.92rem; }

.calc-total-box {
  border-top: 2px dashed var(--border-green);
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-total-box .total-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
}

/* Driver Portal Mockup */
.driver-dashboard-mockup {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.driver-avatar {
  width: 46px;
  height: 46px;
  background: var(--green-deep);
  border: 1px solid var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-green-glow);
}

.driver-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.d-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-green);
  border-radius: 14px;
  padding: 1.2rem;
}

.d-label { font-size: 0.8rem; color: var(--text-muted); }
.d-val { font-family: var(--font-heading); font-size: clamp(1.4rem, 4.5vw, 2.1rem); font-weight: 800; margin: 0.2rem 0; }
.d-sub { font-size: 0.74rem; color: var(--text-dim); }

.tap-stream-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.tap-item {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.tap-item .t-time { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.75rem; }

/* Call to Action Section */
.cta-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #062215 50%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-green);
}

.cta-logo.brand-mark,
.cta-logo {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  border-width: 3px;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.cta-logo.brand-mark::after {
  bottom: 12px;
}

.cta-title { font-family: var(--font-heading); font-size: var(--title-lg); font-weight: 800; margin-bottom: 0.8rem; }
.cta-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }

/* Footer */
.main-footer {
  background: #040a07;
  border-top: 1px solid var(--border-green);
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
.footer-logo.brand-mark,
.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.1rem;
}
.footer-desc { color: var(--text-muted); margin-bottom: 1rem; }
.copyright { font-size: 0.78rem; color: var(--text-dim); }

.footer-col h4 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 1rem; color: var(--text-main); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--primary-green-glow); }
.footer-col p { margin-bottom: 0.5rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: min(90dvh, 720px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.close-modal-btn:hover { color: var(--text-main); }

.topup-amount-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.payment-method-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pm-option {
  background: var(--bg-surface);
  border: 1px solid var(--border-green);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s;
}

.pm-option.active {
  border-color: var(--primary-green-glow);
  background: rgba(16, 185, 129, 0.12);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.legal-wrap { max-width: 900px; }
.legal-card { padding: clamp(1.15rem, 4vw, 2.5rem); }
.legal-page-title { font-size: var(--title-lg); margin-bottom: 1rem; }

.leaflet-tooltip {
  max-width: min(220px, 70vw);
  white-space: normal;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(8, 18, 14, 0.98);
    border-bottom: 1px solid var(--border-green);
    padding: 1rem var(--container-pad) 1.25rem;
    z-index: 1001;
  }
  .main-nav.show { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.35rem; }
  .main-nav .nav-link {
    display: block;
    padding: 0.75rem 0.4rem;
  }
  .mobile-toggle { display: inline-flex; }
}

@media (max-width: 1100px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { justify-content: center; }
  .live-activity-floating {
    margin: 1rem auto 0;
    max-width: 100%;
  }
  .map-wrapper { grid-template-columns: 1fr; }
  .map-controls-top { justify-content: flex-start; }
  .simulator-grid { grid-template-columns: 1fr; }
  .wallet-dashboard-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-actions { gap: 0.45rem; }
  .header-actions .btn { padding: 0.55rem 0.8rem; }
  .btn-label { display: none; }
  .announcement-content { text-align: center; gap: 0.5rem; }
  .hero-section { min-height: auto; padding-top: 2.4rem; }
  .hero-stats-grid { gap: 0.65rem; }
  .stat-card { padding: 0.7rem; }
  .map-wrapper { padding: 0.85rem; }
  .preset-fare-buttons { grid-template-columns: 1fr; }
  .driver-stats-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .tap-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.6rem;
  }
  .tap-item .t-amt { grid-column: 2; justify-self: end; }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    right: 10px;
    padding: 1rem;
  }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .topup-amount-buttons { grid-template-columns: repeat(2, 1fr); }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; }
  .wallet-actions .btn,
  .action-buttons-sim .btn { width: 100%; }
}

@media (max-width: 480px) {
  .brand-tagline { display: none; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.2rem; border-radius: 10px; }
  .hero-stats-grid { grid-template-columns: 1fr; }
  .hero-buttons .btn { width: 100%; }
  .radio-group-horizontal { flex-direction: column; }
  .radio-chip { width: 100%; }
  .tx-filters { width: 100%; flex-wrap: wrap; }
  .tx-filter-btn { flex: 1; min-width: calc(50% - 0.4rem); }
  .map-legend { left: 8px; right: 8px; bottom: 8px; }
  .terminal-vehicle-tag { font-size: 0.75rem; }
  .calc-total-box { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .calc-total-box .total-amount { font-size: 1.7rem; }
}

@media (max-width: 360px) {
  .header-actions .btn-outline { padding-inline: 0.65rem; }
  .brand-title { font-size: 1.25rem; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

@media (orientation: landscape) and (max-height: 540px) {
  .hero-section { min-height: auto; padding: 2rem 0; }
  .map-container-box { height: 240px; }
  .main-nav { max-height: 70dvh; overflow-y: auto; }
}

/* ==========================================================================
   Google AdSense Ready Slots & Cookie Consent Styling
   ========================================================================== */

.adsense-container {
  width: 100%;
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.adsense-slot {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  background: rgba(16, 31, 22, 0.4);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.adsense-slot::before {
  content: 'ADVERTISEMENT';
  position: absolute;
  top: 4px;
  right: 12px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 1px;
}

.adsense-placeholder-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--primary-green-glow);
  font-weight: 600;
  font-family: var(--font-heading);
}

.adsense-placeholder-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ad-sidebar {
  max-width: 320px;
  min-height: 250px;
  margin: 1rem 0;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 960px;
  margin: 0 auto;
  z-index: 9999;
  background: rgba(8, 18, 14, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--primary-green-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-consent-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.cookie-icon {
  font-size: 1.8rem;
  color: #f59e0b;
}

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

@media print {
  body * { visibility: hidden; }
  #receiptContainer, #receiptContainer * { visibility: visible; }
  #receiptContainer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    background: #fff;
    color: #111;
  }
}

