/* ═══════════════════════════════════════════════════════════
   ÖZEL TRANSFER — tasarım sistemi
   Estetik: ulaşım tabelası netliği · gece laciverti + elektrik mavisi
   Fontlar: Archivo (SIL OFL) · Spline Sans Mono (SIL OFL)
   ═══════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* eski değişken adları korunur (sayfa içi stiller bunlara bağlı) */
  --mavi: #0b5fff;
  --mavi-koyu: #0a3ecc;
  --yesil: #0e9f6e;
  --kirmizi: #e02424;
  --turuncu: #d97706;
  --zemin: #f2f4f8;
  --kart: #ffffff;
  --metin: #0b1f3a;
  --soluk: #5a6b85;
  --cizgi: #e2e8f1;
  --golge: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .07);
  --vurgu: #c9f24e;          /* emniyet yeleği limesi — küçük vurgular */
  --lacivert: #081737;       /* üst bar / koyu yüzeyler */
  --govde: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, SFMono-Regular, monospace;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--govde);
  background:
    radial-gradient(1200px 500px at 85% -140px, rgba(11, 95, 255, .07), transparent 60%),
    var(--zemin);
  color: var(--metin);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 15px;
}

/* ── üst bar: koyu tabela ────────────────────────────────── */
.ust-bar {
  background: var(--lacivert);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 1100;
  border-bottom: 3px solid var(--mavi);
}
.ust-bar h1, .ust-bar .marka {
  font-size: 16px;
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}
.ust-bar h1::after, .ust-bar .marka::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--vurgu);
  border-radius: 2px;
  display: inline-block;
}
.ust-bar .sag { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.ust-bar a { color: #cfe0ff; text-decoration: none; border-bottom: 1px solid rgba(207, 224, 255, .35); padding-bottom: 1px; }
.ust-bar a:hover { color: #fff; border-color: #fff; }

/* ── ana menü ────────────────────────────────────────────── */
.ust-bar a.marka { color: #fff; border: none; padding-bottom: 0; }
.ust-bar a.marka:hover { color: #fff; border: none; }

.ana-menu { display: flex; align-items: center; gap: 3px; }
.ust-bar .ana-menu a {
  color: #cfe0ff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.ust-bar .ana-menu a:hover { background: rgba(255, 255, 255, .12); color: #fff; border: none; }
.ust-bar .ana-menu a[aria-current="page"] {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--vurgu);
}

@media (max-width: 640px) {
  .ust-bar { flex-wrap: wrap; padding: 12px 14px 0; gap: 4px; }
  .ana-menu {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ana-menu::-webkit-scrollbar { display: none; }
  .ust-bar .ana-menu a { padding: 6px 9px; font-size: 12.5px; }
}

.icerik { max-width: 720px; margin: 0 auto; padding: 20px 16px 40px; }

/* ── masaüstü düzeni (yalnızca tanıtım sayfaları) ─────────────
   Tüm kurallar min-width:900px içinde; mobil ve paneller etkilenmez. */
@media (min-width: 900px) {
  .icerik.genis { max-width: 1060px; padding: 26px 24px 56px; }

  /* Kartlar aynı genişlikte ve başlıklar aynı hizada kalır; okunabilirlik
     için yalnızca paragraf satırı sınırlanır (sağda boşluk kalması normal). */
  .icerik.genis .kart:not(.kapanis) p { max-width: 78ch; }
  .icerik.genis .durak-yil p { max-width: 78ch; }

  /* Satır satır dizilen öğeler iki sütuna açılır.
     Seçiciler `.icerik.genis` ile öneklendi: sayfa içi <style> blokları
     ortak.css'ten SONRA geldiği için (.surec, .etken gibi) aynı özgüllükteki
     kurallar dolguyu eziyordu; bu önek özgüllüğü yükseltip önlüyor. */
  .icerik.genis .izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .icerik.genis .izgara > * {
    border-bottom: none;
    padding: 15px 17px;
    background: #f7f9fc;
    border: 1px solid var(--cizgi);
    border-radius: 12px;
  }
  .icerik.genis .izgara > *:last-child { padding: 15px 17px; }
  .icerik.genis .izgara.uc { grid-template-columns: repeat(3, 1fr); }

  /* kendi stili olan kartlar için yalnızca ızgara */
  .icerik.genis .izgara-sade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
  .icerik.genis .izgara-sade > * { margin-bottom: 0; }

  /* üst bar içeriği gövdeyle aynı hizada başlasın */
  .ust-bar.genis-bar {
    padding-left: max(20px, calc((100vw - 1060px) / 2));
    padding-right: max(20px, calc((100vw - 1060px) / 2));
  }
}

/* ── kahraman başlık (form sayfası) ──────────────────────── */
.kahraman { padding: 26px 4px 20px; }
.kahraman .etiket {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mavi);
  background: rgba(11, 95, 255, .09);
  border: 1px solid rgba(11, 95, 255, .18);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.kahraman h1, .kahraman h2 {
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.kahraman h1 em, .kahraman h2 em { font-style: normal; color: var(--mavi); }
.kahraman p { color: var(--soluk); font-size: 16px; max-width: 44ch; }

/* ── kartlar ─────────────────────────────────────────────── */
.kart {
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: 16px;
  box-shadow: var(--golge);
  padding: 20px;
  margin-bottom: 14px;
}
.kart h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--metin);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kart h2::before {
  content: '';
  width: 18px; height: 3px;
  background: var(--mavi);
  border-radius: 2px;
}
.kart h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }

/* ── form elemanları ─────────────────────────────────────── */
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--soluk);
  margin: 14px 0 5px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--cizgi);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  background: #fbfcfe;
  color: var(--metin);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--mavi);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 95, 255, .15);
}
.satir { display: flex; gap: 12px; }
.satir > * { flex: 1; }

