/* =============================================
   ZWET RIDE — CUSTOMER APP STYLES
   Premium ride-hailing UI
   ============================================= */

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

@media (min-width: 1024px) {
  body { background: var(--bg-secondary); }
  #app {
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* ── Screen System ── */
.screen-view {
  display: none;
  min-height: 100vh;
  position: relative;
}
.screen-view.active-view {
  display: block;
}

/* ── Splash Screen ── */
.splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1A1A2E 0%, #0A0A10 100%);
  position: relative;
  overflow: hidden;
}
.splash-screen::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,222,0,0.15), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseScale 2s ease-in-out infinite;
}
.splash-logo {
  position: relative;
  z-index: 2;
  text-align: center;
}
.splash-logo .logo-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 16px;
  animation: bounce 2s infinite;
}
.splash-logo h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: #FFF;
  letter-spacing: -1px;
}
.splash-logo h1 span { color: var(--primary); }
.splash-logo p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 8px;
}
.splash-progress {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  margin-top: 40px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.splash-progress .bar {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
  animation: progressBar 2s ease-in-out forwards;
}

/* ── Onboarding ── */
.onboarding-screen {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.onboarding-slides {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.onboarding-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.onboarding-slide.active {
  opacity: 1;
  transform: translateX(0);
}
.onboarding-slide.prev {
  opacity: 0;
  transform: translateX(-100%);
}
.onboarding-slide .slide-icon {
  font-size: 5rem;
  margin-bottom: 30px;
  animation: float 3s ease-in-out infinite;
}
.onboarding-slide h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.onboarding-slide p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 320px;
}
.onboarding-controls {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.onboarding-dots {
  display: flex;
  gap: 8px;
}
.onboarding-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}
.onboarding-dots .dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--primary);
}

/* ── Auth Screen ── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.auth-screen::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,222,0,0.06), transparent 70%);
  border-radius: 50%;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 2;
}
.auth-card .auth-header {
  text-align: center;
  margin-bottom: 36px;
}
.auth-card .auth-logo {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.auth-card .auth-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.auth-card .auth-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Input Groups */
.input-group {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 16px;
  margin-bottom: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.input-group i {
  color: var(--text-muted);
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.input-group input {
  flex: 1;
  padding: 16px 12px;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  width: 100%;
}
.input-group input::placeholder {
  color: var(--text-placeholder);
}
.phone-prefix {
  font-weight: 700;
  color: var(--text);
  margin-right: 4px;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-primary-lg);
  transform: translateY(-2px);
}
.btn-full {
  width: 100%;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 16px;
}
.btn-ghost:hover {
  color: var(--primary);
}
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}
.btn-icon i { margin: 0; }

/* ── Map Container ── */
.map-screen {
  position: relative;
  min-height: 100vh;
}
#map-container {
  width: 100%;
  height: 55vh;
  min-height: 300px;
  position: sticky;
  top: 0;
  z-index: 1;
}
#ride-map {
  width: 100%;
  height: 100%;
}
.map-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px;
}
.map-overlay-bottom {
  position: relative;
  z-index: 10;
  margin-top: -30px;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  background: var(--bg);
  min-height: 45vh;
  padding: 20px 20px 90px 20px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.1);
}

/* Location Search Bar */
.location-bar {
  background: var(--bg-glass-strong);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 0.3s;
}
.location-bar:hover {
  box-shadow: var(--shadow-xl);
}
.location-bar i {
  color: var(--primary);
  font-size: 1.1rem;
}
.location-bar .bar-text {
  flex: 1;
}
.location-bar .bar-text .greeting {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.location-bar .bar-text .where-to {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.location-bar .menu-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.3s;
}

/* ── Service Cards (Bike/Auto/Cab/Parcel) ── */
.service-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.service-cards::-webkit-scrollbar { display: none; }
.service-card {
  flex: 0 0 auto;
  min-width: 90px;
  padding: 16px 12px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card:active { transform: scale(0.93); }
.service-card.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.service-card .s-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.service-card .s-name {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.service-card .s-eta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Saved Locations ── */
.saved-locations {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.saved-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.saved-loc:hover { background: var(--primary-subtle); color: var(--primary); }
.saved-loc i { color: var(--text-muted); font-size: 0.9rem; }

/* ── Search Panel ── */
.search-panel {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 500;
  display: none;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
}
.search-panel.open { display: flex; }
.search-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.search-inputs {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.search-inputs::before {
  content: '';
  position: absolute;
  left: 34px;
  top: 46px;
  bottom: 46px;
  width: 2px;
  background: var(--border);
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.search-input-row .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 2;
}
.dot-green { background: var(--success); border: 2px solid var(--success); }
.dot-red { background: var(--danger); border: 2px solid var(--danger); }
.search-input-row input {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.search-input-row input:focus {
  border-color: var(--primary);
}
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s;
}
.search-result-item:hover { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 14px; margin: 0 -14px; }
.search-result-item .result-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-result-item .result-info { flex: 1; }
.search-result-item .result-name { font-weight: 600; font-size: 0.95rem; }
.search-result-item .result-addr { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ── Ride Selection Bottom Sheet ── */
.ride-select {
  padding: 0;
}
.ride-select .handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 10px;
  margin: 0 auto 20px;
}
.ride-route-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.ride-route-info .route-detail { flex: 1; }
.ride-route-info .route-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ride-route-info .route-val {
  font-size: 1.3rem;
  font-weight: 800;
}
.ride-route-info .divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Vehicle Options */
.vehicle-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.vehicle-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s;
}
.vehicle-option:active { transform: scale(0.98); }
.vehicle-option.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
}
.vehicle-option .v-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.vehicle-option .v-info { flex: 1; }
.vehicle-option .v-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}
.vehicle-option .v-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.vehicle-option .v-right { text-align: right; }
.vehicle-option .v-fare {
  font-weight: 800;
  font-size: 1.1rem;
}
.vehicle-option .v-eta-small {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}
.popular-badge {
  font-size: 0.65rem;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  margin-left: 6px;
}

/* Promo Section */
.promo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  cursor: pointer;
}
.promo-section i { color: var(--accent-orange); }
.promo-section span { flex: 1; font-weight: 600; font-size: 0.9rem; }
.promo-section .arrow { color: var(--text-muted); }

/* Payment Selector */
.payment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  cursor: pointer;
}
.payment-row .pay-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}
.payment-row .pay-label { flex: 1; font-weight: 600; font-size: 0.9rem; }

