/* ============================================================
   Kardeşler Lastik — Envanter & Depo Yönetimi
   Tasarım dili: lastik yanağı (sidewall) tipografisi,
   asfalt + lacivert + GoodYear sarısı.
   ============================================================ */

:root {
    --asfalt:   #101418;  /* metin, koyu zemin */
    --lacivert: #0b2a55;  /* birincil marka */
    --lacivert-koyu: #071c3a;
    --sari:     #ffd100;  /* aksiyon / vurgu */
    --sari-koyu:#e6b800;
    --beton:    #f2f3f5;  /* açık zemin */
    --cizgi:    #d9dde3;  /* hairline */
    --gri:      #5b6572;  /* ikincil metin */
    --hata:     #b3261e;
    --hata-zemin: #fdecea;
    --basari:   #1e6b3a;
    --basari-zemin: #e7f4ec;
    --uyari:    #8a5a00;  --uyari-zemin: #fff4d6;  /* dikkat / düşük stok */
    --bilgi:    #0b4a7a;  --bilgi-zemin: #e3f0fb;  /* nötr bilgi */
    --yuzey-2:  #f8f9fb;  /* zebra satır, ikincil yüzey */

    --display: "Saira Condensed", "Arial Narrow", sans-serif;
    --govde: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

    --radius: 12px;
    --radius-sm: 10px;
    --radius-lg: 16px;
    --dokunma: 48px; /* min dokunma hedefi */

    /* Boşluk ölçeği (4px tabanlı) */
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

    --golge-1: 0 1px 2px rgba(7,18,38,.06), 0 1px 3px rgba(7,18,38,.08);
    --golge-2: 0 8px 24px rgba(7,18,38,.12);
    --golge-3: 0 16px 48px rgba(7,18,38,.35);

    --z-topbar: 10; --z-dropdown: 20; --z-sticky-bar: 30;
    --z-overlay: 40; --z-modal: 50; --z-toast: 60;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--govde);
    color: var(--asfalt);
    background: var(--beton);
    line-height: 1.55;
    min-height: 100vh;
    min-height: 100dvh;
}

a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--sari);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Wordmark ──────────────────────────────────────────── */

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.wordmark-logo {
    width: auto;
    height: 34px;
    flex: none;
}

.wordmark-center .wordmark-logo {
    height: 48px;
}

.wordmark-text {
    font-family: var(--display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.06em;
    color: var(--asfalt);
    white-space: nowrap;
}

.wordmark-text em {
    font-style: normal;
    color: var(--lacivert);
}

/* topbar wordmark — büyük + italik (aynı font: Saira Condensed) */
.topbar-app .wordmark-text { font-size: 26px; font-style: italic; }
.topbar-app .wordmark-text em { font-style: italic; }

/* koyu zeminde */
.page-auth .wordmark-text { color: #fff; }
.page-auth .wordmark-text em { color: var(--sari); }

.wordmark-center {
    justify-content: center;
    margin-bottom: 28px;
}

/* ── Butonlar ─────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--dokunma);
    padding: 0 22px;
    border: 0;
    border-radius: var(--radius);
    font-family: var(--display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.08s ease, background-color 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--sari);
    color: var(--asfalt);
}
.btn-primary:hover { background: var(--sari-koyu); }

.btn-secondary {
    background: var(--lacivert);
    color: #fff;
}
.btn-secondary:hover { background: #0e376e; }

/* QR okuyucu — sarı zemin, lacivert ikon + yazı */
.btn-qr {
    background: var(--sari);
    color: var(--lacivert);
}
.btn-qr:hover { background: var(--sari-koyu); }

.btn-ghost {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--sari); color: var(--sari); }

.topbar-app .btn-ghost {
    color: var(--asfalt);
    box-shadow: inset 0 0 0 2px var(--cizgi);
}
.topbar-app .btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--lacivert); color: var(--lacivert); }

/* İç sistem (açık zemin): ghost buton koyu metin — beyazı yalnız landing/auth kullanır */
.page-app .btn-ghost {
    color: var(--asfalt);
    box-shadow: inset 0 0 0 2px var(--cizgi);
}
.page-app .btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--lacivert); color: var(--lacivert); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { font-size: 19px; padding: 0 32px; }
.btn-block { display: flex; width: 100%; }

