/* Colovery panel: mobil öncelikli, işletme sahipleri çoğunlukla telefondan kullanır. */
:root {
    color-scheme: light;
    --primary: #fd5d2b;
    --primary-hover: #e94c1c;
    --primary-soft: #fff1ec;
    --bg: #f6f6f7;
    --surface: #fff;
    --text: #1b1b1f;
    --muted: #6b6b75;
    --border: #e4e4e8;
    --success: #16a34a;
    --success-soft: #e8f7ee;
    --danger: #dc2626;
    --danger-soft: #fdecec;
    --radius: 12px;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 1px 3px rgb(0 0 0 / 0.06);
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
/* Çift dokunma ile yakınlaştırmayı kapatır; iki parmakla yakınlaştırma erişilebilirlik için açık kalır. */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { margin: 0; line-height: 1.25; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 500; }
img { display: block; max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 500; color: var(--text); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Üst menü ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.topbar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1040px;
    min-height: 60px;
    margin: 0 auto;
    padding: 0 16px;
}
.topbar__brand { display: flex; align-items: center; gap: 10px; }
.topbar__brand:hover { text-decoration: none; }
.topbar__badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
}
.topbar__toggle {
    margin-left: auto;
    padding: 8px;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
}
.topbar__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 8px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.06);
}
.topbar__nav.is-open { display: flex; }
.topbar__nav a, .topbar__logout {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    text-align: left;
}
.topbar__nav a:hover, .topbar__logout:hover { background: var(--bg); text-decoration: none; }
.topbar__nav a.is-active { color: var(--primary); font-weight: 500; }
.topbar__logout { width: 100%; border: 0; background: none; color: var(--muted); cursor: pointer; }

@media (min-width: 720px) {
    .topbar__toggle { display: none; }
    .topbar__nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        margin-left: auto;
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}

