/* ============================================================
   GARDAŞ — North Cyprus Mobility · design system v2
   Royal blue + deep navy + white, per brand mockups.
   ============================================================ */
:root {
  --navy-900: #07142b;
  --navy-800: #0b2350;
  --navy-700: #0d47a1;
  --blue-600: #1565c0;
  --blue-500: #2196f3;
  --blue-400: #64b5f6;
  --blue-glow: #2196f3;
  --blue-100: #d6e9fc;
  --blue-50: #eaf4fe;
  --sea: #bcd9f7;
  --ink: #0b1b33;
  --muted: #5d7292;
  --line: #e4ecf7;
  --card: #ffffff;
  --bg: #f4f8fd;
  --green: #0fa958;
  --red: #e5484d;
  --gold: #f5b301;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 10px 30px rgba(8, 26, 56, 0.10), 0 2px 8px rgba(8, 26, 56, 0.06);
  --shadow-float: 0 18px 50px rgba(8, 26, 56, 0.18);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--ink);
  overscroll-behavior: none;
}
button { font-family: inherit; border: none; cursor: pointer; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* Phone frame */
#app {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 460px;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--bg);
  overflow: clip; /* not `hidden` — clip also blocks programmatic scroll of the frame */
  display: flex;
  flex-direction: column;
}
@media (min-width: 520px) {
  body { display: flex; align-items: center; justify-content: center; padding: 18px 0;
         background: radial-gradient(1200px 700px at 70% -10%, #0d2f66 0%, var(--navy-900) 55%); }
  #app { height: min(880px, calc(100dvh - 36px)); border-radius: 36px; box-shadow: 0 40px 120px rgba(0,0,0,.5);
         border: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Screens ---------- */
.screen {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
}
.screen.active { display: flex; animation: screenIn .35s cubic-bezier(.22,.9,.32,1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; transition-duration: .01s !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 20px; border-radius: 14px;
  font-size: 16px; font-weight: 700; transition: transform .12s ease, box-shadow .2s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); color: #fff;
  box-shadow: 0 10px 24px rgba(33, 150, 243, .35); }
.btn-light { background: var(--blue-50); color: var(--blue-600); }
.btn-danger { background: #fdecec; color: var(--red); }
.btn-success { background: linear-gradient(135deg, #16b364, #0fa958); color: #fff;
  box-shadow: 0 10px 24px rgba(15, 169, 88, .35); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-plain { background: transparent; color: var(--muted); font-weight: 700; padding: 12px; }
.btn-sm { padding: 11px 16px; font-size: 14px; border-radius: 12px; width: auto; }

/* ---------- Language switch ---------- */
.lang-switch {
  position: absolute; top: 18px; right: 18px; z-index: 9;
  display: flex; gap: 4px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px;
}
.lang-switch button {
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  color: #cfe0ff; letter-spacing: .5px;
}
.lang-switch button.on { background: #fff; color: var(--blue-600); }
.lang-switch.dark { background: var(--blue-50); border-color: var(--line); }
.lang-switch.dark button { color: var(--muted); }
.lang-switch.dark button.on { background: var(--blue-600); color: #fff; }
.lang-switch.inmenu {
  position: static; margin-top: 6px; background: var(--blue-50);
  border: 1px solid var(--line); justify-content: center;
}
.lang-switch.inmenu button { flex: 1; color: var(--muted); padding: 8px; }
.lang-switch.inmenu button.on { background: var(--blue-600); color: #fff; }

/* ---------- Welcome (staged opening) ---------- */
.welcome {
  background: linear-gradient(175deg, #0d3d8f 0%, var(--navy-800) 50%, var(--navy-900) 100%);
  color: #fff;
}
/* Flow layout: hero takes the leftover space, actions grow in at s2 —
   nothing can ever overlap, on any screen height. */
.welcome .hero {
  position: relative; z-index: 1; flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 24px 0;
}
.welcome .wradar {
  position: relative; width: 200px; height: 200px; flex: none;
  display: grid; place-items: center; margin-bottom: 8px;
}
.welcome .wlogo {
  width: 88px; height: 88px; display: grid; place-items: center;
  filter: drop-shadow(0 18px 40px rgba(7,20,43,.55));
  animation: pop .8s cubic-bezier(.2,.9,.3,1.4);
}
.welcome .wlogo img { width: 88px; height: 88px; object-fit: contain; }
@keyframes pop { 0% { opacity: 0; transform: scale(.7); } 100% { opacity: 1; transform: scale(1); } }
.welcome .wring { position: absolute; inset: 0; border-radius: 999px; }
.welcome .wring.hug { inset: 18px; border: 1px solid rgba(140,185,255,.3); }
.welcome .wring.pulse {
  border: 1.5px solid rgba(120,170,255,.75); opacity: 0;
  animation: radar 2.4s ease-out infinite;
}
.welcome .wring.pulse:nth-of-type(3) { animation-delay: .8s; }
.welcome .wring.pulse:nth-of-type(4) { animation-delay: 1.6s; }
.welcome .wtext {
  flex: none; /* never let the hero squeeze the tagline away on short screens */
  max-height: 0; opacity: 0; overflow: hidden; transform: translateY(12px); text-align: center;
  transition: max-height .85s cubic-bezier(.25,.8,.3,1), opacity .6s ease .15s,
              transform .7s cubic-bezier(.2,.8,.3,1) .1s;
}
.welcome.s1 .wtext { max-height: 160px; opacity: 1; transform: none; }
.welcome .wtext h2 { font-size: 34px; font-weight: 800; letter-spacing: 7px; margin-left: 7px; }
.welcome .wtext p { color: #b7cdf3; font-size: 15px; max-width: 300px; margin: 8px auto 0; }
.welcome .wtext p b { color: #4da3ff; font-weight: 700; }
.welcome .wfeat { flex: none; display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.welcome .wf { flex: 1; max-width: 108px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.welcome .wf b { font-size: 12px; line-height: 1.3; }
.welcome .wf > span:last-child { font-size: 10.5px; color: #a9c2ea; line-height: 1.35; }
.welcome .wfic {
  width: 46px; height: 46px; border-radius: 999px; margin-bottom: 6px;
  background: linear-gradient(135deg, #1565c0, #2196f3);
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(33,150,243,.35);
}
.welcome .wfic svg { width: 22px; height: 22px; }
.wphoto {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: url('/img/welcome-hero.jpg') center 30% / cover no-repeat;
}
.wphoto::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #081c40 0%, rgba(8,28,64,.4) 26%,
              rgba(7,20,43,.1) 52%, rgba(7,20,43,.75) 82%, rgba(7,20,43,.97) 100%);
}
#btn-welcome-start { position: relative; }
.btn-arr {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.22);
  display: grid; place-items: center;
}
.btn-arr svg { width: 18px; height: 18px; }
.welcome .city-row {
  background: rgba(9,22,48,.55); border: 1px solid rgba(120,160,230,.16);
  border-radius: 20px; padding: 13px 8px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.welcome .stage { opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); pointer-events: none; }
.welcome.s1 .stage.s1, .welcome.s2 .stage.s2, .welcome.s3 .stage.s3, .welcome.s4 .stage.s4 {
  opacity: 1; transform: none; pointer-events: auto;
}
.welcome .actions {
  position: relative; z-index: 1; flex: none;
  display: flex; flex-direction: column; gap: 16px;
  padding: 10px 24px calc(10px + env(safe-area-inset-bottom));
  max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden;
  transition: max-height .9s cubic-bezier(.25,.8,.3,1), padding .9s cubic-bezier(.25,.8,.3,1);
}
.welcome.s2 .actions {
  max-height: 380px; padding-top: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
/* Shorter phones (browser bars eat height): scale the whole composition. */
@media (max-height: 740px) {
  .welcome .wradar { width: 158px; height: 158px; }
  .welcome .wlogo img, .welcome .wlogo svg { height: 88px; width: 88px; }
  .welcome .wring.hug { inset: 14px; }
  .welcome .wtext h2 { font-size: 29px; }
  .welcome .wfic { width: 42px; height: 42px; }
}
@media (max-height: 620px) {
  .welcome .wradar { width: 124px; height: 124px; }
  .welcome .wlogo img, .welcome .wlogo svg { height: 72px; width: 72px; }
  .welcome .wring.hug { inset: 11px; }
  .welcome .wtext h2 { font-size: 24px; letter-spacing: 5px; }
  .welcome .wtext p { font-size: 13px; }
  .welcome .wfeat { margin-top: 12px; }
  .welcome .wf > span:last-child { display: none; }
  .welcome .wfic { width: 36px; height: 36px; margin-bottom: 3px; }
  .welcome .wf b { font-size: 11px; white-space: nowrap; }
  .welcome .city-row { padding: 10px 6px; }
  .welcome .actions { gap: 12px; }
}
.locpick.savemode .routebox { display: none; }
.city-row { display: flex; justify-content: space-between; gap: 6px; padding: 0 2px; }
.city { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; color: #a9c6f5; text-align: center; line-height: 1.25; }
.city .cic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #cfe0ff; }
.madein { text-align: center; font-size: 11px; color: #6b87b3; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; margin-top: 4px; }


/* ---------- Role choice ---------- */
.role-choice {
  font-family: "Inter", "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background:
    radial-gradient(500px 420px at 50% 15%, rgba(12,78,205,.5), rgba(12,78,205,0) 64%),
    linear-gradient(175deg, #082f77 0%, #082352 48%, #061631 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.72);
}
.role-choice::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 23%;
  background:
    linear-gradient(180deg, rgba(5,20,50,0) 0%, rgba(5,20,50,.32) 64%, rgba(3,11,28,.74) 100%),
    linear-gradient(90deg, rgba(6,22,52,.52), rgba(6,22,52,.05) 42%, rgba(6,22,52,.42)),
    url('/img/welcome-hero.jpg') center bottom / cover no-repeat;
  opacity: .86;
}
.role-choice::after {
  content: ''; position: absolute; inset: 18px 30px 16px;
  border: 1.2px solid rgba(255,255,255,.78);
  border-radius: 30px;
  pointer-events: none;
  z-index: 5;
}
.role-choice > .lang-switch {
  top: 24px; right: 24px; padding: 4px; gap: 4px;
  background: rgba(255,255,255,.09);
  border-color: rgba(184,214,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 30px rgba(2,10,28,.18);
}
.role-choice > .lang-switch button {
  min-width: 46px; padding: 8px 12px; font-size: 14px;
}
.role-glow {
  position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 280px; pointer-events: none; z-index: 1;
}
.role-glow .wring { position: absolute; inset: 0; border-radius: 999px; }
.role-glow .wring.hug { inset: 56px; border: 1px solid rgba(120,175,255,.2); }
.role-glow .wring.pulse { border: 1px solid rgba(102,170,255,.34); opacity: 0; animation: radar 2.8s ease-out infinite; }
.role-glow .wring.pulse:nth-of-type(3) { animation-delay: .8s; }
.role-glow .wring.pulse:nth-of-type(4) { animation-delay: 1.6s; }
.role-body {
  position: relative; z-index: 1; flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 56px clamp(38px, 13vw, 62px) 14px;
}
.role-logo {
  width: 104px; height: 104px; margin-bottom: 18px;
  filter: drop-shadow(0 22px 42px rgba(7,20,43,.62));
}
.role-logo svg, .role-logo img { width: 104px; height: 104px; display: block; }
.role-copy { text-align: center; margin-bottom: 22px; }
.role-copy h1 { font-size: 27px; line-height: 1.12; font-weight: 800; max-width: 360px; letter-spacing: 0; }
.role-copy p { margin-top: 13px; color: #b9d3ff; font-size: 15.5px; line-height: 1.3; font-weight: 650; }
.role-options { width: 100%; display: flex; flex-direction: column; gap: 22px; }
.role-card {
  position: relative; width: 100%; min-height: 184px; display: flex; align-items: center;
  padding: 28px 82px 28px 30px; border-radius: 24px; text-align: left; color: #fff;
  background:
    linear-gradient(92deg, rgba(20,86,197,.6) 0%, rgba(13,53,136,.46) 44%, rgba(8,29,75,.32) 100%);
  border: 1.4px solid rgba(205,226,255,.52);
  box-shadow: 0 24px 56px rgba(2,10,28,.25), inset 0 1px 0 rgba(255,255,255,.24);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .16s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.role-card::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(230px 134px at 24% 16%, rgba(89,169,255,.3), rgba(89,169,255,0) 72%),
    linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,0) 50%);
  pointer-events: none;
}
.role-card:hover { border-color: rgba(255,255,255,.34); box-shadow: 0 24px 58px rgba(2,10,28,.3), inset 0 1px 0 rgba(255,255,255,.18); }
.role-card:active { transform: scale(.985); border-color: rgba(255,255,255,.42); }
.role-icon {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  width: 166px; height: 132px; border-radius: 0; flex: none;
  display: block; overflow: visible;
  color: #69a8ff; opacity: .46; pointer-events: none;
  background: url('/img/role-car-ref.png') center / contain no-repeat;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 7%, #000 18%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 7%, #000 18%);
}
#role-driver .role-icon { right: 36px; width: 156px; height: 176px; opacity: .42; background-image: url('/img/role-wheel-ref.png'); }
.role-icon svg { display: none; }
.role-text { position: relative; z-index: 1; width: 190px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.role-text b { font-size: 24px; line-height: 1.12; font-weight: 800; letter-spacing: 0; }
.role-text span { color: #b7cdf3; font-size: 13.8px; line-height: 1.36; font-weight: 600; }
.role-text small {
  color: #fff; font-size: 13px; line-height: 1; font-weight: 750; margin-top: 2px;
  padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #1465e9, #0a45bd);
  box-shadow: 0 10px 24px rgba(7,61,176,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.role-arrow {
  position: absolute; z-index: 2; right: 30px; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 999px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), rgba(255,255,255,.06) 70%);
  border: 1.5px solid rgba(225,240,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 12px 26px rgba(3,12,30,.22);
  transition: transform .16s ease, background .2s ease, border-color .2s ease;
}
.role-card:hover .role-arrow { transform: translate(2px, -50%); border-color: rgba(255,255,255,.76); background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.34), rgba(255,255,255,.1) 70%); }
.role-arrow svg { width: 28px; height: 28px; }
.role-foot {
  position: relative; z-index: 1; flex: none;
  text-align: center; padding: 16px 24px calc(26px + env(safe-area-inset-bottom));
  color: #9bc9ff; font-size: 15px; font-weight: 600; letter-spacing: 4.2px; text-transform: uppercase;
}
@media (max-height: 740px) {
  .role-choice > .lang-switch { top: 20px; right: 20px; }
  .role-body { padding: 38px clamp(34px, 11vw, 50px) 12px; }
  .role-glow { top: 10px; width: 230px; height: 230px; }
  .role-glow .wring.hug { inset: 44px; }
  .role-logo, .role-logo svg, .role-logo img { height: 86px; width: 86px; }
  .role-logo { margin-bottom: 12px; }
  .role-copy { margin-bottom: 16px; }
  .role-copy h1 { font-size: 24px; }
  .role-copy p { margin-top: 9px; font-size: 14px; }
  .role-options { gap: 16px; }
  .role-card { min-height: 146px; padding: 22px 72px 22px 24px; border-radius: 22px; }
  .role-icon { right: 22px; width: 150px; height: 120px; }
  #role-driver .role-icon { right: 30px; width: 140px; height: 154px; }
  .role-text { gap: 8px; width: 160px; }
  .role-text b { font-size: 22px; }
  .role-text span { font-size: 12.4px; }
  .role-text small { font-size: 12px; padding: 8px 14px; }
  .role-arrow { right: 24px; width: 46px; height: 46px; }
  .role-foot { font-size: 12px; letter-spacing: 3px; padding-top: 12px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-height: 620px) {
  .role-body { padding-top: 36px; }
  .role-glow { top: 4px; width: 188px; height: 188px; }
  .role-logo, .role-logo svg, .role-logo img { height: 72px; width: 72px; }
  .role-logo { margin-bottom: 12px; }
  .role-copy h1 { font-size: 21px; }
  .role-copy p { font-size: 13px; margin-top: 7px; }
  .role-options { gap: 12px; }
  .role-card { min-height: 118px; padding: 18px 62px 18px 20px; }
  .role-icon { right: 18px; width: 126px; height: 100px; }
  #role-driver .role-icon { right: 24px; width: 118px; height: 130px; }
  .role-text { gap: 6px; width: 136px; }
  .role-text b { font-size: 19px; }
  .role-text span { font-size: 11.5px; }
  .role-text small { font-size: 11px; padding: 7px 12px; }
  .role-arrow { right: 20px; width: 40px; height: 40px; }
  .role-arrow svg { width: 23px; height: 23px; }
  .role-foot { padding-top: 6px; font-size: 10px; letter-spacing: 2px; }
}
/* ---------- Auth ---------- */
.auth { background: #fff; overflow-y: auto; }
.auth-head { text-align: center; padding: 48px 26px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand-dark { font-size: 21px; letter-spacing: 6px; font-weight: 800; color: var(--navy-800); }
.auth-head h2 { font-size: 22px; font-weight: 800; color: var(--blue-600); margin-top: 10px; }
.auth-head p { color: var(--muted); font-size: 13.5px; }
.auth-body { padding: 18px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.socials { display: flex; flex-direction: column; gap: 10px; }
.social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 13px; padding: 13px;
  font-size: 14.5px; font-weight: 700; color: var(--ink); background: #fff;
  transition: border-color .15s, background .15s;
}
.social:active { background: var(--blue-50); border-color: var(--blue-400); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }
#auth-form { display: flex; flex-direction: column; gap: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 14px 16px; border-radius: 13px; border: 1.5px solid var(--line);
  background: #fff; font-size: 15px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none; font-family: var(--font);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236b7a99' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31,111,251,.12); }
.field.pw { position: relative; }
.field.pw .eye { position: absolute; right: 12px; bottom: 12px; color: var(--muted); padding: 4px; }
.upload-row { display: flex; gap: 10px; }
.upload {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1.5px dashed var(--line); border-radius: 14px; padding: 14px 10px; text-align: center;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.upload:active { background: var(--blue-50); }
.upload .uic { font-size: 22px; }
.upload b { font-size: 12px; line-height: 1.3; }
.upload .usub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 100%; }
.upload.ok { border-color: var(--green); border-style: solid; }
.upload.ok .usub { color: var(--green); font-weight: 700; }
.forgot { align-self: flex-end; font-size: 13px; font-weight: 700; color: var(--blue-600); text-decoration: none; }
.swap { text-align: center; font-size: 14px; color: var(--muted); }
.swap a { color: var(--blue-600); font-weight: 700; text-decoration: none; }
.demo-hint {
  padding: 12px 16px; border-radius: 13px;
  background: var(--blue-50); border: 1px dashed var(--blue-400);
  font-size: 12.5px; color: var(--navy-700); line-height: 1.6;
}
.demo-hint b { color: var(--blue-600); }
.form-error { color: var(--red); font-size: 13.5px; font-weight: 600; display: none; }
.form-error.show { display: block; }

/* ---------- Verify ---------- */
.verify { background: #fff; }
.panel-head.plain { background: transparent; border: none; padding: 16px 18px 0; }
.verify-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 24px 26px; text-align: center; }
.mail-badge { width: 84px; height: 84px; border-radius: 999px; background: var(--blue-50);
  display: grid; place-items: center; color: var(--blue-600); margin-bottom: 20px; position: relative; }
.mail-badge::after { content: "✓"; position: absolute; right: 2px; bottom: 4px; width: 26px; height: 26px;
  border-radius: 99px; background: var(--blue-600); color: #fff; font-size: 14px; font-weight: 800;
  display: grid; place-items: center; border: 3px solid #fff; }
.verify-body h2 { font-size: 22px; font-weight: 800; }
.verify-body p { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.5; }
.verify-body p b { color: var(--blue-600); }
.code-row { display: flex; gap: 9px; margin: 26px 0 14px; }
.code-row input {
  width: 46px; height: 54px; border-radius: 12px; border: 1.5px solid var(--line);
  text-align: center; font-size: 22px; font-weight: 800; color: var(--ink); outline: none;
}
.code-row input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31,111,251,.12); }
.resend { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.resend b { color: var(--blue-600); cursor: pointer; }

/* ---------- Permissions ---------- */
.perms { background: #fff; }
.perms-art { position: relative; padding: 44px 24px 0; }
.perms-art svg { width: 100%; }
.perms-art .shield { position: absolute; left: 50%; top: 30px; transform: translateX(-50%);
  filter: drop-shadow(0 14px 30px rgba(17,86,232,.35)); }
.perms-body { flex: 1; display: flex; flex-direction: column; padding: 18px 26px 26px; }
.perms-body h2 { font-size: 22px; font-weight: 800; }
.perms-body .sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 18px; }
.perm-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.perm { display: flex; align-items: center; gap: 14px; padding: 12px 4px; }
.perm .pic { width: 44px; height: 44px; border-radius: 13px; background: var(--blue-50);
  display: grid; place-items: center; color: var(--blue-600); flex: none; }
.perm b { font-size: 14.5px; display: block; }
.perm span { font-size: 12.5px; color: var(--muted); }

/* ---------- Map screen layout ---------- */
/* z-index:1 creates a stacking context so Leaflet's internal panes
   (z-index 200-700) can never rise above our sheets and top bar. */
.mapwrap { position: absolute; inset: 0; z-index: 1; background: #e9eef4; }
.mapwrap svg.gmap { width: 100%; height: 100%; display: block; }
.gmk { background: none; border: none; }
/* Sea gets its brand blue from the overlay pane; keep land tiles clean */
.leaflet-tile-pane { filter: saturate(.92); }
.fab-locate {
  position: absolute; right: 14px; bottom: 47%; z-index: 5;
  width: 48px; height: 48px; border-radius: 999px; background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-card); color: var(--blue-600);
}
.fab-locate:active { transform: scale(.94); }
.pin-confirm {
  position: absolute; left: 14px; right: 14px; bottom: 63%; z-index: 7;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-float);
  padding: 12px 14px; display: none; align-items: center; gap: 10px;
}
.pin-confirm.show { display: flex; animation: screenIn .25s ease; }
.pin-confirm b { flex: 1; font-size: 14px; }
.pc-btns { display: flex; gap: 8px; }
.taxi-card {
  position: absolute; left: 14px; right: 14px; bottom: 63%; z-index: 7;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-float);
  padding: 12px 14px; display: none; align-items: center; gap: 11px;
}
.taxi-card.show { display: flex; animation: screenIn .25s ease; }
.taxi-card .tc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.taxi-card .tc-info b { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.taxi-card .tc-car { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taxi-card .tc-eta { font-size: 12px; font-weight: 700; color: var(--blue-600); }
.gmk-tap { cursor: pointer; }
.pcb { padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: 13.5px; }
.pcb.ok { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); color: #fff; }
.pcb.no { background: var(--bg); color: var(--muted); width: 40px; }

.sheet-nav { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 4px; }
.snav {
  width: 34px; height: 34px; border-radius: 11px; background: var(--bg);
  display: grid; place-items: center; color: var(--muted); font-size: 17px; font-weight: 800;
}
.snav:active { background: var(--blue-50); color: var(--blue-600); }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { font-size: 9px; opacity: .75; background: rgba(255,255,255,.7) !important; }
.map-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 16px;
}
.searchpill {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 13px 18px;
  box-shadow: var(--shadow-card); font-weight: 700; font-size: 14.5px; color: var(--muted);
  text-align: left;
}
.searchpill .bdot { width: 9px; height: 9px; border-radius: 99px; background: var(--blue-600); flex: none; }
.iconbtn {
  width: 46px; height: 46px; border-radius: 999px; background: #fff; flex: none;
  display: grid; place-items: center; box-shadow: var(--shadow-card); color: var(--navy-800);
}
.iconbtn.flat { box-shadow: none; background: var(--blue-50); color: var(--blue-600); width: 40px; height: 40px; }
.menu-pop {
  position: absolute; top: 70px; left: 16px; z-index: 9; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-float); padding: 8px; display: none; min-width: 180px;
}
.menu-pop.show { display: block; animation: screenIn .2s ease; }
.menu-pop button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px;
  font-size: 14.5px; font-weight: 700; color: var(--ink); border-radius: 10px; text-align: left; }
.menu-pop button:active { background: var(--blue-50); }
.menu-pop button span { color: var(--blue-600); display: grid; }
.menu-pop .ptsval { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  color: #7a5200; background: linear-gradient(120deg, #fff3d6, #ffe3a1); border: 1px solid #f0d488; }
.status-pill {
  position: absolute; top: 76px; left: 50%; transform: translateX(-50%); z-index: 5;
  background: var(--blue-600); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-float);
  display: none; align-items: center; gap: 8px; white-space: nowrap;
}
.status-pill.darkpill { background: var(--navy-800); }
.status-pill.show { display: flex; animation: screenIn .3s ease; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--gold); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Bottom sheet ---------- */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  background: #fff; border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px rgba(8,26,56,.16);
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%); visibility: hidden;
  transition: transform .38s cubic-bezier(.22,.9,.3,1), visibility 0s .4s;
  max-height: 80%; display: flex; flex-direction: column;
}
.sheet.open { transform: translateY(0); visibility: visible; transition-delay: 0s, 0s; }
.sheet .grab { width: 44px; height: 5px; background: var(--line); border-radius: 99px; margin: 4px auto 14px; flex: none; }
.sheet h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.sheet .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.sheet .scroll { overflow-y: auto; margin: 0 -6px 10px; padding: 0 6px; }
.sheet .sheet-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px 6px; max-height: 46vh; }

/* ---------- Home extras (idle sheet) ---------- */
.promo {
  position: relative; width: 100%; margin-top: 14px; border-radius: 16px; overflow: hidden;
  min-height: 88px; padding: 15px 40% 13px 16px; text-align: left; color: #fff;
  background: linear-gradient(90deg, #081c40, #0d2f66);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.promo::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 46%;
  background: url('/img/banner-art.jpg') center right / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
  mask-image: linear-gradient(90deg, transparent, #000 38%);
}
.promo b { font-size: 14px; position: relative; z-index: 1; }
.promo > span { font-size: 11.5px; color: #bcd2f5; position: relative; z-index: 1; }
.promo .pdots { display: flex; gap: 5px; margin-top: 7px; position: relative; z-index: 1; }
.promo .pdots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.35); }
.promo .pdots i.on { background: #fff; }
.locrow { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px;
  background: var(--bg); border-radius: 14px; }
.lr-dot { width: 10px; height: 10px; border-radius: 99px; background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(33,150,243,.18); flex: none; }
.lr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.lr-t span { font-size: 11px; color: var(--muted); font-weight: 600; }
.lr-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-change { color: var(--blue-600); font-weight: 700; font-size: 13px; flex: none; }
.chiprow { display: flex; gap: 10px; margin-top: 10px; }
.ichip { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue-50); border-radius: 12px; padding: 11px 8px;
  font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ichip svg { width: 15px; height: 15px; color: var(--blue-600); flex: none; }
.ichip b { color: var(--ink); font-size: 12.5px; }
.poprow { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.poprow b { font-size: 14.5px; }
.poprow button { color: var(--blue-600); font-weight: 700; font-size: 13px; }
.popchips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none; }
.popchips::-webkit-scrollbar { display: none; }
.pchip { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; flex: none; background: #fff; }
.pchip svg { width: 14px; height: 14px; color: var(--blue-600); }
.pchip:active { background: var(--blue-50); }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: stretch;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
}
.tb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; color: var(--muted); padding-top: 3px; }
.tb .tbi svg { width: 22px; height: 22px; display: block; }
.tb.on { color: var(--blue-600); }
.tb.g { flex: none; width: 66px; position: relative; }
.tb.g > span {
  position: absolute; top: -27px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 999px;
  background: linear-gradient(135deg, #1565c0, #2196f3);
  display: grid; place-items: center; border: 4px solid #fff;
  box-shadow: 0 10px 22px rgba(33,150,243,.45);
}
.tb.g:active > span { transform: translateX(-50%) scale(.94); }
#scr-home .sheet { bottom: calc(54px + env(safe-area-inset-bottom)); padding-bottom: 16px; }
#scr-home .fab-locate { bottom: calc(56% + 20px); }
#btn-bell { position: relative; }
.nbadge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--blue-500); color: #fff; font-size: 10.5px;
  font-weight: 800; font-style: normal; display: grid; place-items: center;
  padding: 0 4px; border: 2px solid #fff;
}

/* Quick destination grid */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qcard {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 15px; padding: 13px 6px 11px;
  transition: border-color .15s, background .15s;
}
.qcard:active { border-color: var(--blue-400); background: var(--blue-50); }
.qcard .qic { width: 34px; height: 34px; border-radius: 11px; background: var(--blue-50);
  display: grid; place-items: center; color: var(--blue-600); margin-bottom: 4px; }
.qcard b { font-size: 12.5px; font-weight: 800; }
.qcard .qsub { font-size: 10.5px; color: var(--muted); font-weight: 700; }

/* Location picker */
.locpick .routebox { display: flex; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.locpick .glyphs { display: flex; flex-direction: column; align-items: center; padding: 18px 0; }
.locpick .glyphs .p1 { width: 10px; height: 10px; border-radius: 99px; background: var(--green); }
.locpick .glyphs .l { flex: 1; width: 2px; background: var(--line); margin: 4px 0; }
.locpick .glyphs .p2 { width: 10px; height: 10px; border-radius: 3px; background: var(--navy-800); }
.locpick .inputs { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.locpick .inputs input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font-size: 14.5px; background: var(--bg); outline: none; font-weight: 600;
}
.locpick .inputs input:focus { border-color: var(--blue-500); background: #fff; }
.locpick .inputs input.filled { background: #fff; border-color: var(--blue-100); }
.place-list { display: flex; flex-direction: column; }
.place-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 6px;
  border-bottom: 1px solid var(--line); text-align: left; width: 100%;
}
.place-item:last-child { border-bottom: 0; }
.place-item .pin {
  width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50);
  display: grid; place-items: center; color: var(--blue-600); flex: none;
}
.place-item .nm { font-weight: 700; font-size: 15px; }
.place-item .ar { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.place-item[data-active="1"] .pin { background: var(--blue-600); color: #fff; }

/* Route summary */
.ab-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ab { display: flex; align-items: center; gap: 13px; background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.ab b { display: block; font-size: 14.5px; }
.ab span:last-child, .ab div span { font-size: 12px; color: var(--muted); }
.k { width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800; color: #fff; flex: none; }
.k.a { background: var(--blue-500); }
.k.b { background: var(--navy-800); border-radius: 8px; }
.trip-meta { display: flex; gap: 8px; margin-bottom: 14px; }
.trip-meta .m { flex: 1; background: var(--bg); border-radius: 14px; padding: 11px 8px; text-align: center; }
.trip-meta .m b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.trip-meta .m span { font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }

/* Vehicle options */
.veh-option {
  position: relative;
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px; border-radius: var(--radius-md); border: 2px solid var(--line);
  margin-bottom: 10px; background: #fff; transition: border-color .18s, background .18s;
}
.veh-option.sel { border-color: var(--blue-500); background: var(--blue-50); }
.veh-option .art { width: 66px; height: 46px; flex: none; }
.veh-option .info { flex: 1; min-width: 0; }
.veh-option .nm { font-weight: 800; font-size: 15.5px; }
.veh-option .ds { font-size: 12px; color: var(--muted); margin-top: 3px; }
.veh-option .fare { font-weight: 800; font-size: 15.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.veh-option .selcheck {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 99px;
  background: var(--blue-600); color: #fff; display: none; place-items: center;
  border: 3px solid #fff; box-shadow: var(--shadow-card);
}
.veh-option .selcheck svg { width: 13px; height: 13px; }
.veh-option.sel .selcheck { display: grid; }

/* Payment method row */
.paymethod {
  display: flex; align-items: center; gap: 13px; width: 100%;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px;
  background: #fff; cursor: pointer; text-align: left;
}
.paymethod .pmic { width: 38px; height: 38px; border-radius: 11px; background: var(--blue-50);
  display: grid; place-items: center; color: var(--blue-600); flex: none; }
.paymethod .pml { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.paymethod b { font-size: 14.5px; }
.paymethod .chev { margin-left: auto; color: var(--muted); font-size: 22px; font-weight: 700; }

/* ---------- Finding driver overlay ---------- */
.finding {
  position: absolute; inset: 0; z-index: 8;
  background: linear-gradient(175deg, #0d3d8f 0%, var(--navy-800) 50%, var(--navy-900) 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  padding: 60px 26px calc(26px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .4s;
}
.finding.show { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
.find-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.find-center h2 { font-size: 26px; font-weight: 800; line-height: 1.25; }
.find-center p { color: #b7cdf3; font-size: 14px; }
.radar { position: relative; width: 190px; height: 190px; margin: 18px 0 4px; }
.radar .ring { position: absolute; inset: 0; border-radius: 999px; border: 1.5px solid rgba(120,170,255,.7);
  animation: radar 2.2s ease-out infinite; opacity: 0; }
.radar .ring:nth-child(2) { animation-delay: .7s; }
.radar .ring:nth-child(3) { animation-delay: 1.4s; }
@keyframes radar { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
.radar .core { position: absolute; inset: 55px; display: grid; place-items: center;
  filter: drop-shadow(0 14px 30px rgba(33,150,243,.5)); }
.radar .core svg { width: 80px; height: 80px; }
.findcar { width: 64px; opacity: .9; }

/* ---------- Brand transition (logo searching between screens) ---------- */
.brandtrans {
  position: absolute; inset: 0; z-index: 60;
  background: linear-gradient(175deg, #0d3d8f 0%, var(--navy-800) 50%, var(--navy-900) 100%);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s .5s;
}
.brandtrans.show { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.brandtrans .btr-radar { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.brandtrans .ring {
  position: absolute; inset: 0; border-radius: 999px;
  border: 1.5px solid rgba(120,170,255,.75); opacity: 0;
  animation: radar 2.4s ease-out infinite;
}
.brandtrans .ring:nth-child(2) { animation-delay: .8s; }
.brandtrans .ring:nth-child(3) { animation-delay: 1.6s; }
.brandtrans .hug { position: absolute; inset: 18px; border-radius: 999px; border: 1px solid rgba(140,185,255,.3); }
.brandtrans img, .brandtrans svg { filter: drop-shadow(0 18px 40px rgba(7,20,43,.55)); animation: pop .8s cubic-bezier(.2,.9,.3,1.4); }

/* ---------- Active ride ---------- */
.driver-card { display: flex; align-items: center; gap: 14px; padding: 4px 0 12px; }
.avatar {
  width: 54px; height: 54px; border-radius: 999px; flex: none;
  background: linear-gradient(135deg, var(--blue-100), var(--sea));
  display: grid; place-items: center; font-weight: 800; font-size: 19px; color: var(--navy-800);
  border: 2px solid #fff; box-shadow: var(--shadow-card);
}
.avatar.sm { width: 40px; height: 40px; font-size: 15px; }
.driver-card .nm { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ratechip { font-size: 12px; font-weight: 800; color: var(--navy-800); background: var(--blue-50);
  border-radius: 99px; padding: 2px 8px; }
.driver-card .car { font-size: 13px; color: var(--muted); margin-top: 2px; }
.driver-card .plate {
  margin-top: 5px; display: inline-block; background: var(--navy-800); color: #fff;
  font-weight: 800; letter-spacing: 1.5px; font-size: 12px; padding: 3px 9px; border-radius: 6px;
}
.ride-actions { display: flex; gap: 10px; margin-bottom: 12px; }
.rab {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--bg); border-radius: 14px; padding: 11px 6px 9px;
  font-size: 12px; font-weight: 700; color: var(--navy-800);
}
.rab:active { background: var(--blue-50); }
.rab .ric { width: 34px; height: 34px; border-radius: 999px; background: #fff;
  display: grid; place-items: center; color: var(--blue-600); box-shadow: var(--shadow-card); }
.rab .badge { position: absolute; top: 6px; right: 16px; width: 10px; height: 10px; border-radius: 99px;
  background: var(--red); border: 2px solid #fff; display: none; }
.rab .badge.show { display: block; }
.trip-line { display: flex; align-items: center; gap: 13px; background: var(--bg);
  border-radius: 14px; padding: 11px 14px; margin-bottom: 12px; }
.trip-line b { display: block; font-size: 14px; }
.trip-line span:last-child, .trip-line div span { font-size: 12px; color: var(--muted); }
.duo { display: flex; gap: 10px; }

/* ---------- Quick chat ---------- */
.chat { background: var(--bg); }
.chat-who { flex: 1; display: flex; align-items: center; gap: 11px; }
.chat-who b { font-size: 15.5px; display: block; }
.chat-rate { font-size: 12px; color: var(--gold); font-weight: 800; }
.thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.thread-empty { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 30px; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 17px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.bubble.mine { align-self: flex-end; background: var(--blue-600); color: #fff; border-bottom-right-radius: 5px; }
.bubble.theirs { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 5px;
  box-shadow: 0 2px 8px rgba(8,26,56,.06); }
.quickmsgs { background: #fff; border-top: 1px solid var(--line); padding: 13px 18px calc(16px + env(safe-area-inset-bottom)); }
.qlabel { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 9px; }
.qwrap { display: flex; flex-wrap: wrap; gap: 8px; }
.qmsg { background: var(--blue-50); color: var(--blue-600); border-radius: 999px; padding: 9px 14px;
  font-size: 13px; font-weight: 700; }
.qmsg:active { background: var(--blue-100); }

/* ---------- Ride completed ---------- */
.done { background: #fff; }
.done-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 26px; text-align: center; }
.bigcheck { position: relative; width: 130px; height: 130px; margin-bottom: 18px; }
.ccirc { position: absolute; inset: 15px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  display: grid; place-items: center; box-shadow: 0 18px 40px rgba(33,150,243,.4);
  animation: pop .7s cubic-bezier(.2,.9,.3,1.5); }
.ccirc svg { width: 44px; height: 44px; }
.cf { position: absolute; width: 8px; height: 8px; border-radius: 3px; animation: confetti 1.6s ease-out infinite; }
.c1 { left: 2px; top: 28px; background: var(--gold); }
.c2 { right: 4px; top: 16px; background: var(--blue-400); animation-delay: .2s; }
.c3 { left: 16px; bottom: 8px; background: var(--green); animation-delay: .45s; border-radius: 99px; }
.c4 { right: 12px; bottom: 20px; background: var(--red); animation-delay: .65s; }
.c5 { left: 52%; top: -6px; background: var(--blue-600); animation-delay: .3s; border-radius: 99px; }
.c6 { right: -6px; top: 54%; background: var(--gold); animation-delay: .8s; }
@keyframes confetti { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(-22px) rotate(140deg); opacity: 0; } }
.done-body h2 { font-size: 24px; font-weight: 800; }
.done-body > p { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.mini-driver { display: flex; align-items: center; gap: 13px; text-align: left;
  background: var(--bg); border-radius: 16px; padding: 13px 16px; width: 100%; max-width: 330px; }
.mini-driver .nm { font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.mini-driver .car { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.mini-driver .plate { margin-top: 4px; display: inline-block; background: var(--navy-800); color: #fff;
  font-weight: 800; letter-spacing: 1.2px; font-size: 11px; padding: 2px 8px; border-radius: 5px; }
.receipt { width: 100%; max-width: 330px; margin-top: 12px; text-align: left;
  background: var(--bg); border-radius: 16px; padding: 5px 16px; }
.receipt .rrow { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 13.5px; }
.receipt .rrow span { color: var(--muted); font-weight: 600; }
.receipt .rrow b { font-variant-numeric: tabular-nums; font-weight: 700; }
.receipt .rrow.total { border-top: 2px dashed var(--line); padding-top: 11px; }
.receipt .rrow.total span { font-weight: 800; color: inherit; font-size: 12px;
  text-transform: uppercase; letter-spacing: .4px; }
.receipt .rrow.total b { font-size: 20px; font-weight: 800; color: var(--blue-600); }
.points-chip { margin-top: 12px; padding: 8px 18px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  color: #7a5200; background: linear-gradient(120deg, #fff3d6, #ffe3a1); border: 1px solid #f0d488;
  box-shadow: 0 6px 16px rgba(240,180,60,.22); animation: pop .7s cubic-bezier(.2,.9,.3,1.4); }
.done-foot { padding: 0 26px calc(26px + env(safe-area-inset-bottom)); }

/* ---------- Rate driver ---------- */
.rate { background: #fff; }
.rate-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 12px 26px 26px; text-align: center; }
.rate-body h2 { font-size: 23px; font-weight: 800; margin-top: 8px; }
.rate-body .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.stars-input { display: flex; justify-content: center; gap: 10px; margin: 22px 0 6px; }
.stars-input button { font-size: 42px; color: #d7e2f0; transition: transform .12s, color .15s; line-height: 1; }
.stars-input button.on { color: var(--gold); transform: scale(1.06); }
.star-caption { color: var(--blue-600); font-weight: 800; font-size: 14px; margin-bottom: 18px; }
.comment-wrap { position: relative; width: 100%; margin-bottom: 14px; }
textarea.comment {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px 26px;
  font-size: 14.5px; resize: none; outline: none; background: #fff;
}
textarea.comment:focus { border-color: var(--blue-500); }
.counter { position: absolute; right: 12px; bottom: 10px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.rate-body .mini-driver { margin-bottom: 18px; }
.rate-body .btn { margin-top: auto; }

/* ---------- Driver app ---------- */
.dr-header {
  background: linear-gradient(165deg, #0d3d8f, var(--navy-800)); color: #fff;
  padding: 18px 20px 20px; border-radius: 0 0 26px 26px; z-index: 5;
}
.dr-header .row1 { display: flex; align-items: center; justify-content: space-between; }
.dr-header .who { display: flex; align-items: center; gap: 12px; }
.dr-header .who .avatar { width: 46px; height: 46px; font-size: 17px; border: none; }
.dr-header .who .nm { font-weight: 800; font-size: 16px; }
.dr-header .who .veh { font-size: 12.5px; color: #a9c6f5; }
.switch { position: relative; width: 108px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25); font-weight: 800; font-size: 13px; color: #fff; overflow: hidden; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 52px; height: 32px; border-radius: 999px;
  background: #8d9db5; transition: all .3s cubic-bezier(.3,.9,.3,1.2); display: grid; place-items: center; }
.switch.on .knob { left: 53px; background: var(--green); }
.stat-row { display: flex; gap: 10px; margin-top: 16px; }
.stat {
  flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px; padding: 11px 12px; color: #fff;
}
.stat b { font-size: 17px; display: block; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; color: #a9c6f5; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }

.request-pop {
  position: absolute; inset: auto 14px 14px; z-index: 8;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
  padding: 18px; transform: translateY(120%); visibility: hidden;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.1), visibility 0s .45s;
}
.request-pop.show { transform: none; visibility: visible; transition-delay: 0s, 0s; }
.request-pop .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.request-pop .head h3 { font-size: 17px; }
.countdown { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center;
  font-weight: 800; color: var(--blue-600); background: var(--blue-50); font-size: 15px; }
.route-lines { margin: 10px 0 14px; }
.route-lines .rl { display: flex; gap: 12px; align-items: center; padding: 5px 0; font-weight: 700; font-size: 14.5px; }
.route-lines .rl .kk { width: 10px; height: 10px; border-radius: 99px; flex: none; }
.route-lines .rl:first-child .kk { background: var(--green); }
.route-lines .rl:last-child .kk { background: var(--navy-800); border-radius: 3px; }

.action-bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 7;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-float); padding: 16px;
  display: none;
}
.action-bar.show { display: block; animation: screenIn .3s ease; }
.steps { display: flex; gap: 6px; margin: 4px 0 12px; }
.steps .st { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: background .3s; }
.steps .st.on { background: var(--blue-500); }

/* ---------- Lists / panels ---------- */
.panel-page { background: var(--bg); }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff;
  border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 19px; flex: 1; }
.backbtn { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--navy-800);
  display: grid; place-items: center; flex: none; }
.earn-list { padding: 14px 18px 24px; overflow-y: auto; }
.earn-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px;
  padding: 14px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(8,26,56,.05); }
.earn-item .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-50);
  display: grid; place-items: center; color: var(--blue-600); flex: none; }
.earn-item .t1 { font-weight: 700; font-size: 14px; }
.earn-item .t2 { font-size: 12px; color: var(--muted); margin-top: 2px; }
.earn-item .amt { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Admin ---------- */
.admin-shell { max-width: 1024px !important; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; }
@media (max-width: 700px) { .admin-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 2px 10px rgba(8,26,56,.05); }
.kpi b { font-size: 22px; display: block; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.admin-section { padding: 0 18px 18px; }
.admin-section h3 { font-size: 15px; margin-bottom: 10px; color: var(--navy-800); }
.table { width: 100%; background: #fff; border-radius: 16px; overflow: hidden; border-collapse: collapse;
  box-shadow: 0 2px 10px rgba(8,26,56,.05); font-size: 13px; }
.table th { text-align: left; padding: 11px 12px; background: var(--blue-50); color: var(--navy-700);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; }
.table td { padding: 10px 12px; border-top: 1px solid var(--line); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; }
.tag.requested { background: #fff4d6; color: #9a6b00; }
.tag.accepted, .tag.arriving, .tag.arrived { background: var(--blue-100); color: var(--blue-600); }
.tag.in_progress { background: #e6e0ff; color: #5b3df5; }
.tag.completed, .tag.online { background: #dcf5e7; color: var(--green); }
.tag.cancelled, .tag.offline { background: #fdecec; color: var(--red); }
.tag.busy { background: #fff4d6; color: #9a6b00; }
.tag.pending { background: #fff4d6; color: #9a6b00; }
.tag.approved { background: #dcf5e7; color: var(--green); }
.tag.rejected, .tag.suspended { background: #fdecec; color: var(--red); }
.star { color: var(--gold); }

/* ---------- Admin tabs ---------- */
.admin-tabs { display: flex; gap: 8px; padding: 0 18px 14px; }
.atab {
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  background: var(--blue-50); color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.atab.on { background: var(--blue-600); color: #fff; }
.abadge {
  background: #ffb703; color: #5b3d00; border-radius: 999px; min-width: 20px; height: 20px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800; padding: 0 6px;
}

/* ---------- Toast ---------- */
.toast {
  position: absolute; bottom: 24px; left: 50%; transform: translate(-50%, 80px); z-index: 50;
  background: var(--navy-800); color: #fff; padding: 12px 20px; border-radius: 14px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-float); visibility: hidden;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2), visibility 0s .35s;
  max-width: 86%; text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s, 0s; }

/* ---------- Map SVG styling ---------- */
.gmap .sea { fill: url(#seaGrad); }
.gmap .land { fill: #fdfefe; stroke: #cfe0f2; stroke-width: 1.4; }
.gmap .ridge { fill: none; stroke: #e4edf7; stroke-width: 7; stroke-linecap: round; }
.gmap .road { fill: none; stroke: #d7e4f2; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.gmap .road-hi { fill: none; stroke: #ffffff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gmap .route { fill: none; stroke: var(--blue-500); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 9; animation: routeflow 1.2s linear infinite; }
@keyframes routeflow { to { stroke-dashoffset: -10; } }
.gmap .route-base { fill: none; stroke: rgba(33,150,243,.22); stroke-width: 7; stroke-linecap: round; }
.gmap .route-flow { fill: none; stroke: #eaf4ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 14; }
/* flowing dashes over the route — works on both map engines */
.route-flow { animation: routeflow 1.1s linear infinite; }
@keyframes routeflow { to { stroke-dashoffset: -15; } }
.gmap .place-dot { fill: #fff; stroke: var(--blue-400); stroke-width: 2; }
.gmap .place-lbl { font-family: var(--font); font-weight: 700; fill: #7d92ad;
  paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: .25em; }
.gmap .place-lbl.hub { fill: var(--navy-700); font-size: 1.08em; }
.gmap .place-lbl:not(.hub) { display: none; }
.gmap .sea-lbl { font-family: var(--font); font-weight: 700; fill: #8fb8e0;
  letter-spacing: 3px; text-transform: uppercase; }