/* ── Topbar ───────────────────────────────────────────── */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    padding-top: calc(14px + env(safe-area-inset-top));
}

.topbar-app {
    background: #fff;
    border-bottom: 1px solid var(--cizgi);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ============================================================
   Landing (kaydırmalı vitrin sayfası)
   ============================================================ */

.page-landing {
    background: var(--lacivert);
}

/* İçerik genişlik sarıcısı — tüm bölümlerde ortak */
.lp-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding-inline: 22px;
}

/* ── Landing nav (hero üzerinde, sabit) ───────────────── */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: var(--z-topbar);
    background: rgba(7, 28, 58, 0.72);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.lp-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 22px;
    padding-top: calc(12px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    gap: 20px;
}

.lp-nav .wordmark-text { color: #fff; }
.lp-nav .wordmark-text em { color: var(--sari); }

.lp-nav-links {
    display: none;
    gap: 28px;
    margin-left: auto;
}
.lp-nav-links a {
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.15s ease;
}
.lp-nav-links a:hover { color: var(--sari); }

.lp-nav-cta { margin-left: auto; }
.lp-nav-links + .lp-nav-cta { margin-left: 0; }

@media (min-width: 860px) {
    .lp-nav-links { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
    position: relative;
    background:
        /* diyagonal sırt (tread) dokusu */
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.035) 0 16px,
            transparent 16px 40px
        ),
        radial-gradient(120% 80% at 80% 0%, rgba(255, 209, 0, 0.10) 0%, transparent 55%),
        linear-gradient(180deg, var(--lacivert-koyu) 0%, var(--lacivert) 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 84vh;
}

.hero-inner {
    max-width: 1120px;
    width: 100%;
    margin: auto;
    padding: 72px 22px 56px;
    text-align: left;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sari);
    margin-bottom: 18px;
    padding: 6px 14px 6px 12px;
    border-radius: 999px;
    background: rgba(255, 209, 0, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 209, 0, 0.30);
}
.eyebrow svg { width: 16px; height: 16px; flex: none; }

.hero-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(40px, 8.5vw, 76px);
    line-height: 1.0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
}

.hero-sub {
    font-size: clamp(16px, 2.2vw, 19px);
    color: rgba(255, 255, 255, 0.78);
    max-width: 52ch;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Lastik yanağı bandı — hero'nun alt sınırında kabartma hissi */
.sidewall {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    white-space: nowrap;
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.34);
}

.sidewall .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sari);
    opacity: 0.6;
    flex: none;
}

/* ── Ortak bölüm başlıkları ───────────────────────────── */
.lp-section { padding: 72px 0; background: var(--beton); }
.lp-section + .lp-section { padding-top: 0; }

.lp-head { max-width: 620px; margin-bottom: 40px; }

.lp-kicker {
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lacivert);
    margin-bottom: 10px;
}
.lp-kicker--gold { color: var(--sari); }

.lp-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.04;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--asfalt);
}
.lp-title--light { color: #fff; }

.lp-lead {
    font-size: 17px;
    color: var(--gri);
    margin-top: 14px;
    max-width: 56ch;
}
.lp-lead--light { color: rgba(255, 255, 255, 0.78); }

/* ── Hizmet kartları ──────────────────────────────────── */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 620px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }

.svc-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 22px;
    background: #fff;
    border: 1px solid var(--cizgi);
    border-radius: var(--radius-lg);
    box-shadow: var(--golge-1);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.svc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--golge-2);
    border-color: var(--lacivert);
}

.svc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--lacivert);
    color: #fff;
    flex: none;
}
.svc-icon svg { width: 26px; height: 26px; }

.svc-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--asfalt);
}
.svc-desc { font-size: 14.5px; color: var(--gri); line-height: 1.55; }

/* GoodYear kartı — sarı aksan */
.svc-card--goodyear {
    box-shadow: inset 0 3px 0 var(--sari), var(--golge-1);
}
.svc-card--goodyear .svc-icon { background: var(--sari); color: var(--lacivert); }

