*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }

:root {
  --gold: #FFC200;
  --gold-dark: #E6A800;
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --text: #000000;
  --sub: #6C6C70;
  --border: #E5E5EA;
  --tab-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1C1E;
    --card: #2C2C2E;
    --text: #FFFFFF;
    --sub: #8E8E93;
    --border: #38383A;
  }
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(0,0,0,0.15);
}

/* SCREENS */
#screens {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
}

.screen-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}

/* NAV TITLE */
.nav-title {
  font-size: 28px;
  font-weight: 700;
  padding: 20px 20px 12px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* HERO */
.hero {
  background: linear-gradient(160deg, #000000, #1a1a2e);
  padding: 52px 24px 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-icon { font-size: 64px; }

.hero h1 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* BUTTONS */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #000;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 32px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-gold:hover { background: var(--gold-dark); }

.btn-full { width: 100%; justify-content: center; margin: 0 0 24px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border: 2px solid var(--gold);
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--sub);
  font-size: 15px;
  padding: 8px;
  cursor: pointer;
}

/* STATS */
.stats-row {
  display: flex;
  gap: 12px;
  padding: 20px 16px;
}

.stat-card {
  flex: 1;
  background: var(--card);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
}

.stat-icon { font-size: 20px; }
.stat-value { font-size: 18px; font-weight: 700; }
.stat-label { font-size: 11px; color: var(--sub); text-align: center; }

/* SECTION TITLE */
.section-title {
  font-size: 20px;
  font-weight: 700;
  padding: 4px 16px 12px;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.service-card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-icon { font-size: 28px; }
.service-name { font-size: 14px; font-weight: 600; }
.service-desc { font-size: 12px; color: var(--sub); line-height: 1.4; }

/* QUICK BANNER */
.quick-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: 16px;
  margin: 16px;
  padding: 16px;
  cursor: pointer;
}

.quick-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-icon { font-size: 28px; }
.quick-title { font-size: 15px; font-weight: 600; }
.quick-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.chevron { font-size: 22px; color: var(--sub); }

/* FORM */
.form-section {
  background: var(--card);
  border-radius: 16px;
  margin: 0 16px 16px;
  overflow: hidden;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px 0;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  position: relative;
}
.adres-indicator {
  font-size: 16px;
  flex-shrink: 0;
  transition: opacity .2s;
  font-weight: 700;
}

/* ─── BAGAGE RIJEN ─── */
.bagage-rij {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.bagage-label {
  font-size: 15px;
  font-weight: 500;
}
.bagage-stepper {
  display: flex;
  align-items: center;
  gap: 0;
}
.bagage-stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #000;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bagage-stepper span {
  font-size: 16px;
  font-weight: 600;
  width: 40px;
  text-align: center;
}

/* ─── ADRES AUTOCOMPLETE ─── */
.ac-dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 999;
  overflow: hidden;
}
.ac-item {
  padding: 11px 16px 11px 50px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:active { background: var(--bg); }
.ac-item-main { font-size: 14px; font-weight: 500; }
.ac-item-sub  { font-size: 12px; color: var(--sub); margin-top: 2px; }

.input-group:first-of-type { border-top: none; }

.input-icon { font-size: 18px; width: 24px; text-align: center; }
.input-icon.green { color: #30D158; font-size: 10px; }
.input-icon.red { font-size: 16px; }
.input-icon.gold { font-size: 16px; }

input, select {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--text);
  outline: none;
  font-family: inherit;
}

input::placeholder { color: var(--sub); }

input[type="datetime-local"] { color-scheme: light dark; }

/* TRIP SELECTOR */
.trip-selector {
  display: flex;
  padding: 10px 12px;
  gap: 8px;
}

.trip-btn {
  flex: 1;
  padding: 10px 4px;
  border: none;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.trip-btn.active {
  background: var(--gold);
  color: #000;
}

/* VEHICLE SELECTOR */
.vehicle-selector {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
}

.vehicle-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.vehicle-btn.active {
  background: var(--gold);
  color: #000;
}

/* STEPPER */
.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #000;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stepper span {
  font-size: 15px;
  font-weight: 500;
  min-width: 80px;
  text-align: center;
}

/* PRICE BOX */
.price-box {
  background: var(--card);
  border-radius: 16px;
  margin: 0 16px 16px;
  padding: 16px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.price-gold { color: var(--gold); font-weight: 700; font-size: 18px; }

/* BOOKING FORM padding */
#screen-boeken .screen-scroll { padding: 0; }
#bookingForm { padding: 16px 0 0; }

/* TAB BAR (price tabs) */
.tab-bar {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.tab-pill {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 10px;
  background: var(--card);
  color: var(--sub);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-pill.active {
  background: var(--gold);
  color: #000;
}

/* PRICE TABS */
.price-tab { display: none; }
.price-tab.active { display: block; }

/* INFO CARD */
.info-card {
  background: var(--card);
  border-radius: 20px;
  margin: 0 16px 16px;
  padding: 24px;
  text-align: center;
}

.info-card-icon { font-size: 44px; margin-bottom: 10px; }
.info-card-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.info-card-sub { font-size: 14px; color: var(--sub); line-height: 1.5; }

/* PRICE TABLE */
.price-table {
  background: var(--card);
  border-radius: 16px;
  margin: 0 16px 16px;
  overflow: hidden;
}

.price-table-header {
  display: grid;
  grid-template-columns: 1fr 52px 58px 72px;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sub);
  text-transform: uppercase;
}

.price-table-row {
  display: grid;
  grid-template-columns: 1fr 52px 58px 72px;
  padding: 14px 16px;
  font-size: 13px;
  align-items: center;
  border-top: 1px solid var(--border);
}

.price-table-row.alt { background: rgba(0,0,0,0.03); }
@media (prefers-color-scheme: dark) {
  .price-table-row.alt { background: rgba(255,255,255,0.04); }
}

.price-table-row .price-gold {
  text-align: right;
  font-size: 15px;
}

/* LOCAL PRICES */
.local-prices-list {
  background: var(--card);
  border-radius: 16px;
  margin: 0 16px 16px;
  overflow: hidden;
}

.local-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.local-price-row:first-child { border-top: none; }

.local-price-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.local-icon { font-size: 22px; }
.local-label { font-size: 15px; font-weight: 600; }
.local-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.local-value { font-size: 16px; font-weight: 700; }

/* BENEFITS */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 16px;
}

.benefit-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
}

.benefit-icon { font-size: 22px; flex-shrink: 0; }
.benefit-title { font-size: 15px; font-weight: 600; }
.benefit-sub { font-size: 13px; color: var(--sub); margin-top: 3px; }

/* CONTACT */
.contact-header {
  text-align: center;
  padding: 24px 20px 20px;
}

.contact-logo {
  font-size: 64px;
  width: 90px;
  height: 90px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-name { font-size: 22px; font-weight: 700; }
.contact-sub { font-size: 14px; color: var(--sub); margin-top: 6px; line-height: 1.5; }

.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 16px;
  margin: 0 16px 12px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.15s;
}

.contact-btn:hover { opacity: 0.8; }

.contact-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-btn-icon.green { background: #30D158; }
.contact-btn-icon.wa { background: #25D366; }
.contact-btn-icon.blue { background: #007AFF; }

.contact-btn-title { font-size: 15px; font-weight: 600; }
.contact-btn-sub { font-size: 13px; color: var(--sub); margin-top: 2px; }
.contact-btn .chevron { margin-left: auto; font-size: 22px; color: var(--sub); }

/* AREAS */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 20px;
}

.area-pill {
  background: var(--card);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
}

/* INFO LIST */
.info-list {
  background: var(--card);
  border-radius: 16px;
  margin: 0 16px;
  overflow: hidden;
}

.info-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.info-list-row:first-child { border-top: none; }
.info-list-row span:last-child { font-weight: 600; color: var(--sub); text-align: right; }

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: flex-end;
  z-index: 100;
  backdrop-filter: blur(4px);
  max-width: 480px;
  margin: 0 auto;
}

.modal.hidden { display: none; }

/* ─── LOGIN SCREEN ─── */
#loginScreen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 48px 0 60px;
}
#loginScreen.hidden { display: none; }

.login-wrap {
  width: 100%;
  max-width: 400px;
  padding: 0 24px;
}

.login-logo { font-size: 56px; text-align: center; margin-bottom: 8px; }
.login-title { font-size: 26px; font-weight: 700; text-align: center; }
.login-sub { font-size: 14px; color: var(--sub); text-align: center; margin-bottom: 32px; }

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}
.login-tab {
  background: transparent;
  border: none;
  color: var(--sub);
  font-size: 15px;
  font-weight: 600;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .2s;
}
.login-tab.active { background: var(--gold); color: #000; }

.login-error {
  font-size: 13px;
  text-align: center;
  min-height: 20px;
  margin-bottom: 12px;
  font-weight: 500;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.login-field-icon { font-size: 18px; flex-shrink: 0; }
.login-field input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  width: 100%;
}
.login-field input::placeholder { color: var(--sub); }

.login-link {
  background: none;
  border: none;
  color: var(--sub);
  font-size: 13px;
  cursor: pointer;
  display: block;
  text-align: center;
  width: 100%;
  padding: 10px;
  margin-top: 2px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sub);
  font-size: 13px;
  margin: 20px 0;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 12px;
}
.login-social-btn:active { opacity: .7; }
.login-social-apple { background: #000; color: #fff; border-color: #000; }
@media (prefers-color-scheme: light) {
  .login-social-apple { background: #000; color: #fff; }
}

/* ─── PROFIEL ─── */
.profiel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 20px;
  background: var(--card);
  border-radius: 16px;
  margin: 0 16px 16px;
}
.profiel-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.profiel-naam { font-size: 18px; font-weight: 700; }
.profiel-email { font-size: 13px; color: var(--sub); margin-top: 2px; }

.modal-box {
  background: var(--card);
  border-radius: 24px 24px 0 0;
  padding: 32px 24px 40px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-icon { font-size: 52px; }
.modal-title { font-size: 22px; font-weight: 700; }
.modal-text { font-size: 15px; color: var(--sub); line-height: 1.5; }

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.modal-buttons .btn-gold,
.modal-buttons .btn-outline {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* BOTTOM TAB BAR */
#tabbar {
  display: flex;
  background: var(--card);
  border-top: 1px solid var(--border);
  height: var(--tab-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
  flex-shrink: 0;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sub);
  padding: 8px 0;
  transition: color 0.15s;
}

.tab.active { color: var(--gold); }

.tab-icon { font-size: 22px; }
.tab-label { font-size: 11px; font-weight: 500; }

/* TOAST */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1C1C1E;
  color: #fff;
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-width: calc(100% - 32px);
  border-left: 4px solid var(--gold);
  animation: slideDown 0.3s ease;
}
.toast.hidden { display: none; }
.toast-icon { font-size: 22px; flex-shrink: 0; }
.toast-text strong { display: block; margin-bottom: 2px; }

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* REVIEW MODAL */
.star-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 42px;
  margin: 12px 0 8px;
  cursor: pointer;
}
.star { color: var(--border); transition: color 0.15s; line-height: 1; }
.star.actief { color: var(--gold); }

textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  resize: none;
  outline: none;
  margin: 8px 0 4px;
}

