:root {
  --primary: #012547;
  --primary-light: #0a3d6b;
  --primary-dark: #001a33;
  --accent: #3da8dc;
  --orange: #f39d2e;
  --orange-dark: #e88b1a;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e8ecf0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: #f0f2f5;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* App Shell */
.app {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(61,168,220,0.2); }
  50% { box-shadow: 0 0 40px rgba(61,168,220,0.4); }
}
@keyframes busDrive {
  0% { transform: translateX(120%) scaleX(-1); }
  100% { transform: translateX(-120%) scaleX(-1); }
}
@keyframes seatPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(61,168,220,0.3); }
  50% { border-color: rgba(243,157,46,0.5); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-up { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }
.delay-6 { animation-delay: 0.6s; opacity: 0; }

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 1000;
  background: var(--primary);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header.scrolled {
  background: rgba(1, 37, 71, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 20px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.header-logo {
  height: 35px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s;
}
.header.scrolled .header-logo {
  height: 28px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-login {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 6px 16px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all 0.25s;
}
.btn-login:hover { background: rgba(255,255,255,0.18); }
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.hamburger span:nth-child(1) { width: 20px; }
.hamburger span:nth-child(2) { width: 14px; background: var(--accent); }
.hamburger span:nth-child(3) { width: 20px; }

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(165deg, var(--primary) 0%, var(--primary-light) 35%, #1a5a8a 65%, var(--accent) 100%);
  padding-top: 85px;
  padding-bottom: 44px;
  position: relative;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 40%, var(--white) 1px, transparent 1px),
    radial-gradient(circle at 75% 20%, var(--white) 0.5px, transparent 0.5px),
    radial-gradient(circle at 50% 80%, var(--white) 0.8px, transparent 0.8px);
  background-size: 50px 50px, 30px 30px, 40px 40px;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orb-1 {
  width: 80px; height: 80px;
  top: 100px; right: 20px;
  background: radial-gradient(circle, rgba(61,168,220,0.18), transparent 70%);
  animation: float 5s ease-in-out infinite;
}
.hero-orb-2 {
  width: 50px; height: 50px;
  top: 170px; left: 15px;
  background: radial-gradient(circle, rgba(243,157,46,0.15), transparent 70%);
  animation: float 6s ease-in-out infinite 1.5s;
}
.hero-orb-3 {
  width: 30px; height: 30px;
  top: 85px; left: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  animation: floatSlow 4s ease-in-out infinite 0.5s;
}

/* Bus Image floating in hero */
.hero-bus-image {
  position: absolute;
  bottom: 60px;
  left: -20px;
  width: 180px;
  opacity: 0.08;
  animation: float 7s ease-in-out infinite 2s;
  pointer-events: none;
  filter: brightness(3);
}

.hero-content {
  padding: 0 22px;
  position: relative;
  z-index: 5;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(243,157,46,0.15);
  color: var(--orange);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-badge svg { flex-shrink: 0; }
.hero-title {
  color: var(--white);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 10px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 290px;
}
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  z-index: 2;
}

/* ==================== BOOKING CARD ==================== */
.booking-wrapper {
  position: relative;
  z-index: 10;
  padding: 0 16px;
}
.booking-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), var(--orange), var(--accent));
  border-radius: 26px;
  opacity: 0.35;
  filter: blur(2px);
  z-index: -1;
  animation: borderGlow 4s ease-in-out infinite;
}
.booking-card {
  background: rgba(255,255,255,0.98);
  border-radius: var(--radius-2xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-xl), 0 4px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  position: relative;
}
.trip-type-group {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 20px;
}
.trip-type-btn {
  flex: 1;
  padding: 10px 6px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Cairo', sans-serif;
}
.trip-type-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(1,37,71,0.2);
  transform: scale(1.02);
}
.form-group {
  margin-bottom: 14px;
  position: relative;
}
.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  background: var(--gray-50);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
}
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(61,168,220,0.1);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  background: var(--gray-50);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
  transition: all 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(61,168,220,0.1);
}

/* Swap Button */
.swap-row {
  display: flex;
  justify-content: center;
  margin: -6px 0;
  position: relative;
  z-index: 5;
}
.swap-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2d8bba);
  border: 3px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(61,168,220,0.3);
  transition: all 0.3s;
}
.swap-btn:hover {
  transform: rotate(180deg);
  box-shadow: 0 6px 20px rgba(61,168,220,0.45);
}
.date-row .form-label{
  display:flex;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
}
.date-row .form-label span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.btn-search {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 6px 20px rgba(243,157,46,0.35);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(243,157,46,0.45);
}
.btn-search:active { transform: translateY(0); }