/* ── GoodYear bandı (koyu) ────────────────────────────── */
.lp-goodyear {
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.03) 0 16px,
            transparent 16px 40px
        ),
        linear-gradient(180deg, var(--lacivert) 0%, var(--lacivert-koyu) 100%);
    padding: 76px 0;
}
.lp-goodyear-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 860px) {
    .lp-goodyear-inner { grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
}

.lp-goodyear-frame {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--golge-3), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lp-goodyear-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-checks {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lp-checks li {
    position: relative;
    padding-left: 34px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}
.lp-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sari);
    /* onay ikonu */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E") center / 15px no-repeat, linear-gradient(#000 0 0);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E") center / 15px no-repeat;
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

/* ── Galeri ───────────────────────────────────────────── */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cizgi);
    box-shadow: var(--golge-1);
}
.gallery-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.gallery-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item figcaption {
    padding: 12px 16px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--asfalt);
}

/* ── Görsel yer tutucu (placeholder) ──────────────────── */
.ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius-lg);
    color: var(--gri);
    background:
        repeating-linear-gradient(135deg, rgba(11, 42, 85, 0.04) 0 12px, transparent 12px 24px),
        var(--yuzey-2);
    border: 1.5px dashed var(--cizgi);
    text-align: center;
    padding: 20px;
}
.ph svg { width: 40px; height: 40px; opacity: 0.5; }
.ph span {
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-square { aspect-ratio: 1 / 1; }
/* koyu bant içindeki placeholder */
.lp-goodyear .ph {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 12px, transparent 12px 24px),
        rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.20);
    color: rgba(255, 255, 255, 0.65);
}

/* ── İletişim / CTA ───────────────────────────────────── */
.lp-cta {
    background: var(--asfalt);
    padding: 76px 0;
}
.lp-cta-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 860px) {
    .lp-cta-inner { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}
.lp-cta-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.lp-cta-actions .btn { margin-top: 0; }
.lp-review-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 15px 26px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease;
}
.lp-review-link:hover {
    border-color: var(--sari);
    background: rgba(255, 255, 255, 0.06);
}
.lp-review-ico {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    flex-shrink: 0;
}
.lp-review-ico--ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    color: var(--sari);
}
.lp-review-ico--ig svg { width: 22px; height: 22px; }

