/* ═══════════════════════════════════════════════════════════════════
   GetTransfer Mobile — CSS
   Styl: Czarny + Biały + Złoty | Mobile-first | Bolt-like
   ═══════════════════════════════════════════════════════════════════ */

/* ── Zmienne ─────────────────────────────────────────────────────── */
:root {
  --black:      #0d0d0d;
  --surface:    #161616;
  --surface2:   #1e1e1e;
  --surface3:   #262626;
  --border:     #2e2e2e;
  --white:      #ffffff;
  --gray-200:   #e5e5e5;
  --gray-400:   #a3a3a3;
  --gray-600:   #525252;
  --gold:       #c9a84c;
  --gold-light: #e5c56a;
  --gold-dim:   rgba(201,168,76,.12);
  --gold-dim2:  rgba(201,168,76,.06);
  --red:        #ef4444;
  --green:      #22c55e;
  --blue:       #3b82f6;

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  22px;
  --radius-xl:  28px;

  --nav-h:      68px;
  --safe-bot:   env(safe-area-inset-bottom, 0px);
  --safe-top:   env(safe-area-inset-top, 0px);

  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --spring:     0.35s cubic-bezier(.34,1.56,.64,1);
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; outline: none; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Splash Screen ───────────────────────────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  transition: opacity .5s ease, visibility .5s ease;
}
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-logo {
  font-size: 34px; font-weight: 900; letter-spacing: -1.5px;
  animation: splashFadeUp .8s .2s both;
}
.splash-logo span { color: var(--gold); }

.splash-line {
  width: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 14px 0 12px;
  animation: splashLine .7s .7s forwards;
}

.splash-tagline {
  font-size: 13px; color: var(--gray-400); letter-spacing: 2px; text-transform: uppercase;
  animation: splashFadeUp .6s 1s both;
}

.splash-spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--surface3);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin-top: 48px;
  animation: splashFadeUp .4s 1.2s both, spin 1s linear infinite;
}

@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashLine {
  to { width: 100px; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── App Shell ────────────────────────────────────────────────────── */
#app {
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + var(--safe-bot));
}

/* ── Top Bar ──────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}
.topbar-back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); border-radius: 50%;
  font-size: 20px; cursor: pointer; flex-shrink: 0;
  transition: background var(--transition);
}
.topbar-back:active { background: var(--surface3); }
.topbar-title {
  font-size: 18px; font-weight: 700; flex: 1;
}
.topbar-action {
  font-size: 14px; color: var(--gold); font-weight: 600; cursor: pointer;
}

/* ── Bottom Navigation ────────────────────────────────────────────── */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: calc(var(--nav-h) + var(--safe-bot));
  padding-bottom: var(--safe-bot);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; color: var(--gray-600);
  transition: color var(--transition);
  text-decoration: none;
  padding-top: 8px;
}
.nav-item.active { color: var(--gold); }
.nav-item:active { transform: scale(.92); }
.nav-icon { font-size: 24px; line-height: 1; position: relative; }
.nav-badge {
  position: absolute; top: -4px; right: -8px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: .3px; }

/* ── Map Container ────────────────────────────────────────────────── */
#map-container {
  position: relative;
  height: calc(100dvh - var(--nav-h) - var(--safe-bot));
  width: 100%;
}
#map {
  width: 100%; height: 100%;
  background: #f0ede6; /* jasne tło — widoczne podczas ładowania kolorowych kafli */
  position: relative;
  z-index: 1;
}

/* Leaflet overrides */
.leaflet-control-zoom { display: none; }
.leaflet-control-attribution { display: none; }

/* ── Bottom Sheet ─────────────────────────────────────────────────── */
.bottom-sheet {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,.6);
  transition: transform var(--transition);
}
.bottom-sheet.collapsed { transform: translateY(calc(100% - 80px)); }

.sheet-handle {
  width: 36px; height: 4px;
  background: var(--surface3);
  border-radius: 2px;
  margin: 10px auto 0;
  cursor: grab;
}
.sheet-body { padding: 16px 20px 24px; }

