/* =============================================================================
   Esnafhan vitrini — statik PWA (docs/SIPARIS-TAKIBI.md §23).
   Mobil önce. Kütüphane/web fontu yok: tüketici uygulamasında ilk açılış süresi ciroyu keser.

   ⚠ Görünürlük el.hidden ile yönetilir → [hidden] kuralı ŞART: .sheet'in display:flex
   tarayıcı kuralını ezer, yoksa "gizli" katman her dokunuşu yutar (mağaza sayfasında
   yaşandı — §14.2).

   Renkler Esnafhan logosundan (lacivert + turuncu + yeşil) ve tanıtım sitesiyle AYNI
   (Site/src/styles/global.css). Koda renk gömülmez, değişken kullanılır: karanlık tema
   yalnız aşağıdaki değişken bloğunu değiştirir (§23.14).
   ============================================================================= */
[hidden] { display: none !important; }

:root {
    color-scheme: light dark;

    --navy: #13285E;
    --navyDeep: #0B1B41;
    --orange: #FF4A14;          /* ikon/vurgu */
    --brand: #E63C0A;           /* üstünde YAZI olan turuncu: beyaz yazı okunur kalsın */
    --brandInk: #FFFFFF;

    --bg: #F5F7FB;
    --card: #FFFFFF;
    --ink: #0B1324;
    --muted: #4B5870;
    --line: #E3E8F1;
    --link: #1D3A80;
    --glass: rgba(255, 255, 255, .88);      /* üst çubuk (Kurye PWA'sı ile aynı) */
    --navGlass: rgba(255, 255, 255, .94);   /* yüzen alt çubuk */
    --navInk: #8A96AD;                       /* seçili olmayan sekme */
    --navOn: #13285E;                        /* seçili sekme */
    --navOnBg: rgba(19, 40, 94, .09);

    --promoBg: #FFF2ED;  --promoLine: #FFD3C2;  --promoInk: #B8320A;
    --okBg: #DCFCE7;     --okLine: #BBF7D0;     --okInk: #166534;
    --warnBg: #FEF3C7;   --warnLine: #FDE68A;   --warnInk: #92400E;
    --star: #F59E0B;

    --radius: 16px;
    --shadow: 0 1px 2px rgba(11, 27, 65, .04), 0 6px 18px rgba(11, 27, 65, .07);
}

/* Karanlık tema İKİ yoldan gelir: sistem tercihi (kullanıcı seçmemişse) ya da üst çubuktaki tema düğmesi
   (`data-theme`). Aynı değişken listesi iki seçicide yazılır; birine eklenen diğerine de eklenir. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0A1226;
        --card: #131D38;
        --ink: #E8EDF7;
        --muted: #9AA8C2;
        --line: #26335A;
        --link: #9DB8FF;
        --brand: #F04A1A;
        --glass: rgba(11, 27, 65, .9);
        --navGlass: rgba(19, 29, 56, .94);
        --navInk: #8A96AD;
        --navOn: #FFFFFF;
        --navOnBg: rgba(255, 255, 255, .12);

        --promoBg: rgba(255, 74, 20, .14);  --promoLine: rgba(255, 74, 20, .38);  --promoInk: #FF9A78;
        --okBg: rgba(22, 163, 74, .16);     --okLine: rgba(22, 163, 74, .40);     --okInk: #86EFAC;
        --warnBg: rgba(245, 158, 11, .14);  --warnLine: rgba(245, 158, 11, .40);  --warnInk: #FCD34D;

        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0A1226;
    --card: #131D38;
    --ink: #E8EDF7;
    --muted: #9AA8C2;
    --line: #26335A;
    --link: #9DB8FF;
    --brand: #F04A1A;
    --glass: rgba(11, 27, 65, .9);
    --navGlass: rgba(19, 29, 56, .94);
    --navInk: #8A96AD;
    --navOn: #FFFFFF;
    --navOnBg: rgba(255, 255, 255, .12);

    --promoBg: rgba(255, 74, 20, .14);  --promoLine: rgba(255, 74, 20, .38);  --promoInk: #FF9A78;
    --okBg: rgba(22, 163, 74, .16);     --okLine: rgba(22, 163, 74, .40);     --okInk: #86EFAC;
    --warnBg: rgba(245, 158, 11, .14);  --warnLine: rgba(245, 158, 11, .40);  --warnInk: #FCD34D;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
}

:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    -webkit-tap-highlight-color: transparent;
}

h1, h2 { letter-spacing: -0.02em; line-height: 1.2; }

.ic {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------------- Üst çubuk ---------------- */

