/* ==========================================================================
   SIMOTAKSI WEB TAKSİ ÇAĞIRMA & HARİTA STYLESHEET (UTF-8 • MOBILE-FIRST RESPONSIVE)
   ========================================================================== */
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased}

:root{
  --bg:#f8fafc;
  --bg2:#f1f5f9;
  --glass:rgba(255,255,255,0.96);
  --glass2:rgba(255,255,255,0.99);
  --border:rgba(15,23,42,0.1);
  --border2:rgba(15,23,42,0.16);
  --purple:#f59e0b;
  --purple2:#d97706;
  --cyan:#10b981;
  --cyan2:#059669;
  --green:#10b981;
  --red:#ef4444;
  --gold:#f59e0b;
  --navy:#0d1527;
  --txt:#0f172a;
  --txt2:#475569;
  --txt3:#94a3b8;
  --radius:22px;
  --shadow:0 12px 40px rgba(15,23,42,0.14);
}

html,body{
  height:100%;
  height:100dvh;
  overflow:hidden;
  font-family:'Plus Jakarta Sans','Inter',system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--txt);
}

/* ═══ MAP ═══ */
#map{position:absolute;inset:0;z-index:1;}
.gm-style iframe+div{border:none!important}

/* Yolcu haritası (musteri.html) */
#customerMap{
  position:fixed !important;
  inset:0;
  width:100vw;
  height:100vh;
  height:100dvh;
  z-index:1;
  background:#e2e8f0;
}

#customerMap .leaflet-container{
  width:100%;
  height:100%;
  background:#e2e8f0;
  font-family:inherit;
}

/* Leaflet kontrol butonlarını topBar'ın altına hizala */
.leaflet-top.leaflet-right{
  top:74px !important;
  right:12px !important;
}
.leaflet-bar{
  border:none !important;
  box-shadow:0 4px 16px rgba(15,23,42,0.15) !important;
  border-radius:12px !important;
  overflow:hidden;
}
.leaflet-bar a{
  background:rgba(255,255,255,0.96) !important;
  color:#0f172a !important;
  width:38px !important;
  height:38px !important;
  line-height:38px !important;
  font-weight:800 !important;
}

/* ═══ SIDEBAR ═══ */
.side-overlay{
  position:fixed;inset:0;z-index:9000;background:rgba(5,8,17,.6);
  backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .3s;
}
.side-overlay.open{opacity:1;pointer-events:all}

.sidebar{
  position:fixed;left:0;top:0;bottom:0;z-index:9001;
  width:min(310px,86vw);
  background:#090f1d;
  border-right:1px solid rgba(245,158,11,.25);
  display:flex;flex-direction:column;
  transform:translateX(-100%);transition:transform .32s cubic-bezier(.16,1,.3,1);
  overflow-y:auto;
  will-change:transform;
  color:#f8fafc;
}
.sidebar.open{transform:translateX(0)}

