/* ===== Auth screen ===== */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--paper) 0%, #EFEDE6 100%);
}
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-logo { font-size: 34px; margin-bottom: 6px; }
.auth-brand h1 { font-size: 24px; margin-bottom: 6px; }
.auth-form.hidden { display: none; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 13.5px; }
.link-accent { color: var(--amber-dark); font-weight: 600; }

/* ===== Topbar ===== */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  height: 62px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.topbar-nav { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.nav-link.active, .nav-link:hover { color: var(--ink); background: var(--paper); }
.topbar-right { display: flex; align-items: center; gap: 12px; position: relative; }
.icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  position: relative;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.icon-btn:hover { background: var(--paper); }
.notif-count {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
}
.notif-dropdown {
  position: absolute;
  top: 44px; right: 90px;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 60;
}
.notif-item { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.notif-item:last-child { border-bottom: none; }
.notif-item .notif-title { font-weight: 600; margin-bottom: 2px; }
.notif-item .notif-time { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.notif-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* ===== Main layout ===== */
.main-content { max-width: 880px; margin: 0 auto; padding: 28px 20px 60px; }
.main-content h2 { font-size: 21px; margin-bottom: 4px; }
.main-content > p.muted { margin-bottom: 20px; }
.view.hidden { display: none; }

/* ===== Category cards ===== */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.category-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  background: #fff;
  transition: border-color .12s ease, background .12s ease;
}
.category-card:hover { border-color: #D8D6CE; }
.category-card.selected { border-color: var(--amber); background: #FFF8EC; }
.category-card .cat-icon { font-size: 22px; margin-bottom: 6px; }
.category-card .cat-name { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.category-card .cat-cap { font-size: 12px; color: var(--muted); }

/* ===== Booking form ===== */
.booking-form { max-width: 640px; }
.coord-row { display: flex; gap: 8px; }
.coord-row input { flex: 1; min-width: 0; }
.coord-row .btn { flex-shrink: 0; white-space: nowrap; }

.fare-preview {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.fare-preview-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.fare-total { font-size: 18px; font-weight: 700; font-family: var(--font-display); margin-bottom: 14px; }

/* ===== Bookings list ===== */
.bookings-list { display: flex; flex-direction: column; gap: 12px; }
.booking-card {
  padding: 16px 18px;
  cursor: pointer;
}
.booking-card:hover { border-color: #D8D6CE; }
.booking-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.booking-code { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.booking-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.booking-fare { font-family: var(--font-mono); font-weight: 600; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,33,61,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal { width: 100%; max-width: 560px; max-height: 85vh; display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 20px; overflow-y: auto; }
.history-item { display: flex; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.history-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-top: 5px; flex-shrink: 0; }
.quote-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; }
.quote-card-top { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 640px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar-nav { gap: 0; }
  .nav-link { padding: 8px; font-size: 12.5px; }
  .notif-dropdown { right: 10px; width: 90vw; }
}