/* Kurye/Kasa PWA'larının üst çubuğu (Mobile.Shared pts-mobile.css .ptm-header): cam zemin, yatay logo,
   turuncu uygulama rozeti. Semtim düz statik olduğu için bileşen paylaşılamaz; ölçüler oradan kopyalandı. */
.top {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--glass);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    color: var(--ink);
}

.topIn { display: flex; align-items: center; gap: 8px; }

.brandBox { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }

.brandName { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }

.brandApp {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--promoBg);
    color: var(--promoInk);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* Yuvarlak simge düğmesi: üst çubukta profil, sayfa başında yenile. */
.iconBtn {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    color: var(--navOn);
    box-shadow: 0 2px 10px rgba(11, 27, 65, .06);
}

.iconBtn .ic { width: 20px; height: 20px; }
/* Tema düğmesi: aydınlıkta ay, karanlıkta güneş (dokununca ne olacağını gösterir). */
.iconBtn .ic.sun { display: none; }
:root[data-theme="dark"] .iconBtn .ic.sun { display: block; }
:root[data-theme="dark"] .iconBtn .ic.moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .iconBtn .ic.sun { display: block; }
    :root:not([data-theme="light"]) .iconBtn .ic.moon { display: none; }
}
.iconBtn[aria-pressed="true"] { background: var(--navOnBg); }
.iconBtn:disabled { opacity: .5; }

/* Sayfa başı: büyük başlık + sağda simge düğmesi (.ptm-page-head). */
.pageHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 2px 12px 2px;
}

.pageHead h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}

main { padding: 0 16px; }

/* ---------------- Karşılama (§23.14) ---------------- */

.welcome { padding-top: 16px; }

.hero {
    padding: 22px 18px;
    border-radius: 22px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 74, 20, .28), transparent 60%),
        linear-gradient(150deg, var(--navyDeep), var(--navy));
    color: #FFFFFF;
    box-shadow: var(--shadow);
}

.hero { position: relative; overflow: hidden; isolation: isolate; }

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(circle at 20% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(circle at 20% 0%, #000 0%, transparent 75%);
}

.hero h1 { margin: 0 0 8px 0; font-size: 27px; font-weight: 800; }

/* Ana ekrandaki semt kartı (Kurye "Durumunuz" kartının karşılığı). */
.homeHero { margin-bottom: 12px; padding: 18px 16px 16px 16px; }
.heroLabel { color: #B7C3DA; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.heroRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.heroText { min-width: 0; }
.heroTitle { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heroHint { color: rgba(255, 255, 255, .78); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.heroStats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }

.stat {
    min-width: 0;
    padding: 10px 10px 9px 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
}

.statLabel { color: #B7C3DA; font-size: 11px; font-weight: 600; }
.statValue { margin-top: 2px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero p { margin: 0 0 18px 0; color: rgba(255, 255, 255, .82); }

.steps { list-style: none; margin: 14px 0 0 0; padding: 0; display: grid; gap: 8px; }

.steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }

.stepIcon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--promoBg);
}

.steps .stepIcon .ic { width: 22px; height: 22px; color: var(--orange); }

.trust { list-style: none; margin: 14px 0 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.trust li { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--muted); }
.trust .ic { width: 16px; height: 16px; stroke-width: 3; color: var(--okInk); }

/* ---------------- Arama + eylemler ---------------- */

.searchRow { padding: 14px 0 4px 0; }

#search, #dirSearch {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7890' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 13px center / 20px no-repeat;
    color: var(--ink);
    font: inherit;
    box-shadow: var(--shadow);
}

#search:focus, #dirSearch:focus, .field input:focus, .field select:focus, .rateBox textarea:focus {
    outline: 2px solid var(--orange);
    outline-offset: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease;
}