/* ── butonlar: tabela netliği ────────────────────────────── */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  font-family: inherit;
  cursor: pointer;
  background: var(--lacivert);
  color: #fff;
  text-decoration: none;
  transition: transform .08s, background .15s, box-shadow .15s;
  box-shadow: 0 2px 0 rgba(4, 12, 30, .6);
}
button:hover, .btn:hover { background: #12275c; }
button:active, .btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(4, 12, 30, .6); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button:focus-visible, .btn:focus-visible { outline: 3px solid rgba(8, 23, 55, .35); outline-offset: 2px; }
.btn-tam { width: 100%; }
.btn-yesil { background: var(--yesil); box-shadow: 0 2px 0 rgba(7, 115, 83, .5); }
.btn-yesil:hover { background: #0b8a5f; }
.btn-kirmizi { background: var(--kirmizi); box-shadow: 0 2px 0 rgba(155, 22, 22, .45); }
.btn-kirmizi:hover { background: #c21f1f; }
.btn-turuncu { background: var(--turuncu); box-shadow: 0 2px 0 rgba(146, 78, 5, .45); }
.btn-turuncu:hover { background: #b96504; }
.btn-gri {
  background: #fff;
  color: var(--metin);
  border: 1.5px solid var(--cizgi);
  box-shadow: 0 2px 0 rgba(11, 31, 58, .07);
}
.btn-gri:hover { background: #f4f6fa; border-color: #c9d4e4; }
.btn-kucuk { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* kişi avatarı (sürücü fotoğrafı / baş harfler) */
.kisi-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e7ebf2;
  color: var(--lacivert);
  font-weight: 800;
  border: 1.5px solid var(--cizgi);
}

/* ayırıcı yazı: "— Hesabınız yok mu? —" */
.ayirici-yazi {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--soluk);
}
.ayirici-yazi::before, .ayirici-yazi::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cizgi);
}

/* ── rozetler ────────────────────────────────────────────── */
.rozet {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rozet-mavi { background: rgba(11, 95, 255, .1); color: var(--mavi-koyu); }
.rozet-yesil { background: rgba(14, 159, 110, .12); color: #087353; }
.rozet-kirmizi { background: rgba(224, 36, 36, .1); color: #b91c1c; }
.rozet-turuncu { background: rgba(217, 119, 6, .12); color: #a35c04; }
.rozet-gri { background: #eef1f6; color: var(--soluk); }

.soluk { color: var(--soluk); font-size: 13.5px; }
.harita {
  height: 300px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--cizgi); background: #eef1f6;
}

/* ── adres arama kutusu (kendi bileşenimiz) ──────────────────
   Girdi normal form alanlarımızla aynı; öneri listesi <body>'ye
   asılıp position:fixed ile konumlanır (kart/çekmece taşmalarında
   kırpılmaz, üst barın altında kalmaz). */
.adres-arama { position: relative; }
.adres-arama::before {
  content: '🔍';
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .6;
  pointer-events: none;
}
.adres-girdi {
  padding-left: 38px;
  font-size: 16px;           /* 16px altı iOS'ta odaklanınca sayfayı büyütür */
}
.adres-oneriler {
  position: fixed;
  z-index: 4000;             /* üst bar (1100) ve çekmeceler (2100) üstünde */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--kart);
  border: 1.5px solid var(--cizgi);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(8, 23, 55, .22);
  padding: 4px;
}
.adres-oneriler[hidden] { display: none; }
.adres-oneri {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  min-height: 48px;          /* rahat dokunma hedefi */
  border-radius: 9px;
  cursor: pointer;
}
.adres-oneri + .adres-oneri { box-shadow: inset 0 1px 0 var(--cizgi); }
.adres-oneri.secili, .adres-oneri:hover { background: rgba(11, 95, 255, .08); }
.adres-oneri:active { background: rgba(11, 95, 255, .16); }
.adres-oneri .ikon { font-size: 15px; line-height: 1.4; flex-shrink: 0; }
.adres-oneri .yazi { min-width: 0; }
.adres-oneri .ana { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.adres-oneri .alt {
  display: block;
  font-size: 12.5px;
  color: var(--soluk);
  line-height: 1.35;
  margin-top: 2px;
}
.adres-durum { padding: 13px 12px; color: var(--soluk); font-size: 13.5px; font-weight: 600; }
.bosluk { height: 10px; }

.hata-kutu {
  background: rgba(224, 36, 36, .07);
  border: 1.5px solid rgba(224, 36, 36, .25);
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  display: none;
}

.liste-satir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--cizgi);
}
.liste-satir:last-child { border-bottom: none; }

/* ── durak numarası: kapı numarası gibi ──────────────────── */
.durak-no {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--lacivert);
  color: var(--vurgu);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--mono);
  flex-shrink: 0;
}

/* ── toast ───────────────────────────────────────────────── */
#toast-alan { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: 92vw; }
.toast {
  background: var(--lacivert);
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border-left: 4px solid var(--vurgu);
  box-shadow: 0 10px 30px rgba(8, 23, 55, .35);
  max-width: 92vw;
  animation: toast-gir .28s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.yesil { border-left-color: #34d399; }
.toast.kirmizi { border-left-color: #f87171; }
@keyframes toast-gir { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; } }

/* ── sekmeler (yönetici) ─────────────────────────────────── */
.sekmeler {
  display: flex;
  gap: 4px;
  background: #e7ebf2;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
  overflow-x: auto;
}
.sekme {
  flex: 1;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  color: var(--soluk);
  background: transparent;
  white-space: nowrap;
  box-shadow: none;
}
.sekme:hover { background: rgba(255, 255, 255, .6); }
.sekme.aktif { background: var(--lacivert); color: #fff; box-shadow: 0 2px 8px rgba(8, 23, 55, .25); }

/* ── alt sekmeler (sekme içi menü) ───────────────────────── */
.alt-sekmeler {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
}
.alt-sekme {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--soluk);
  background: #fff;
  border: 1px solid var(--cizgi);
  white-space: nowrap;
  box-shadow: none;
}
.alt-sekme:hover { border-color: #b9c4d6; color: var(--lacivert); }
.alt-sekme.aktif {
  background: var(--lacivert);
  border-color: var(--lacivert);
  color: #fff;
  box-shadow: 0 2px 8px rgba(8, 23, 55, .2);
}

/* ── biniş kartı (takip kodu) ────────────────────────────── */
.binis-karti {
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: 18px;
  box-shadow: var(--golge);
  overflow: hidden;
  margin-bottom: 14px;
}
.binis-ust {
  background: var(--lacivert);
  color: #fff;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.binis-ust .marka {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #cfe0ff;
}
.binis-ust .rota-ikon { font-size: 20px; }
.binis-govde { padding: 26px 22px 20px; text-align: center; }
.binis-govde .kod-etiket {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--soluk);
  margin-bottom: 8px;
}
.binis-govde .kod {
  font-family: var(--mono);
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--mavi);
  margin-bottom: 6px;
}
/* perforaj: zımba delikli ayrım */
.binis-perforaj {
  position: relative;
  height: 26px;
  background:
    radial-gradient(circle at 0 50%, var(--zemin) 12px, transparent 13px),
    radial-gradient(circle at 100% 50%, var(--zemin) 12px, transparent 13px);
}
.binis-perforaj::after {
  content: '';
  position: absolute;
  left: 26px; right: 26px; top: 50%;
  border-top: 2px dashed var(--cizgi);
}
.binis-alt { padding: 4px 22px 22px; }

/* ── yükleniş animasyonu ─────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .kart, .kahraman, .binis-karti {
    animation: sayfa-gir .5s cubic-bezier(.2, .8, .3, 1) backwards;
  }
  .kart:nth-of-type(1) { animation-delay: .05s; }
  .kart:nth-of-type(2) { animation-delay: .12s; }
  .kart:nth-of-type(3) { animation-delay: .19s; }
  @keyframes sayfa-gir {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 480px) {
  .icerik { padding: 12px 12px 32px; }
  .kart { padding: 16px; border-radius: 14px; }
  .satir { flex-direction: column; gap: 0; }
}