/* RIT DETAIL INFO (readonly) */
.modal-rit-detail {
  width: 100%;
  text-align: left;
  margin-top: 12px;
}
.modal-rit-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  gap: 12px;
}
.modal-rit-row:last-child { border-bottom: none; }
.modal-rit-label { color: var(--sub); flex-shrink: 0; }
.modal-rit-value { font-weight: 600; text-align: right; }

/* STATUS BADGE in modal */
.modal-status-badge {
  font-size: 14px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  display: inline-block;
  margin: 12px auto 0;
}
.modal-status-badge.nieuw        { background: rgba(255,194,0,0.15);  color: #FFC200; }
.modal-status-badge.geaccepteerd { background: rgba(0,122,255,0.15);  color: #007AFF; }
.modal-status-badge.onderweg     { background: rgba(255,149,0,0.15);  color: #FF9500; }
.modal-status-badge.afgerond     { background: rgba(48,209,88,0.15);  color: #30D158; }
.modal-status-badge.geannuleerd  { background: rgba(255,59,48,0.15);  color: #FF3B30; }

/* SCHIPHOL LOCKED */
.schiphol-locked { background: rgba(255,194,0,0.06); }
.schiphol-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.schiphol-lock { margin-left: auto; font-size: 14px; opacity: 0.5; }

/* TUSSENSTOP */
.btn-tussenstop {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* Tarieven screen top padding */
#screen-tarieven .screen-scroll { padding-top: 16px; }
#screen-contact .screen-scroll { padding-top: 0; }

/* TAB BADGE */
.tab { position: relative; }
.tab-badge {
  position: absolute;
  top: 6px;
  right: 18px;
  width: 8px;
  height: 8px;
  background: #FF3B30;
  border-radius: 50%;
  border: 2px solid var(--card);
}
.tab-badge.hidden { display: none; }

/* RITTEN LEEG */
.ritten-leeg {
  text-align: center;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ritten-leeg.hidden { display: none; }
.ritten-leeg-icon { font-size: 64px; }
.ritten-leeg-title { font-size: 20px; font-weight: 700; }
.ritten-leeg-sub { font-size: 14px; color: var(--sub); }

/* RIT KAART */
.rit-kaart {
  background: var(--card);
  border-radius: 18px;
  margin: 0 16px 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.1s;
}
.rit-kaart:active { transform: scale(0.98); }

.rit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.rit-date { font-size: 13px; color: var(--sub); font-weight: 500; }

.status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-badge.gepland    { background: rgba(0,122,255,0.15); color: #007AFF; }
.status-badge.onderweg   { background: rgba(255,149,0,0.15);  color: #FF9500; }
.status-badge.afgerond   { background: rgba(48,209,88,0.15);  color: #30D158; }
.status-badge.geannuleerd{ background: rgba(255,59,48,0.15);  color: #FF3B30; }

.rit-route {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rit-adres {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.rit-adres-icon { width: 18px; text-align: center; font-size: 12px; }
.rit-adres-text { font-weight: 500; }

.rit-lijn {
  width: 2px;
  height: 14px;
  background: var(--border);
  margin-left: 8px;
}

.rit-footer {
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--sub);
}

.rit-footer span { display: flex; align-items: center; gap: 5px; }

/* ONDERWEG BANNER */
.onderweg-banner {
  background: linear-gradient(135deg, #FF9500, #FF6B00);
  border-radius: 18px;
  margin: 0 16px 14px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
.onderweg-banner-icon { font-size: 36px; }
.onderweg-banner-title { font-size: 16px; font-weight: 700; color: #fff; }
.onderweg-banner-sub { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 3px; }
.btn-track {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* STATUS MODAL BUTTONS */
.status-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
}

.status-btn {
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.status-btn:hover { opacity: 0.85; }
.status-btn.gepland     { background: rgba(0,122,255,0.12);   color: #007AFF; }
.status-btn.onderweg    { background: rgba(255,149,0,0.12);   color: #FF9500; }
.status-btn.afgerond    { background: rgba(48,209,88,0.12);   color: #30D158; }
.status-btn.geannuleerd { background: rgba(255,59,48,0.12);   color: #FF3B30; }

/* NOTIFICATIE BANNER */
.notif-banner {
  background: var(--card);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  margin: 0 16px 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.notif-banner-icon { font-size: 24px; flex-shrink: 0; }
.notif-banner-text { flex: 1; line-height: 1.4; }
.notif-banner-text strong { display: block; font-size: 15px; margin-bottom: 2px; }

/* ─── CHAT MODAL ─── */
.chat-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: flex-end;
  z-index: 200;
  backdrop-filter: blur(4px);
}
.chat-box {
  background: var(--card);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 75vh;
  display: flex;
  flex-direction: column;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-header-title { font-size: 17px; font-weight: 700; }
.chat-header-sub   { font-size: 12px; color: var(--sub); margin-top: 2px; }
.chat-close {
  background: none; border: none;
  font-size: 20px; color: var(--sub); cursor: pointer;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}
.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
}
.chat-bubble.eigen {
  align-self: flex-end;
  background: var(--gold);
  color: #000;
  border-bottom-right-radius: 4px;
}
.chat-bubble.ander {
  align-self: flex-start;
  background: var(--bg);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-bubble-naam { font-size: 11px; font-weight: 700; margin-bottom: 4px; opacity: 0.7; }
.chat-bubble-tijd { font-size: 11px; margin-top: 4px; opacity: 0.6; text-align: right; }
.chat-leeg { text-align: center; color: var(--sub); font-size: 14px; padding: 32px 0; }
.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.chat-input {
  flex: 1;
  background: var(--bg);
  border: none;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.chat-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.chat-ongelezen {
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--gold);
  color: #000;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}