/* ── Address Inputs ───────────────────────────────────────────────── */
.address-box {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 6px 0;
  margin-bottom: 14px;
}
.address-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
}
.address-row + .address-row {
  border-top: 1px solid var(--border);
}
.address-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.address-dot.from { background: var(--gold); }
.address-dot.to   { background: var(--white); }
.address-input {
  flex: 1; background: none; color: var(--white);
  font-size: 15px; font-weight: 500;
  caret-color: var(--gold);
}
.address-input::placeholder { color: var(--gray-600); }
.address-clear {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface3);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; flex-shrink: 0;
  color: var(--gray-400);
}

/* ── Autocomplete Dropdown ────────────────────────────────────────── */
.autocomplete-list {
  position: absolute; left: 20px; right: 20px; z-index: 200;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  max-height: 280px; overflow-y: auto;
}
.autocomplete-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:active { background: var(--surface3); }
.autocomplete-icon { font-size: 18px; flex-shrink: 0; opacity: .7; }
.autocomplete-main { font-size: 14px; font-weight: 600; }
.autocomplete-sub  { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: opacity var(--transition), transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.btn-gold {
  background: var(--gold);
  color: #000;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  background: var(--surface2);
  color: var(--white);
}

.btn-red {
  background: rgba(239,68,68,.12);
  color: var(--red);
  border: 1px solid rgba(239,68,68,.25);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px; border-radius: var(--radius-sm);
}

/* ── Vehicle Cards ────────────────────────────────────────────────── */
.vehicle-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 16px;
}
.vehicle-card {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
  position: relative;
}
.vehicle-card.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.vehicle-card:active { transform: scale(.97); }
.vehicle-emoji { font-size: 32px; margin-bottom: 6px; }
.vehicle-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.vehicle-desc { font-size: 11px; color: var(--gray-400); margin-bottom: 8px; }
.vehicle-price {
  font-size: 18px; font-weight: 800;
  color: var(--gold);
}
.vehicle-price small { font-size: 12px; font-weight: 500; color: var(--gray-400); }
.vehicle-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--gold); color: #000;
  font-size: 9px; font-weight: 800;
  padding: 2px 6px; border-radius: 6px;
  text-transform: uppercase;
}

/* ── Steps (Booking Wizard) ───────────────────────────────────────── */
.steps-indicator {
  display: flex; align-items: center; gap: 6px;
  padding: 16px 20px 0;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface3);
  transition: all var(--transition);
}
.step-dot.done  { background: var(--gold); width: 20px; border-radius: 4px; }
.step-dot.active { background: var(--gold); }

.step-screen { display: none; animation: stepIn .25s ease both; }
.step-screen.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-title {
  font-size: 20px; font-weight: 800;
  padding: 20px 20px 4px;
}
.step-sub {
  font-size: 14px; color: var(--gray-400);
  padding: 0 20px 16px;
}

/* ── Form Elements ────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--gray-400); text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: 8px;
}
.form-control {
  width: 100%; background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white); padding: 14px 16px;
  font-size: 15px;
  transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: var(--gray-600); }
.form-control.error { border-color: var(--red); }

textarea.form-control {
  resize: vertical; min-height: 80px;
}

/* ── Toggle / Checkbox ────────────────────────────────────────────── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info { flex: 1; }
.toggle-label { font-size: 15px; font-weight: 600; }
.toggle-desc  { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

.toggle-switch {
  width: 50px; height: 28px; border-radius: 14px;
  background: var(--surface3); position: relative;
  flex-shrink: 0; transition: background var(--transition);
}
.toggle-switch::after {
  content: ''; position: absolute;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white);
  top: 3px; left: 3px;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
input[type=checkbox]:checked + .toggle-switch {
  background: var(--gold);
}
input[type=checkbox]:checked + .toggle-switch::after {
  transform: translateX(22px);
  background: #000;
}
input[type=checkbox] { display: none; }

/* ── Payment Methods ──────────────────────────────────────────────── */
.payment-list { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition);
}
.payment-option.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.payment-icon { font-size: 24px; flex-shrink: 0; }
.payment-label { font-size: 15px; font-weight: 600; flex: 1; }
.payment-sub   { font-size: 12px; color: var(--gray-400); }
.payment-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
}
.payment-option.selected .payment-check {
  background: var(--gold); border-color: var(--gold); color: #000;
  font-size: 12px;
}

/* ── Info Row (trasa, czas, cena) ─────────────────────────────────── */
.info-strip {
  display: flex; gap: 8px; padding: 14px 20px;
  background: var(--gold-dim2);
  border-bottom: 1px solid var(--border);
}
.info-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface2); border-radius: 20px;
  padding: 6px 12px; font-size: 13px; font-weight: 600;
}
.info-chip svg, .info-chip span:first-child { opacity: .6; }