.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; }

.btn.primary {
    width: 100%;
    background: var(--brand);
    border-color: var(--brand);
    color: var(--brandInk);
    font-weight: 700;
}

.btn.big { padding: 14px 16px; font-size: 17px; box-shadow: 0 8px 20px rgba(230, 60, 10, .35); }

/* Lacivert zemin üstünde ikincil düğme (karşılama). */
.btn.ghost {
    width: 100%;
    margin-top: 8px;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .24);
    color: #FFFFFF;
}

.btn.ghost.small { flex: none; width: auto; margin-top: 0; padding: 8px 12px; font-size: 13px; }

.actionRow { display: flex; gap: 8px; margin-top: 8px; }
.actionRow .btn { white-space: nowrap; }
.actionRow .btn .ic { color: var(--orange); }
.btn.nearby { flex: 1 1 auto; }

.actionRow .btn[data-on="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.actionRow .btn[data-on="true"] .ic { color: #FF8A5F; }

.trackToggle { width: 100%; margin: 4px 0 12px 0; }

/* ---------------- Kategori çipleri + liste bilgisi ---------------- */

.chips {
    display: flex;
    gap: 8px;
    margin: 12px -16px 0 -16px;
    padding: 0 16px 2px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }

.listInfo { margin: 12px 2px 0 2px; color: var(--muted); font-size: 13px; }

/* ---------------- Mağaza kartı ---------------- */

/* ⚠ Sütun minmax(0, 1fr) OLMALI: örtük "auto" sütun içeriğin en geniş satırına (tek satırlık .storeLine notu)
   göre büyür, kart telefonda ekranın dışına taşar ve üç nokta kısaltması hiç çalışmaz. */
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px 0 12px 0; }

.store {
    position: relative;
    display: flex;
    gap: 12px;
    /* Üstten hiza: iki sütunlu düzende kısa kartın yazısı ortalanınca logodan kopuyordu. */
    align-items: flex-start;
    padding: 12px 34px 12px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .12s ease;
}

.store:active { transform: scale(.985); }

/* Sağdaki ok: kartın dokunulabilir olduğunu söyler. */
.store::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-top: 2px solid var(--muted);
    transform: translateY(-50%) rotate(45deg);
    opacity: .55;
}

/* Mağaza logoları saydam olabilir → iki temada da beyaz zeminde dursun. */
.logo {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    background: #FFFFFF;
    border: 1px solid var(--line);
}

/* Mağaza hikâyesi (docs/SIPARIS-TAKIBI.md §14.19): Instagram gibi halka; hikâye oldukça HEP döner ("görüldü" yok, 12.11.2026). */
/* Mağaza sayfasıyla aynı; halkanın değil açının dönmesi köşeli logoyu bozmaz. */
@property --story-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 210deg;
}

@keyframes story-spin {
    to { --story-angle: 570deg; }
}