/* ── Finding Captain Screen ── */
.finding-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 30px;
  background: var(--bg);
}
.radar-container {
  width: 200px;
  height: 200px;
  position: relative;
  margin-bottom: 40px;
}
.radar-center {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-on-primary);
  z-index: 5;
  box-shadow: var(--shadow-primary);
}
.finding-screen h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.finding-screen p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* ── Captain Found Card ── */
.captain-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  width: 100%;
}
.captain-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.captain-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  border: 3px solid var(--primary);
}
.captain-info { flex: 1; }
.captain-info .cap-name {
  font-weight: 700;
  font-size: 1.1rem;
}
.captain-info .cap-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.captain-info .cap-rating i { color: var(--warning); font-size: 0.8rem; }
.captain-info .cap-rating strong { color: var(--text); }
.captain-pin {
  text-align: center;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: var(--radius-lg);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 6px;
}
.captain-vehicle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-top: 14px;
  font-size: 0.85rem;
}
.captain-vehicle i { color: var(--text-muted); font-size: 1.1rem; }
.captain-vehicle .v-model { font-weight: 600; }
.captain-vehicle .v-plate { color: var(--text-muted); margin-left: auto; font-family: var(--font-mono); font-size: 0.8rem; }
.captain-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.captain-actions .btn { flex: 1; }

/* ── Live Tracking Screen ── */
.tracking-screen {
  position: relative;
  min-height: 100vh;
}
#tracking-map {
  width: 100%;
  height: 50vh;
}
.tracking-bottom {
  position: relative;
  z-index: 10;
  margin-top: -30px;
  background: var(--bg);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: 24px 20px;
  min-height: 50vh;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.1);
}
.tracking-steps {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  position: relative;
}
.tracking-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding-top: 30px;
}
.tracking-step::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
}
.tracking-step:first-child::before { left: 50%; }
.tracking-step:last-child::before { right: 50%; }
.tracking-step .step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--bg);
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: all 0.3s;
}
.tracking-step.completed .step-dot,
.tracking-step.active .step-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.tracking-step.completed::before {
  background: var(--primary);
}
.tracking-step .step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}
.tracking-step.active .step-label { color: var(--primary); }

.eta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--success-light);
  color: var(--success);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.safety-strip {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.safety-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.safety-btn.sos {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger);
}
.safety-btn.share {
  background: var(--info-light);
  color: var(--info);
  border: 1px solid var(--info);
}

/* ── Ride Complete Screen ── */
.complete-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  background: var(--bg);
}
.complete-check {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 20px;
  animation: scaleBounce 0.6s ease-out;
}
.complete-screen h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.complete-screen .fare-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin: 10px 0;
}
.fare-breakdown {
  width: 100%;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin: 20px 0;
}
.fare-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
}
.fare-row.total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 800;
  font-size: 1.1rem;
}
.rating-section {
  width: 100%;
  text-align: center;
  margin: 20px 0;
}
.rating-section h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.star-rating {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.star-rating i {
  font-size: 2rem;
  color: var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.star-rating i.active,
.star-rating i:hover {
  color: var(--warning);
  transform: scale(1.2);
}
.tip-options {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.tip-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}
.tip-btn:hover, .tip-btn.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
  color: var(--primary);
}

/* ── My Rides (History) ── */
.rides-screen {
  padding: 20px;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: calc(var(--bottom-nav-height) + 30px);
}
.ride-history-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s;
  cursor: pointer;
}
.ride-history-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ride-h-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ride-h-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}
.ride-h-type .type-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.ride-h-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.status-completed { background: var(--success-light); color: var(--success); }
.status-cancelled { background: var(--danger-light); color: var(--danger); }
.status-ongoing { background: var(--warning-light); color: var(--warning); }
.ride-h-route {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 2px solid var(--border);
}
.ride-h-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.ride-h-point .point-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: -13px;
}
.ride-h-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.ride-h-fare { font-weight: 800; font-size: 1.1rem; }
.ride-h-date { font-size: 0.8rem; color: var(--text-muted); }

