/* Joylives Şoför — mobil öncelikli koyu arayüz (siyah / antrasit + altın vurgu) */
:root {
  color-scheme: dark;
  --bg: #101214;
  --bg-deep: #0a0b0c;
  --surface: #1b1e21;
  --surface-2: #23272a;
  --raised: #2a2e31;
  --line: #2f3337;
  --line-soft: #26292c;
  --text: #f4f3ef;
  --text-2: #d6d6d2;
  --muted: #9a9ea2;
  --faint: #6f7377;
  --gold: #d9b878;
  --gold-hi: #e8cb92;
  --gold-soft: #3a3326;
  --gold-line: #57492f;
  --gold-ink: #17140f;
  --ok: #7dd3a2;
  --ok-soft: #1f3529;
  --warn: #e9b65a;
  --warn-soft: #3a2f1c;
  --bad: #ec8379;
  --bad-soft: #3b2222;
  --info: #a9b9d6;
  --radius: 18px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Uygulama çerçevesi ---------- */
.stage { min-height: 100dvh; display: grid; place-items: center; }
.app {
  position: relative; width: 100%; max-width: 440px; height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden; background: var(--bg);
}
@media (min-width: 520px) {
  .stage { padding: 20px; background: radial-gradient(ellipse at 45% 0%, #25221b 0%, #121415 55%, #0a0b0c 100%); }
  .app { height: min(880px, calc(100dvh - 40px)); border-radius: 30px; border: 1px solid #2d3033; box-shadow: 0 30px 90px #000c; }
}

.top { flex-shrink: 0; padding: calc(14px + env(safe-area-inset-top)) 18px 12px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.top h1 { margin: 0; font-size: 24px; font-weight: 680; letter-spacing: -.7px; display: flex; align-items: baseline; gap: 8px; }
.top h1 .count { font-size: 14px; color: var(--gold); font-weight: 700; letter-spacing: 0; }
.top .spacer { flex: 1; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); position: relative; }
.icon-btn:active { transform: scale(.95); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.back { width: 38px; height: 38px; margin-left: -6px; display: grid; place-items: center; border-radius: 12px; color: var(--text-2); }
.top .title-sm { font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
.top .sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px calc(var(--tabbar-h) + 28px); scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.no-tabbar .scroll { padding-bottom: 120px; }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4a4d50; align-self: center; margin-left: 2px; transition: background .3s; }
.live-dot.on { background: var(--ok); box-shadow: 0 0 0 3px #7dd3a222; }
.conn { display: none; align-items: center; gap: 6px; font-size: 11px; color: var(--warn); background: var(--warn-soft); border: 1px solid #5a4724; padding: 4px 9px; border-radius: 99px; }
.conn.show { display: inline-flex; }
.conn i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); animation: blink 1s infinite; }

/* ---------- Alt menü ---------- */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 8px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #10121400 0%, var(--bg) 22%); }
.tabbar nav { height: var(--tabbar-h); display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; background: #1f2326; border: 1px solid #34383b; border-radius: 19px; box-shadow: 0 6px 24px #0006; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; color: #979b9f; font-size: 10.5px; font-weight: 600; position: relative; }
.tab svg.i { width: 21px; height: 21px; }
.tab.active { color: var(--gold-hi); background: #322f27; }
.tab .badge { position: absolute; top: 5px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--gold-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Teklif kartı ---------- */
.cards { display: flex; flex-direction: column; gap: 11px; }
.offer {
  position: relative; border-radius: var(--radius); padding: 14px 15px 13px;
  background: linear-gradient(150deg, #25292c 0%, #1d2023 58%, #1a1d1f 100%);
  border: 1px solid #33373a; box-shadow: 0 3px 18px #0003; cursor: pointer;
  transition: transform .15s var(--ease), border-color .2s;
}
.offer:active { transform: scale(.99); }
.offer.is-new { animation: card-in .35s var(--ease); }
.offer.is-out { animation: card-out .3s var(--ease) forwards; }
.o-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.o-when { font-size: 13px; color: var(--text-2); font-weight: 600; letter-spacing: -.1px; white-space: nowrap; }
.o-when b { font-size: 18px; color: #fff; font-weight: 720; margin-right: 6px; letter-spacing: -.4px; }
.chip-class { font-size: 9.5px; font-weight: 760; letter-spacing: .6px; color: #dcc08f; background: var(--gold-soft); border: 1px solid #4d4230; padding: 5px 8px; border-radius: 7px; white-space: nowrap; }
.o-flight { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #c4c6c8; }
.o-flight svg.i { width: 14px; height: 14px; color: var(--gold); }
.o-flight b { color: #f1f1ef; font-weight: 700; letter-spacing: .3px; }
.o-flight span { color: var(--muted); }

.route { margin-top: 11px; display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; row-gap: 8px; position: relative; }
.route::before { content: ""; position: absolute; left: 5.5px; top: 11px; bottom: 11px; width: 1px; background: linear-gradient(#77705f, #4a4840); }
.pin { width: 11px; height: 11px; border: 2px solid var(--gold); border-radius: 50%; background: var(--surface); margin-top: 4px; z-index: 1; }
.pin.end { background: var(--gold); width: 9px; height: 9px; margin: 5px 0 0 1px; }
.place { font-size: 14px; font-weight: 560; color: #f7f7f5; letter-spacing: -.15px; line-height: 1.38; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.o-meta { margin-top: 11px; display: flex; gap: 14px; color: #a7aaad; font-size: 11.5px; }
.o-meta span { display: inline-flex; align-items: center; gap: 5px; }
.o-meta svg.i { width: 14px; height: 14px; }

.o-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid #33373a; display: flex; align-items: center; gap: 11px; }
.note-btn { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold-hi); position: relative; }
.note-btn::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.note-btn svg.i { width: 16px; height: 16px; }
.fare { flex: 1; min-width: 0; }
.fare small { display: block; font-size: 10px; color: #a3a5a6; margin-bottom: 4px; letter-spacing: .1px; }
.fare strong { display: block; font-size: 23px; line-height: 1; font-weight: 720; letter-spacing: -.7px; color: #fff; white-space: nowrap; }
.fare.flash strong { animation: price-flash 1.6s var(--ease); }
.btn-accept { flex-shrink: 0; min-width: 118px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 800; box-shadow: inset 0 1px #fff5; transition: transform .12s, background .15s; }
.btn-accept svg.i { width: 16px; height: 16px; stroke-width: 2; }
.btn-accept:active { transform: scale(.96); background: var(--gold-hi); }
.btn-accept:disabled { opacity: .55; cursor: default; }

/* Boş ve uyarı durumları */
.empty { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; color: var(--muted); padding: 0 24px; }
.empty svg.i { width: 36px; height: 36px; color: #b99c69; stroke-width: 1.4; }
.empty strong { color: var(--text); font-size: 16px; font-weight: 650; }
.empty p { margin: 0; font-size: 13px; }
.notice { border-radius: 14px; padding: 12px 13px; background: var(--warn-soft); border: 1px solid #5a4724; color: #f0d9a8; font-size: 12.5px; display: flex; gap: 10px; }
.notice svg.i { color: var(--warn); margin-top: 1px; }
.notice ul { margin: 6px 0 0; padding-left: 16px; color: #e6cf9e; }
.notice a { color: var(--gold-hi); font-weight: 650; }
.notice.info { background: #1c232c; border-color: #2e3a49; color: #c9d5e8; }
.notice.info svg.i { color: var(--info); }

/* ---------- Alt panel (bottom sheet) ---------- */
.overlay { position: absolute; inset: 0; z-index: 20; background: #000a; display: flex; align-items: flex-end; animation: fade-in .18s ease-out; }
.overlay.closing { animation: fade-out .2s ease-in forwards; }
.sheet {
  position: relative; width: 100%; max-height: 92%; display: flex; flex-direction: column;
  background: #1f2225; border-top: 1px solid #3e4144; border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px #0008; animation: sheet-up .26s var(--ease);
  padding-bottom: env(safe-area-inset-bottom); will-change: transform;
}
.overlay.closing .sheet { animation: sheet-down .2s ease-in forwards; }
.sheet.dragging { transition: none; animation: none; }
.sheet-grab { flex-shrink: 0; padding: 9px 0 4px; touch-action: none; cursor: grab; }
.sheet-grab::before { content: ""; display: block; width: 42px; height: 4px; margin: 0 auto; border-radius: 4px; background: #5d6063; }
.sheet-head { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 6px 18px 10px; touch-action: none; }
.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 680; letter-spacing: -.3px; flex: 1; }
.sheet-x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; border: 0; background: #34373a; color: #dcdcda; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 12px; }
.sheet-foot { flex-shrink: 0; padding: 10px 18px 14px; border-top: 1px solid #303336; background: #1f2225; display: flex; align-items: center; gap: 12px; }
.sheet-foot .fare strong { font-size: 25px; }
.sheet-foot .btn-accept { min-width: 150px; padding: 14px 16px; font-size: 14px; }
.sheet-foot.two { display: grid; grid-template-columns: 1fr 1.5fr; }
.sheet-foot.two .btn-accept, .sheet-foot.two .btn-ghost { width: 100%; min-width: 0; }
.btn-ghost { padding: 13px 14px; border-radius: 12px; border: 1px solid #4a4d50; background: #2c2f32; color: #e6e6e4; font-weight: 650; font-size: 14px; }
.btn-danger { padding: 14px; border-radius: 12px; border: 0; background: #d9695f; color: #fff; font-weight: 750; font-size: 14px; }
.btn-danger:disabled { opacity: .5; }

/* Detay içeriği */
.d-when { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.d-when b { font-size: 21px; font-weight: 720; letter-spacing: -.5px; }
.d-when span { color: var(--text-2); font-size: 13px; }
.d-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: #c9cbcc; }
.d-line svg.i { width: 15px; height: 15px; color: var(--gold); }
.d-line b { color: #fff; letter-spacing: .3px; }
.d-route { margin: 12px 0 0; padding: 11px 12px; border-radius: 14px; background: #282b2e; display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; row-gap: 10px; position: relative; }
.d-route::before { content: ""; position: absolute; left: 17.5px; top: 22px; bottom: 22px; width: 1px; background: #6c6553; }
.d-route .pin { background: #282b2e; }
.d-route .pin.end { background: var(--gold); }
.d-route .place { white-space: normal; font-size: 13.5px; line-height: 1.35; }
.d-route small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: var(--faint); font-weight: 650; margin-bottom: 1px; }
.d-meta { display: flex; gap: 14px; margin-top: 11px; color: #b4b7b9; font-size: 12.5px; }
.d-meta span { display: inline-flex; align-items: center; gap: 6px; }
.d-meta svg.i { width: 15px; height: 15px; }
.notes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.note { border-radius: 12px; padding: 10px 12px; background: #2b2e30; border: 1px solid #3a3d3f; }
.note h3 { margin: 0 0 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.note h3 svg.i { width: 13px; height: 13px; }
.note p { margin: 0; font-size: 13px; line-height: 1.5; color: #ececea; white-space: pre-wrap; overflow-wrap: anywhere; }
.price-notice { margin: 0 0 10px; padding: 9px 11px; border-radius: 11px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: #f1d9a9; font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.price-notice s { color: #b6a07a; }

/* Onay paneli (kompakt) */
.confirm-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 13px; }
.confirm-list dt { color: var(--muted); font-size: 12px; padding-top: 1px; }
.confirm-list dd { margin: 0; color: #f3f3f1; font-weight: 560; line-height: 1.35; }
.confirm-amount { margin-top: 12px; padding-top: 12px; border-top: 1px solid #34373a; display: flex; align-items: baseline; justify-content: space-between; }
.confirm-amount span { color: var(--muted); font-size: 12px; }
.confirm-amount strong { font-size: 26px; font-weight: 740; letter-spacing: -.8px; }
.confirm-warn { margin-top: 10px; font-size: 11.5px; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.confirm-warn svg.i { width: 14px; height: 14px; }

/* Filtre menüsü */
.menu { position: absolute; top: 64px; right: 14px; z-index: 15; width: 200px; padding: 5px; border-radius: 15px; background: #26292c; border: 1px solid #404346; box-shadow: 0 16px 34px #0009; animation: fade-in .15s; }
.menu button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: #ddd; font-size: 13px; text-align: left; }
.menu button.sel { background: #3d382d; color: #f0d39c; }

/* Bildirim */
.toast-wrap { position: absolute; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + 30px); z-index: 30; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.no-tabbar .toast-wrap { bottom: 110px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 13px; background: #efe2c4; color: #17160f; font-weight: 650; font-size: 13px; box-shadow: 0 10px 30px #0006; animation: toast-in .25s var(--ease); }
.toast.bad { background: #f3cdc8; color: #3a1210; }
.toast svg.i { width: 17px; height: 17px; stroke-width: 2; }
.toast.out { animation: toast-out .25s ease-in forwards; }

/* ---------- Sürüşlerim ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 12px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line-soft); }
.seg a { text-align: center; padding: 9px 6px; border-radius: 10px; font-size: 13px; font-weight: 620; color: var(--muted); }
.seg a.on { background: #2d3033; color: var(--text); }
.seg a b { color: var(--gold); font-weight: 700; margin-left: 4px; }
.ride { display: block; border-radius: var(--radius); padding: 13px 14px; background: linear-gradient(150deg, #23272a 0%, #1c1f22 100%); border: 1px solid #313538; }
.ride + .ride { margin-top: 10px; }
.ride.live { border-color: var(--gold-line); box-shadow: 0 0 0 1px #57492f55, 0 6px 22px #0004; background: linear-gradient(150deg, #2a2720 0%, #1e1f1f 70%); }
.ride-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ride-code { font-size: 11px; color: var(--muted); letter-spacing: .4px; margin-top: 2px; }
.ride-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 10px; border-top: 1px solid #303437; }
.ride-foot strong { font-size: 18px; font-weight: 720; letter-spacing: -.4px; }
.ride-foot .go { color: var(--muted); display: inline-flex; align-items: center; gap: 3px; font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.info { color: #c9d3e4; background: #222a34; border-color: #303b4a; }
.status.live { color: var(--gold-hi); background: var(--gold-soft); border-color: var(--gold-line); }
.status.live::before { animation: blink 1.4s infinite; }
.status.ok { color: var(--ok); background: var(--ok-soft); border-color: #2d4d3b; }
.status.bad { color: var(--bad); background: var(--bad-soft); border-color: #563131; }
.status.muted { color: #a5a8ab; background: #26292b; border-color: #36393b; }
.status.wait { color: var(--warn); background: var(--warn-soft); border-color: #5a4724; }

/* ---------- Sürüş detayı ---------- */
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.progress .st { display: flex; flex-direction: column; gap: 6px; }
.progress .bar { height: 4px; border-radius: 4px; background: #33373a; overflow: hidden; }
.progress .st.done .bar { background: var(--gold); }
.progress .st.current .bar { background: linear-gradient(90deg, var(--gold) 0 35%, #33373a 35%); animation: none; }
.progress .lbl { font-size: 10.5px; color: var(--faint); font-weight: 600; line-height: 1.2; }
.progress .st.done .lbl { color: var(--text-2); }
.progress .st.current .lbl { color: #c4c6c8; }
.progress time { display: block; font-size: 10.5px; color: var(--gold); font-weight: 700; margin-top: 1px; }
.panel { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); padding: 13px 14px; }
.panel + .panel { margin-top: 10px; }
.panel h3 { margin: 0 0 9px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--faint); font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; }
.row + .row { margin-top: 9px; }
.row .grow { flex: 1; min-width: 0; }
.pax-name { font-size: 15px; font-weight: 650; }
.contact { display: flex; gap: 8px; margin-top: 11px; }
.contact a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 10px; border-radius: 12px; background: #282c2f; border: 1px solid #383c3f; font-size: 13px; font-weight: 650; color: #ededeb; }
.contact a.wa { color: #8fe0ad; }
.contact svg.i { width: 17px; height: 17px; }
.nav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-hi); font-size: 12px; font-weight: 700; white-space: nowrap; }
.nav-btn svg.i { width: 15px; height: 15px; }
.wait-line { margin-top: 10px; display: flex; align-items: center; gap: 7px; font-size: 12px; color: #c9cbcc; }
.wait-line svg.i { width: 15px; height: 15px; color: var(--gold); }
.payout { display: flex; align-items: baseline; justify-content: space-between; }
.payout span { color: var(--muted); font-size: 12px; }
.payout strong { font-size: 24px; font-weight: 740; letter-spacing: -.7px; }
.link-danger { display: block; width: 100%; margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px dashed #5a3a37; background: transparent; color: #e9a097; font-size: 13px; font-weight: 650; }

.action-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #10121400 0%, var(--bg) 26%); }
.btn-stage { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 17px; background: var(--gold); color: var(--gold-ink); font-size: 18px; font-weight: 800; letter-spacing: -.2px; box-shadow: inset 0 1px #fff6, 0 10px 26px #d9b87833; transition: transform .12s, background .15s, opacity .15s; }
.btn-stage svg.i { width: 21px; height: 21px; stroke-width: 2.1; }
.btn-stage:active { transform: scale(.98); background: var(--gold-hi); }
.btn-stage:disabled { background: #2c2f32; color: #8c9093; box-shadow: none; }
.btn-stage .hint { font-size: 12px; font-weight: 600; opacity: .85; }
.btn-stage.done { background: var(--ok-soft); color: var(--ok); box-shadow: none; }

/* Geri verme */
.policy { border-radius: 13px; padding: 11px 12px; margin: 4px 0 12px; font-size: 13px; display: flex; gap: 9px; }
.policy svg.i { margin-top: 1px; }
.policy.free { background: var(--ok-soft); border: 1px solid #2d4d3b; color: #c7ecd6; }
.policy.penalty { background: var(--warn-soft); border: 1px solid #5a4724; color: #f3dcae; }
.policy.approval { background: var(--bad-soft); border: 1px solid #563131; color: #f5c9c3; }
.policy b { display: block; margin-bottom: 2px; color: #fff; }
.reasons { display: flex; flex-direction: column; gap: 6px; }
.reasons label { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: #2a2d30; border: 1px solid #383b3e; font-size: 13.5px; }
.reasons input { accent-color: var(--gold); width: 17px; height: 17px; margin: 0; }
.reasons label:has(input:checked) { border-color: var(--gold-line); background: #312d25; }
textarea.field, input.field { width: 100%; margin-top: 8px; padding: 11px 12px; border-radius: 12px; border: 1px solid #3c3f42; background: #16181a; color: var(--text); resize: vertical; min-height: 44px; }
.field:focus { outline: none; border-color: var(--gold-line); }
.check { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.check input { accent-color: var(--gold); width: 17px; height: 17px; margin: 1px 0 0; flex-shrink: 0; }
.terms { margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.err { color: var(--bad); font-size: 12px; margin-top: 8px; min-height: 0; }

/* ---------- Profil ---------- */
.profile-head { display: flex; align-items: center; gap: 13px; }
.avatar { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(140deg, #3d3628, #262420); border: 1px solid var(--gold-line); color: var(--gold-hi); font-size: 19px; font-weight: 750; letter-spacing: .5px; }
.profile-head h2 { margin: 0; font-size: 18px; font-weight: 680; letter-spacing: -.3px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 560; text-align: right; }
.doc { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.doc:first-of-type { border-top: 0; }
.doc .grow { flex: 1; min-width: 0; font-size: 13px; }
.doc small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.doc small.warn { color: var(--warn); }
.doc small.bad { color: var(--bad); }
.plate { display: inline-block; padding: 3px 7px; border-radius: 6px; background: #e9e7e1; color: #111; font-weight: 750; font-size: 12px; letter-spacing: .6px; }
.avatar-btn { position: relative; padding: 0; border: 0; background: none; border-radius: 18px; flex-shrink: 0; }
.avatar-btn img { width: 56px; height: 56px; border-radius: 18px; object-fit: cover; display: block; border: 1px solid var(--gold-line); }
.avatar-btn i { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); border: 2px solid var(--surface); }
.avatar-btn i svg.i { width: 12px; height: 12px; stroke-width: 2.2; }
.link-btn { border: 0; background: none; color: var(--gold-hi); font-size: 12px; font-weight: 650; padding: 0 0 0 6px; }
.doc-btn { flex-shrink: 0; margin-left: 2px; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold-hi); font-size: 12px; font-weight: 700; }
.doc-btn:active { transform: scale(.96); }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.photos .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #26292c; border: 1px solid #34373a; }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph form { position: absolute; top: 3px; right: 3px; margin: 0; }
.photos .ph form button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: #000a; color: #fff; font-size: 14px; line-height: 1; }
.photos .ph.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--gold-hi); font-size: 10.5px; font-weight: 650; border-style: dashed; border-color: var(--gold-line); }
.link-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 0; border: 0; background: none; color: var(--text); font-size: 14px; text-align: left; }
.link-row svg.i:last-child { margin-left: auto; color: var(--faint); }
.file-pick { display: block; margin: 4px 0 10px; cursor: pointer; }
.file-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-pick span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 12px; border-radius: 14px; border: 1.5px dashed var(--gold-line); background: #2a2720; color: var(--gold-hi); font-size: 13.5px; text-align: center; }
.file-pick span b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.lbl-s { display: block; font-size: 11.5px; color: var(--muted); font-weight: 650; margin: 10px 0 0; }
.form-s .field { margin-top: 5px; }
.grid-2s { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.logout { width: 100%; margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 600; }

/* ---------- Giriş ---------- */
.login { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 26px calc(28px + env(safe-area-inset-bottom)); }
.login img { width: 150px; display: block; margin: 0 0 6px; }
.login .tag { color: var(--muted); font-size: 13px; margin: 0 0 30px; letter-spacing: .3px; }
.login label { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 0; font-weight: 600; }
.login input.field { margin-top: 6px; padding: 14px; font-size: 15px; }
.login .btn-stage { margin-top: 22px; min-height: 54px; font-size: 16px; }
.login .remember { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.login .remember input { accent-color: var(--gold); width: 16px; height: 16px; }
.demo { margin-top: 26px; border-radius: 14px; padding: 12px 13px; background: var(--surface); border: 1px dashed #3d4043; font-size: 12px; color: var(--muted); }
.demo b { color: var(--text-2); }
.demo button { display: block; width: 100%; text-align: left; padding: 7px 0; border: 0; background: none; color: var(--text-2); font-size: 12.5px; }
.demo button span { color: var(--faint); }

/* ---------- Hareket ---------- */
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes card-out { to { opacity: 0; transform: scale(.97); height: 0; margin: 0; padding: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }
@keyframes price-flash { 0% { color: var(--gold-hi); text-shadow: 0 0 14px #d9b87888; } 100% { color: #fff; text-shadow: none; } }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Bildirimler: Profil'deki anahtar ve Teklifler'deki kısa öneri */
.push-row { display: flex; align-items: flex-start; gap: 11px; }
.push-row > svg.i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.push-row b { display: block; font-size: 14px; font-weight: 650; color: var(--text); }
.push-row small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.push-row .grow { flex: 1; min-width: 0; }
.switch { position: relative; flex-shrink: 0; width: 46px; height: 28px; padding: 0; border-radius: 14px; border: 1px solid #4a4d50; background: #2c2f32; transition: background .18s, border-color .18s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #a9aaa6; transition: transform .18s, background .18s; }
.switch[aria-checked="true"] { background: var(--gold); border-color: var(--gold); }
.switch[aria-checked="true"] i { transform: translateX(18px); background: var(--gold-ink); }
.switch:disabled { opacity: .45; }
.push-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 8px 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--gold-line); }
.push-banner > svg.i { color: var(--gold); flex-shrink: 0; }
.push-banner .grow { flex: 1; min-width: 0; }
.push-banner b { display: block; font-size: 13px; color: var(--text); }
.push-banner small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.push-banner .pb-on { flex-shrink: 0; padding: 8px 14px; border: 0; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 13px; }
.push-banner .pb-on:disabled { opacity: .6; }
.push-banner .pb-x { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--faint); }
.push-banner .pb-x svg.i { width: 16px; height: 16px; }

/* ---------- Gerçek uygulama hissi ----------
   - Sayfanın kendisi kaymaz/zıplamaz; yalnızca içerik alanı (.scroll) kayar → alt menü hep yerinde durur.
   - İki parmakla ve çift dokunuşla yakınlaştırma kapalı.
   - Yazı alanlarında yazı 16px: daha küçük olursa iPhone dokununca ekranı kendiliğinden büyütür. */
html, body { position: fixed; inset: 0; overflow: hidden; overscroll-behavior: none; touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.stage { height: 100dvh; min-height: 0; }
input, select, textarea, .login input.field, textarea.field, input.field { font-size: 16px; }
/* Uzun e-posta/ad/adres ekranı yana taşırmasın: satır içinde alta geçsin; içerik alanı yana hiç kaymasın */
.scroll { overflow-x: hidden; }
.kv span { flex-shrink: 0; }
.kv b { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.profile-head h2, .pax-name, .place, .o-route, .d-route { overflow-wrap: anywhere; }
/* Sürüş detayında da alt menü yerinde durur (gerçek uygulama gibi); işlem düğmesi menünün hemen üstünde */
.app:not(.no-tabbar) .action-bar { bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); padding: 10px 14px 6px; }
.app:not(.no-tabbar) .action-bar:empty { display: none; }
.app:not(.no-tabbar):has(.action-bar:not(:empty)) .scroll { padding-bottom: calc(var(--tabbar-h) + 124px); }
.app:not(.no-tabbar):has(.action-bar:not(:empty)) .toast-wrap { bottom: calc(var(--tabbar-h) + 112px); }

/* Sayfa geçişlerinde beyaz ekran parlaması olmasın */
html { background: var(--bg-deep); color-scheme: dark; }
#installBanner img { display: block; }

/* Yükseklik = en KÜÇÜK görünür alan (svh), değişken alan (dvh) değil.
   Android 15+ Chrome her sayfa geçişinde alttaki şeridini indirip sayfayı gezinme tuşlarının (■ ● ◀) altına uzatıyor;
   dvh ile uygulama da uzuyor ve alt menü tuşların arkasına kayıyordu (Xiaomi 13T, 2026-11-09).
   svh tarayıcı şeritleri açıkken ölçülür → menü hiçbir durumda tuşların altına inmez; altta kalan boşluk koyu zemin olur. */
.stage { height: 100vh; height: 100svh; min-height: 0; place-items: start center; }
.app { height: 100vh; height: 100svh; }
@media (min-width: 520px) {
  .stage { height: 100dvh; place-items: center; }
  .app { height: min(880px, calc(100dvh - 40px)); }
}

/* Başvuru kontrol listesi (onay bekleyen şoför) */
.onb { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 15px 6px; margin-bottom: 12px; }
.onb-head { display: flex; gap: 12px; align-items: flex-start; }
.onb-head h2 { margin: 0 0 3px; font-size: 17px; letter-spacing: -.2px; }
.onb-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.onb-count { margin-left: auto; flex-shrink: 0; font-weight: 800; color: var(--gold); font-size: 15px; }
.onb-bar { height: 6px; border-radius: 4px; background: var(--surface-2); margin: 12px 0 6px; overflow: hidden; }
.onb-bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.onb-steps { list-style: none; margin: 0; padding: 0; }
.onb-step { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.onb-step:first-child { border-top: 0; }
.onb-ic { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--faint); background: var(--bg); }
.onb-ic svg.i { width: 15px; height: 15px; stroke-width: 2; }
.onb-step.done .onb-ic { background: var(--ok-soft); border-color: #2d4d3b; color: var(--ok); }
.onb-step.review .onb-ic { background: #1c232c; border-color: #2e3a49; color: var(--info); }
.onb-step.bad .onb-ic { background: var(--bad-soft); border-color: #563131; color: var(--bad); }
.onb-step.todo .onb-ic { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.onb-body { flex: 1; min-width: 0; }
.onb-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.onb-tag { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; color: var(--faint); white-space: nowrap; }
.onb-step.done .onb-tag { color: var(--ok); }
.onb-step.review .onb-tag { color: var(--info); }
.onb-step.bad .onb-tag { color: var(--bad); }
.onb-step.todo .onb-tag { color: var(--gold); }
.onb-detail { color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.onb-items { list-style: none; margin: 7px 0 0; padding: 0; display: grid; gap: 4px; }
.onb-items li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.onb-items li b { font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.onb-items li.done b { color: var(--ok); }
.onb-items li.review b { color: var(--info); }
.onb-items li.bad b { color: var(--bad); }
.onb-items li.todo b { color: var(--gold); }
.onb-items li.optional b { color: var(--faint); font-weight: 500; }
.onb-go { display: inline-block; margin-top: 7px; color: var(--gold-hi); font-weight: 700; font-size: 13px; }