/* ── Ride Cards (historia) ────────────────────────────────────────── */
.ride-card {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
  cursor: pointer;
  transition: background var(--transition);
}
.ride-card:active { background: var(--surface2); }
.ride-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 10px;
}
.ride-date  { font-size: 12px; color: var(--gray-400); }
.ride-price { font-size: 18px; font-weight: 800; color: var(--gold); }

.ride-route { display: flex; flex-direction: column; gap: 6px; }
.ride-route-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.ride-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ride-dot.from { background: var(--gold); }
.ride-dot.to   { background: var(--white); }
.ride-line-connector {
  width: 1px; height: 12px;
  background: var(--border);
  margin-left: 3.5px;
}

.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.status-badge.pending    { background: rgba(251,191,36,.12); color: #fbbf24; }
.status-badge.confirmed  { background: rgba(34,197,94,.12);  color: var(--green); }
.status-badge.inprogress { background: rgba(59,130,246,.12); color: var(--blue); }
.status-badge.done       { background: rgba(163,163,163,.1); color: var(--gray-400); }
.status-badge.cancelled  { background: rgba(239,68,68,.1);   color: var(--red); }

/* ── Tracking Screen ──────────────────────────────────────────────── */
.driver-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.driver-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface3); overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.driver-avatar img { width: 100%; height: 100%; object-fit: cover; }
.driver-name  { font-size: 17px; font-weight: 700; }
.driver-stars { font-size: 12px; color: var(--gold); margin-top: 2px; }
.driver-car   { font-size: 13px; color: var(--gray-400); margin-top: 3px; }
.driver-eta   {
  margin-left: auto; text-align: right;
  font-size: 22px; font-weight: 800;
  color: var(--gold);
}
.driver-eta small { display: block; font-size: 11px; font-weight: 400; color: var(--gray-400); }

.track-actions {
  display: flex; gap: 10px; padding: 16px 20px;
}
.track-btn {
  flex: 1; padding: 14px; border-radius: var(--radius);
  background: var(--surface2); border: 1px solid var(--border);
  font-size: 14px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; transition: background var(--transition);
}
.track-btn:active { background: var(--surface3); }
.track-btn-icon { font-size: 24px; }

/* ── Chat ─────────────────────────────────────────────────────────── */
.chat-messages {
  padding: 16px 16px calc(80px + var(--safe-bot));
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.msg-bubble {
  max-width: 78%; padding: 10px 14px;
  border-radius: var(--radius); font-size: 14px;
  line-height: 1.5;
}
.msg-bubble.mine {
  background: var(--gold); color: #000;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.msg-bubble.theirs {
  background: var(--surface2); color: var(--white);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.msg-bubble.system {
  background: var(--surface3); color: var(--gray-400);
  font-size: 12px; align-self: center; text-align: center; max-width: 90%;
  border-radius: var(--radius-sm);
}
.msg-time { font-size: 10px; opacity: .6; margin-top: 4px; }
.msg-bubble.mine .msg-time { text-align: right; }

.chat-input-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 16px calc(12px + var(--safe-bot));
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: flex-end;
}
.chat-input {
  flex: 1; background: var(--surface2);
  border: 1.5px solid var(--border); border-radius: 22px;
  color: var(--white); padding: 11px 16px;
  font-size: 15px; resize: none; max-height: 120px;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--gold); }
.chat-send {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; flex-shrink: 0;
  transition: transform var(--transition);
}
.chat-send:active { transform: scale(.9); }

/* ── Rating Screen ────────────────────────────────────────────────── */
.rating-stars {
  display: flex; gap: 12px; justify-content: center;
  padding: 16px 0;
}
.star-btn {
  font-size: 40px; cursor: pointer;
  transition: transform var(--spring), filter var(--transition);
  filter: grayscale(1) opacity(.4);
  -webkit-tap-highlight-color: transparent;
}
.star-btn.active {
  filter: none; transform: scale(1.15);
}

