:root {
  --yellow: #ffc61a; --yellow-soft: #fff4cc; --dark: #1d1f24; --muted: #6b6f78;
  --green: #16a34a; --red: #dc2626; --blue: #2563eb;
  --bg: #f4f3ef; --surface: #ffffff; --line: #e4e2da; --fg: #1d1f24;
  --meter-bg: #17181c; --meter-fg: #ff4d3d;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-cute: "Baloo 2", "Figtree", system-ui, sans-serif;
  --f-meter: "Share Tech Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --yellow-soft: #3a3214; --muted: #a3a6ad; --bg: #15161a; --surface: #1f2126; --line: #30333a; --fg: #eceef2; color-scheme: dark; }
  .btn-main { background: var(--yellow) !important; color: #1d1f24 !important; }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--f-body); color: var(--fg); background: var(--bg); overflow: hidden; }
[hidden] { display: none !important; }

/* Açılış ekranı */
/* Gece şehrinde taksi girişi: şeritler kayar → taksi girer ve fren yapar → levha yanar → başlık yükselir */
#splash { position: fixed; inset: 0; z-index: 3000; overflow: hidden; cursor: pointer;
  background: radial-gradient(ellipse at 50% 55%, #2c2f37 0%, #15161a 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity .45s ease; }
#splash.gone { opacity: 0; pointer-events: none; }
.splash-band { width: 100%; height: 22px; flex: none; background: repeating-conic-gradient(#ffc61a 0 25%, #1d1f24 0 50%) 0 0 / 22px 22px; }
.band-top { margin-bottom: 26px; animation: band-l .55s cubic-bezier(.2,.8,.3,1) both; }
.band-bottom { margin-top: 26px; animation: band-r .55s cubic-bezier(.2,.8,.3,1) both; }
.scene { width: min(78vw, 340px); }
.taxi { width: 100%; height: auto; display: block; overflow: visible; }
.taxi-drive { animation: drive 1s cubic-bezier(.15,.75,.25,1) .25s both; }
.taxi-body { transform-box: fill-box; transform-origin: 90% 100%; animation: brake .45s ease-out 1.15s both; }
.body { fill: #ffc61a; stroke: #0e0f12; stroke-width: 3; stroke-linejoin: round; }
.glass { fill: #33475b; stroke: #0e0f12; stroke-width: 2; }
.door-chk { fill: #1d1f24; }
.head { fill: #fff4cc; }
.tail { fill: #ef4444; }
.tyre { fill: #0e0f12; } .rim { fill: #9aa0aa; } .spoke { stroke: #0e0f12; stroke-width: 2.5; }
.spin { animation: spin 1s cubic-bezier(.15,.75,.25,1) .25s both; }
.speed rect { fill: #ffc61a; opacity: .7; }
.speed { animation: fade-out .3s ease-in 1.05s both; }
.beam { fill: #fff4cc; opacity: 0; animation: beam .5s ease-out 1.2s forwards; }
.sign { fill: #3a3d45; stroke: #0e0f12; stroke-width: 2; animation: sign-on .7s steps(1) 1.3s forwards; }
.sign-text { font: 900 11px "Arial Black", Arial, sans-serif; letter-spacing: 1px; fill: #6b6f78; animation: sign-text .7s steps(1) 1.3s forwards; }
.road { fill: #ffc61a; opacity: .25; }
.splash-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 9vw, 42px); color: #ffc61a; letter-spacing: -.01em; animation: rise .55s cubic-bezier(.2,.8,.3,1) 1.5s both; }
.splash-tag { color: #c9ccd3; font-size: 16px; animation: rise .55s cubic-bezier(.2,.8,.3,1) 1.7s both; }

@keyframes band-l { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes band-r { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drive { from { transform: translateX(-130vw); } to { transform: none; } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(1440deg); } }
@keyframes brake { 0% { transform: none; } 35% { transform: rotate(2.5deg); } 70% { transform: rotate(-.8deg); } 100% { transform: none; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes beam { to { opacity: .18; } }
@keyframes sign-on {
  0%   { fill: #ffc61a; filter: drop-shadow(0 0 6px #ffc61a); }
  15%  { fill: #3a3d45; filter: none; }
  30%  { fill: #ffc61a; filter: drop-shadow(0 0 6px #ffc61a); }
  42%  { fill: #3a3d45; filter: none; }
  55%, 100% { fill: #ffc61a; filter: drop-shadow(0 0 10px #ffc61a) drop-shadow(0 0 22px rgba(255,198,26,.6)); }
}
@keyframes sign-text { 0%, 30%, 55%, 100% { fill: #1d1f24; } 15%, 42% { fill: #6b6f78; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #splash *, #splash { animation: none !important; }
  .sign { fill: #ffc61a; } .sign-text { fill: #1d1f24; } .speed { opacity: 0; } .beam { opacity: .18; }
}

/* Giriş ekranı */
.login-wrap { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: linear-gradient(160deg, #ffd84d, #ffb800); padding: 16px; overflow-y: auto; }
/* iPhone'da sabit (fixed) kaydırma kutusunda yazı yazarken klavye ekranı en alta kaydırıyor.
   Hesap ve başlangıç ekranlarında (harita gizliyken) normal sayfa gibi kaydırılır. */
@supports selector(:has(a)) {
  html:has(#app[hidden]), html:has(#app[hidden]) body { height: auto; min-height: 100%; overflow: visible; }
  .login-wrap { position: relative; inset: auto; min-height: 100vh; min-height: 100dvh; overflow: visible;
                padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
}
.login-wrap .card { background: var(--surface); width: 100%; max-width: 380px; border-radius: 18px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.2); display: grid; gap: 14px; margin: auto; }
.login-wrap h1 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 28px; }
.login-wrap p { margin: 0; color: var(--muted); }
/* Hesap ekranı */
.acc-body { display: grid; gap: 12px; }
.acc-body form { display: grid; gap: 12px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.tabs button { padding: 9px 8px; background: none; color: var(--muted); font-size: 14px; border-radius: 9px; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.field small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.code-input { letter-spacing: .4em; text-align: center; font-family: var(--f-meter); font-size: 26px !important; }
.kvkk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.field .kvkk { display: flex; margin: 8px 0 0; color: var(--muted); }
.field .kvkk input { width: 18px; padding: 0; }
.kvkk input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: #1d1f24; }
.kvkk-text { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.kvkk-text summary { cursor: pointer; font-weight: 600; color: var(--fg); }
.kvkk-text p { margin: 8px 0 0 !important; font-size: 12px; }
.acc-error { color: var(--red) !important; font-size: 14px; }
.acc-ok { color: var(--green) !important; font-size: 14px; }
.link-btn { background: none; padding: 4px 0; color: var(--blue); font-weight: 600; font-size: 14px; text-decoration: underline; border-radius: 4px; }
.acc-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.acc-line span { min-width: 0; overflow-wrap: anywhere; }
/* Taksi bilgileri, şoförün taksileri ve vardiya başında taksi seçimi */
.taxi-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.taxi-box legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.taxi-box > small { font-size: 12px; color: var(--muted); margin-top: -6px; }
.field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: var(--surface); color: var(--fg); }
.taxi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.taxi-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.taxi-list li > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.taxi-list small, .taxi-opt small { display: block; font-size: 12px; color: var(--muted); }
.taxi-list .tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag.wait { background: var(--yellow-soft); color: var(--fg); }
.tag.ok { color: var(--green); background: var(--surface); }
.tag.no { color: var(--red); background: var(--surface); }
/* Profil */
.prof-sec { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.prof-sec h2 { margin: 0; font-size: 15px; }
.field input[readonly] { background: var(--bg); color: var(--muted); }
.prof-note { font-size: 12px; color: var(--muted); }
.prof-sum { margin: 0; font-size: 14px; }
.prof-acts { display: flex; gap: 12px; }
.prof-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.link-btn.danger { color: var(--red); }
a.link-btn { text-align: center; }
.trip-list li { align-items: flex-start; }
.trip-end { display: grid; justify-items: end; gap: 4px; font-size: 14px; }
/* Tüm yolculuklar: listenin kendisi kayar, sayfa uzamaz */
.trip-scroll { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px;
  scrollbar-width: thin; scrollbar-color: var(--muted) transparent; -webkit-overflow-scrolling: touch; }
.trip-scroll::-webkit-scrollbar { width: 6px; }
.trip-scroll::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 3px; }
.trips-more { width: 100%; margin-top: 10px; }
/* Profil: tek ekrana sığan sıkışık düzen */
#account.is-prof .card { gap: 10px; padding: 18px 18px 16px; }
#account.is-prof h1 { font-size: 22px; }
#account.is-prof .checker { height: 8px; }
#account.is-prof .acc-body { gap: 10px; }
.prof-form { grid-template-columns: 1fr; gap: 8px !important; }
.prof-form .field label { font-size: 13px; margin-bottom: 3px; }
.prof-form .field label small { display: inline; font-size: 12px; color: var(--muted); }
.prof-form .field input { padding: 8px 11px; }
.prof-save { padding: 10px; font-size: 15px; }
.prof-save[hidden] { display: none; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.ptaxi-list li { display: grid; gap: 2px; padding: 7px 10px; }
.ptaxi-top, .ptaxi-sub { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ptaxi-top > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptaxi-sub small { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptaxi-sub .prof-acts .link-btn { padding: 0; font-size: 13px; }
@media (max-height: 700px) { .login-wrap { padding: 8px; } #account.is-prof .card { padding: 14px 16px 12px; gap: 8px; } #account.is-prof .checker { display: none; }
  #account.is-prof h1 { font-size: 20px; } #account.is-prof .prof-sec { gap: 6px; padding-top: 8px; } #account.is-prof .acc-body { gap: 8px; }
  .prof-form .field input { padding: 6px 10px; } #account.is-prof .trips-more { padding: 6px; margin-top: 6px; } #account.is-prof [data-acc="profileBack"] { padding: 10px; } }
.prof-mail { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.prof-mail b { color: var(--fg); font-weight: 600; }
.trip-list .trip-row { display: grid; gap: 2px; padding: 7px 10px; }
.trip-top { display: flex; align-items: center; gap: 8px; }
.trip-top small { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-top b { font-size: 13px; white-space: nowrap; }
.trip-addr { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#account.is-prof .trips-more { margin-top: 8px; padding: 8px; font-size: 14px; }
#account.is-prof .prof-sec { gap: 8px; padding-top: 10px; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.howto .url { overflow-wrap: anywhere; }
/* Şoför uygulaması: "Şoför" yazısı yerine direksiyon rozeti */
.app-sofor .checker { background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, var(--dark) 10px 20px); }
.drv-badge { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--dark); color: var(--yellow); vertical-align: middle; flex: none; box-shadow: 0 0 0 2px var(--yellow); }
.drv-badge svg { width: 74%; height: 74%; }
.brand-h1 { display: flex; align-items: center; gap: 10px; }
.brand .drv-badge { margin-left: -2px; }
.splash-title .drv-badge { background: var(--yellow); color: #15161a; box-shadow: none; margin-left: .15em; }
.splash-title .drv-badge svg { animation: steer 1.6s ease-in-out infinite; }
@keyframes steer { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .splash-title .drv-badge svg { animation: none; } }
.taxi-pick { display: grid; gap: 8px; }
.pick-title { font-weight: 700; color: var(--fg) !important; font-size: 14px; }
.taxi-opt { display: flex; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 14px; }
.taxi-opt input { width: 18px; height: 18px; flex: none; accent-color: #1d1f24; }
.taxi-opt:has(input:checked) { border-color: var(--yellow); background: var(--yellow-soft); }
.taxi-pick .row small { font-size: 12px; color: var(--muted); }
/* Kayıt adımları */
.stepper { display: flex; margin: 4px 0 10px; padding: 0; list-style: none; }
.stepper li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.stepper li + li::before { content: ""; position: absolute; top: 15px; right: calc(50% + 20px); left: calc(-50% + 20px); height: 3px; border-radius: 2px; background: var(--line); }
.stepper li.done + li::before { background: var(--green); }
.stepper i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid var(--line); background: var(--surface); color: var(--muted); font: 800 15px/1 var(--f-display); font-style: normal; }
.stepper i svg { width: 17px; height: 17px; }
.stepper span { font-size: 12.5px; line-height: 1.2; text-align: center; color: var(--muted); }
.stepper li.done i { border-color: var(--green); background: var(--green); color: #fff; }
.stepper li.done span { color: var(--green); }
.stepper li.on i { border-color: var(--dark); background: var(--yellow); color: #1d1f24; box-shadow: 0 0 0 5px color-mix(in srgb, var(--yellow) 30%, transparent); }
.stepper li.on span { color: var(--fg); font-weight: 700; }
.checker { height: 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--dark) 0 10px, var(--yellow) 10px 20px); }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roles input { position: absolute; opacity: 0; pointer-events: none; }
.roles label { border: 2px solid var(--line); border-radius: 12px; padding: 14px 8px; text-align: center; cursor: pointer; font-weight: 600; display: grid; gap: 6px; justify-items: center; }
.roles label svg { width: 34px; height: 34px; }
.roles input:checked + label { border-color: var(--yellow); background: var(--yellow-soft); }
.roles input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.modes label { padding: 10px 8px; gap: 2px; }
.modes label span { font-size: 12px; font-weight: 500; color: var(--muted); }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input, .search input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: var(--surface); color: var(--fg); }

button { font: inherit; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-main { background: var(--dark); color: #fff; width: 100%; font-size: 16px; }
.btn-yellow { background: var(--yellow); color: #1d1f24; }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-light { background: var(--line); color: var(--fg); }

/* Uygulama iskeleti */
#app { height: 100%; display: grid; grid-template-rows: auto 1fr; }
header { display: flex; align-items: center; gap: 10px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.brand i { width: 22px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(90deg, #1d1f24 0 5.5px, var(--yellow) 5.5px 11px); display: inline-block; }
.who { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.who .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.chip { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--yellow-soft); white-space: nowrap; }
.who button { padding: 7px 10px; font-size: 13px; }
.who .sound-btn { padding: 6px 8px; display: grid; place-items: center; }
/* Dar telefonlarda üst çubuk sığsın: ad gizlenir (profilde ve panelde zaten yazıyor), başlık tek satır */
@media (max-width: 430px) { header { gap: 8px; padding-left: 12px; padding-right: 12px; } .brand { white-space: nowrap; font-size: 18px; flex: none; } .who { gap: 6px; } }
@media (max-width: 600px) { .who .name { display: none; } }
.sound-btn svg { width: 18px; height: 18px; }
.sound-btn[aria-pressed="true"] .off, .sound-btn[aria-pressed="false"] .on { display: none; }
.sound-btn[aria-pressed="false"] { color: var(--muted); }

#main { min-height: 0; display: grid; grid-template-rows: 1fr auto; }
#mapwrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; }
.hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 1000; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.locate { position: absolute; right: 12px; bottom: 12px; z-index: 1000; width: 46px; height: 46px; padding: 0; border-radius: 50%; background: var(--surface); color: var(--blue); box-shadow: 0 4px 14px rgba(0,0,0,.25); display: grid; place-items: center; }
.locate svg { width: 24px; height: 24px; }

#panel { background: var(--surface); border-top: 1px solid var(--line); max-height: 48vh; overflow-y: auto; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
/* Telefon: adres seçerken harita büyük kalır; çağrıdan sonra panel daha çok yer alır, aranıyor ekranları sıkışık düzene geçer */
@media (max-width: 859px) {
  #main:not([data-phase="pick"]):not([data-phase="dest"]) #panel { max-height: 64vh; max-height: 64dvh; }
  #main[data-phase="search"] .stops, #main[data-phase="nodriver"] .stops { display: none; }
  #main .wait-ring { width: 136px; height: 136px; }
  #main #searchLeft { font-size: 25px; }
  #main .wait-taxi svg { width: 46px; height: 43px; }
  #main .found-taxi svg { width: 62px; height: 58px; }
  #main .recall-btn { width: 136px; height: 136px; margin: 12px auto 8px; }
  #main .recall-face .ico-big { width: 32px; height: 32px; }
  #main .recall-face b { font-size: 20px; }
  #main .cute-title { font-size: 22px; }
  #main .relay-art { width: 112px; height: 39px; }
  #main .relay p { font-size: 15px; }
  #panel .stack { gap: 10px; }
}
@media (max-width: 859px) and (max-height: 700px) {
  #main .wait-ring, #main .recall-btn { width: 116px; height: 116px; }
  #main .wait-taxi svg { width: 38px; height: 36px; }
  #main .found-taxi svg { width: 44px; height: 41px; }
  #main #searchLeft { font-size: 22px; }
}
@media (min-width: 860px) {
  #main { grid-template-columns: 1fr 390px; grid-template-rows: 1fr; }
  #panel { max-height: none; border-top: 0; border-left: 1px solid var(--line); }
}

/* Panel içeriği */
.stack { display: grid; gap: 12px; }
.panel-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 20px; text-wrap: balance; }
.sub { margin: 0; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > button { flex: 1 1 140px; }
.between { justify-content: space-between; }
.stops { --stop-gap: 30px; display: grid; gap: var(--stop-gap); }
.stop { position: relative; display: flex; align-items: flex-start; gap: 10px; }
.stop span:last-child { min-width: 0; padding-top: 2px; line-height: 1.3; }
/* A'dan B'ye: noktalı yol ve B'yi gösteren ok (adres iki satıra taşsa da uzar) */
.stop:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 26px; bottom: calc(-1 * var(--stop-gap) + 7px); width: 4px;
  background: linear-gradient(var(--green), var(--red));
  -webkit-mask: radial-gradient(circle, #000 1.5px, transparent 2px) center top / 4px 6px repeat-y;
          mask: radial-gradient(circle, #000 1.5px, transparent 2px) center top / 4px 6px repeat-y; }
.stop:not(:last-child)::before { content: ""; position: absolute; left: 7px; bottom: calc(-1 * var(--stop-gap) + 6px); width: 6px; height: 6px;
  border: solid var(--red); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); border-radius: 0 0 2px 0; }
.dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.dot.a { background: var(--green); } .dot.b { background: var(--red); }
.search { display: flex; gap: 8px; }
.search button { flex: none; }
.results { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.results button { width: 100%; text-align: left; background: none; color: var(--fg); font-weight: 500; padding: 10px 4px; border-radius: 0; border-top: 1px solid var(--line); }

.meter { background: var(--meter-bg); color: var(--meter-fg); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.meter .lbl { color: #9aa0aa; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.meter .big { font-family: var(--f-meter); font-size: 34px; line-height: 1; text-shadow: 0 0 12px rgba(255,77,61,.45); }
.meter .small { font-family: var(--f-meter); color: #e8e8e8; font-size: 15px; }
/* Taksimetre notu: ücret kutusunun içinde, en altta */
.meter-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  background: rgba(255,198,26,.14); color: #fff3c4; font: 600 14px/1.3 var(--f-body); }
.meter-note svg { width: 20px; height: 20px; flex: none; color: var(--yellow); }
/* Yolculuk özeti: tahmini ücret öne çıksın */
.meter.quote { padding: 14px 16px; box-shadow: 0 0 0 3px var(--yellow); }
.meter.quote .lbl:first-child { color: var(--yellow); font-size: 13px; font-weight: 800; }
.meter.quote .big { font-size: 44px; }
/* B adresinin yanında "Değiştir" */
.stop.has-chg { align-items: center; }
.stop.has-chg > span:nth-child(2) { flex: 1; min-width: 0; padding-top: 0; }
.chg-btn { flex: none; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--blue); font: 700 13px var(--f-body); cursor: pointer; }
.chg-btn:active { background: var(--yellow-soft); }
.est { display: inline-flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 13px; }
/* Sağ sütun (Mesafe · Süre, Kalan): başlığının altında, sağa yaslı */
.meter .lbl:nth-child(2), .meter .small { text-align: right; justify-self: end; }
.tariff { font-size: 12px; color: var(--muted); margin: 0; }

.driver-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 800; color: #1d1f24; flex: none; }
.plate { font-family: var(--f-meter); border: 2px solid var(--fg); border-radius: 5px; padding: 1px 6px; font-size: 14px; white-space: nowrap; }
.eta { font-family: var(--f-meter); font-size: 20px; }
.stars { display: flex; gap: 6px; }
.stars button { background: none; padding: 2px; font-size: 30px; line-height: 1; color: var(--line); }
.stars button.on { color: var(--yellow); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--f-meter); font-size: 22px; font-weight: 400; }
.stat span { font-size: 12px; color: var(--muted); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.switch { width: 54px; height: 30px; border-radius: 999px; background: var(--line); position: relative; padding: 0; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .2s; }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"]::after { left: 27px; }
.offer { border: 2px solid var(--yellow); border-radius: 14px; padding: 14px; display: grid; gap: 10px; background: var(--yellow-soft); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); width: 100%; }
.history { display: grid; margin: 0; padding: 0; list-style: none; }
.history li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.history li b { font-family: var(--f-meter); font-weight: 400; white-space: nowrap; }
/* Son gittiğin yerler: dokunulabilir satırlar */
.places { display: grid; gap: 8px; margin: -4px 0 0; padding: 0; list-style: none; }
.places button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; }
.places button:active { background: var(--yellow-soft); border-color: var(--yellow); }
.place-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow-soft); color: var(--red); flex: none; }
.place-ico svg { width: 18px; height: 18px; }
.place-txt { display: grid; min-width: 0; flex: 1; }
.place-txt b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-txt small { color: var(--muted); font-size: 12.5px; }
.place-go { font-size: 26px; line-height: 1; color: var(--muted); }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }
.warn { font-size: 13px; color: var(--red); margin: 0; }
.chat { border: 2px solid var(--yellow); border-radius: 14px; padding: 12px; display: grid; gap: 10px; background: var(--surface); box-shadow: 0 4px 14px rgba(255,198,26,.18); }
.chat-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-head b { font-size: 16px; }
.chat-head small { color: var(--muted); font-size: 13px; }
.chat-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #1d1f24; flex: none; }
.chat-ico svg { width: 17px; height: 17px; }
.msgs { max-height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 82%; padding: 7px 11px; border-radius: 14px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.msg small { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
.msg.me { align-self: flex-end; background: var(--yellow); color: #1d1f24; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 4px; }
.msg .tick { font-weight: 700; letter-spacing: -.12em; }
.msg .tick.read { color: #1d4ed8; letter-spacing: 0; }
/* Mesaj çevirisi: aslını / çeviriyi gösteren küçük düğme ve not */
.msg .msg-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.msg .msg-cv, .msg .msg-dinle { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 11px; border: 1px solid rgba(0,0,0,.16); border-radius: 999px; background: rgba(255,255,255,.75); color: #1d1f24; font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.1; white-space: nowrap; cursor: pointer; }
.msg .msg-cv span, .msg .msg-dinle span { font-size: 15px; line-height: 1; }
.msg .msg-cv-txt { display: block; margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(0,0,0,.15); font-size: 13px; opacity: .85; }
.chat-cv-note { margin: 0; font-size: 12.5px; color: var(--muted); }
/* Şoför iptal penceresi */
.reasons { display: grid; gap: 8px; }
.reason { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.reason input { margin-top: 3px; accent-color: var(--red); }
.reason span { display: grid; gap: 1px; }
.reason small { color: var(--muted); font-size: 12px; }
.reason:has(input:checked) { border-color: var(--red); background: var(--bg); }
.reason.off { opacity: .55; cursor: not-allowed; }
.cancel-note { width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: var(--surface); color: var(--fg); resize: vertical; }
.wait-clock { font-family: var(--f-meter); font-size: 18px; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.quick button { flex: none; padding: 7px 12px; font-size: 13px; border-radius: 999px; background: var(--yellow-soft); color: var(--fg); font-weight: 600; border: 1px solid var(--line); }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: var(--surface); color: var(--fg); }
.chat-form button { flex: none; }
/* Sesli mesaj: mikrofon (dinlerken kırmızı nabız), sesli okuma düğmesi */
.chat-form .chat-mic { width: 52px; height: 52px; align-self: center; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #1d1f24; color: var(--yellow); cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.chat-form .chat-mic svg { width: 28px; height: 28px; }
.chat-form .chat-mic.on { background: #dc2626; color: #fff; animation: mic-pulse 1.2s infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 8px rgba(220,38,38,.3); } }
@media (prefers-reduced-motion: reduce) { .chat-form .chat-mic.on { animation: none; } }
/* Yeni mesaj: çerçeve 3 kez yanıp söner, son balon hafifçe büyüyüp yerine oturur */
.chat.parla { animation: sohbet-parla .9s ease-in-out 3; }
@keyframes sohbet-parla { 50% { border-color: #f59e0b; box-shadow: 0 0 0 5px rgba(255,198,26,.55), 0 4px 14px rgba(255,198,26,.35); } }
.chat.parla .msg.yeni { animation: balon-yeni .45s ease-out; }
@keyframes balon-yeni { from { transform: scale(.85); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .chat.parla, .chat.parla .msg.yeni { animation: none; } }
.chat-mic-err { margin: -4px 0 0; font-size: 13px; color: #dc2626; }
.chat-oku { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.chat-oku span { font-size: 17px; line-height: 1; }
.chat-oku[aria-pressed="true"] { border-color: var(--yellow); background: #fff7d6; color: #1d1f24; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay button { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); color: var(--fg); border: 2px solid var(--line); padding: 11px 12px; }
.pay button[aria-checked="true"] { border-color: var(--yellow); background: var(--yellow-soft); }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--bg); white-space: nowrap; }
.pay-chip svg { width: 16px; height: 16px; }

/* Harita işaretleri */
.car-icon { background: none; border: 0; }
.car-rot { width: 48px; height: 48px; display: grid; place-items: center; transition: transform .15s linear; }
.car-rot svg { filter: drop-shadow(0 2px 2.5px rgba(0,0,0,.35)); overflow: visible; }
.car-body { fill: var(--yellow); }
.car-lamp { fill: #fff3b0; }
/* Yolcu taşıyan taksi: tavan lambası yeşil yanıp söner */
.car-busy .car-lamp { animation: car-lamp 1s ease-in-out infinite; }
@keyframes car-lamp { 0%, 100% { fill: #4ade80; filter: drop-shadow(0 0 2.5px #22c55e); } 50% { fill: #14532d; filter: none; } }
/* Kendi araban: altında yanıp sönen mavi halka (araçla birlikte dönmez) */
.car-mine::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: rgba(37,99,235,.18); border: 2.5px solid var(--blue); animation: car-halo 2s ease-out infinite; }
@keyframes car-halo { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: .35; } }
.pin { background: none; border: 0; }
.pin div { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; color: #fff; display: grid; place-items: center; font: 800 13px var(--f-body); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pin.a div { background: var(--green); } .pin.b div { background: var(--red); }
.me-dot { background: none; border: 0; }
.me-dot div { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.25); }
.rider-dot div { background: #7c3aed; box-shadow: 0 0 0 6px rgba(124,58,237,.25); }
@media (prefers-reduced-motion: reduce) { .switch::after, .car-rot { transition: none; } .car-busy .car-lamp, .car-mine::before { animation: none; } .car-busy .car-lamp { fill: #4ade80; } }

/* Taksin aranıyor: kalan süre halkası */
.wait-ring { position: relative; width: 168px; height: 168px; margin: 4px auto 0; }
.wait-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wait-ring > svg circle { fill: none; stroke-width: 9; }
.wait-ring .track { stroke: var(--line); }
.wait-ring .prog { stroke: var(--yellow); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0;
  animation: wait-drain var(--total) linear var(--gone) forwards; }
@keyframes wait-drain { 80% { stroke: var(--yellow); } to { stroke-dashoffset: 326.7; stroke: #f97316; } }
.wait-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wait-taxi svg { width: 54px; height: 51px; animation: wait-bob 1.6s ease-in-out infinite; }
@keyframes wait-bob { 50% { transform: translateY(-4px); } }
.wait-mid b { font: 700 30px/1.1 var(--f-meter); letter-spacing: .02em; }
.wait-mid small { color: var(--muted); font-size: 13px; }
.sub.center { text-align: center; }
.note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--yellow-soft); font-size: 14px; }
/* Halka durumları */
.wait-ring { display: block; padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.wait-mid { gap: 2px; text-align: center; }
.wait-ring.dropped .prog { stroke: var(--red); animation-name: wait-drain-red; }
@keyframes wait-drain-red { to { stroke-dashoffset: 326.7; } }
.wait-ring.found .prog { stroke: var(--green); animation: none; }
.wait-ring.found .wait-mid { color: var(--green); }
/* Süre doldu: parlak, basılabilir yeşil düğme; etrafında nefes alan halka */
.recall-btn { position: relative; display: grid; place-items: center; width: 168px; height: 168px; margin: 14px auto 10px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.recall-btn::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 3px solid var(--green); opacity: .35; animation: recall-halo 2.4s ease-out infinite; }
@keyframes recall-halo { from { transform: scale(.92); opacity: .5; } to { transform: scale(1.12); opacity: 0; } }
.recall-face { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; border-radius: 50%;
  color: #fff; background: radial-gradient(circle at 35% 28%, #4ade80 0%, #22c55e 30%, #16a34a 62%, #11803a 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.35), inset 0 -7px 0 rgba(0,0,0,.18), 0 6px 0 #0e6b31, 0 14px 26px rgba(22,163,74,.38);
  transition: transform .12s, box-shadow .12s; }
.recall-face::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.45); }
.recall-face b { font: 700 23px/1 var(--f-cute); text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.recall-face .ico-big { width: 40px; height: 40px; transition: transform .4s; }
.recall-btn:hover .recall-face .ico-big { transform: rotate(-180deg); }
.recall-btn:active .recall-face { transform: translateY(5px); box-shadow: inset 0 3px 0 rgba(255,255,255,.3), inset 0 -4px 0 rgba(0,0,0,.18), 0 1px 0 #0e6b31, 0 6px 12px rgba(22,163,74,.3); }
.recall-btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 16px; }
/* Taksi onaylandı: gülümseyen taksi ve konfeti */
.found-taxi svg { width: 78px; height: 73px; }
.found-eta { margin: 0; text-align: center; font: 700 18px/1.3 var(--f-cute); color: var(--green); }
.wait-ring.found .wait-mid b.cute { font-size: 19px; }
.confetti { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; background: var(--yellow); opacity: 0; animation: confetti 1.3s cubic-bezier(.15,.7,.3,1) .15s forwards; }
.confetti i:nth-child(3n+1) { background: var(--green); }
.confetti i:nth-child(3n+2) { background: var(--red); width: 7px; height: 7px; border-radius: 50%; }
.confetti i:nth-child(4n) { background: var(--blue); }
.confetti i:nth-child(1) { --a: 0deg; } .confetti i:nth-child(2) { --a: 30deg; } .confetti i:nth-child(3) { --a: 60deg; } .confetti i:nth-child(4) { --a: 90deg; }
.confetti i:nth-child(5) { --a: 120deg; } .confetti i:nth-child(6) { --a: 150deg; } .confetti i:nth-child(7) { --a: 180deg; } .confetti i:nth-child(8) { --a: 210deg; }
.confetti i:nth-child(9) { --a: 240deg; } .confetti i:nth-child(10) { --a: 270deg; } .confetti i:nth-child(11) { --a: 300deg; } .confetti i:nth-child(12) { --a: 330deg; }
@keyframes confetti { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-40px) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-118px) rotate(260deg); } }
.ico-big { width: 44px; height: 44px; }
.pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(0); } }
.cute, .wait-mid b.cute { font: 700 22px/1.1 var(--f-cute); letter-spacing: .01em; }
.cute-title { margin: 0; text-align: center; font: 700 24px/1.15 var(--f-cute); color: var(--fg); }
.relay { display: grid; justify-items: center; gap: 4px; text-align: center; }
.relay p { margin: 0; font: 600 17px/1.3 var(--f-cute); color: var(--muted); }
.relay-art { width: 140px; height: 49px; }
.relay-dots { animation: relay-run 1s linear infinite; }
@keyframes relay-run { to { stroke-dashoffset: -6.1; } }
.link-btn.center { justify-self: center; }
@media (prefers-reduced-motion: reduce) { .wait-taxi svg, .recall-btn::before, .relay-dots, .confetti { animation: none !important; } .confetti { display: none; } }

/* Şoför: çevrim içi ışığı (plakanın solunda) */
.drv-online #roleChip { display: inline-flex; align-items: center; gap: 6px; background: #dcfce7; color: #14532d; }
.drv-online #roleChip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: live-ping 1.6s ease-out infinite; }
@keyframes live-ping { 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
/* Uygulama dışında kalındı / ekran kapanabilir uyarıları */
.away, .wake-warn { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.35; }
.away { background: #fee2e2; color: #7f1d1d; border: 1.5px solid #fca5a5; }
.away b { font-size: 15px; }
.away .btn-light { justify-self: start; padding: 7px 18px; }
.wake-warn { background: var(--yellow-soft); color: var(--fg); border: 1.5px solid var(--yellow); }
@media (prefers-reduced-motion: reduce) { .drv-online #roleChip::before { animation: none; } }

/* Şoför: bildirim kartı */
.push-card { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--yellow-soft); border: 1.5px solid var(--yellow); font-size: 14px; line-height: 1.35; }
.push-card b { font-size: 15px; }
.push-card .btn-yellow { justify-self: start; padding: 9px 18px; }
.push-card.off { background: var(--bg); border-color: var(--line); }
.push-ok { margin: 0; font-size: 13px; color: var(--green); font-weight: 600; }

/* Yolcu iptali */
.free-cancel { margin: 0; padding: 10px 12px; border-radius: 10px; background: #dcfce7; color: #14532d; font-size: 14px; }
.free-cancel .wait-clock { font-weight: 700; }
.warn-soft { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--yellow-soft); font-size: 14px; }

/* Taksi devri */
.devir-card { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--yellow-soft); border: 1.5px solid var(--yellow); font-size: 14px; line-height: 1.35; }
.devir-card b { font-size: 15px; }
.devir-card.gelen { background: #fff7e0; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.devir-card .btn-light, .devir-card .btn-yellow { padding: 9px 14px; }
.devir-card > .btn-yellow, .devir-card > .btn-light { justify-self: start; }
.devir-card .link-btn { justify-self: start; }
.sub.no-taxi { color: var(--fg); background: var(--yellow-soft); padding: 8px 12px; border-radius: 10px; }

/* Yolculuk iptal edildi kartı (şoför) ve isteğe bağlı sebepler (yolcu) */
.devir-card.iptal-card { background: #fee2e2; border-color: #f87171; color: #7f1d1d; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.devir-card.iptal-card b { font-size: 16px; }
.reasons.compact .reason { padding: 8px 12px; }
.section-label .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.wake-warn .btn-light { justify-self: start; padding: 7px 14px; }

/* Şoför: alış noktasında bekleme kutusu; 3 dakika dolunca kırmızı ve hafif titreşen */
.noshow { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--yellow-soft); border: 1.5px solid var(--yellow); font-size: 14px; line-height: 1.35; }
.noshow b { font-size: 15px; }
.noshow .wait-clock.big { font: 700 26px/1 var(--f-meter); }
.noshow.ready { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; animation: noshow-pulse 1.6s ease-in-out 3; }
.noshow.ready .btn-red { justify-self: stretch; }
@keyframes noshow-pulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.25); } }
@media (prefers-reduced-motion: reduce) { .noshow.ready { animation: none; } }

/* Taksi onay kartı: şoför plakayı büyük görüp "bu taksinin içindeyim" der */
.last-tag { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 4px; white-space: nowrap; }
.taxi-confirm { position: fixed; inset: 0; z-index: 60; background: rgba(15,16,20,.55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.taxi-confirm[hidden] { display: none; }
.tc-box { width: 100%; max-width: 400px; background: var(--surface); border-radius: 20px; padding: 20px 18px 16px; display: grid; gap: 10px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.35); animation: tcUp .22s ease-out; }
.tc-q { margin: 0; font-weight: 800; font-size: 18px; color: var(--fg); }
.tc-plate { display: flex; align-items: stretch; justify-self: center; border: 3px solid #1d1f24; border-radius: 8px; overflow: hidden; background: #fff; color: #1d1f24; }
.tc-plate i { font-style: normal; background: #1f4bd8; color: #fff; font-size: 12px; font-weight: 700; padding: 0 7px; display: flex; align-items: flex-end; padding-bottom: 6px; }
.tc-plate b { font-family: var(--f-display); font-size: 34px; letter-spacing: 2px; padding: 4px 16px; white-space: nowrap; }
.tc-car { margin: 0; font-size: 16px; font-weight: 600; color: var(--fg); }
.tc-box small { color: var(--muted); font-size: 13px; }
.tc-box .btn-main, .tc-box .btn-light { width: 100%; }
@keyframes tcUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 360px) { .tc-plate b { font-size: 28px; padding: 4px 10px; } }

/* Şoför üst çubuğu: plaka ortada, gerçek plakaya benzer; çevrim içiyken yeşil çerçeve ve yanıp sönen nokta */
.drv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.drv-head .who { margin-left: 0; justify-self: end; }
.drv-head .brand { min-width: 0; }
.drv-head #roleChip { position: relative; justify-self: center; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 0;
  border: 2.5px solid #1d1f24; border-radius: 8px; background: #fff; color: #1d1f24; font-family: var(--f-display); font-size: 20px; font-weight: 800;
  letter-spacing: .06em; transition: border-color .3s, box-shadow .3s, background .3s; }
.drv-head #roleChip:empty { display: none; }
.drv-head #roleChip::before, .drv-online .drv-head #roleChip::before { content: "TR"; align-self: stretch; width: auto; height: auto; display: flex; align-items: flex-end;
  padding: 0 5px 4px; border-radius: 5px 0 0 5px; background: #1f4bd8; color: #fff; font-family: var(--f-body); font-size: 10px; letter-spacing: 0; box-shadow: none; animation: none; }
.drv-online .drv-head #roleChip { border-color: var(--green); background: #f0fdf4; color: #14532d; box-shadow: 0 0 0 3px rgba(22,163,74,.28); }
.drv-online .drv-head #roleChip::after { content: ""; position: absolute; top: -6px; right: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--surface); animation: live-ping 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .drv-online .drv-head #roleChip::after { animation: none; } }
/* Telefonda plakaya yer açmak için başlık yazısı gizlenir; şerit ve şoför simgesi kalır */
@media (max-width: 480px) { .drv-head .brand-txt { display: none; } .drv-head .brand { gap: 6px; }
  /* Direksiyon simgesi: damalı şerit ile plakanın arasında ortada ve daha büyük */
  .drv-head .brand .drv-badge { width: 34px; height: 34px; margin: 0 auto; } }
/* Dar telefonda sağdaki düğmeler daha geniş: plaka aradaki boşluğun ortasına oturur, biraz küçülür */
@media (max-width: 400px) { .drv-head { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; } .drv-head .brand .drv-badge { width: 30px; height: 30px; } .drv-head #roleChip { font-size: 18px; gap: 8px; padding-right: 11px; height: 34px; } }
@media (max-width: 340px) { .drv-head #roleChip { font-size: 15px; gap: 6px; padding-right: 8px; letter-spacing: .03em; height: 32px; } .drv-head #roleChip::before { padding: 0 4px 3px; font-size: 9px; } }

/* Yağmur bildirimiyle açılınca: çevrim dışı şoföre koyu mavi "yağmur geliyor" kartı */
.rain-card { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; color: #e2e8f0; font-size: 14px; line-height: 1.4;
  background: repeating-linear-gradient(105deg, rgba(191,219,254,.08) 0 2px, transparent 2px 14px), linear-gradient(135deg, #1e3a8a, #0b1426); border: 1.5px solid #3b82f6; }
.rain-card b { font-size: 18px; color: #ffc61a; }
.rain-card .row { gap: 8px; }
.rain-card .btn-light { background: rgba(255,255,255,.14); color: #fff; }
.rain-card .btn-main { background: var(--yellow) !important; color: #1d1f24 !important; }
.rain-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: #dbeafe; color: #1e3a8a !important; font-size: 14px; line-height: 1.4; }

/* Şoför: çevrim içi/dışı direksiyonu (panelde anahtarın yerine). Yeşil halka yanınca çevrim içi */
.wheel-toggle { display: flex; align-items: center; gap: 14px; width: 100%; border: 2px solid transparent; border-radius: 16px; padding: 8px 14px 8px 8px;
  background: var(--bg); color: var(--fg); text-align: left; cursor: pointer; font: inherit; }
.wheel-toggle.on { background: rgba(22,163,74,.10); border-color: rgba(22,163,74,.45); }
/* Uzun basınca iPhone'un "Paylaş / Fotoğraflara Kaydet / Kopyala" menüsü ve yazı seçimi çıkmasın; dokunuş düğmeye gitsin */
.wheel-toggle, .wheel-scene { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.wheel-toggle img, .wheel-toggle .hub-taxi, .wheel-scene img, .wheel-scene .hub-taxi { pointer-events: none; -webkit-user-drag: none; }
.wt-img { position: relative; width: 96px; height: 96px; flex: none; }
.wt-rot { position: absolute; inset: 0; transition: transform .25s ease; }
.wt-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel-toggle .w-on { opacity: 0; }
.wheel-toggle.on .w-on { opacity: 1; }
.wheel-toggle.on .w-off { opacity: 0; }
.wheel-toggle:active .wt-rot { transform: rotate(-14deg) scale(.96); }
.wt-txt { display: grid; gap: 3px; min-width: 0; }
.wt-txt b { font-size: 19px; }
.wheel-toggle.on .wt-txt b { color: var(--green); }
.wt-txt .sub { color: var(--muted); font-size: 14px; line-height: 1.35; }
/* Şoför açılış ekranı: direksiyon gelir, sağa sola döner, halkası yanıp söner ve yanık kalır */
.wheel-scene { position: relative; width: min(64vw, 270px); aspect-ratio: 1; animation: wheel-in .6s cubic-bezier(.2,.8,.3,1) .1s both; }
.wheel-scene::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(255,198,26,.18), transparent 62%); }
.ws-rot { position: absolute; inset: 0; animation: steer-wheel 1.1s ease-in-out .55s both; }
.wheel-scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel-scene .ws-on { opacity: 0; animation: ring-on .7s linear 1.55s forwards; }
.wheel-scene .hub-taxi { animation: taxi-press .45s ease-in-out 1.15s both; }
.splash-sofor { font-family: var(--f-display); font-weight: 800; font-size: 20px; color: #ffc61a; letter-spacing: .4em; padding-left: .4em; animation: rise .55s cubic-bezier(.2,.8,.3,1) 1.7s both; }
/* Göbekteki TAXI levhası düğme gibi: basılınca içe göçer, bırakınca kalkar (levha görselde yok, burada çizilir) */
.hub-taxi { position: absolute; left: 41.39%; top: 46.53%; width: 17.22%; height: 7.22%; display: block; font-style: normal;
  filter: drop-shadow(0 2px 1.5px rgba(0,0,0,.65)); transition: transform .1s ease, filter .1s ease; }
.hub-taxi svg { display: block; width: 100%; height: 100%; }
.wheel-toggle:active .hub-taxi { transform: translateY(7%) scale(.88); filter: drop-shadow(0 0 0 transparent) brightness(.82); }
.wheel-toggle.on .hub-taxi { filter: drop-shadow(0 2px 1.5px rgba(0,0,0,.65)) drop-shadow(0 0 5px rgba(255,198,26,.7)); }
@keyframes taxi-press { 0%, 100% { transform: none; } 40%, 60% { transform: translateY(7%) scale(.86); filter: brightness(.8); } }
@keyframes wheel-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes steer-wheel { 0% { transform: rotate(0); } 30% { transform: rotate(-24deg); } 65% { transform: rotate(16deg); } 100% { transform: rotate(0); } }
@keyframes ring-on { 0% { opacity: 1; } 18% { opacity: 0; } 34% { opacity: 1; } 48% { opacity: .15; } 64%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wheel-scene .ws-on { opacity: 1; } .wt-rot, .hub-taxi { transition: none; } }

/* Şoför kaydı: aranabilir durak seçimi */
.durak-res { list-style: none; margin: 6px 0 0; padding: 0; max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.durak-res[hidden] { display: none; }
.durak-res li { display: grid; gap: 2px; padding: 10px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.durak-res li:first-child { border-top: 0; }
.durak-res li small { color: var(--muted); font-size: 12.5px; }
.durak-res li:active, .durak-res li:hover { background: var(--yellow-soft); }
.durak-res li.dr-hint { cursor: default; color: var(--muted); font-size: 13px; background: var(--bg); }
.durak-res li[data-durak="diger"] b { color: var(--muted); }

/* Çevirmen: yolculukta tam ekran, iki büyük konuşma düğmesi (sarı şoför, siyah yolcu) */
.btn-tc { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: #1d1f24; color: var(--yellow); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.btn-tc span { font-size: 22px; }
.tc { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; gap: 10px; padding: max(14px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: var(--surface); color: var(--fg); }
.tc[hidden] { display: none; }
.tc-ust { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.tc-kapat { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--fg); font-size: 20px; cursor: pointer; }
.tc-liste { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.tc-bos { margin: auto 0; text-align: center; color: var(--muted); font-size: 17px; line-height: 1.45; }
.tc-satir { max-width: 88%; padding: 10px 14px; border-radius: 16px; background: var(--bg); align-self: flex-start; }
.tc-satir.yolcu { align-self: flex-end; background: #1d1f24; color: #fff; }
.tc-satir.sofor { background: var(--yellow); color: #1d1f24; }
.tc-satir small { font-size: 12px; font-weight: 700; opacity: .7; }
.tc-ceviri { margin: 2px 0 0; font-size: 21px; font-weight: 700; line-height: 1.3; }
.tc-ceviri.hata { font-size: 15px; color: #dc2626; }
.tc-satir.yolcu .tc-ceviri.hata { color: #fca5a5; }
.tc-asil { margin: 4px 0 0; font-size: 14px; opacity: .75; }
.tc-satir .msg-dinle { margin-top: 8px; }
.tc-durum { min-height: 22px; margin: 0; text-align: center; font-size: 15px; font-weight: 600; }
.tc-durum .tc-ara { display: block; margin-top: 4px; font-size: 18px; font-weight: 700; }
.tc-durum .hata { color: #dc2626; }
.tc-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tc-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 14px 8px; border: 0; border-radius: 22px; font: inherit; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.tc-btn b { font-size: 18px; line-height: 1.2; text-align: center; }
.tc-btn small { font-size: 14px; opacity: .8; }
.tc-mic svg { width: 44px; height: 44px; }
.tc-sofor { background: var(--yellow); color: #1d1f24; }
.tc-yolcu { background: #1d1f24; color: var(--yellow); }
.tc-btn.on { background: #dc2626; color: #fff; animation: mic-pulse 1.2s infinite; }
.tc-btn:disabled { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .tc-btn.on { animation: none; } }
/* Varış noktası uyarısı; şoför unutursa "Yolculuğu bitir" yanıp söner */
.varis-card { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #e8f7ee; border: 1.5px solid var(--green); color: #14532d; font-size: 14px; line-height: 1.35; }
.varis-card b { font-size: 17px; }
.varis-card.uyari { background: #fdecec; border-color: var(--red); color: #7f1d1d; }
.btn-main.btn-bitir { min-height: 64px; font-size: 19px; }
.btn-main.yanip { background: var(--red) !important; color: #fff !important; animation: bitir-yanip 1s ease-in-out infinite; }
@keyframes bitir-yanip { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .btn-main.yanip { animation: none; } }