.storyRing {
    flex: 0 0 auto;
    display: inline-grid;
    padding: 4px;
    border-radius: 18px;
    cursor: pointer;
    background: conic-gradient(from var(--story-angle), #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
}

.storyRing {
    animation: story-spin 3s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .storyRing { animation: none; }
}

.storyRing .logo {
    border: 2px solid var(--bg, #FFFFFF);
}

.storyRing:focus-visible {
    outline: 3px solid var(--accent, #F97316);
    outline-offset: 2px;
}

.logoFallback {
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 24px;
    color: #FFFFFF;
    background: var(--navy);
    /* Karanlık temada lacivert karo lacivert kartta erimesin. */
    border: 1px solid rgba(255, 255, 255, .14);
}

.storeBody { min-width: 0; flex: 1 1 auto; }
.storeName { font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }

.storeLine {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.badge.free { background: var(--okBg); border-color: var(--okLine); color: var(--okInk); font-weight: 600; }

/* Kampanya rozeti — bilgi rozetlerinden AYRI, marka turuncusunda (§23.10): "indirim var" bir bakışta görünmeli. */
.badge.promo { background: var(--promoBg); border-color: var(--promoLine); color: var(--promoInk); font-weight: 700; }
/* QR menü bağlantısı (restoran): kartın içinde ayrı dokunma hedefi, yeni sekmede menu.esnafhan.com açar. */
.badge.menuLink { display: inline-block; margin-top: 6px; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Puan rozeti: bir bakışta "kaç yıldız" okunmalı. */
.badge.rate { background: var(--warnBg); border-color: var(--warnLine); color: var(--warnInk); font-weight: 700; }
.badge.dist { background: var(--card); }
.badge.founder { background: var(--brand); border-color: var(--brand); color: var(--brandInk); font-weight: 700; }

/* "Sana teslimat yok, ama gel al" kovası — kart yanlış beklenti yaratmamalı. */
.pickupOnly { color: var(--warnInk); font-size: 13px; margin-top: 4px; }

/* Yüklenirken iskelet kart: boş ekran "bozuk" izlenimi verir. */
.skeleton {
    height: 90px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(100deg, var(--card) 30%, var(--bg) 50%, var(--card) 70%) 0 0 / 300% 100%;
    animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

@media (prefers-reduced-motion: reduce) {
    .skeleton { animation: none; }
    .btn, .store { transition: none; }
}

/* ---------------- Boş durum / notlar ---------------- */

.empty { padding: 28px 8px; text-align: center; }
.emptyTitle { font-weight: 700; margin: 0 0 6px 0; }
.emptyHint { color: var(--muted); margin: 0 0 14px 0; }
.offline { text-align: center; color: var(--muted); font-size: 14px; }

.emptyIcon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px auto;
    border-radius: 18px;
    background: var(--promoBg);
}

.emptyIcon .ic { width: 28px; height: 28px; color: var(--orange); }

/* ---------------- Esnaf çağrısı (§23.14) ---------------- */

.merchant {
    display: grid;
    gap: 12px;
    margin: 18px 0 8px 0;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(150deg, var(--navyDeep), var(--navy));
    color: #FFFFFF;
    box-shadow: var(--shadow);
}

.merchantText b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.merchantText span { color: rgba(255, 255, 255, .8); font-size: 14px; }

/* ---------------- Semt seçimi ---------------- */

.sheet {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    background: rgba(6, 14, 34, .55);
}

.sheetBox {
    width: 100%;
    max-height: 88vh;
    overflow: auto;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom)) 16px;
    border-radius: 22px 22px 0 0;
    background: var(--card);
}

.sheetHead { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.sheetHint { color: var(--muted); font-size: 14px; margin: 6px 0 14px 0; }

.linkBtn { border: 0; background: none; color: var(--link); font: inherit; font-size: 16px; font-weight: 600; padding: 6px; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }

.field select, .field input, .field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    font: inherit;
}

.field textarea { resize: vertical; }

/* İl + ilçe yan yana (dar ekranda alt alta) */
.fieldRow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 360px) { .fieldRow { grid-template-columns: 1fr; } }

/* ---------------- Bilgilerim + bildirim (§23.15) ---------------- */

.profileSummary {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg);
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}

/* "Haber ver" kutusu: solda anlatım, sağda tek düğme — ilkokul mezunu bile ne yapacağını görsün */
.toggleCard { display: flex; align-items: center; gap: 12px; }
.toggleText { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.toggleText > span { color: var(--muted); font-size: 14px; }
/* ⚠ .btn.primary tam genişliktir; satır düzeninde metni tek kelimeye sıkıştırıp düğmeyi üstüne bindiriyordu (22.09.2026). */
.toggleCard .btn { flex: none; width: auto; padding: 10px 16px; }

/* ---------------- Alt gezinme ---------------- */

/* Yüzen cam alt çubuk (Kurye PWA'sı .ptm-nav): başparmak erişimi için ekranın altında, kenarlardan boşluklu. */
.bottom {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 10;
    display: flex;               /* gizli sekme (anahtarsız Harita) boşluk bırakmaz */
    align-items: center;
    height: 66px;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--navGlass);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    box-shadow: 0 16px 44px rgba(11, 27, 65, .14);
}

.navBtn[hidden] { display: none; }

.navBtn {
    position: relative;
    flex: 1;
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 3px;
    min-height: 52px;
    align-content: center;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--navInk);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
}