/* ==================== BUS RESULTS ==================== */
.results-section {
  padding: 24px 16px;
  display: none;
}
.results-section.show {
  display: block;
  animation: fadeUp 0.5s ease;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-title {
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
}
.section-count {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 600;
}

.bus-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 12px;
  border: 2px solid var(--gray-100);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.bus-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
}
.bus-card.selected {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(1,37,71,0.2);
  transform: scale(1.02);
}
.bus-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.bus-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  background: rgba(1,37,71,0.07);
  color: var(--primary);
  margin-bottom: 4px;
}
.bus-card.selected .bus-type-badge {
  background: rgba(61,168,220,0.2);
  color: var(--accent);
}
.bus-code {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  margin-right: 6px;
}
.bus-card.selected .bus-code { color: rgba(255,255,255,0.4); }
.bus-time {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
}
.bus-card.selected .bus-time { color: var(--white); }
.bus-price {
  text-align: left;
}
.bus-price-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--orange);
}
.bus-price-unit {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
}
.bus-card.selected .bus-price-unit { color: rgba(255,255,255,0.5); }

.bus-card-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.bus-card.selected .bus-card-bottom { border-color: rgba(255,255,255,0.1); }
.bus-info-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
}
.bus-card.selected .bus-info-chip { color: rgba(255,255,255,0.65); }
.bus-divider {
  width: 1px;
  height: 14px;
  background: var(--gray-200);
}
.bus-card.selected .bus-divider { background: rgba(255,255,255,0.12); }
.availability-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.availability-dot.high { background: #22c55e; }
.availability-dot.mid { background: var(--orange); }
.availability-dot.low { background: #ef4444; }
.availability-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}
.bus-card.selected .availability-text { color: var(--white); }

/* ==================== SEAT SELECTION ==================== */
.seat-section {
  padding: 0 16px 24px;
  display: none;
}
.seat-section.show {
  display: block;
  animation: fadeUp 0.4s ease;
}
.seat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.seat-title {
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
}
.btn-back {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
}

/* Passenger Counter */
.passenger-counter {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.counter-group { text-align: center; }
.counter-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.counter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.counter-btn {
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
  transition: all 0.2s;
}
.counter-btn:hover { border-color: var(--accent); }
.counter-btn.primary {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}
.counter-btn.orange {
  border: none;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
}
.counter-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  min-width: 28px;
  text-align: center;
}
.counter-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* Seat Legend */
.seat-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 10px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 12px; height: 12px;
  border-radius: 4px;
}
.legend-dot.available { background: var(--primary); opacity: 0.85; }
.legend-dot.selected { background: var(--orange); }
.legend-dot.reserved { background: var(--gray-400); opacity: 0.4; }
.legend-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
}

/* Seat Map */
.seat-map-container {
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  border-radius: var(--radius-2xl);
  padding: 0 12px 20px;
  border: 2px solid var(--gray-200);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
  overflow: hidden;
}
.bus-top-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 0 0 16px 16px;
  padding: 10px 16px;
  margin: 0 -12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bus-top-brand {
  height: 20px;
  width: auto;
  filter: brightness(10);
  opacity: 0.8;
}
.bus-top-code {
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  font-weight: 600;
}
.bus-bottom-bar {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 16px 16px 0 0;
  padding: 8px 16px;
  margin: 14px -12px 0;
  text-align: center;
}
.bus-bottom-text {
  color: rgba(255,255,255,0.35);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Seat Row */
.seat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  padding: 0 4px;
}
.seat-pair {
  display: flex;
  gap: 3px;
}
.seat-aisle { width: 40px; }

/* Seat Button */
.seat-btn {
  width: 40px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  position: relative;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.seat-btn:disabled { cursor: not-allowed; }
.seat-btn.reserved { opacity: 0.35; }
.seat-btn.selected { transform: scale(1.08); }
.seat-btn .seat-svg { transition: all 0.2s; }
.seat-num {
  font-size: 9px;
  font-weight: 700;
  color: var(--primary);
  margin-top: -2px;
  font-family: 'Cairo', sans-serif;
}
.seat-btn.selected .seat-num { color: var(--orange); }
.seat-btn.reserved .seat-num { color: var(--gray-400); }

.driver-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 8px;
}
.driver-badge {
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  padding: 5px 18px;
  font-size: 11px;
  font-weight: 700;
}
.door-badge {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

/* Bathroom Icon */
.bathroom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.25;
}

/* ==================== BOOKING SUMMARY ==================== */
.booking-summary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  margin-top: 16px;
  display: none;
  animation: fadeUp 0.3s ease;
}
.booking-summary.show { display: block; }
.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.summary-seats-label {
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 4px;
}
.summary-seats-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.summary-seat-chip {
  background: rgba(243,157,46,0.2);
  color: var(--orange);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
}
.summary-total-label {
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 2px;
  text-align: left;
}
.summary-total-value {
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
}
.summary-total-unit {
  color: rgba(255,255,255,0.35);
  font-size: 9px;
}
.btn-confirm {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 6px 20px rgba(243,157,46,0.3);
  transition: all 0.3s;
}
.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243,157,46,0.4);
}