/* ── Wallet ────────────────────────────────────────────────────────── */
.wallet-balance {
  text-align: center; padding: 32px 20px 24px;
  background: linear-gradient(160deg, var(--surface2) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}
.wallet-amount {
  font-size: 44px; font-weight: 900;
  color: var(--gold); letter-spacing: -1px;
}
.wallet-label { font-size: 13px; color: var(--gray-400); margin-top: 6px; }

.wallet-tx {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.wallet-tx-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.wallet-tx-icon.topup   { background: rgba(34,197,94,.12);  color: var(--green); }
.wallet-tx-icon.payment { background: rgba(201,168,76,.12); color: var(--gold); }
.wallet-tx-icon.refund  { background: rgba(59,130,246,.12); color: var(--blue); }
.wallet-tx-amount { margin-left: auto; font-size: 16px; font-weight: 700; }
.wallet-tx-amount.plus  { color: var(--green); }
.wallet-tx-amount.minus { color: var(--white); }

/* ── Profile ──────────────────────────────────────────────────────── */
.profile-header {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 20px 24px; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.profile-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--surface2); overflow: hidden;
  border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.profile-name  { font-size: 22px; font-weight: 800; }
.profile-email { font-size: 13px; color: var(--gray-400); }
.profile-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; }

.menu-section {
  padding: 20px 20px 8px;
  font-size: 11px; font-weight: 700;
  color: var(--gray-600); text-transform: uppercase; letter-spacing: 1px;
}
.menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none; color: var(--white);
}
.menu-item:active { background: var(--surface2); }
.menu-item-icon { font-size: 20px; width: 32px; text-align: center; }
.menu-item-text { flex: 1; font-size: 15px; font-weight: 500; }
.menu-item-arrow { font-size: 16px; color: var(--gray-600); }
.menu-item.danger { color: var(--red); }

/* ── Login Screen ─────────────────────────────────────────────────── */
.login-page {
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
.login-hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 32px 32px;
  text-align: center;
}
.login-logo {
  font-size: 32px; font-weight: 900; letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.login-logo span { color: var(--gold); }
.login-tagline { font-size: 14px; color: var(--gray-400); margin-bottom: 40px; }
.login-icon { font-size: 80px; margin-bottom: 24px; }

.login-form-area {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 28px 24px calc(32px + var(--safe-bot));
  border-top: 1px solid var(--border);
}
.login-tabs {
  display: flex; gap: 8px; margin-bottom: 24px;
  background: var(--surface2); border-radius: var(--radius-sm);
  padding: 4px;
}
.login-tab {
  flex: 1; padding: 10px; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  text-align: center; color: var(--gray-400);
  transition: all var(--transition);
}
.login-tab.active {
  background: var(--gold); color: #000;
}

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

.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--white);
  transition: border-color var(--transition);
  margin-bottom: 10px;
}
.sso-btn:hover { border-color: var(--gold); }
.sso-icon { width: 22px; height: 22px; }

/* ── Toast / Alert ────────────────────────────────────────────────── */
#toast-container {
  position: fixed; top: calc(var(--safe-top) + 16px); left: 16px; right: 16px;
  z-index: 9000; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s var(--spring) both;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.toast.removing { animation: toastOut .25s ease both; }