.lp-contact { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lp-contact li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius);
}
.lp-contact-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 209, 0, 0.12);
    color: var(--sari);
}
.lp-contact-ico svg { width: 22px; height: 22px; }
.lp-contact-k {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.lp-contact-v { display: block; color: #fff; font-size: 16px; font-weight: 600; margin-top: 2px; }

.lp-hours { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.lp-hours > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.lp-hours dt { color: rgba(255, 255, 255, 0.7); font-size: 14.5px; }
.lp-hours dd { margin: 0; color: #fff; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Footer ───────────────────────────────────────────── */
.lp-footer {
    background: var(--lacivert-koyu);
    padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.lp-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
}
.lp-footer .wordmark-text { color: #fff; }
.lp-footer .wordmark-text em { color: var(--sari); }
.lp-footer-note { color: rgba(255, 255, 255, 0.7); font-size: 14.5px; }
.lp-footer-copy { color: rgba(255, 255, 255, 0.45); font-size: 13px; }

@media (min-width: 720px) {
    .lp-footer-inner { flex-direction: row; text-align: left; }
    .lp-footer-note { margin-left: 8px; }
    .lp-footer-copy { margin-left: auto; }
}

/* ── Auth sayfaları ───────────────────────────────────── */

.page-auth {
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.03) 0 16px,
            transparent 16px 40px
        ),
        linear-gradient(180deg, var(--lacivert-koyu) 0%, var(--lacivert) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrap {
    width: 100%;
    max-width: 420px;
    padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
    text-align: center;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 16px 48px rgba(7, 18, 38, 0.35);
    text-align: left;
}

.auth-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auth-sub {
    font-size: 14.5px;
    color: var(--gri);
    margin: 6px 0 20px;
}

.auth-foot {
    margin-top: 20px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Form ─────────────────────────────────────────────── */

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    min-height: var(--dokunma);
    padding: 0 14px;
    font-size: 16px; /* iOS zoom engellemek için ≥16px */
    font-family: var(--govde);
    border: 1.5px solid var(--cizgi);
    border-radius: var(--radius);
    background: #fff;
    color: var(--asfalt);
}

.field input:focus {
    outline: none;
    border-color: var(--lacivert);
    box-shadow: 0 0 0 3px rgba(11, 42, 85, 0.15);
}

/* ── Uyarılar ─────────────────────────────────────────── */

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-error   { background: var(--hata-zemin);   color: var(--hata); }
.alert-success { background: var(--basari-zemin); color: var(--basari); }

/* ── Panel (dashboard) ────────────────────────────────── */

.app-main {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 18px calc(32px + env(safe-area-inset-bottom));
}

.btn-back { display: none; margin-bottom: 12px; }
@media (min-width: 720px) { .btn-back { display: inline-flex; } }

.page-head { margin-bottom: 20px; }

.page-head h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}
.head-row-end { margin-left: auto; }

.head-row h1 { flex: 1 1 auto; }

.head-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

@media (max-width: 560px) {
    /* Firma adı tam satırı kaplar; butonlar altına, sağa yaslı kayar. */
    .head-row h1 { flex-basis: 100%; }
    .head-actions { margin-top: 4px; }

    /* Topbar butonları mobilde sadece ikon (QR Okut, Panele dön, Ayarlar, Çıkış) */
    .topbar-app .btn-label { display: none; }
    .topbar-app .topbar-actions .btn-sm:has(svg) { width: 40px; padding: 0; }
    .topbar-app .topbar-actions .btn svg { margin-right: 0; }
}

.muted { color: var(--gri); font-size: 14px; }

.tile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: 110px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--cizgi);
    border-radius: var(--radius);
    text-decoration: none;
}

.tile-label {
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tile-note {
    font-size: 12.5px;
    color: var(--gri);
}

.tile-disabled { opacity: 0.55; cursor: default; }

/* ── Geniş ekran ayarları ─────────────────────────────── */

@media (min-width: 720px) {
    .hero-inner { max-width: 720px; }
    .tile-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   İç sistem — envanter/depo ekranları
   ============================================================ */

/* ── Geniş içerik + tile davranışı ────────────────────── */
.app-main--wide { max-width: 1280px; }
/* Ayarlar sayfası: sekmeli düzen daha çok yatay alan ister */
.app-main--settings { max-width: 1280px; }

.tile:not(.tile-disabled) { transition: border-color .15s ease, box-shadow .15s ease; }
.tile:not(.tile-disabled):hover { border-color: var(--lacivert); box-shadow: var(--golge-1); }
.tile-value { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--lacivert); line-height: 1; }
.tile-value small { font-family: var(--govde); font-size: 15px; font-weight: 600; color: var(--gri); margin-left: 4px; }

/* KPI özet ızgarası */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: var(--sp-4); }
.tile-stat { min-height: 96px; }

/* aksiyon tile'ı: alt satırda not + ok */
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-arrow { width: 22px; height: 22px; color: var(--lacivert); flex: none; }

/* birincil aksiyon tile'ı — lacivert zemin + sarı aksan (ana akış) */
.tile-hero { grid-column: 1 / -1; min-height: 0; padding: 24px; gap: 12px; }
.tile-hero .tile-label { font-size: 24px; }
.tile-primary {
    background: var(--lacivert);
    border-color: var(--lacivert);
    color: #fff;
    box-shadow: inset 4px 0 0 var(--sari), var(--golge-1);
}
.tile-primary .tile-label { color: #fff; }
.tile-primary .tile-note { color: rgba(255, 255, 255, .72); }
.tile-primary .tile-arrow { color: var(--sari); width: 26px; height: 26px; }
.tile-primary:not(.tile-disabled):hover {
    background: var(--lacivert-koyu);
    border-color: var(--lacivert-koyu);
    box-shadow: inset 4px 0 0 var(--sari), var(--golge-2);
}

/* panel bölüm başlıkları arası nefes */
.app-main > .section-title { margin-top: var(--sp-5); }
.app-main > .section-title:first-of-type { margin-top: 0; }

@media (min-width: 720px) {
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Bölüm başlığı ────────────────────────────────────── */
.section-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--asfalt);
    margin-bottom: var(--sp-4);
}

/* ── Form kartı (panel yüzeyi — hafif gölge) ──────────── */
.form-card {
    background: #fff;
    border: 1px solid var(--cizgi);
    border-radius: var(--radius-lg);
    box-shadow: var(--golge-1);
    padding: var(--sp-5);
    margin-bottom: var(--sp-4);
}

/* ── Butonlar (iç sistem varyantları) ─────────────────── */
.btn-danger { background: var(--hata); color: #fff; }
.btn-danger:hover { background: #8f1e17; }

/* Ghost-danger: kırmızı çerçeve + yazı, hover'da dolu kırmızı (topbar çıkış) */
.btn-danger-ghost {
    background: transparent;
    color: var(--hata);
    box-shadow: inset 0 0 0 2px var(--hata);
}
.btn-danger-ghost:hover { background: var(--hata); color: #fff; box-shadow: none; }
/* topbar-app .btn-ghost genel kuralını ez */
.topbar-app .btn-danger-ghost { color: var(--hata); box-shadow: inset 0 0 0 2px var(--hata); }
.topbar-app .btn-danger-ghost:hover { color: #fff; box-shadow: none; }
.btn svg { width: 20px; height: 20px; margin-right: 8px; flex: none; }
.btn-icon { padding: 0; width: var(--dokunma); }
.btn:disabled { opacity: .5; cursor: default; pointer-events: none; }

/* ── Form: select / textarea / check ──────────────────── */
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--govde);
    font-size: 16px;
    border: 1.5px solid var(--cizgi);
    border-radius: var(--radius);
    background: #fff;
    color: var(--asfalt);
}
.field select {
    min-height: var(--dokunma);
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b6572' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--lacivert);
    box-shadow: 0 0 0 3px rgba(11, 42, 85, .15);
}

.field-label-static {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.field-help  { font-size: 13px; color: var(--gri); margin-top: 6px; }
.field-help--ok { color: var(--basari); font-weight: 600; }
.field-error { font-size: 13px; color: var(--hata); margin-top: 6px; }
.field--error input,
.field--error select { border-color: var(--hata); }
.field--error input:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }

/* ── Combobox / canlı öneri (plaka) ───────────────────── */
.combo { position: relative; }
.combo-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: var(--z-dropdown);
    margin: 0;
    padding: 4px;
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1.5px solid var(--cizgi);
    border-radius: var(--radius);
    box-shadow: var(--golge-2);
}
.combo-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.combo-item:hover,
.combo-item.is-active { background: var(--yuzey-2); }
.combo-item-baslik { font-weight: 700; letter-spacing: .02em; }
.combo-item-alt { font-size: 13px; color: var(--gri); }

/* ── Aranabilir seçim (tıkla-yaz, mobil) ──────────────── */
.ssel { position: relative; }
.ssel-input {
    width: 100%; min-height: var(--dokunma);
    padding: 0 40px 0 14px;
    font-size: 16px; font-family: var(--govde);
    border: 1.5px solid var(--cizgi);
    border-radius: var(--radius);
    background: #fff; color: var(--asfalt);
    text-overflow: ellipsis;
}
.ssel-input:focus {
    outline: none; border-color: var(--lacivert);
    box-shadow: 0 0 0 3px rgba(11, 42, 85, .15);
}
.ssel-arrow {
    position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
    color: var(--gri); pointer-events: none; transition: transform .15s ease;
}
.ssel.is-open .ssel-arrow { transform: translateY(-50%) rotate(180deg); }
.ssel-list {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    z-index: var(--z-dropdown);
    list-style: none; margin: 0; padding: 6px;
    max-height: 260px; overflow-y: auto;
    background: #fff;
    border: 1.5px solid var(--cizgi);
    border-radius: var(--radius);
    box-shadow: var(--golge-2);
}
.ssel-group {
    padding: 8px 12px 4px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: var(--gri);
}
.ssel-opt { padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.ssel-opt:hover,
.ssel-opt.is-active { background: var(--yuzey-2); }
.ssel-opt.is-selected { color: var(--lacivert); font-weight: 700; }
.ssel-empty { padding: 12px; color: var(--gri); font-size: 14px; text-align: center; }
.field--error .ssel-input { border-color: var(--hata); }

/* onay kutusu */
.check { display: flex; align-items: center; gap: 10px; min-height: var(--dokunma); }
.check input { width: 22px; height: 22px; accent-color: var(--lacivert); flex: none; }
.check span { font-size: 15px; }
.field--check { margin-bottom: 16px; }

/* ── Form düzeni ──────────────────────────────────────── */
.field-row { display: grid; gap: var(--sp-4); margin-bottom: 16px; }
.field-row .field { margin-bottom: 0; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); }
.form-actions .btn { flex: 1; }

/* Üstteki sola yaslı geri butonu — yalnız masaüstü/tablet */
.back-top { margin-bottom: var(--sp-4); }
.back-top .btn { flex: none; }
@media (max-width: 719px) {
    .back-top { display: none; }
    .form-actions--sticky {
        position: sticky;
        bottom: 0;
        z-index: var(--z-sticky-bar);
        background: var(--beton);
        padding: var(--sp-3) 0 calc(var(--sp-3) + env(safe-area-inset-bottom));
        box-shadow: 0 -1px 0 var(--cizgi);
    }
}
/* Masaüstünde sabitlik kalksın; buton satırı normal akışta görünsün */
@media (min-width: 720px) {
    .form-actions--sticky {
        position: static;
        background: none;
        padding: 0;
        box-shadow: none;
    }
}

/* Mobilde ekranın en altında sabit geri butonu */
.back-fixed { display: none; }
@media (max-width: 719px) {
    .back-fixed {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: var(--z-sticky-bar);
        background: var(--beton);
        padding: var(--sp-3) 18px calc(var(--sp-3) + env(safe-area-inset-bottom));
        box-shadow: 0 -1px 0 var(--cizgi);
    }
    /* Sabit bar içeriği örtmesin diye alta boşluk bırak */
    .app-main--has-back-fixed { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ── Segmented control (set / tekli) ──────────────────── */
.segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--yuzey-2);
    border: 1px solid var(--cizgi);
    border-radius: var(--radius);
}
.seg { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gri);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.seg input:checked + span { background: var(--lacivert); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--sari); outline-offset: 2px; }

/* ── Lastik pozisyon satırları ────────────────────────── */
.tire-block-note { margin-bottom: var(--sp-3); }
.tire-row {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-3);
    border: 1px solid var(--cizgi);
    border-radius: var(--radius);
    margin-bottom: var(--sp-2);
    background: var(--yuzey-2);
}
.tire-pos {
    flex: none;
    width: 84px;
    padding-top: 10px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--lacivert);
}
.tire-inputs { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.tire-inputs .field { margin-bottom: 0; }
.tire-inputs label { font-size: 12.5px; }

/* ── Künye (key-value) ────────────────────────────────── */
.kv { display: grid; grid-template-columns: 1fr; gap: 0; }
.kv > div {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: 10px 0;
    border-bottom: 1px solid var(--cizgi);
}
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--gri); font-size: 14px; }
.kv dd { font-weight: 600; text-align: right; }
@media (min-width: 720px) {
    .kv { grid-template-columns: 1fr 1fr; column-gap: var(--sp-8); }
    .kv > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* ── Rozetler ─────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.badge-ok   { background: var(--basari-zemin); color: var(--basari); }
.badge-warn { background: var(--uyari-zemin);  color: var(--uyari); }
.badge-out  { background: var(--hata-zemin);   color: var(--hata); }
.badge-info { background: var(--bilgi-zemin);   color: var(--bilgi); }
.badge-in   { background: var(--basari-zemin); color: var(--basari); }
.badge-neutral { background: var(--yuzey-2); color: var(--gri); box-shadow: inset 0 0 0 1px var(--cizgi); }

/* ── Uyarı varyantları ────────────────────────────────── */
.alert-warn { background: var(--uyari-zemin); color: var(--uyari); }
.alert-info { background: var(--bilgi-zemin); color: var(--bilgi); }

/* ── Listeler (mobil satır) ───────────────────────────── */
.list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
/* uzun bağlı listeler: sabit tavan + kaydırma */
.list--scroll { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; margin: -2px; }
.row {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-height: 64px;
    padding: var(--sp-3) var(--sp-4);
    background: #fff;
    border: 1px solid var(--cizgi);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--asfalt);
}
.row:active { background: var(--yuzey-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { display: block; font-size: 13px; color: var(--gri); margin-top: 2px; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Bilgi çipleri (satır içi sayaçlar) ───────────────── */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-2); }
.chip {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: 12.5px;
    color: var(--gri);
    background: var(--yuzey-2);
    border: 1px solid var(--cizgi);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}
.chip b { color: var(--asfalt); font-weight: 700; font-variant-numeric: tabular-nums; }
/* çipli satırlarda üst hizala; buton dikeyde ortalanmasın */
.row--rich { align-items: flex-start; }
.row--rich .row-end { align-self: center; }

/* ── Tablo (masaüstü) ─────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--cizgi);
    border-radius: var(--radius);
    background: #fff;
}
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th {
    font-family: var(--display);
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gri);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--cizgi);
    background: var(--yuzey-2);
    white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--cizgi); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--yuzey-2); }
.table .num, .table th.num { text-align: right; }

/* mobilde liste, masaüstünde tablo */
.list { display: flex; }
.table-wrap { display: none; }
@media (min-width: 720px) {
    .list { display: none; }
    .table-wrap { display: block; }
    /* tablo eşi olmayan bilgi listeleri masaüstünde de görünür kalır */
    .list.list--plain { display: flex; }
}

/* ── Boş durum ────────────────────────────────────────── */
.empty { text-align: center; padding: var(--sp-10) var(--sp-4); color: var(--gri); }
.empty svg { width: 48px; height: 48px; opacity: .4; margin-bottom: var(--sp-3); }
.empty-title { font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--asfalt); }
.empty-sub { font-size: 14px; margin: 4px 0 var(--sp-4); }

