:root {
  --bg-app: #e9ecef; /* Desktop background color to contrast the phone frame */
  --surface: #ffffff;
  --surface-dim: #f8faf9;
  --text-main: #0f291e;
  --text-muted: #61736b;
  --primary-brand: #09663e;
  --primary-brand1: #031fe9;
 --primary-gradient: linear-gradient(135deg, #09663e 0%, #05492b 100%); 
--primary-gradient1: linear-gradient(135deg, #2d43eb 0%, #28306b 100%);
  --accent-gold: #ffc107;
  --accent-soft: #eef9f3;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --border-light: #e2e9e5;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-premium: 0 12px 32px rgba(9, 102, 62, 0.06);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.04);
  font-family: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-app);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Splash Screen */
.splash-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  border-radius: inherit;
  overflow: hidden;
  animation: splashFadeOut 1s ease-in 9s forwards;
}

.splash-container {
  text-align: center;
  color: #ffffff;
  padding: 20px;
  width: 100%;
  max-width: 340px;
  box-sizing: border-box;
}

.splash-logo {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: splashBounce 2s ease-in-out infinite;
}

.splash-title {
  font-size: 2.5rem;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.splash-title span {
  color: var(--accent-gold);
}

.splash-subtitle {
  font-size: 1rem;
  margin: 0 0 30px;
  opacity: 0.95;
  font-style: italic;
}

.splash-tips {
  margin-bottom: 30px;
  width: 100%;
  animation: splashFadeIn 0.8s ease-out;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  opacity: 0;
  animation: tipSlideIn 0.6s ease-out forwards;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tip-item:nth-child(1) { animation-delay: 1s; }
.tip-item:nth-child(2) { animation-delay: 1.5s; }
.tip-item:nth-child(3) { animation-delay: 2s; }
.tip-item:nth-child(4) { animation-delay: 2.5s; }

.tip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tip-item p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: left;
}

.tip-item strong {
  font-weight: 700;
  color: var(--accent-gold);
}

.splash-loading {
  animation: splashFadeIn 0.8s ease-out 8s forwards;
  animation-fill-mode: both;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

.splash-loading p {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

@keyframes splashBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes splashFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes splashFadeOut {
  from { opacity: 1; }
  to { opacity: 0; pointer-events: none; }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Strictly Mobile-Only UI Frame */
.app-shell {
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Adjust for desktop to look like a phone */
@media (min-width: 420px) {
  .app-shell {
    max-width: 414px;
    max-height: 896px;
    border-radius: 24px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
  }
}

/* Tablet and Desktop Layout */
@media (min-width: 768px) {
  .app-shell {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

/* SIDE MENU (Hamburger) */
.menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  opacity: 1;
  transition: opacity 0.3s;
}
.side-menu {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 280px;
  background: var(--surface);
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 20px rgba(0,0,0,0.1);
}
.side-menu.open {
  transform: translateX(0);
}
.menu-header {
  padding: 30px 20px 20px;
  background: var(--primary-gradient1);
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
}
.menu-header h2 { margin: 10px 0 0; font-size: 1.5rem; }
.menu-header span { color: var(--accent-gold); }
.logo-circle-small {
  width: 50px; height: 50px;
  background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.close-btn {
  position: absolute; top: 20px; right: 15px;
  color: white; font-size: 1.2rem; background: none; border: none; cursor: pointer;
}
.menu-links {
  flex: 1; padding: 20px 0; overflow-y: auto;
}
.menu-item {
  display: block; padding: 16px 20px; color: var(--text-main);
  text-decoration: none; font-size: 1rem; font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}
.menu-item:hover, .menu-item:active { background: var(--surface-dim); color: var(--primary-brand); }
.menu-footer { padding: 20px; border-top: 1px solid var(--border-light); }
.footer-image{
  width: 100%;
  height: 200px;
  margin-top: 76px;
  object-fit: cover;

}
/* Headers & Content */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background-color: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 90;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.icon-button { background: none; border: none; cursor: pointer; color: var(--primary-brand1); padding: 4px; }
.brand { font-size: 1.4rem; font-weight: 800; color: var(--primary-brand1); }
.brand span { color: var(--accent-gold); }
.profile-meta { display: flex; align-items: center; gap: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); border: 1px solid var(--primary-brand); }
.profile-info-text { display: flex; flex-direction: column; }
.profile-name { font-size: 0.85rem; font-weight: 700; }
.profile-role { font-size: 0.7rem; color: var(--text-muted); }
.main-content { padding: 16px; flex: 1; padding-bottom: 100px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
.card { background: var(--surface); border-radius: var(--radius-xl); padding: 20px; border: 1px solid var(--border-light); box-shadow: var(--shadow-card); margin-bottom: 18px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); }

/* On larger screens, center the main content sections */
.dashboard, .auth-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Auth Views */
.auth-container { padding: 24px 8px; text-align: center; }
.brand-hero { margin-bottom: 32px; }
.logo-circle { width: 84px; height: 84px; background: var(--primary-gradient1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 16px; box-shadow: 0 12px 24px rgba(9, 102, 62, 0.25); }
.brand-hero h1 { font-size: 2.2rem; color: var(--primary-brand1); margin: 0; }
.brand-hero h1 span { color: var(--accent-gold); }
.subtitle { margin: 12px 0 0; color: var(--text-muted); }
.auth-tabs { display: flex; background: var(--surface-dim); padding: 6px; border-radius: var(--radius-lg); margin-bottom: 20px; }
.auth-card {
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}
.auth-tabs .tab { flex: 1; border: none; padding: 12px; background: transparent; font-weight: 600; font-size: 0.95rem; color: var(--text-muted); border-radius: var(--radius-md); cursor: pointer; }
.auth-tabs .tab.active { background: #ffffff; color: var(--primary-brand); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.auth-message { min-height: 24px; color: var(--danger-color); font-size: 0.95rem; margin-bottom: 12px; }
.forgot-password-link { display: block; margin: 16px auto 0; padding: 4px; border: 0; background: transparent; color: var(--primary-brand); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.forgot-password-link:focus-visible { outline: 3px solid rgba(9, 102, 62, 0.25); border-radius: 4px; }

/* User Type Selector */
.user-type-selector {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary-brand);
}

.selector-label {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
}

.type-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.type-option {
  padding: 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-muted);
}

.type-option:hover {
  border-color: var(--primary-brand);
  background: var(--accent-soft);
}

.type-option.active {
  border-color: var(--primary-brand);
  background: var(--primary-brand);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(9, 102, 62, 0.2);
}

.type-icon {
  font-size: 2rem;
}

.type-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.form-grid { display: flex; flex-direction: column; gap: 14px; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 14px; font-size: 1.1rem; color: var(--text-muted); }
.input-wrapper input, .input-wrapper select { width: 100%; padding: 14px 14px 14px 44px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--surface-dim); font-size: 0.95rem; color: var(--text-main); outline: none; transition: all 0.3s ease; }
.grid-2col .input-wrapper input { padding-left: 14px; }
.input-wrapper input:focus, .input-wrapper select:focus { border-color: var(--primary-brand); background: #ffffff; box-shadow: 0 0 0 4px rgba(9, 102, 62, 0.1); transform: translateY(-2px); }

/* Buttons */
.button { border: none; border-radius: var(--radius-md); padding: 14px 24px; font-size: 1rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.button { border: none; border-radius: var(--radius-md); padding: 12px 20px; font-size: 0.95rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.button:active { transform: scale(0.95); }
.button::after { content: ''; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; margin-top: -2.5px; background: rgba(255, 255, 255, 0.5); opacity: 0; border-radius: 100%; transform: scale(1); }
.button:focus:not(:active)::after { animation: ripple 0.8s ease-out; }
.button:hover { box-shadow: 0 8px 20px rgba(9, 102, 62, 0.3); transform: translateY(-2px); }
.button.primary { background: var(--primary-gradient); color: #ffffff; box-shadow: 0 6px 18px rgba(9, 102, 62, 0.2); }
.button.secondary { background: var(--secondary-color, #6c757d); color: white; }
.button.danger { background: var(--danger-color); color: white; }
.button.danger:hover { box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3); }
.btn-xl { padding: 16px; border-radius: var(--radius-lg); }
.btn-xl { padding: 14px; border-radius: var(--radius-lg); }
.full-width { width: 100%; }

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.5; }
  20% { transform: scale(25); opacity: 0.3; }
  100% { opacity: 0; transform: scale(40); }
}

/* Customer Dashboard */
.hero-banner-card { background: var(--primary-gradient1); border-radius: var(--radius-xl); padding: 24px; color: #ffffff; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; box-shadow: 0 12px 28px rgba(5, 73, 43, 0.15); }
.banner-text h2 { font-size: 1.3rem; margin: 0 0 6px; font-weight: 700; }
.banner-text p { margin: 0; font-size: 0.85rem; opacity: 0.9; }
.banner-graphic { font-size: 3rem; opacity: 0.9; }
.hero-banner-card { background: var(--primary-gradient1); border-radius: var(--radius-xl); padding: 16px 20px; color: #ffffff; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; box-shadow: 0 12px 28px rgba(5, 73, 43, 0.15); }
.banner-text h2 { font-size: 1.1rem; margin: 0 0 4px; font-weight: 700; }
.banner-text p { margin: 0; font-size: 0.8rem; opacity: 0.9; }
.banner-graphic { font-size: 2.5rem; opacity: 0.9; }
.location-picker-group { position: relative; display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.location-line { position: absolute; left: 21px; top: 28px; bottom: 28px; width: 2px; background: dashed var(--border-light); z-index: 1; }
.picker-row { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.location-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.location-column { display: flex; flex-direction: column; gap: 10px; background: var(--surface-dim); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 12px; }
.column-header { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.column-label { font-size: 0.78rem; font-weight: 700; color: var(--text-main); line-height: 1.3; }
.location-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.location-column { display: flex; flex-direction: column; gap: 8px; background: var(--surface-dim); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 10px; }
.column-header { display: flex; align-items: center; gap: 6px; margin-bottom: 0px; }
.column-label { font-size: 0.85rem; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.field-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.dot-icon { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.dot-icon { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-icon.green { background: var(--success-color); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
.dot-icon.red { background: var(--danger-color); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2); }
.select-container { flex: 1; }
.select-container select { width: 100%; padding: 12px 35px 12px 14px; font-size: 0.88rem; border-radius: var(--radius-md); border: 1px solid var(--border-light); background-color: var(--surface-dim); outline: none; transition: all 0.3s ease; appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill="%2361736b" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); background-repeat: no-repeat; background-position: right 10px center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select-container select { width: 100%; padding: 10px 30px 10px 12px; font-size: 0.85rem; border-radius: var(--radius-md); border: 1px solid var(--border-light); background-color: var(--surface-dim); outline: none; transition: all 0.3s ease; appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill="%2361736b" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); background-repeat: no-repeat; background-position: right 8px center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select-container select:focus { border-color: var(--primary-brand); background-color: #ffffff; box-shadow: 0 0 0 4px rgba(9, 102, 62, 0.1); transform: translateY(-2px); }
.landmark-field { margin-bottom: 16px; }
.landmark-field input { width: 100%; padding: 14px; font-size: 0.95rem; border-radius: var(--radius-md); border: 1px solid var(--border-light); background-color: var(--surface-dim); outline: none; transition: all 0.3s ease; }
.landmark-field { margin-bottom: 14px; }
.landmark-field input { width: 100%; padding: 12px; font-size: 0.9rem; border-radius: var(--radius-md); border: 1px solid var(--border-light); background-color: var(--surface-dim); outline: none; transition: all 0.3s ease; }
.landmark-field input:focus { border-color: var(--primary-brand); background-color: #ffffff; box-shadow: 0 0 0 4px rgba(9, 102, 62, 0.1); transform: translateY(-2px); }

#feedbackText { transition: all 0.3s ease; }
#feedbackText:focus { border-color: var(--primary-brand); background-color: #ffffff; box-shadow: 0 0 0 4px rgba(9, 102, 62, 0.1); transform: translateY(-2px); }
#newVillageName:focus, #newStoppageName:focus { border-color: var(--primary-brand) !important; background-color: #ffffff !important; box-shadow: 0 0 0 4px rgba(9, 102, 62, 0.1) !important; transform: translateY(-2px) !important; }
@media (max-width: 520px) {
  .location-columns { grid-template-columns: 1fr; }
  .column-label { font-size: 0.85rem; }
  .column-label { font-size: 0.9rem; }
}
.price-preview-box { background: var(--accent-soft); border: 1px solid rgba(9, 102, 62, 0.15); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 16px; display: flex; justify-content: space-between; }
.preview-metric { display: flex; align-items: center; gap: 6px; }
.preview-metric .label { font-size: 0.85rem; color: var(--text-muted); }
.preview-metric input { background: transparent; border: none; font-weight: 700; color: var(--text-main); width: 70px; font-size: 0.95rem; pointer-events: none; }
.preview-metric.highlight input { color: var(--primary-brand); font-size: 1.1rem; }

/* Popular Section / Instant Booking */
.popular-section { margin-top: 24px; }
.popular-section h3 { font-size: 1rem; margin-bottom: 4px; }
.text-sm { font-size: 0.75rem; }
.mb-10 { margin-bottom: 10px; }
.grid-quick-stops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 600px) {
  .grid-quick-stops { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
.stop-chip { background: #ffffff; padding: 12px; font-size: 0.85rem; font-weight: 600; border-radius: var(--radius-md); border: 1px solid var(--border-light); cursor: pointer; text-align: center; }
.stop-chip:hover, .stop-chip:active { background: var(--accent-soft); border-color: var(--primary-brand); transform: scale(0.98); }

/* Driver Controls */
.driver-hero-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.toggle-switch-container { display: flex; align-items: center; gap: 10px; background: var(--surface); padding: 8px 14px; border-radius: 30px; border: 1px solid var(--border-light); }
.toggle-label { font-size: 0.85rem; font-weight: 700; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: #ccc; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; border-radius: 50%; transition: .2s; }
input:checked + .slider { background-color: var(--primary-brand); }
input:checked + .slider:before { transform: translateX(24px); }
.grid-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.stat-box { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px 8px; text-align: center; display: flex; flex-direction: column; }
.stat-box .stat-val { font-size: 1.2rem; font-weight: 700; color: var(--text-main); }
.stat-box .stat-lbl { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.stat-box.premium { background: var(--accent-soft); border-color: rgba(9, 102, 62, 0.2); }
.stat-box.premium .stat-val { color: var(--primary-brand); }

/* Shared State Cards */
.state-card { border-left: 5px solid var(--primary-brand); }
.state-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.state-header h3 { font-size: 1.1rem; color: var(--text-main); margin:0; }
.live-pulse { width: 10px; height: 10px; background-color: var(--accent-gold); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.5); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 193, 7, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); } }
.driver-profile-snapshot, .customer-profile-snapshot { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); margin-bottom: 14px; }
.snap-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.snap-details h4 { margin: 0 0 4px; font-size: 1rem; }
.snap-details .car-no { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.metrics-row, .metrics-row-pill { display: flex; justify-content: space-between; font-size: 0.95rem; margin-top: 10px; padding: 10px 0; }
.metrics-row-pill { background: var(--surface-dim); padding: 10px 14px; border-radius: var(--radius-md); }
.text-green { color: var(--primary-brand); font-weight: 700; }
.badge { background: var(--primary-brand); color: white; padding: 2px 8px; font-size: 0.8rem; font-weight: 700; border-radius: 10px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title-row h3 { margin: 0; font-size: 1rem; }
.request-item { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-card); }
.request-item p { margin: 0 0 6px; font-size: 0.9rem; }
.request-actions { display: flex; gap: 10px; margin-top: 12px; }
.request-actions .button { flex: 1; padding: 10px; font-size: 0.85rem; }
.request-stream-container { flex: 1; overflow-y: auto; padding-right: 4px; }
.request-list { display: flex; flex-direction: column; }

/* Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 72px; background: #ffffff; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-around; z-index: 80; border-radius: 0 0 32px 32px; max-width: 414px; margin: 0 auto; width: 100%; }
.nav-item { background: none; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-muted); cursor: pointer; padding: 6px; width: 18%; }
.nav-item .nav-icon { font-size: 1.25rem; }
.nav-item .nav-label { font-size: 0.72rem; font-weight: 600; }
.nav-item.active { color: var(--primary-brand); }
.download-app-nav { position: relative; transform: translateY(-16px); color: var(--primary-brand); }
.download-app-nav .nav-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary-gradient1); box-shadow: 0 8px 18px rgba(9, 102, 62, 0.32); font-size: 1.45rem; }
.download-app-nav .nav-icon i { animation: downloadIconFloat 2.4s ease-in-out infinite; }
.download-app-nav .nav-label { margin-top: 1px; color: inherit; }
.download-app-nav:focus-visible { outline: 3px solid rgba(9, 102, 62, 0.28); border-radius: 50%; }
.download-app-nav:active { transform: translateY(-13px) scale(0.96); }
@keyframes downloadIconFloat { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* Page Styles */
.page-header {
  padding: 20px 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.page-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-main);
}

.profile-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  margin-bottom: 24px;
}

.profile-page-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* Profile Card */
.profile-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.profile-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-soft);
  object-fit: cover;
  border: 2px solid var(--primary-brand);
}

.profile-basic-info {
  flex: 1;
}

.profile-basic-info h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--text-main);
}

.profile-basic-info p {
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-details {
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-dim);
  font-size: 0.95rem;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.detail-item span:last-child {
  color: var(--text-main);
  font-weight: 600;
}

.profile-card .button {
  margin-bottom: 12px;
}

.profile-card .button:last-child {
  margin-bottom: 0;
}

/* Compact multi-service selector */
.service-picker {
  width: 100%;
  position: relative;
}

.service-picker summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface-dim);
  color: var(--text-main);
  cursor: pointer;
  box-sizing: border-box;
  font-size: 0.95rem;
  font-weight: 600;
}

.service-picker summary::-webkit-details-marker { display: none; }
.service-picker summary::after { content: '⌄'; color: var(--text-muted); font-size: 1.1rem; }
.service-picker[open] summary { border-color: var(--primary-brand); border-radius: var(--radius-md) var(--radius-md) 0 0; background: #fff; }
.service-picker[open] summary::after { content: '⌃'; }
.service-picker-summary { color: var(--text-muted); font-size: 0.8rem; font-weight: 500; text-align: right; }

.service-picker-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 230px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--primary-brand);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: #fff;
  box-sizing: border-box;
}

.service-picker-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.service-picker-options label:has(input:checked) { background: var(--accent-soft); color: var(--primary-brand); font-weight: 600; }
.service-picker-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary-brand); flex: 0 0 auto; }
.edit-profile-modal { padding: 12px; overflow-y: auto; }
.edit-profile-card { width: min(100%, 420px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px; box-sizing: border-box; }
.edit-profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.edit-profile-actions .button { min-width: 0; }

@media (max-width: 520px) {
  .profile-card { padding: 16px; }
  .profile-card-header { gap: 12px; margin-bottom: 18px; padding-bottom: 18px; }
  .profile-card-avatar { width: 68px; height: 68px; flex: 0 0 68px; }
  .profile-basic-info h3 { font-size: 1.1rem; }
  .detail-item { align-items: flex-start; gap: 12px; font-size: 0.88rem; }
  .detail-item span:last-child { text-align: right; overflow-wrap: anywhere; }
  .edit-profile-card { padding: 16px; }
  .edit-profile-actions .button { padding: 11px 8px; font-size: 0.88rem; }
}

/* Ride History List */
.ride-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ride-item {
  padding: 16px;
  background: var(--surface-dim);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-brand);
}

.ride-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ride-from-to {
  font-weight: 600;
  color: var(--text-main);
}

.ride-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ride-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ride-status {
  display: inline-block;
  padding: 4px 8px;
  background: var(--success-color);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Favorites List */
.favorites-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.favorite-item {
  padding: 16px;
  background: var(--surface-dim);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--accent-gold);
}

.favorite-info {
  flex: 1;
}

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

.favorite-address {
  font-weight: 600;
  color: var(--text-main);
  margin-top: 4px;
}

.favorite-action {
  display: flex;
  gap: 8px;
}

.favorite-action button {
  padding: 8px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary-brand);
  color: white;
  font-weight: 600;
}

/* Popup Overlay */
.popup-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 41, 30, 0.6); backdrop-filter: blur(4px); z-index: 1000; border-radius: inherit; }
.popup-card { width: min(100%, 340px); background: #fff; border-radius: var(--radius-xl); padding: 28px 24px; text-align: center; animation: popupIn 260ms ease-out; }
.popup-icon-decor { font-size: 2.5rem; margin-bottom: 12px; }
.popup-card h3 { margin: 0 0 12px; font-size: 1.35rem; }
.popup-card p { margin: 0 0 20px; font-size: 0.95rem; color: var(--text-muted); }
.forgot-password-card { position: relative; width: min(100%, 390px); max-height: calc(100dvh - 32px); overflow-y: auto; text-align: left; box-sizing: border-box; }
.forgot-password-card h3 { padding-right: 28px; text-align: center; }
.forgot-password-card input { width: 100%; box-sizing: border-box; padding: 14px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--surface-dim); font: inherit; color: var(--text-main); }
.forgot-password-card input:focus { outline: none; border-color: var(--primary-brand); box-shadow: 0 0 0 4px rgba(9, 102, 62, 0.1); }
.forgot-password-label { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: -8px; }
.forgot-password-message { min-height: 20px; margin: -4px 0 0 !important; color: var(--danger-color) !important; text-align: center; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--text-main); font-size: 1.25rem; cursor: pointer; }
.apk-update-card { position: relative; width: min(100%, 390px); max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; }
.apk-update-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-soft); }
.apk-update-card h3 { padding: 0 28px; }
.apk-update-features { margin: 0 0 16px; padding-left: 22px; text-align: left; color: var(--text-main); }
.apk-update-features li { margin: 7px 0; }
.apk-update-release-date { margin-bottom: 16px !important; font-size: 0.82rem !important; }
.apk-update-actions, .apk-install-confirmation { display: grid; gap: 10px; }
.apk-download-symbol { display: inline-block; margin-right: 6px; animation: downloadIconFloat 2.4s ease-in-out infinite; }
#popupMessage { white-space: pre-line; }
.sharing-consent-actions { display: flex; gap: 10px; }
.sharing-consent-actions .button { flex: 1; min-height: 46px; padding: 10px 12px; }
@keyframes popupIn { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hidden { display: none !important; }
.center-block { text-align: center; padding: 20px 0; }
.muted-text { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