.toast.success { background: var(--green);  color: #000; }
.toast.error   { background: var(--red);    color: #fff; }
.toast.info    { background: var(--gold);   color: #000; }
.toast.dark    { background: var(--surface2); color: var(--white); border: 1px solid var(--border); }
@keyframes toastIn  { from { opacity: 0; transform: translateY(-16px) scale(.95); } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(-8px) scale(.95); } }

/* ── Loading Overlay ──────────────────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(13,13,13,.85); backdrop-filter: blur(4px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--surface3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading-text { font-size: 15px; color: var(--gray-400); }

/* ── Section Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 12px;
}
.card-body { padding: 16px 20px; }

/* ── Price Proposal (Negocjacja) ──────────────────────────────────── */
.negotiate-box {
  background: var(--gold-dim); border: 1px dashed var(--gold);
  border-radius: var(--radius); padding: 16px 18px;
  margin-bottom: 14px;
}
.negotiate-title {
  font-size: 14px; font-weight: 700; margin-bottom: 10px;
  color: var(--gold);
}
.price-input-row {
  display: flex; align-items: center; gap: 10px;
}
.price-input {
  flex: 1; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--white); padding: 12px 14px; font-size: 18px; font-weight: 700;
}
.price-input:focus { border-color: var(--gold); }
.price-currency { font-size: 18px; color: var(--gray-400); }

/* ── PWA Install Banner ───────────────────────────────────────────── */
#pwa-banner {
  position: fixed; bottom: calc(var(--nav-h) + var(--safe-bot) + 10px);
  left: 12px; right: 12px; z-index: 500;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 14px;
  animation: pwaSlideUp .4s var(--spring) both;
}
#pwa-banner.hidden { display: none; }
@keyframes pwaSlideUp {
  from { transform: translateY(100px); opacity: 0; }
}
.pwa-app-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gold); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0; font-weight: 900;
}
.pwa-text { flex: 1; }
.pwa-title { font-size: 14px; font-weight: 700; }
.pwa-sub   { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.pwa-close { font-size: 20px; color: var(--gray-600); cursor: pointer; padding: 4px; }

/* ── Empty State ──────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 64px 32px; text-align: center; gap: 12px;
}
.empty-icon { font-size: 56px; opacity: .4; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--gray-400); }
.empty-sub   { font-size: 14px; color: var(--gray-600); }

/* ── Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 0; }

/* ── Utilities ────────────────────────────────────────────────────── */
.p-20  { padding: 20px; }
.px-20 { padding-left: 20px; padding-right: 20px; }
.pb-24 { padding-bottom: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-gold { color: var(--gold); }
.text-gray { color: var(--gray-400); }
.text-red  { color: var(--red); }
.text-green{ color: var(--green); }
.text-sm   { font-size: 13px; }
.text-xs   { font-size: 12px; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.hidden { display: none !important; }

/* ── Leaflet map marker overrides ─────────────────────────────────── */
.gt-marker-from, .gt-marker-to {
  width: 14px !important; height: 14px !important;
  border-radius: 50%; border: 3px solid var(--black);
  box-shadow: 0 0 0 2px var(--gold);
}

/* ═══════════════════════════════════════════════════════════════════
   TRYB JASNY — [data-theme="light"]
   ═══════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --black:      #f5f5f5;
  --surface:    #ffffff;
  --surface2:   #f0f0f0;
  --surface3:   #e5e5e5;
  --border:     #d4d4d4;
  --white:      #0d0d0d;
  --gray-200:   #1a1a1a;
  --gray-400:   #525252;
  --gray-600:   #737373;
  --gold-dim:   rgba(201,168,76,.15);
  --gold-dim2:  rgba(201,168,76,.08);
}
[data-theme="light"] body {
  color-scheme: light;
  background: var(--black);
  color: var(--white);
}
[data-theme="light"] .address-input { color: var(--white); }
[data-theme="light"] .address-input::placeholder { color: var(--gray-600); }
[data-theme="light"] #map { background: #e8f0e8; } /* jasne tło ładuje się z kolorową mapą */
[data-theme="light"] .bottom-sheet { box-shadow: 0 -4px 20px rgba(0,0,0,.12); }
[data-theme="light"] .autocomplete-list { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
[data-theme="light"] .pin-digit {
  background: #f0f0f0;
  border-color: #d4d4d4;
  color: #a07830;
}
[data-theme="light"] .login-page { background: #f5f5f5; }
[data-theme="light"] .login-hero { background: linear-gradient(135deg,#1a1a1a,#2a2a2a); }
[data-theme="light"] .verify-email-badge { background: #f0f0f0; border-color: #d4d4d4; color: #404040; }
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] textarea { color: var(--white); }
[data-theme="light"] .form-control {
  background: #f0f0f0;
  border-color: #d4d4d4;
  color: var(--white);
}
[data-theme="light"] .form-control:focus { border-color: var(--gold); }
[data-theme="light"] .topbar { border-bottom-color: #d4d4d4; }
[data-theme="light"] #bottom-nav { border-top-color: #d4d4d4; }
[data-theme="light"] .nav-item.active { color: var(--gold); }
[data-theme="light"] .toast.error { background: #fee2e2; color: #b91c1c; border-color:#fca5a5; }
[data-theme="light"] .toast.success { background: #dcfce7; color: #15803d; border-color:#86efac; }
.gt-marker-from { background: var(--gold); }
.gt-marker-to   { background: var(--white); box-shadow: 0 0 0 2px var(--white); }
.gt-marker-driver {
  width: 36px !important; height: 36px !important;
  background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; border: 2px solid var(--black);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