/* iç sistemde tire-inputs mobilde tek kolon */
@media (max-width: 519px) {
    .tire-inputs { grid-template-columns: 1fr 1fr; }
}

/* ── Arama & filtre çubuğu ────────────────────────────── */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    align-items: center;
    padding: var(--sp-3) 18px;
    background: #fff;
    border-bottom: 1px solid var(--cizgi);
}
.search { position: relative; flex: 1 1 220px; }
.search svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: var(--gri); pointer-events: none;
}
.search input {
    width: 100%; min-height: 44px; padding: 0 12px 0 40px;
    font-family: var(--govde); font-size: 16px; color: var(--asfalt);
    border: 1.5px solid var(--cizgi); border-radius: var(--radius); background: #fff;
}
.search input:focus { outline: none; border-color: var(--lacivert); box-shadow: 0 0 0 3px rgba(11, 42, 85, .15); }

.toolbar-select {
    min-height: 44px; padding: 0 34px 0 12px;
    font-family: var(--govde); font-size: 15px; color: var(--asfalt);
    border: 1.5px solid var(--cizgi); border-radius: var(--radius); background: #fff;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b6572' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    flex: 0 1 auto;
}
.toolbar-select:focus { outline: none; border-color: var(--lacivert); box-shadow: 0 0 0 3px rgba(11, 42, 85, .15); }
.toolbar .btn { flex: 0 0 auto; }