.navBtn .ic { width: 22px; height: 22px; padding: 3px 14px; border-radius: 999px; box-sizing: content-box; }
.navBtn[aria-selected="true"] { color: var(--navOn); }
.navBtn[aria-selected="true"] .ic { background: var(--navOnBg); }

/* Ortadaki ana eylem: turuncu, çubuktan yukarı taşan yuvarlatılmış kare (.ptm-nav-primary). */
.navBtn.primary .ic {
    width: 24px;
    height: 24px;
    margin-top: -30px;
    padding: 15px;
    border-radius: 18px;
    background: linear-gradient(135deg, #FF6B3D 0%, var(--orange) 55%, var(--brand) 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(255, 74, 20, .38), 0 0 0 5px var(--card);
}

.navBtn.primary[aria-selected="true"] { color: var(--brand); }
.navBtn.primary[aria-selected="true"] .ic { background: linear-gradient(135deg, #FF6B3D 0%, var(--orange) 55%, var(--brand) 100%); }

/* ---------------- Siparişlerim (§23.9) ---------------- */

.card {
    padding: 14px;
    margin: 12px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.note {
    margin: 0 0 10px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--warnBg);
    color: var(--warnInk);
    font-size: 14px;
}

.order { display: block; padding: 14px; }
.orderHead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.orderStore { font-weight: 700; }
.orderDate { color: var(--muted); font-size: 12px; white-space: nowrap; }
.orderStatus { margin-top: 8px; font-weight: 700; color: var(--brand); }
.orderStatus.done { color: var(--okInk); }
.orderNext { color: var(--muted); font-size: 14px; margin-top: 2px; }
.orderContract { display: inline-block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.orderSub { margin: 18px 4px 8px; font-size: 16px; }

.orderMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

/* Havale kutusu (docs/MODULES.md §Havale / EFT) */
.transferBox { display: grid; gap: 8px; margin-top: 12px; }
.transferRow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--chip, rgba(127,127,127,.12)); }
.transferRow span { min-width: 64px; color: var(--muted); font-size: 13px; }
.transferRow strong { flex: 1; word-break: break-all; }
.transferRow .btn.small { flex: none; width: auto; margin-top: 0; padding: 6px 10px; font-size: 13px; }

.orderActions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.orderActions .btn { padding: 8px 12px; font-size: 14px; }

/* ---------------- Puan (§23.11) ---------------- */

.stars { display: flex; gap: 4px; margin-top: 8px; }

.star {
    border: 0;
    background: none;
    padding: 2px 4px;
    font-size: 28px;
    line-height: 1;
    color: var(--line);
    cursor: pointer;
}

.star[data-on="true"] { color: var(--star); }

.rateBox { margin-top: 10px; }
.rateBox textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
    resize: vertical;
}

.rateDone { margin-top: 8px; color: var(--okInk); font-size: 14px; font-weight: 600; }
.rateHint { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---------------- Harita görünümü (§23.13) ---------------- */

/* Tam sayfa harita sekmesi: üst çubuğun altından ekranın dibine; alt çubuk üstünde yüzer. */
.mapView {
    position: fixed;
    top: var(--topH, 60px);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    z-index: 1;
    background: var(--bg);
}

.mapView[hidden] { display: none; }

#map { position: absolute; inset: 0; }

.mapNote {
    position: absolute;
    top: 12px;
    left: 16px;
    right: 16px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow);
    font-size: 14px;
    text-align: center;
}

/* "Semtim" (çerçeveyi semte döndür) sağ altta, alt çubuğun üstünde; mağaza kartı açıkken gizlenir. */
.mapRecenter { position: absolute; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); padding: 8px 12px; font-size: 13px; box-shadow: var(--shadow); }

/* Logo pin'i: beyaz yuvarlak plaka + halka (teslimat yapan lacivert, yalnız Gel Al turuncu); logosuzda ilk harf. */
.mapPin {
    position: absolute;
    width: 42px;
    height: 42px;
    padding: 0;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid var(--navy);
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--navy);
    font: 700 17px/1 system-ui, sans-serif;
    box-shadow: 0 4px 12px rgba(11, 27, 65, .28);
    cursor: pointer;
}