.sb-header{
  display:flex;align-items:center;gap:12px;
  padding:max(18px,env(safe-area-inset-top)) 16px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.sb-avatar{
  width:46px;height:46px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,#f59e0b,#10b981);
  color:#050811;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;font-size:18px;
}
.sb-user-info{flex:1;min-width:0}
.sb-name{font-weight:800;font-size:15px;margin-bottom:2px;color:#f8fafc}
.sb-email{font-size:11.5px;color:#94a3b8}
.sb-close{
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);
  color:#fff;font-size:16px;cursor:pointer;padding:0;
  width:34px;height:34px;border-radius:50%;line-height:1;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}

.sb-balance{
  margin:12px;
  padding:15px;
  background:linear-gradient(135deg,rgba(245,158,11,.18),rgba(16,185,129,.12));
  border:1px solid rgba(245,158,11,.35);border-radius:16px;
}
.sb-bal-label{font-size:10px;color:#cbd5e1;margin-bottom:4px;text-transform:uppercase;letter-spacing:.5px;font-weight:700}
.sb-bal-amount{font-size:26px;font-weight:900;color:#fbbf24}
.sb-bal-sub{font-size:11px;color:#94a3b8;margin-top:4px}
.sb-bal-btn{
  margin-top:10px;width:100%;padding:9px;border-radius:10px;
  border:1px solid rgba(245,158,11,.45);background:rgba(245,158,11,.18);
  color:#fbbf24;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit;
}

.sb-nav{padding:8px;flex:1}
.sb-item{
  display:flex;align-items:center;gap:12px;
  padding:11px 12px;border-radius:11px;text-decoration:none;
  color:#cbd5e1;font-size:13.5px;font-weight:600;
  transition:all .15s;margin-bottom:2px;
}
.sb-item:hover,.sb-item.active{background:rgba(245,158,11,.16);color:#fbbf24}
.sb-icon{width:22px;text-align:center;font-size:16px}
.sb-badge{background:#10b981;color:#050811;font-size:10px;font-weight:800;padding:2px 7px;border-radius:10px;margin-left:auto}

.sb-footer{padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.08)}
.sb-tagline{font-size:11px;font-weight:700;color:#94a3b8;margin-bottom:3px}
.sb-ver{font-size:10px;color:#64748b}

/* ═══ HEADER (TOP BAR) ═══ */
#topBar{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 14px;
  padding-top:max(10px,env(safe-area-inset-top));
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
  box-shadow:0 4px 20px rgba(15,23,42,0.08);
  gap:8px;
}
.hdr-btn{
  width:42px;height:42px;border-radius:12px;
  background:#f1f5f9;
  border:1px solid var(--border2);
  color:var(--txt);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;flex-shrink:0;
}
.hdr-btn:active{transform:scale(.94);background:rgba(245,158,11,.2)}
.hdr-gps{background:linear-gradient(135deg,#f59e0b,#fbbf24);border-color:#d97706;color:#050811}
.hdr-logo{font-weight:900;font-size:18px;letter-spacing:-.4px;color:#0f172a;display:flex;align-items:center;gap:6px}
.hdr-logo span{color:#d97706}
.hdr-right{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}

.weather-widget{
  font-size:11.5px;font-weight:700;color:#0f172a;
  padding:5px 10px;background:#f1f5f9;border-radius:20px;border:1px solid var(--border);
  white-space:nowrap;
}

/* ═══ LIVE STATS (harita üstü) ═══ */
.live-stats{
  position:fixed;top:68px;left:50%;transform:translateX(-50%);z-index:50;
  display:flex;align-items:center;gap:0;
  background:rgba(255,255,255,0.95);border:1px solid var(--border2);
  border-radius:30px;padding:6px 16px;backdrop-filter:blur(12px);
  box-shadow:0 6px 20px rgba(15,23,42,0.1);
  transition:all .35s;
}
.live-stats.hidden{opacity:0;pointer-events:none;transform:translateX(-50%) translateY(-16px)}
.ls-item{display:flex;flex-direction:column;align-items:center;gap:1px}
.ls-item span{font-size:15px;font-weight:900;color:#059669}
.ls-item small{font-size:9.5px;color:var(--txt2);text-transform:uppercase;letter-spacing:.3px;font-weight:700}
.ls-sep{width:1px;height:24px;background:var(--border);margin:0 14px}
.surgeWrap{display:flex}
.surge-text{color:#d97706!important;font-weight:800}

/* ═══ PANELS (BOTTOM SHEET ON MOBILE, FLOATING CARD ON DESKTOP) ═══ */
.panel{
  position:fixed;bottom:0;left:0;right:0;z-index:60;
  background:rgba(255,255,255,0.98);
  backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  border-top:1px solid var(--border2);
  border-radius:24px 24px 0 0;
  padding:12px 16px;
  padding-bottom:max(18px,env(safe-area-inset-bottom));
  transform:translateY(115%);
  transition:transform .35s cubic-bezier(.16,1,.3,1);
  max-height:66dvh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  box-shadow:0 -8px 32px rgba(15,23,42,0.16);
  will-change:transform;
  color:var(--txt);
}
.panel.show{transform:translateY(0)}
.panel::-webkit-scrollbar{width:4px}
.panel::-webkit-scrollbar-thumb{background:rgba(15,23,42,.18);border-radius:4px}

.grip{width:38px;height:4px;background:rgba(15,23,42,.16);border-radius:3px;margin:0 auto 10px;flex-shrink:0;cursor:grab}

h2{font-size:19px;font-weight:800;margin-bottom:2px;color:#0f172a}
h3{font-size:15.5px;font-weight:800;margin-bottom:10px;color:#0f172a}
.muted{color:var(--txt2);font-size:12.5px;margin-bottom:10px;font-weight:500}
.c{text-align:center}
.mt8{margin-top:8px}
.mt16{margin-top:12px}

/* ═══ SEARCH FIELDS ═══ */
.field-group{
  background:#f8fafc;border:1.5px solid #cbd5e1;
  border-radius:16px;padding:4px 12px;margin-bottom:10px;
}
.field-group:focus-within{
  border-color:#f59e0b;
  box-shadow:0 0 0 3px rgba(245,158,11,0.18);
  background:#ffffff;
}
.field{display:flex;align-items:center;gap:10px;padding:8px 0;position:relative}
.field input{
  flex:1;background:transparent !important;border:none !important;color:#0f172a !important;
  font-size:16px !important;font-weight:600 !important;outline:none !important;font-family:inherit;
  min-width:0;padding:4px 0 !important;box-shadow:none !important;
  line-height:1.4;
}
.field input::placeholder{color:#64748b;font-weight:500}
.dot-wrap{width:16px;display:flex;justify-content:center;flex-shrink:0}
.dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.dot.green{background:#10b981;box-shadow:0 0 8px #10b981}
.dot.red{background:#ef4444;box-shadow:0 0 8px #ef4444}
@keyframes pulse-dot{0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,.45)}50%{box-shadow:0 0 0 5px rgba(16,185,129,0)}}
.pulse-dot{animation:pulse-dot 2s infinite}
.sep{padding:0 10px 0 24px}
.sep-line{height:1px;background:#e2e8f0}
.loc-refresh,.field-clear{
  background:#e2e8f0;border:none;color:#334155;font-size:15px;font-weight:700;
  cursor:pointer;padding:4px;border-radius:8px;flex-shrink:0;
  min-width:32px;min-height:32px;display:flex;align-items:center;justify-content:center;
}

/* SUGGESTIONS */
.suggestions{
  margin-bottom:8px;border-radius:14px;overflow:hidden;
  max-height:180px;overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:#ffffff;border:1px solid #e2e8f0;
  box-shadow:0 8px 24px rgba(15,23,42,0.08);
}
.suggestions:empty{display:none;border:none}
.sug-item{
  display:flex;align-items:center;gap:10px;
  padding:11px 13px;font-size:13.5px;cursor:pointer;
  border-bottom:1px solid #f1f5f9;
  color:#0f172a;transition:background .15s;
  min-height:44px;
}
.sug-item:last-child{border-bottom:none}
.sug-item:hover,.sug-item:active{background:#fef3c7}
.sug-icon{font-size:15px;flex-shrink:0}
.sug-text{flex:1;min-width:0}
.sug-name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#0f172a}
.sug-addr{font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.chip-label{font-size:10.5px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.chips{display:flex;gap:7px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
.chips::-webkit-scrollbar{display:none}
.chips button{
  padding:8px 13px;border-radius:12px;
  background:#f1f5f9;border:1px solid #cbd5e1;
  color:#0f172a;font-size:12.5px;font-weight:700;cursor:pointer;
  white-space:nowrap;font-family:inherit;transition:all .15s;
  min-height:38px;flex-shrink:0;
}
.chips button:hover,.chips button:active{background:#fef3c7;border-color:#f59e0b;color:#b45309}

.map-select-btn{
  display:inline-flex;align-items:center;gap:6px;
  color:#059669;font-size:12.5px;font-weight:800;cursor:pointer;
  padding:7px 12px;margin-bottom:8px;min-height:36px;
  background:#ecfdf5;border:1px solid #a7f3d0;border-radius:10px;
}
.map-select-btn svg{color:#059669}
.map-tip{
  position:fixed;top:72px;left:50%;transform:translateX(-50%);z-index:80;
  background:#0d1527;border:2px solid #f59e0b;border-radius:30px;
  padding:9px 18px;font-size:12.5px;font-weight:700;color:#f8fafc;
  box-shadow:0 8px 24px rgba(0,0,0,0.3);transition:all .3s;white-space:nowrap;
}
.map-tip.hidden{opacity:0;pointer-events:none}

/* ═══ VEHICLE PANEL ═══ */
.route-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.route-badge{
  display:flex;align-items:center;gap:6px;
  background:#ecfdf5;color:#047857;
  padding:7px 14px;border-radius:20px;font-size:13px;font-weight:800;
  border:1px solid #a7f3d0;
}
.btn-back{
  background:#f1f5f9;border:1px solid #cbd5e1;color:#0f172a;
  font-weight:700;font-size:13px;cursor:pointer;font-family:inherit;
  padding:6px 12px;border-radius:10px;min-height:36px;
}

.surge-alert{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:10px 14px;font-size:12.5px;color:#b45309;margin-bottom:10px;font-weight:600}

.v-card{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px;
  background:#f8fafc;border:1.5px solid #cbd5e1;
  border-radius:16px;margin-bottom:8px;cursor:pointer;transition:all .15s;
}
.v-card:active{transform:scale(.99)}
.v-card.active{
  background:#fffbeb;border-color:#f59e0b;
  box-shadow:0 6px 20px rgba(245,158,11,.18);
}
.v-left{display:flex;align-items:center;gap:12px}
.v-emoji{font-size:28px;line-height:1}
.v-name{font-weight:800;font-size:15px;margin-bottom:2px;color:#0f172a}
.v-meta{font-size:11.5px;color:#475569;font-weight:500}
.v-eta{font-size:11px;color:#059669;margin-top:2px;font-weight:700}
.v-right{text-align:right}
.v-price{font-weight:900;font-size:18px;color:#0f172a}
.v-discount{font-size:11px;color:#059669;margin-top:2px;font-weight:700}

.breakdown{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px 14px;margin-bottom:12px}
.breakdown.compact{margin:12px 0}
.bd-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0;font-size:13px;color:#475569;font-weight:500}
.bd-val{font-weight:700;color:#0f172a}
.bd-total{color:#0f172a;font-weight:800;font-size:15px;border-top:1px solid #cbd5e1;margin-top:6px;padding-top:8px}
.bd-trust{text-align:center;font-size:11.5px;color:#059669;margin-top:8px;font-weight:700}
.green-val{color:#059669!important}

.pay-select{display:flex;gap:8px;margin-bottom:12px}
.pay-btn{
  flex:1;padding:10px 8px;border-radius:12px;border:1.5px solid #cbd5e1;
  background:#f8fafc;color:#475569;font-size:13px;font-weight:700;
  cursor:pointer;font-family:inherit;transition:all .15s;min-height:42px;
}
.pay-btn.active{background:#fffbeb;border-color:#f59e0b;color:#0f172a}

/* ═══ CTA BUTTON ═══ */
.cta{
  width:100%;padding:15px;border:none;border-radius:14px;
  background:linear-gradient(135deg,#f59e0b 0%,#fbbf24 100%);
  color:#050811;font-size:16px;font-weight:900;cursor:pointer;font-family:inherit;
  letter-spacing:-.2px;box-shadow:0 8px 24px rgba(245,158,11,.32);
  transition:all .15s;min-height:48px;
}
.cta:hover{background:linear-gradient(135deg,#fbbf24 0%,#f59e0b 100%)}
.cta:active{transform:scale(.98)}
.cta.ghost{
  background:#f1f5f9;
  border:1.5px solid #cbd5e1;
  box-shadow:none;color:#334155;font-weight:700;
}

/* ═══ MATCHING ═══ */
.match-wrap{position:relative;height:110px;display:flex;align-items:center;justify-content:center;margin:6px 0 14px}
.match-rings{position:absolute}
.mring{
  position:absolute;border-radius:50%;border:2px solid #f59e0b;
  top:50%;left:50%;transform:translate(-50%,-50%);
  animation:mring 2.4s ease-out infinite;
}
.r1{width:48px;height:48px;animation-delay:0s}
.r2{width:48px;height:48px;animation-delay:.6s}
.r3{width:48px;height:48px;animation-delay:1.2s}
@keyframes mring{0%{width:48px;height:48px;opacity:.85}100%{width:140px;height:140px;opacity:0}}
.match-car{font-size:38px;z-index:2;animation:float 1.5s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.match-dots{display:flex;justify-content:center;gap:6px;margin:10px 0}
.match-dots span{width:7px;height:7px;border-radius:50%;background:#f59e0b;animation:mdot 1.2s ease-in-out infinite}
.match-dots span:nth-child(2){animation-delay:.2s}
.match-dots span:nth-child(3){animation-delay:.4s}
@keyframes mdot{0%,80%,100%{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}

.match-stats{display:flex;gap:24px;justify-content:center;margin:10px 0}
.mstat{text-align:center}
.mstat span{font-size:21px;font-weight:900;color:#059669;display:block}
.mstat small{font-size:11px;color:#475569;font-weight:600}

/* ═══ DRIVER FOUND ═══ */
.found-banner{
  display:flex;align-items:center;gap:8px;
  font-weight:800;font-size:13.5px;color:#047857;
  background:#ecfdf5;border:1px solid #a7f3d0;
  padding:7px 14px;border-radius:30px;margin-bottom:12px;
  width:fit-content;
}
.found-dot{width:8px;height:8px;border-radius:50%;background:#10b981;animation:pulse-dot 1s infinite}

.driver-card{
  display:flex;align-items:center;gap:12px;
  background:#f8fafc;border:1px solid #cbd5e1;
  border-radius:16px;padding:12px;margin-bottom:12px;
}
.driver-photo{width:52px;height:52px;border-radius:50%;border:2.5px solid #f59e0b;object-fit:cover;background:#e2e8f0}
.driver-info{flex:1;min-width:0}
.driver-name{font-weight:800;font-size:15px;margin-bottom:2px;color:#0f172a}
.driver-sub{font-size:12px;color:#475569;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.driver-plate{display:inline-block;background:#fef3c7;border:1px solid #f59e0b;color:#92400e;border-radius:6px;padding:2px 8px;font-size:12px;font-weight:800;letter-spacing:.5px}
.driver-right{text-align:right;flex-shrink:0}
.driver-stars{font-weight:800;font-size:13px;margin-bottom:3px;color:#b45309}
.driver-trips{font-size:11px;color:#475569;font-weight:600}

.driver-actions{display:flex;gap:8px;margin-bottom:12px}
.da-btn{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  padding:10px 8px;border-radius:12px;background:#f8fafc;
  border:1px solid #cbd5e1;color:#0f172a;font-size:12px;font-weight:700;
  cursor:pointer;font-family:inherit;transition:all .15s;min-height:46px;
}
.da-btn:active{background:#fef3c7;border-color:#f59e0b}
.da-btn svg{color:#0f172a}

.eta-section{margin-bottom:12px}
.eta-bar-bg{height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden}
.eta-bar-fill{height:100%;width:0%;background:linear-gradient(90deg,#f59e0b,#10b981);border-radius:3px;transition:width .5s linear}
.eta-label{font-size:12.5px;color:#475569;text-align:center;margin-top:6px;font-weight:600}
.eta-label strong{color:#0f172a}

/* ═══ TRIP ACTIVE ═══ */
.trip-live-badge{
  display:flex;align-items:center;justify-content:center;gap:8px;
  font-weight:800;font-size:14px;margin-bottom:14px;color:#047857;
}
.live-dot{width:8px;height:8px;border-radius:50%;background:#10b981;animation:pulse-dot 1s infinite}
.trip-stats{display:flex;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px;margin-bottom:12px}
.ts{flex:1;text-align:center}
.ts-val{font-size:20px;font-weight:900;margin-bottom:2px;color:#059669}
.ts-lbl{font-size:10.5px;color:#475569;text-transform:uppercase;letter-spacing:.3px;font-weight:700}
.ts-sep{width:1px;height:36px;background:#cbd5e1}
.trip-timer-wrap{text-align:center;margin-bottom:10px}
.trip-timer-label{font-size:10.5px;color:#475569;margin-bottom:2px;text-transform:uppercase;letter-spacing:.5px;font-weight:700}
.trip-timer{font-size:34px;font-weight:900;font-variant-numeric:tabular-nums;color:#d97706;letter-spacing:-1px}

.trip-driver-mini{display:flex;align-items:center;gap:12px;background:#f8fafc;border:1px solid #cbd5e1;border-radius:14px;padding:10px 12px;margin-top:10px}
.tdm-photo{width:40px;height:40px;border-radius:50%;border:2px solid #f59e0b;background:#e2e8f0}
.tdm-info{flex:1}
.tdm-name{font-size:14px;font-weight:800;color:#0f172a}
.tdm-plate{font-size:12px;color:#475569;font-weight:700}
.tdm-call{flex-shrink:0;width:40px;height:40px;padding:0;display:flex;align-items:center;justify-content:center}

/* ═══ DONE ═══ */
.done-check{
  width:64px;height:64px;border-radius:50%;
  background:linear-gradient(135deg,#10b981,#059669);
  display:flex;align-items:center;justify-content:center;
  font-size:30px;font-weight:900;color:#fff;
  margin:0 auto 12px;
  box-shadow:0 10px 30px rgba(16,185,129,.35);
  animation:popIn .5s cubic-bezier(.17,.67,.26,1.4) both;
}
@keyframes popIn{0%{transform:scale(0);opacity:0}100%{transform:scale(1);opacity:1}}
.done-price{
  text-align:center;font-size:40px;font-weight:900;
  color:#059669;
  margin:6px 0 4px;
}
.rate-box{text-align:center;margin:12px 0}
.rate-box p{font-size:13.5px;color:#475569;margin-bottom:8px;font-weight:700}
.stars-row{display:flex;justify-content:center;gap:6px}
.star{font-size:32px;color:#cbd5e1;cursor:pointer;transition:all .15s;display:inline-block}
.star.on{color:#f59e0b;text-shadow:0 2px 10px rgba(245,158,11,.4)}
.star:active{transform:scale(1.25)}

/* ═══ RESPONSIVE BREAKPOINTS ═══ */
@media(max-width:599px){
  .panel{
    padding:12px 14px max(18px,env(safe-area-inset-bottom));
    max-height:66dvh;
    border-radius:22px 22px 0 0;
  }
  h2{font-size:17.5px}
  h3{font-size:15px}
  .hdr-btn{width:38px;height:38px}
  .hdr-logo{font-size:16px}
  .field-group{padding:2px 10px}
  .chips button{padding:7px 11px;font-size:12px}
  .cta{padding:14px;font-size:15px}
  .modal-box{padding:20px 16px}
  .toast-container{left:12px;right:12px;top:68px}
  .toast{max-width:100%;min-width:auto}
}

@media(min-width:600px) and (max-width:1023px){
  #topBar{
    left:50% !important;
    right:auto !important;
    width:460px !important;
    max-width:94vw !important;
    transform:translateX(-50%) !important;
    border-radius:0 0 18px 18px !important;
  }
  .panel{
    left:50% !important;
    right:auto !important;
    width:460px !important;
    max-width:94vw !important;
    max-height:70dvh !important;
    transform:translateX(-50%) translateY(115%) !important;
    border-radius:22px 22px 0 0 !important;
  }
  .panel.show{transform:translateX(-50%) translateY(0) !important;}
  .live-stats{top:74px}
}

@media(min-width:1024px){
  #topBar{
    left:24px !important;
    top:20px !important;
    right:auto !important;
    width:420px !important;
    max-width:420px !important;
    transform:none !important;
    border-radius:18px !important;
    border:1px solid var(--border2) !important;
    box-shadow:0 8px 30px rgba(15,23,42,0.12) !important;
  }
  .panel{
    left:24px !important;
    right:auto !important;
    bottom:20px !important;
    width:420px !important;
    max-width:420px !important;
    border-radius:22px !important;
    border:1px solid var(--border2) !important;
    box-shadow:0 16px 48px rgba(15,23,42,0.18) !important;
    transform:translateX(0) translateY(120%) !important;
    max-height:calc(100dvh - 105px) !important;
  }
  .panel.show{transform:translateX(0) translateY(0) !important;}
  .live-stats{
    left:24px !important;
    right:auto !important;
    top:84px !important;
    width:420px !important;
    max-width:420px !important;
    transform:none !important;
  }
}

/* ═══ TOAST & MODALS ═══ */
.toast-container{position:fixed;top:76px;right:16px;z-index:9500;display:flex;flex-direction:column;gap:8px}
.toast{
  background:#0d1527;border:1px solid rgba(248,250,252,.16);
  border-radius:14px;padding:12px 16px;font-size:13px;font-weight:700;
  color:#f8fafc;box-shadow:0 10px 28px rgba(0,0,0,.35);
  animation:toastIn .25s ease;display:flex;align-items:center;gap:8px;
  min-width:220px;max-width:340px;
}
.toast.success{border-left:4px solid #10b981}
.toast.error{border-left:4px solid #ef4444}
.toast.info{border-left:4px solid #f59e0b}
@keyframes toastIn{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}

.modal-overlay{
  position:fixed;inset:0;z-index:9200;
  background:rgba(5,8,17,0.65);backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;
  padding:16px;transition:opacity 0.25s ease;
}
.modal-overlay.hidden{opacity:0;pointer-events:none}
.modal-box{
  background:#ffffff;color:#0f172a;
  border:1px solid #cbd5e1;border-radius:22px;
  padding:22px;width:100%;max-width:440px;
  max-height:88dvh;overflow-y:auto;
  transform:translateY(0);transition:transform 0.25s ease;
  box-shadow:0 24px 60px rgba(0,0,0,0.3);
}
.modal-overlay.hidden .modal-box{transform:translateY(40px)}
.modal-title{font-size:17.5px;font-weight:800;margin-bottom:14px;color:#0f172a}
.promo-inp{
  width:100%;background:#f8fafc;border:1.5px solid #cbd5e1;
  border-radius:12px;padding:13px 14px;color:#0f172a;
  font-size:15px;font-weight:700;font-family:inherit;outline:none;margin-bottom:10px;
}
.promo-inp:focus{border-color:#f59e0b;background:#ffffff}
.promo-msg{font-size:13px;margin-bottom:12px;min-height:20px;font-weight:700}
.promo-msg.ok{color:#059669}
.promo-msg.fail{color:#ef4444}
.modal-btns{display:flex;flex-direction:column;gap:8px}

.history-box{max-height:82dvh;overflow-y:auto}
.history-list{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.h-item{background:#f8fafc;border:1px solid #cbd5e1;border-radius:14px;padding:13px}
.h-top{display:flex;justify-content:space-between;margin-bottom:4px}
.h-route{font-size:13.5px;font-weight:800;color:#0f172a}
.h-price{font-weight:900;color:#059669}
.h-meta{font-size:11.5px;color:#475569;font-weight:500}

/* ═══ KULLANICI PROFİL AVATARI & XP BAR ═══ */
.sb-avatar-img{width:50px;height:50px;border-radius:50%;flex-shrink:0;object-fit:cover;border:2px solid #f59e0b}
.sb-xp-bar-wrap{margin-top:6px}
.sb-xp-bar{height:4px;background:rgba(255,255,255,.12);border-radius:2px;overflow:hidden;margin-bottom:3px}
.sb-xp-fill{height:100%;background:linear-gradient(90deg,#f59e0b,#10b981);border-radius:2px;transition:width .8s ease}
.sb-xp-txt{font-size:10px;color:#94a3b8;font-weight:700}

/* ═══ SÜRÜCÜ ROZET & BİO ═══ */
.driver-badge{
  display:inline-block;margin-top:4px;
  background:#fef3c7;border:1px solid #f59e0b;
  border-radius:20px;padding:2px 9px;
  font-size:11px;font-weight:800;color:#b45309;
}
.driver-bio{font-size:11px;color:#475569;margin-top:3px;font-style:italic}
.hidden{display:none!important}

/* ═══ XP BADGE (Yolculuk Bitti) ═══ */
.xp-earned-badge{
  text-align:center;
  background:#ecfdf5;border:1px solid #a7f3d0;
  border-radius:20px;padding:9px 16px;
  font-size:14px;font-weight:800;color:#047857;
  margin:10px 0;
}

/* ═══ CHAT MODAL ═══ */
.chat-box{height:42dvh;display:flex;flex-direction:column}
.chat-messages{
  flex:1;overflow-y:auto;padding:12px;
  display:flex;flex-direction:column;gap:10px;
  background:#f1f5f9;border:1px solid #cbd5e1;
  border-radius:14px;margin-bottom:12px;
}
.chat-msg{
  padding:10px 14px;border-radius:16px;font-size:13.5px;
  max-width:82%;word-wrap:break-word;line-height:1.4;font-weight:600;
}
.chat-msg.driver{
  background:#ffffff;color:#0f172a;border:1px solid #cbd5e1;
  align-self:flex-start;border-bottom-left-radius:4px;
}
.chat-msg.user{
  background:#f59e0b;color:#050811;
  align-self:flex-end;border-bottom-right-radius:4px;
}
.chat-input-area{display:flex;gap:8px}
.chat-input{
  flex:1;background:#f8fafc;border:1.5px solid #cbd5e1;
  border-radius:20px;padding:11px 16px;color:#0f172a;
  outline:none;font-family:inherit;font-size:14px;font-weight:600;
}
.chat-input:focus{border-color:#f59e0b;background:#ffffff}
.chat-send-btn{
  width:44px;height:44px;border-radius:50%;
  background:linear-gradient(135deg,#f59e0b,#10b981);
  border:none;color:#050811;font-weight:900;font-size:17px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
}

/* ═══ PROFİL MODAL ═══ */
.profile-avatar-wrap{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:16px}
.profile-big-avatar{width:84px;height:84px;border-radius:50%;border:3px solid #f59e0b;object-fit:cover}
.profile-photo-btn{background:#fef3c7;border:1px solid #f59e0b;color:#b45309;padding:6px 14px;border-radius:20px;font-size:12.5px;font-weight:700;cursor:pointer;font-family:inherit}
.profile-form{display:flex;flex-direction:column;gap:5px;margin-bottom:4px}
.pf-label{font-size:11px;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.5px;margin-top:8px}
.pf-input{background:#f8fafc;border:1.5px solid #cbd5e1;border-radius:12px;padding:11px 14px;color:#0f172a;font-size:14px;font-weight:600;font-family:inherit;outline:none}
.pf-input:focus{border-color:#f59e0b;background:#ffffff}

/* ═══ BİLDİRİMLER & GÜVENLİK & YARDIM MODAL ═══ */
.notif-list{display:flex;flex-direction:column;gap:0;margin-bottom:8px;max-height:55dvh;overflow-y:auto}
.notif-item{display:flex;gap:12px;padding:12px;border-bottom:1px solid #e2e8f0}
.notif-item.unread{background:#fffbeb;border-left:3px solid #f59e0b}
.notif-icon{font-size:22px;flex-shrink:0;width:32px;text-align:center}
.notif-body{flex:1;min-width:0}
.notif-head{font-weight:800;font-size:13.5px;margin-bottom:2px;color:#0f172a}
.notif-txt{font-size:12px;color:#475569;line-height:1.4;margin-bottom:3px}
.notif-time{font-size:10.5px;color:#94a3b8}

.sec-list{display:flex;flex-direction:column;gap:0;margin-bottom:14px}
.sec-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e2e8f0}
.sec-left{flex:1}
.sec-title{font-weight:700;font-size:13.5px;margin-bottom:2px;color:#0f172a}
.sec-sub{font-size:11.5px;color:#475569}
.sec-danger{display:flex;flex-direction:column;gap:8px}
.toggle-sw{position:relative;display:inline-block;width:46px;height:26px;flex-shrink:0}
.toggle-sw input{opacity:0;width:0;height:0}
.tgl{position:absolute;cursor:pointer;inset:0;background:#cbd5e1;transition:.3s;border-radius:26px}
.tgl:before{position:absolute;content:"";height:18px;width:18px;left:4px;bottom:4px;background:#fff;transition:.3s;border-radius:50%}
.toggle-sw input:checked + .tgl{background:#10b981}
.toggle-sw input:checked + .tgl:before{transform:translateX(20px)}

.faq-list{display:flex;flex-direction:column;gap:0;margin-bottom:14px}
.faq-item{border-bottom:1px solid #e2e8f0;cursor:pointer}
.faq-q{display:flex;justify-content:space-between;align-items:center;padding:12px 0;font-size:13.5px;font-weight:700;color:#0f172a}
.faq-arr{color:#475569;font-size:12px;flex-shrink:0;margin-left:8px;transition:transform .2s}
.faq-a{max-height:0;overflow:hidden;font-size:12.5px;color:#475569;line-height:1.5;transition:max-height .3s ease;padding-bottom:0}
.faq-item.open .faq-a{padding-bottom:12px}
.help-contact{display:flex;flex-direction:column;gap:8px}

/* ═══ PWA PROMPT ═══ */
.pwa-prompt{
  position:fixed;bottom:20px;left:16px;right:16px;
  background:#ffffff;border:2px solid #f59e0b;border-radius:20px;
  padding:14px;z-index:9000;display:flex;flex-direction:column;gap:10px;
  box-shadow:0 12px 40px rgba(15,23,42,.18);animation:slideUp .35s ease forwards;
}
.pwa-prompt.hidden{display:none!important}
@keyframes slideUp{from{transform:translateY(100px);opacity:0}to{transform:translateY(0);opacity:1}}
.pwa-content{display:flex;align-items:center;gap:12px}
.pwa-icon{width:44px;height:44px;border-radius:10px}
.pwa-text{flex:1}
.pwa-text strong{display:block;font-size:14.5px;margin-bottom:2px;color:#0f172a}
.pwa-text p{font-size:12px;color:#475569;line-height:1.3}
.pwa-actions{display:flex;gap:8px;align-items:center}
.btn-close-pwa{width:38px;height:38px;border-radius:10px;border:1px solid #cbd5e1;background:#f8fafc;color:#0f172a;font-size:15px;cursor:pointer}
@media(min-width:600px){.pwa-prompt{left:auto;width:360px}}

/* ═══ ROTA SEÇİCİ PANELİ (ÜSTTE — ALT PANELİ KAPATMAZ) ═══ */
.route-selector-panel{
  position:fixed;top:68px;left:12px;right:12px;max-width:440px;margin:0 auto;
  background:rgba(255,255,255,0.97);border:1.5px solid #f59e0b;border-radius:18px;
  padding:10px 12px;z-index:55;backdrop-filter:blur(14px);
  box-shadow:0 8px 28px rgba(15,23,42,0.14);
}
@media(min-width:1024px){
  .route-selector-panel{left:460px;right:auto;top:20px;width:420px;margin:0;}
}
.rsp-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px;font-weight:800;color:#475569}
.rsp-close{font-size:15px;cursor:pointer;color:#475569;width:24px;text-align:center}
.rsp-routes{display:flex;gap:6px}
.rsp-item{flex:1;background:#f8fafc;border:1.5px solid #cbd5e1;border-radius:12px;padding:8px 6px;text-align:center;cursor:pointer;transition:all .15s}
.rsp-item.active{border-color:#f59e0b;background:#fffbeb}
.rsp-label{font-size:11.5px;font-weight:800;margin-bottom:2px;color:#0f172a}
.rsp-info{font-size:10.5px;color:#475569;font-weight:600}

/* ═══ TRAFİK WIDGET ═══ */
.traffic-widget{background:#f8fafc;border:1px solid #cbd5e1;border-radius:20px;padding:4px 9px;font-size:11.5px;font-weight:800;white-space:nowrap}
.traffic-low{border-color:#a7f3d0;color:#059669;background:#ecfdf5}
.traffic-moderate{border-color:#fde68a;color:#d97706;background:#fffbeb}
.traffic-heavy{border-color:#fecaca;color:#dc2626;background:#fef2f2;animation:pulse-traffic 2s infinite}
@keyframes pulse-traffic{0%,100%{opacity:1}50%{opacity:.65}}