/* ── Hareket zaman çizelgesi ──────────────────────────── */
.timeline { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.tl-item {
    display: flex; align-items: flex-start; gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: #fff; border: 1px solid var(--cizgi); border-radius: var(--radius);
}
.tl-item .badge { flex: none; margin-top: 2px; }
.tl-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tl-date { font-weight: 600; font-size: 15px; }
.tl-meta { font-size: 13px; color: var(--gri); }
.tl-note { font-size: 13px; margin-top: 2px; }

/* ── Yıkıcı işlem alanı ───────────────────────────────── */
.danger-zone { border-color: #f0c9c6; }
.danger-zone .section-title { color: var(--hata); }

/* ── Sayım ────────────────────────────────────────────── */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-3); margin-bottom: var(--sp-4);
}
.section-head .section-title { margin-bottom: 0; }
.section-head-end { display: flex; align-items: center; gap: var(--sp-3); }

/* Kart içi alt bölüm başlığı (ör. bağlı müşteriler) */
.section-head--inline {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--cizgi);
    margin-bottom: var(--sp-3);
}
.section-title--sub { font-size: 14px; margin-bottom: 0; }

.sayim-item {
    display: flex; align-items: center; gap: var(--sp-3);
    min-height: 56px; padding: var(--sp-3);
    background: #fff; border: 1px solid var(--cizgi); border-radius: var(--radius);
    margin-bottom: var(--sp-2); cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
}
.sayim-item input { width: 24px; height: 24px; accent-color: var(--lacivert); flex: none; }
.sayim-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sayim-item-title { font-weight: 600; font-size: 15px; }
.sayim-item-sub { font-size: 13px; color: var(--gri); }
.sayim-item:has(input:checked) { border-color: var(--basari); background: var(--basari-zemin); }