/* ==================== FEATURES ==================== */
.features-section {
  padding: 36px 16px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-badge.blue { background: rgba(61,168,220,0.1); color: var(--accent); }
.section-badge.orange { background: rgba(243,157,46,0.1); color: var(--orange); }
.section-heading {
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon-wrap {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(61,168,220,0.1), rgba(61,168,220,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.feature-title {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}
.feature-desc {
  color: var(--gray-400);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
}

/* ==================== BUS SHOWCASE ==================== */
.bus-showcase {
  padding: 0 16px;
  margin-bottom: 32px;
  position: relative;
}
.bus-showcase-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), #1a5a8a);
  border-radius: var(--radius-2xl);
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}
.bus-showcase-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background: radial-gradient(circle at 80% 30%, var(--white) 1px, transparent 1px);
  background-size: 30px 30px;
}
.bus-showcase-img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
  animation: floatSlow 5s ease-in-out infinite;
}
.bus-showcase-title {
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 6px;
}
.bus-showcase-desc {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.7;
}
.bus-showcase-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
}
.bus-showcase-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bus-showcase-feat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bus-showcase-feat-text {
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  font-weight: 600;
}

/* ==================== STATS ==================== */
.stats-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 32px 16px;
  margin: 0 16px;
  border-radius: var(--radius-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-item { text-align: center; }
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}
.stat-number {
  color: var(--orange);
  font-size: 26px;
  font-weight: 900;
}
.stat-label {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 600;
}

/* ==================== FAQ ==================== */
.faq-section {
  padding: 36px 16px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 8px;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.3s;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item.active { background: var(--gray-50); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q-text {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  flex: 1;
  line-height: 1.5;
}
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
  transition: all 0.3s;
}
.faq-item.active .faq-toggle {
  background: var(--primary);
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  animation: fadeIn 0.3s ease;
}
.faq-item.active .faq-answer { display: block; }

/* ==================== DOWNLOAD APP ==================== */
.download-section {
  background: linear-gradient(135deg, rgba(61,168,220,0.06), rgba(243,157,46,0.04));
  padding: 32px 16px;
  margin: 0 16px;
  border-radius: var(--radius-2xl);
  text-align: center;
}
.download-icon-wrap {
  width: 100px; height: 98px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.download-app-icon {
  width: 100px;
  height: 98px;
  object-fit: contain;
  display: block;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 0;
}
.download-title {
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}
.download-desc {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.7;
}
.download-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.store-btn {
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 0;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn img {
  height: 46px;
  width: auto;
  display: block;
  border-radius: var(--radius-md);
}
/* ==================== CONTACT ==================== */
.contact-section {
  padding: 36px 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: all 0.3s;
}
.contact-card:hover { transform: translateX(-4px); }
.contact-card.blue { background: rgba(61,168,220,0.07); }
.contact-card.orange { background: rgba(243,157,46,0.07); }
.contact-card.gray { background: rgba(1,37,71,0.04); }
.contact-icon-wrap {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon-wrap.blue { background: rgba(61,168,220,0.15); }
.contact-icon-wrap.orange { background: rgba(243,157,46,0.15); }
.contact-icon-wrap.dark { background: rgba(1,37,71,0.1); }
.contact-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
}
.contact-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--primary);
  padding: 28px 16px 110px;
  text-align: center;
}
.footer-logo {
  height: 30px;
  width: auto;
  margin: 0 auto 14px;
  display: block;
  filter: brightness(10);
  opacity: 0.8;
}
.footer-text {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.footer-link {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 16px;
  color: rgba(255,255,255,0.25);
  font-size: 10px;
  font-weight: 500;
}

/* ==================== BOTTOM NAV ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 8px 10px 18px;
  display: flex;
  justify-content: space-around;
  z-index: 1000;
}
.nav-item {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'Cairo', sans-serif;
}
.nav-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--gray-400);
}
.nav-item.active .nav-label {
  font-weight: 800;
  color: var(--orange);
}
.nav-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

/* ==================== LOGIN MODAL ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.show {
  display: flex;
}
.login-sheet {
  background: var(--white);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 32px 24px 40px;
  animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.login-title {
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
}
.btn-close {
  background: var(--gray-100);
  border: none;
  border-radius: 10px;
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-close:hover { background: var(--gray-200); }
.login-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
}
.login-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s;
}
.login-tab.active {
  background: var(--primary);
  color: var(--white);
}

/* ==================== DESKTOP STYLES ==================== */
@media (min-width: 481px) {
  .app {
    border-radius: var(--radius-2xl);
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
  }
  body {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e8ecf0 0%, #d1d5db 100%);
  }
}
@media (min-width: 768px) {
  .app {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

/* 1) safety: ممنوع أي خروج أفقي */
.app,
.booking-card,
.booking-wrapper,
.date-row,
.form-group {
  overflow-x: hidden;
}

/* 2) date row: كل عمود يتصرف صح */
.date-row {
  width: 100%;
  align-items: stretch;
}

.date-row .form-group{
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

/* 3) iOS date input fix */
.date-row input[type="date"].form-input{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
}