/* ── Profile Screen ── */
.profile-screen {
  padding: 20px;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: calc(var(--bottom-nav-height) + 30px);
}
.profile-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-2xl);
  color: var(--text-on-primary);
  margin-bottom: 24px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,0.3);
}
.profile-header h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.profile-header p { font-size: 0.85rem; opacity: 0.8; }
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}
.profile-stat { text-align: center; }
.profile-stat .stat-val { font-size: 1.3rem; font-weight: 900; }
.profile-stat .stat-label { font-size: 0.7rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }

.profile-menu { display: flex; flex-direction: column; gap: 4px; }
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
}
.profile-menu-item:hover { background: var(--bg-secondary); }
.profile-menu-item .menu-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.profile-menu-item .menu-label { flex: 1; font-weight: 600; font-size: 0.95rem; }
.profile-menu-item .menu-arrow { color: var(--text-muted); font-size: 0.8rem; }
.menu-divider { height: 1px; background: var(--border-light); margin: 8px 0; }

/* ── Wallet Screen ── */
.wallet-balance {
  background: linear-gradient(135deg, #1A1A2E, #2D2D50);
  border-radius: var(--radius-2xl);
  padding: 24px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.wallet-balance::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,222,0,0.1), transparent);
  border-radius: 50%;
}
.wallet-balance .wb-label { font-size: 0.85rem; opacity: 0.7; margin-bottom: 6px; }
.wallet-balance .wb-amount { font-size: 2.5rem; font-weight: 900; }
.wallet-balance .wb-coins { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.wallet-balance .wb-coins i { color: var(--primary); }

/* ── Offers Screen ── */
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.3s;
}
.offer-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.offer-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.offer-info { flex: 1; }
.offer-info .code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 6px;
}
.offer-info .desc { font-size: 0.85rem; color: var(--text-muted); }

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--bottom-nav-height);
  background: var(--bg-glass-strong);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 10px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: var(--radius-lg);
  position: relative;
}
.nav-item i { font-size: 1.2rem; transition: all 0.3s; }
.nav-item.active {
  color: var(--primary);
}
.nav-item.active i {
  transform: scale(1.1);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  top: -2px;
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

/* ── App Header ── */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--header-height);
  background: var(--bg-glass-strong);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}
.app-header .header-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}
.header-back {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}
.header-back:hover { background: var(--bg-secondary); }

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-overlay-dark);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}
.modal-overlay.active { display: flex; }
.modal-content {
  width: 100%;
  max-height: 85vh;
  background: var(--bg);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: 24px;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-y: auto;
}
.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 10px;
  margin: 0 auto 20px;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 30px;
}
.empty-state .empty-icon {
  font-size: 4rem;
  color: var(--border);
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Promo Banner Cards ── */
.promo-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 10px;
}
.promo-cards::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 280px;
  height: 140px;
  border-radius: var(--radius-xl);
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
}
.promo-card > * { position: relative; z-index: 2; }
.promo-card h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.promo-card p { font-size: 0.8rem; opacity: 0.9; }
.promo-1 { background: linear-gradient(135deg, #FF6B35, #FF2E63); }
.promo-2 { background: linear-gradient(135deg, #3B82F6, #8B5CF6); }
.promo-3 { background: linear-gradient(135deg, #10B981, #14B8A6); }

/* ── SOS Modal ── */
.sos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sos-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.sos-option:hover { background: var(--danger-light); }
.sos-option i { font-size: 1.5rem; color: var(--danger); }
.sos-option span { font-size: 0.85rem; font-weight: 600; }

/* ── Responsive Desktop ── */
@media (min-width: 1024px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
  }
  .bottom-nav {
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  }
}

/* ── Safe Area (Notch) ── */
/* Note: Shared button classes (.btn-site, .btn-site-primary, .btn-site-outline) are defined in shared/site.css */
/* This app uses its own .btn, .btn-primary, .btn-outline variants for the mobile app */

@supports (padding-top: env(safe-area-inset-top)) {
  .app-header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header-height) + env(safe-area-inset-top));
  }
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  }
}