/* ---------- Yerleşim ---------- */
.container { max-width: 1040px; margin: 0 auto; padding: 20px 16px 96px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--tight { gap: 8px; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.page-head p { margin: 4px 0 0; }
.page-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.section-head p { margin: 0; }

.card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.tabs a {
    padding: 10px 14px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.is-active { color: var(--primary); border-color: var(--primary); }

/* ---------- Formlar ---------- */
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 4px; padding: 0; font-size: 17px; font-weight: 500; }
fieldset + fieldset { padding-top: 20px; border-top: 1px solid var(--border); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 500; }
.field__hint { color: var(--muted); font-size: 13px; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 16px; /* iOS yakınlaştırmasını önler */
}
input:focus-visible, button:focus-visible, a:focus-visible, .dropzone:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
input[type="file"] { max-width: 100%; font: inherit; font-size: 14px; }

.input-prefix {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
}
.input-prefix span {
    display: flex;
    align-items: center;
    padding: 0 4px 0 12px;
    color: var(--muted);
    white-space: nowrap;
}
.input-prefix input { min-width: 0; border: 0; border-radius: 0; padding-left: 0; }
.input-prefix:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.input-prefix input:focus-visible { outline: none; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.actions--sticky {
    position: sticky;
    bottom: 0;
    margin: 0 -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--bg) 70%, transparent);
}

.logo-field { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.logo-preview {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    flex: none;
    border: 1px dashed var(--border);
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg);
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }

.dropzone {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 3378 / 2527; /* işletme sayfasındaki slider oranı */
    max-width: 420px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    text-align: center;
    overflow: hidden;
    cursor: pointer;
}
.dropzone.has-image { border-style: solid; }
.dropzone img { width: 100%; height: 100%; object-fit: cover; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__hint { padding: 16px; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--bg); text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { background: #b91c1c; }
.btn--danger-ghost { border-color: transparent; background: transparent; color: var(--danger); }
.btn--danger-ghost:hover { background: var(--danger-soft); }
.btn--small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn--icon { min-width: 36px; padding: 6px; }
.btn--block { width: 100%; }
.btn-group { display: inline-flex; }
.btn-group form:first-child .btn { border-radius: 10px 0 0 10px; }
.btn-group form:last-child .btn { margin-left: -1px; border-radius: 0 10px 10px 0; }

/* ---------- Bildirimler ---------- */
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
}
.alert--success { background: var(--success-soft); color: #14532d; }
.alert--error { background: var(--danger-soft); color: #7f1d1d; }
.alert--secret { background: #fff7e6; border: 1px solid #f5d38a; color: #5c3d00; flex-wrap: wrap; }
.alert--secret code {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    word-break: break-all;
    user-select: all;
}
.alert__close {
    padding: 0 4px;
    border: 0;
    background: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    opacity: 0.6;
    cursor: pointer;
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--muted { background: #ececef; color: var(--muted); }

/* ---------- Arama ve tablo ---------- */
.search { display: flex; gap: 8px; margin-bottom: 16px; }
.search input { flex: 1; min-width: 0; }

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.table { width: 100%; border-collapse: collapse; }
.table th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table__actions { text-align: right; }

.cafe-cell { display: flex; align-items: center; gap: 12px; }
.cafe-cell img, .avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.avatar {
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}

/* Mobilde tablo satırları kartlara dönüşür */
@media (max-width: 719px) {
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; }
    .table tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
    .table tr:last-child { border-bottom: 0; }
    .table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 0;
        border: 0;
        text-align: right;
    }
    .table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; }
    .table td[data-label="İşletme"] { display: block; padding-bottom: 8px; text-align: left; }
    .table td[data-label="İşletme"]::before { content: none; }
    .table__actions { padding-top: 8px !important; }
    .table__actions .btn { width: 100%; }
}

/* ---------- Kampanyalar ---------- */
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.campaign {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.campaign.is-hidden .campaign__image img { opacity: 0.45; filter: grayscale(0.6); }
.campaign__image { position: relative; aspect-ratio: 3378 / 2527; background: var(--bg); }
.campaign__image img { width: 100%; height: 100%; object-fit: cover; }
.campaign__image .badge { position: absolute; top: 10px; left: 10px; box-shadow: var(--shadow); }
.campaign__body { padding: 12px 16px 0; min-width: 0; }
.campaign__body p { margin: 0; }
.campaign__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 12px 16px 16px;
}
.campaign__actions form { margin: 0; }
.campaign__actions > form:last-child { margin-left: auto; }

/* ---------- Admin bölümü ---------- */
.admin-zone { margin-top: 24px; }
.danger-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.danger-row form { margin: 0; }

/* ---------- Boş durum / hata ---------- */
.empty {
    padding: 48px 20px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
}
.empty p { margin: 0 0 16px; color: var(--muted); }
.empty__code { color: var(--primary) !important; font-size: 48px; font-weight: 700; line-height: 1; }
.trace { overflow-x: auto; padding: 12px; background: var(--bg); font-size: 12px; text-align: left; }

/* ---------- Giriş ---------- */
body.auth {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 16px;
    background: radial-gradient(circle at 15% 10%, #ffe2d6, transparent 45%), var(--bg);
}
.auth__card {
    width: 100%;
    max-width: 400px;
    padding: 32px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.06);
}
.auth__logo { width: 144px; height: auto; margin: 0 auto 20px; }
.auth__title { margin-bottom: 20px; font-size: 20px; text-align: center; }
.auth__hint { margin: 20px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth__card .empty { border: 0; padding: 16px 0; }

/* ---------- Sosyal medya ikonları (SVG maske + marka rengi) ---------- */
.field__label--icon { display: inline-flex; align-items: center; gap: 8px; }
.social-mark {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--brand, currentColor);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.social-mark--instagram { --brand: #e4405f; }
.social-mark--youtube { --brand: #ff0000; }
.social-mark--tiktok { --brand: #000; }

/* ---------- Anket ---------- */
.survey-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.survey-status > div:first-child { flex: 1 1 280px; }
.survey-status__label { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 500; }
.survey-status .muted { margin: 0; }
.survey-status__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.survey-status__actions form { margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #c7c7cc; }
.dot--on { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.count {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    text-align: center;
}

.question-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.question {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.question__no {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff4d6;
    color: #b7860b;
    font-weight: 700;
    font-size: 14px;
}
.question__main { flex: 1 1 240px; min-width: 0; }
.question__text { margin: 3px 0 4px; font-weight: 500; overflow-wrap: anywhere; }
.question__edit { display: flex; flex-direction: column; gap: 8px; }
.question__edit .actions { justify-content: flex-start; }
.question__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.question__actions form { margin: 0; }

.add-question { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.add-question .field { flex: 1 1 280px; }

.stars {
    position: relative;
    display: inline-block;
    color: #e5e5ea;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1;
}
.stars::before {
    content: "★★★★★";
    position: absolute;
    inset: 0;
    width: calc(var(--value, 0) / 5 * 100%);
    overflow: hidden;
    color: #f0ba1c;
    white-space: nowrap;
}
.stars--preview { color: #f0ba1c; font-size: 13px; }
.stars--preview::before { content: none; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 12px 0 28px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__label { color: var(--muted); font-size: 13px; }
.stat__value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat__value small { color: var(--muted); font-size: 14px; font-weight: 400; }
.stat__value--small { font-size: 20px; }

.section-title-panel { margin: 0 0 12px; }
.stack + .section-title-panel { margin-top: 28px; }

.question-result__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.question-result__head p { margin: 0; flex: 1 1 260px; }
.question-result__score { display: flex; align-items: center; gap: 10px; }
.question-result__score .stat__value { font-size: 22px; }

.bars { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; }
.bars__label { color: var(--muted); white-space: nowrap; }
.bars__track { height: 8px; border-radius: 999px; background: #f0f0f2; overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: inherit; background: #f0ba1c; }
.bars__value { color: var(--muted); text-align: right; }

.answer-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.answer-stars { white-space: nowrap; letter-spacing: 1px; }
.answer-stars .on { color: #f0ba1c; }
.answer-stars .off { color: #e5e5ea; }
.nowrap { white-space: nowrap; }
@media (max-width: 719px) {
    .responses td[data-label="Puanlar"] { display: block; text-align: left; }
    .responses td[data-label="Puanlar"]::before { display: block; margin-bottom: 4px; }
}

/* ---------- Hikayeler ---------- */
.story-ring {
    position: relative;
    display: block;
    flex: none;
    width: 64px;
    height: 64px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #fbb03b, var(--primary) 70%);
}
.story-ring::after { content: ""; position: absolute; inset: 3px; border: 2px solid var(--surface); border-radius: 50%; pointer-events: none; }
.story-ring img { width: 100%; height: 100%; border-radius: 50%; background: var(--bg); object-fit: cover; }
.story-ring--off { background: var(--border); }
.story-ring--pick { width: 88px; height: 88px; cursor: pointer; }
.story-ring--pick::before { content: "+"; position: absolute; inset: 3px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 28px; }
.story-ring--pick img { position: relative; z-index: 1; }
.story-ring--pick input { position: absolute; inset: 0; z-index: 2; opacity: 0; cursor: pointer; }

.story-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.story-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.story-item.is-hidden .story-ring img { opacity: 0.5; filter: grayscale(0.6); }
.story-item__main { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; }
.story-item__main:hover { text-decoration: none; }
.story-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.story-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.story-item__actions form { margin: 0; }

.cover-field { display: flex; align-items: center; gap: 16px; }
.cover-field__text { display: flex; flex-direction: column; gap: 8px; }

.dropzone--frames { aspect-ratio: auto; min-height: 120px; }
.frame-previews { display: flex; gap: 8px; margin: 4px 0 0; padding: 0 0 4px; overflow-x: auto; list-style: none; }
.frame-previews li { position: relative; flex: none; }
.frame-previews img { width: 54px; aspect-ratio: 9 / 16; border-radius: 6px; object-fit: cover; }
.frame-previews span { position: absolute; left: 4px; bottom: 4px; padding: 0 5px; border-radius: 999px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 11px; }

.frame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.frame { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #111; }
.frame img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.frame__no { position: absolute; top: 8px; left: 8px; padding: 1px 8px; border-radius: 999px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 12px; }
.frame__actions { display: flex; justify-content: space-between; gap: 6px; padding: 8px; background: var(--surface); }
.frame__actions form { margin: 0; }

.danger-zone { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- Menü düzenleyici ---------- */
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.menu-cat { margin-bottom: 16px; padding: 0; overflow: hidden; scroll-margin-top: 76px; }
.menu-cat:target { box-shadow: 0 0 0 2px var(--primary); }
.menu-cat__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #fafafb;
}
.menu-cat__title { flex: 1 1 220px; min-width: 0; }
.menu-cat__title h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.menu-cat__title p { margin: 4px 0 0; }
.menu-cat__edit { display: flex; flex: 1 1 100%; flex-direction: column; gap: 8px; }
.menu-cat__edit .actions { justify-content: flex-start; }
.menu-cat__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.menu-cat__actions form, .menu-row__actions form { margin: 0; }

.menu-items { margin: 0; padding: 0; list-style: none; }
.menu-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    grid-template-areas: "thumb main price" "thumb actions actions";
    gap: 6px 12px;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}
.menu-row.is-soldout .menu-row__thumb, .menu-row.is-soldout .menu-row__main, .menu-row.is-soldout .menu-row__price { opacity: 0.55; }
.menu-row__thumb {
    grid-area: thumb;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--muted);
    font-size: 20px;
}
.menu-row__thumb:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.menu-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-row__main { grid-area: main; min-width: 0; }
.menu-row__main p { margin: 0; overflow-wrap: anywhere; }
.menu-row__main .strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.menu-row__price { grid-area: price; font-weight: 700; white-space: nowrap; }
.menu-row__actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 720px) {
    .menu-row { grid-template-columns: 56px 1fr auto auto; grid-template-areas: "thumb main price actions"; }
}

.quick-add {
    display: grid;
    grid-template-columns: 64px 1fr 110px;
    gap: 8px;
    padding: 16px 20px;
    background: #fff;
}
.quick-add__desc { grid-column: 2 / -1; }
.quick-add .btn { grid-column: 1 / -1; }
@media (min-width: 720px) {
    .quick-add { grid-template-columns: 64px 2fr 130px 3fr auto; }
    .quick-add__desc, .quick-add .btn { grid-column: auto; }
}

/* Hızlı ekleme satırındaki kare fotoğraf seçici; seçilen görseli önizler */
.quick-add__photo {
    position: relative;
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 64px;
    height: 96px;
    overflow: hidden;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--muted);
    cursor: pointer;
}
.quick-add__photo:hover { border-color: var(--primary); color: var(--primary); }
.quick-add__photo:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.quick-add__photo.has-image { border-style: solid; }
.quick-add__photo img { width: 100%; height: 100%; object-fit: cover; }
.quick-add__photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.quick-add__photo-hint { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; }
@media (min-width: 720px) {
    /* Masaüstünde tek satır: kutu diğer alanlarla aynı yükseklikte */
    .quick-add__photo { grid-row: auto; height: 44px; }
    .quick-add__photo-hint > span { display: none; }
}

.price-input { position: relative; display: block; }
.price-input input { padding-right: 32px; text-align: right; }
.price-input span {
    position: absolute;
    top: 50%;
    right: 12px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.add-category__row { display: flex; flex-wrap: wrap; gap: 8px; }
.add-category__row input { flex: 1 1 200px; }

.item-form { display: grid; gap: 20px; }
@media (min-width: 720px) { .item-form { grid-template-columns: 240px 1fr; align-items: start; } }
.dropzone--square { aspect-ratio: 1; max-width: 240px; }

/* ---------- Sayfa rengi (blob) ---------- */
.blob-field { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.blob-preview {
    position: relative;
    flex: none;
    width: 160px;
    height: 110px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.blob-preview__shape { position: absolute; border-radius: 50%; transition: background 0.2s; }
.blob-preview__shape--left  { left: -23px; top: 49px; width: 46px; height: 46px; filter: blur(8px); background: var(--blob); }
.blob-preview__shape--right { left: 140px; top: 20px; width: 49px; height: 49px; filter: blur(5px); background: var(--blob); }
.blob-preview__shape--top   { left: 127px; top: -12px; width: 20px; height: 20px; filter: blur(2px); background: var(--blob); }
.blob-preview img { position: absolute; left: 16px; top: 18px; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.blob-field__inputs { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.color-input { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.color-input input {
    width: 40px;
    height: 32px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}
.color-input span { min-width: 72px; }
.color-input code { color: var(--muted); font-size: 12px; }