.mapPin img { width: 100%; height: 100%; padding: 3px; box-sizing: border-box; object-fit: contain; border-radius: 50%; }
.mapPin.pickup { border-color: #F59E0B; color: #B45309; }

/* Pin'e dokununca açılan kart alt çubuğun üstünde yaprak gibi durur. */
.mapCard {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    margin: 0;
    max-width: 560px;
    margin-inline: auto;
}

/* ---------------- Esnafhan sekmesi (§23.14) ---------------- */

.about h2 { margin: 0 0 8px 0; font-size: 18px; }
.about p { margin: 0 0 10px 0; color: var(--muted); }
.about p:last-child { margin-bottom: 0; }
.about .steps { margin-top: 0; }
.about .steps li { background: var(--bg); }

.logoPlate {
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid var(--line);
}

.logoPlate img { max-width: 100%; width: 230px; height: auto; }

.about details { border-top: 1px solid var(--line); }
.about details:first-of-type { border-top: 0; }

.about summary {
    position: relative;
    padding: 12px 26px 12px 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.about summary::-webkit-details-marker { display: none; }

.about summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .15s ease;
}

.about details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.about details p { margin: 0 0 12px 0; font-size: 15px; }

.foot { text-align: center; margin: 16px 0 8px 0; font-size: 14px; }
.foot a { color: var(--link); font-weight: 600; }

/* ---------------- Geniş ekran ---------------- */

@media (min-width: 720px) {
    main { max-width: 960px; margin-inline: auto; }
    /* main'in 16px iç boşluğu genişliğe dahildir → üst çubuk içeriği aynı hizaya 928 ile gelir. */
    .topIn { max-width: 928px; margin-inline: auto; }
    .list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .welcome { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 20px; align-items: start; }
    .hero { grid-row: span 2; padding: 34px 28px; }
    .hero h1 { font-size: 36px; }
    .steps { margin-top: 0; }
    .merchant { grid-template-columns: 1fr auto; align-items: center; padding: 20px 24px; }
    .merchant .btn.primary { width: auto; }
    #viewAbout, #viewOrders { max-width: 640px; }
    .sheet { align-items: center; justify-content: center; }
    .sheetBox { max-width: 460px; border-radius: 22px; }
    .bottom { grid-template-columns: repeat(3, minmax(0, 170px)); justify-content: center; }
}

/* Yuva arayanlar (docs/HIZMET-SATISI.md §20.5): yatay kaydırılan hayvan kartları — renkler değişkenlerden. */
.adoptBox { margin: 4px 0 14px; }
.adoptHead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.adoptHead h2 { font-size: 17px; margin: 0; }
.adoptHead span { font-size: 12px; color: var(--muted); }
.adoptList { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.adoptList::-webkit-scrollbar { display: none; }
.adoptCard {
    flex: 0 0 148px; scroll-snap-align: start; text-decoration: none; color: inherit;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; padding-bottom: 8px;
}
.adoptImg { width: 100%; aspect-ratio: 1; background: var(--line); display: flex; align-items: center; justify-content: center; }
.adoptImg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adoptImg .ic { width: 36px; height: 36px; color: var(--muted); }
.adoptName { font-weight: 700; font-size: 14px; padding: 6px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adoptLine { font-size: 12px; color: var(--muted); padding: 2px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adoptStore { font-size: 11px; color: var(--muted); padding: 4px 8px 0; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Konaklama (docs/OTEL.md O25) — otel kartı otelin rezervasyon sayfasına götürür. */
.stayCard { display: block; text-decoration: none; color: inherit; margin-bottom: 10px; }
.stayCard strong { font-size: 17px; }
.stayMeta { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.stayPrice { font-weight: 700; }
.stayGo { color: var(--orange); font-weight: 600; font-size: 14px; margin-top: 6px; }

/* İşletme dizini (BYDY BP11) */
.modeRow { display: flex; gap: 8px; margin: 4px 0 10px; }
.dirCard { margin-bottom: 10px; }
.dirCard strong { font-size: 17px; }
.dirLine { margin: 4px 0; font-size: 14px; }
.dirActions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dirActions .btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
