/* Şahin Kurye ortak tema. Marka renkleri ve fontlar tek yerden değişir. */
@font-face { font-family: 'Marka'; src: url(font/onest.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Govde'; src: url(font/plus-jakarta-sans.woff2) format('woff2'); font-weight: 200 800; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0; font-display: swap; }
@font-face { font-family: 'Govde'; src: url(font/plus-jakarta-sans-l.woff2) format('woff2'); font-weight: 200 800; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }

:root {
  --koyu: #0F1B3D;          /* marka koyu */
  --koyu-2: #1A2A57;
  --vurgu: #F26A1B;         /* marka vurgu */
  --vurgu-acik: #FFF0E6;
  --vurgu-yazi: #FFFFFF;
  --zemin: #F5F6F8;
  --kart: #FFFFFF;
  --cizgi: #E6E8EE;
  --yazi: #0E1525;
  --yazi-2: #5B6478;
  --yazi-3: #8A92A6;
  --iyi: #12A150; --iyi-acik: #E7F7EE;
  --uyari: #C77700; --uyari-acik: #FFF4DE;
  --kotu: #D92D20; --kotu-acik: #FDECEA;
  --mavi: #2F6BFF; --mavi-acik: #EAF0FF;
  --r: 18px; --r-k: 12px; --r-b: 28px;
  --golge: 0 1px 2px rgba(14,21,37,.06), 0 8px 24px rgba(14,21,37,.08);
  --golge-b: 0 -8px 32px rgba(14,21,37,.12);
  --f-marka: 'Marka', system-ui, sans-serif;
  --f: 'Govde', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ust: env(safe-area-inset-top, 0px); --alt: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--f); color: var(--yazi); background: var(--zemin); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .marka-f { font-family: var(--f-marka); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: 28px; font-weight: 700; } h2 { font-size: 21px; font-weight: 650; } h3 { font-size: 17px; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.gizli { display: none !important; }
.sessiz { color: var(--yazi-2); } .soluk { color: var(--yazi-3); } .kucuk { font-size: 13px; } .mini { font-size: 12px; }
.kalin { font-weight: 700; } .orta { font-weight: 600; }
.sayi { font-family: var(--f-marka); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* düğmeler */
.btn { appearance: none; border: 0; border-radius: 999px; min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 16px; cursor: pointer; transition: transform .12s ease, background .15s ease, opacity .15s; text-decoration: none; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-ana { background: var(--koyu); color: #fff; }
.btn-vurgu { background: var(--vurgu); color: var(--vurgu-yazi); }
.btn-acik { background: var(--kart); color: var(--yazi); box-shadow: inset 0 0 0 1.5px var(--cizgi); }
.btn-hafif { background: rgba(14,21,37,.06); color: var(--yazi); }
.btn-kotu { background: var(--kotu-acik); color: var(--kotu); }
.btn-iyi { background: var(--iyi); color: #fff; }
.btn-tam { width: 100%; }
.btn-k { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-ikon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.btn .ik { width: 20px; height: 20px; }

/* alanlar */
.alan { display: block; margin-bottom: 14px; }
.alan > span { display: block; font-size: 13px; font-weight: 600; color: var(--yazi-2); margin-bottom: 6px; }
.girdi { width: 100%; min-height: 52px; border-radius: var(--r-k); border: 1.5px solid var(--cizgi); background: var(--kart); padding: 0 14px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.girdi { padding: 14px; min-height: 84px; resize: vertical; }
.girdi:focus { border-color: var(--koyu); box-shadow: 0 0 0 4px rgba(15,27,61,.08); }
.girdi::placeholder { color: var(--yazi-3); }
.kod-kutu { display: flex; gap: 8px; justify-content: space-between; }
.kod-kutu input { width: 100%; max-width: 54px; height: 62px; text-align: center; font-size: 26px; font-family: var(--f-marka); font-weight: 600; border-radius: 14px; border: 1.5px solid var(--cizgi); background: var(--kart); outline: none; }
.kod-kutu input:focus { border-color: var(--koyu); }
.anahtar { position: relative; width: 52px; height: 32px; flex: none; }
.anahtar input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.anahtar i { position: absolute; inset: 0; border-radius: 99px; background: #D5D9E2; transition: background .2s; }
.anahtar i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.anahtar input:checked + i { background: var(--iyi); }
.anahtar input:checked + i::after { transform: translateX(20px); }

/* kartlar */
.kart { background: var(--kart); border-radius: var(--r); box-shadow: var(--golge); }
.kart-ic { padding: 18px; }
.cizgili > * + * { border-top: 1px solid var(--cizgi); }
.satir { display: flex; align-items: center; gap: 12px; }
.satir-a { display: flex; align-items: flex-start; gap: 12px; }
.ara { justify-content: space-between; }
.esne { flex: 1; min-width: 0; }
.tasma { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yigin > * + * { margin-top: 12px; }
.yigin-b > * + * { margin-top: 20px; }

/* rozetler */
.rozet { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: rgba(14,21,37,.06); color: var(--yazi-2); white-space: nowrap; }
.rozet::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rozet.duz::before { display: none; }
.r-bekliyor, .r-odeme { background: var(--uyari-acik); color: var(--uyari); }
.r-atandi { background: var(--mavi-acik); color: var(--mavi); }
.r-yolda { background: var(--vurgu-acik); color: var(--vurgu); }
.r-donus { background: var(--uyari-acik); color: #8A5300; }
.r-teslim { background: var(--iyi-acik); color: var(--iyi); }
.r-basarisiz, .r-iptal { background: var(--kotu-acik); color: var(--kotu); }

/* ikonlar (svg sprite) */
.ik { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* adres noktaları */
.nokta-a, .nokta-b { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.nokta-a { background: var(--koyu); box-shadow: 0 0 0 4px rgba(15,27,61,.12); }
.nokta-b { background: var(--vurgu); box-shadow: 0 0 0 4px rgba(242,106,27,.16); }
.rota-cizgi { width: 2px; flex: none; background: repeating-linear-gradient(to bottom, var(--cizgi) 0 4px, transparent 4px 8px); margin-left: 5px; }

/* bildirim (toast) */
#tost { position: fixed; left: 50%; bottom: calc(96px + var(--alt)); transform: translate(-50%, 20px); background: var(--yazi); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 550; opacity: 0; pointer-events: none; transition: .25s; z-index: 9999; max-width: calc(100vw - 32px); box-shadow: var(--golge); }
#tost.acik { opacity: 1; transform: translate(-50%, 0); }
#tost.kotu { background: var(--kotu); }

/* deneme modu şeridi */
.deneme-serit { background: repeating-linear-gradient(-45deg, #FFF4DE, #FFF4DE 10px, #FFEBC2 10px, #FFEBC2 20px); color: #7A4A00; font-size: 12px; font-weight: 650; text-align: center; padding: 4px 8px; padding-top: calc(4px + var(--ust)); }

/* harita */
.maplibregl-ctrl-attrib { font-size: 10px; }
.harita-kurye { width: 40px; height: 40px; border-radius: 50%; background: var(--koyu); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); display: grid; place-items: center; transition: transform .2s; }
.harita-kurye svg { width: 20px; height: 20px; stroke: #fff; }
.harita-kurye.serbest { background: var(--koyu-2); }
.harita-kurye.mesgul { background: var(--vurgu); }
.harita-kurye.cevrimdisi { background: #9AA2B4; }
.harita-pin { width: 18px; height: 18px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.harita-pin.a { background: var(--koyu); } .harita-pin.b { background: var(--vurgu); }
.harita-etiket { background: var(--kart); border-radius: 10px; padding: 4px 8px; font-size: 12px; font-weight: 700; box-shadow: var(--golge); white-space: nowrap; transform: translateY(-34px); }

/* yükleniyor */
.iskelet { background: linear-gradient(90deg, #EEF0F4 25%, #F6F7F9 50%, #EEF0F4 75%); background-size: 200% 100%; animation: isk 1.2s infinite; border-radius: 10px; }
@keyframes isk { to { background-position: -200% 0; } }
.donen { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: don .7s linear infinite; }
.donen.koyu { border-color: rgba(14,21,37,.15); border-top-color: var(--koyu); }
@keyframes don { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* adres seçici */
.adres-sec { position: fixed; inset: 0; z-index: 900; background: var(--zemin); display: flex; flex-direction: column; }
.as-ust { position: absolute; z-index: 5; top: calc(12px + var(--ust)); left: 12px; right: 12px; display: flex; gap: 8px; }
.as-ust .btn-ikon { background: var(--kart); box-shadow: var(--golge); }
.as-ara { flex: 1; position: relative; }
.as-ara .ik { position: absolute; left: 14px; top: 15px; color: var(--yazi-3); }
.as-ara .girdi { padding-left: 44px; box-shadow: var(--golge); border-color: transparent; }
.as-liste { position: absolute; z-index: 4; inset: 0; padding: calc(76px + var(--ust)) 12px 12px; background: var(--zemin); overflow: auto; display: none; }
.adres-sec.arama .as-liste { display: block; }
.as-bas { padding: 8px 6px; }
.as-oge { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--kart); border: 0; padding: 14px; border-radius: 14px; margin-bottom: 8px; cursor: pointer; }
.as-oge .ik { color: var(--yazi-3); }
.as-harita { flex: 1; position: relative; }
.as-pin { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -100%); color: var(--vurgu); transition: transform .15s; pointer-events: none; }
.as-pin .ik { width: 44px; height: 44px; fill: var(--vurgu); stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.adres-sec.surukle .as-pin { transform: translate(-50%, -115%); }
.as-konum { position: absolute; right: 12px; bottom: 16px; z-index: 2; box-shadow: var(--golge); }
.as-alt { border-radius: var(--r-b) var(--r-b) 0 0; padding: 18px 18px calc(18px + var(--alt)); box-shadow: var(--golge-b); }
.as-metin { font-size: 17px; margin-top: 4px; min-height: 24px; }

/* ---------- şahin yükleme ---------- */
.sahin-yukle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--yazi-2); font-size: 15px; }
.sahin-yukle b { font-weight: 650; }
.sy-kus { position: relative; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--kart); box-shadow: 0 6px 24px rgba(14,21,37,.12); }
.sy-kus img { width: 40px; height: auto; animation: sy-suz 1.1s cubic-bezier(.45,0,.55,1) infinite; transform-origin: 40% 60%; }
.sy-halka { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--vurgu); border-right-color: rgba(242,106,27,.25); animation: don .9s linear infinite; }
@keyframes sy-suz { 0%, 100% { transform: translate(-2px, 2px) rotate(-4deg); } 50% { transform: translate(2px, -3px) rotate(3deg); } }
.sahin-yukle.kucuk { gap: 6px; font-size: 13px; }
.sahin-yukle.kucuk .sy-kus { width: 44px; height: 44px; box-shadow: none; }
.sahin-yukle.kucuk .sy-kus img { width: 24px; }
.sahin-yukle.kucuk .sy-halka { border-width: 2.5px; }
.bekle-katman { position: fixed; inset: 0; z-index: 9990; display: grid; place-items: center; background: rgba(244,245,248,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: katman-gel .18s ease both; }
.bekle-katman.gidiyor { animation: katman-git .2s ease both; }
@keyframes katman-gel { from { opacity: 0; } }
@keyframes katman-git { to { opacity: 0; } }

/* açılış: uygulama verisi gelene kadar */
#acilis { position: fixed; inset: 0; z-index: 9995; background: var(--koyu); display: grid; place-items: center; transition: opacity .25s ease; }
#acilis img { width: 84px; animation: sy-suz 1.1s cubic-bezier(.45,0,.55,1) infinite; }
#acilis.gidiyor { opacity: 0; pointer-events: none; }

/* iskelet liste */
.isk-liste { display: grid; gap: 10px; }
.isk-sat { display: flex; gap: 12px; align-items: center; background: var(--kart); border-radius: 16px; padding: 14px; }
.isk-sat span { flex: 1; display: grid; gap: 8px; }
.isk-y { width: 44px; height: 44px; border-radius: 12px; display: block; }
.isk-c1 { height: 14px; width: 70%; display: block; } .isk-c2 { height: 12px; width: 45%; display: block; }

/* ---------- ekran geçişleri ---------- */
#ekran { view-transition-name: ekran; }
#alt-menu { view-transition-name: alt-menu; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(ekran) { animation-duration: .28s; }
::view-transition-old(ekran), ::view-transition-new(ekran) { animation-duration: .28s; animation-timing-function: cubic-bezier(.2,.8,.2,1); height: 100%; overflow: clip; }
html[data-yon="ileri"]::view-transition-old(ekran) { animation-name: vt-sola-cik; }
html[data-yon="ileri"]::view-transition-new(ekran) { animation-name: vt-sagdan-gel; }
html[data-yon="geri"]::view-transition-old(ekran) { animation-name: vt-saga-cik; }
html[data-yon="geri"]::view-transition-new(ekran) { animation-name: vt-soldan-gel; }
html[data-yon="sekme"]::view-transition-old(ekran) { animation: vt-sol .14s ease both; }
html[data-yon="sekme"]::view-transition-new(ekran) { animation: vt-belir .18s ease both; }
@keyframes vt-sagdan-gel { from { transform: translateX(100%); } }
@keyframes vt-sola-cik { to { transform: translateX(-28%); opacity: .6; } }
@keyframes vt-soldan-gel { from { transform: translateX(-28%); opacity: .6; } }
@keyframes vt-saga-cik { to { transform: translateX(100%); } }
@keyframes vt-belir { from { opacity: 0; transform: translateY(6px); } }
@keyframes vt-sol { to { opacity: 0; } }
/* View Transitions olmayan tarayıcılar */
#ekran.vt-ileri { animation: vt-sagdan-gel .28s cubic-bezier(.2,.8,.2,1); }
#ekran.vt-geri { animation: vt-soldan-gel .28s cubic-bezier(.2,.8,.2,1); }
#ekran.vt-sekme { animation: vt-belir .18s ease; }

/* alttan açılan levhalar */
.as-alt { animation: levha-gel .3s cubic-bezier(.2,.8,.2,1); }
@keyframes levha-gel { from { transform: translateY(100%); } }

/* ---------- uygulama hissi (yalnız müşteri ve kurye uygulaması) ---------- */
html.uyg { -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
html.uyg body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
html.uyg input, html.uyg textarea, html.uyg .secilir { -webkit-user-select: text; user-select: text; }
html.uyg a, html.uyg button, html.uyg label, html.uyg .cip { touch-action: manipulation; }
html.uyg :is(.kart a, a.kart, .liste-sat, .as-oge, .belge, .cip, .alt-menu a, a.gonderi) { transition: transform .12s ease, background-color .15s ease; }
html.uyg :is(a.kart, .liste-sat, .as-oge, .belge, .cip, a.gonderi):active { transform: scale(.98); }
html.uyg .alt-menu a:active .ik { transform: scale(.88); }
.belge.yukleniyor { border-style: solid; border-color: var(--vurgu); background: var(--vurgu-acik); pointer-events: none; }
.belge.yeni { animation: belge-tamam .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes belge-tamam { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.adim-ileri { animation: adim-ileri .26s cubic-bezier(.2,.8,.2,1); }
.adim-geri { animation: adim-geri .26s cubic-bezier(.2,.8,.2,1); }
@keyframes adim-ileri { from { transform: translateX(36px); opacity: 0; } }
@keyframes adim-geri { from { transform: translateX(-36px); opacity: 0; } }
.belge-ik { display: grid; place-items: center; min-height: 24px; }
.belge .sahin-yukle.kucuk .sy-kus { width: 34px; height: 34px; background: transparent; }
.belge .sahin-yukle.kucuk .sy-kus img { width: 20px; }
@media (prefers-reduced-motion: reduce) { .sy-kus img, #acilis img { animation: none !important; } .sy-halka { animation-duration: 1.6s !important; } }
#odeme-sec{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible;flex-wrap:nowrap}
#odeme-sec .cip{flex-direction:column;justify-content:center;gap:4px;padding:10px 6px;min-height:68px;white-space:normal;text-align:center;line-height:1.2;border-radius:16px}