.sayim-details { margin-top: var(--sp-3); }
.sayim-details summary {
    cursor: pointer; padding: var(--sp-3) 0;
    font-family: var(--display); font-weight: 700; font-size: 14px;
    text-transform: uppercase; letter-spacing: .04em; color: var(--gri);
}
.sayim-details[open] summary { color: var(--asfalt); }

/* ── Firma: müşteri arama satırı ──────────────────────── */
.firma-ara { display: flex; gap: var(--sp-2); align-items: center; }
.firma-ara .search { flex: 1; }

/* ── Topbar aksiyon grubu ─────────────────────────────── */
.topbar-actions { display: flex; align-items: center; gap: var(--sp-2); }
.btn-sm.btn-icon { width: 40px; padding: 0; }
.btn-icon svg { margin-right: 0; }

/* ── Ayarlar (sol menü + sağ içerik) ──────────────────── */
.settings { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); align-items: start; }

.settings-nav {
    display: flex;
    flex-direction: row;
    gap: var(--sp-1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid var(--cizgi);
    border-radius: var(--radius-lg);
    box-shadow: var(--golge-1);
    padding: var(--sp-2);
}
.settings-tab {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex: 0 0 auto;
    min-height: 48px;
    padding: 12px 14px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--gri);
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    transition: background-color .12s ease, color .12s ease;
}
.settings-tab svg { width: 20px; height: 20px; flex: none; }
.settings-tab:hover { background: var(--yuzey-2); color: var(--asfalt); }
.settings-tab.is-active { background: var(--lacivert); color: #fff; }

.settings-panel { display: none; }
.settings-panel.is-active { display: block; }
.settings-content .section-head { margin-bottom: var(--sp-4); }

/* Topbar'a gömülü sekmeler yalnızca web (≥860) görünümünde çıkar. */
.settings-nav--topbar { display: none; }

@media (min-width: 860px) {
    /* Web: sekmeler topbar'da; gövdedeki liste gizli, içerik tam genişlik. */
    .settings { grid-template-columns: minmax(0, 1fr); }
    .settings-nav--body { display: none; }

    .settings-nav--topbar {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        margin: 0 var(--sp-4);
        padding: 0;
        gap: var(--sp-1);
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    .settings-nav--topbar .settings-tab {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* ── Modal (native <dialog>) ─────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(560px, calc(100vw - 2 * var(--sp-4)));
    height: fit-content;
    max-height: calc(100vh - 2 * var(--sp-6));
    padding: 0;
    border: 1px solid var(--cizgi);
    border-radius: var(--radius-lg);
    box-shadow: var(--golge-3);
    background: #fff;
    color: var(--asfalt);
    overflow: hidden;
}
.modal::backdrop { background: rgba(7, 18, 38, .45); }
.modal[open] { display: flex; flex-direction: column; }
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--cizgi);
}
.modal-head h2 { margin: 0; }
.modal-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex: none;
    border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--gri); cursor: pointer;
    font-size: 22px; line-height: 1;
}
.modal-close:hover { background: var(--yuzey-2); color: var(--asfalt); }
.modal-body { padding: var(--sp-5); overflow-y: auto; }
.modal-foot {
    display: flex; justify-content: flex-end; gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-top: 1px solid var(--cizgi);
    background: var(--yuzey-2);
}

/* ── Raf yönetimi (Ayarlar) ──────────────────────────────── */
.row-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; flex-wrap: wrap; }
tr.is-muted { opacity: .55; }

.raf-gruplar { display: flex; flex-direction: column; gap: var(--sp-3); }
.raf-grup {
    border: 1px solid var(--cizgi);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}
.raf-grup > summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    user-select: none;
}
.raf-grup > summary::-webkit-details-marker { display: none; }
.raf-grup > summary::before {
    content: "▸";
    display: inline-block;
    margin-right: var(--sp-2);
    color: var(--gri);
    transition: transform .15s ease;
}
.raf-grup[open] > summary::before { transform: rotate(90deg); }
.raf-grup[open] > summary { border-bottom: 1px solid var(--cizgi); }
.raf-grup > summary:hover { background: var(--yuzey-2); }
.raf-grup-ad { flex: 1; }
.raf-grup-ozet { display: flex; align-items: center; gap: var(--sp-2); font-weight: 400; }
.raf-grup .table-wrap { margin: 0; }
