:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1c211e;
  --muted: #667069;
  --line: #e2ded6;
  --accent: #1f6f4a;
  --accent-hover: #185a3c;
  --accent-soft: #e6f2ec;
  --warn: #8a5a00;
  --warn-soft: #fff4dc;
  --err: #b42318;
  --err-soft: #fdecea;
  --radius: 10px;
  --radius-sm: 8px;       /* düğme, alan, etiket */
  --radius-pill: 999px;   /* hap ve rozet */
  --on-accent: #fff;      /* vurgu ve hata zemini üstündeki yazı */
  /* Yazı boyu ölçeği (panel): küçük not → başlık */
  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.3rem;
  --fs-xl: 1.6rem;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
h1 { font-size: var(--fs-xl); margin: 4px 0 16px; line-height: 1.2; }
h2 { font-size: var(--fs-lg); margin: 0 0 12px; }
h3 { font-size: var(--fs-md); margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.break { word-break: break-all; }
.right { text-align: end; }
.warn-text { color: var(--warn); }
.ok-text { color: var(--accent); }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; text-decoration: none; color: var(--text); letter-spacing: -.01em; }
.topbar nav { display: flex; align-items: center; gap: 14px; }
/* Üst menü: Yönetim, hesap, Çıkış ve dil seçici üzerine gelince yeşil zemin alır ("Ücretsiz dene" düğmesi kendi stilini korur) */
.topbar nav > a:not(.btn), .topbar nav .btn-link { padding: 6px 10px; margin: -6px -4px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); transition: background-color .15s ease, color .15s ease; }
.topbar nav > a:not(.btn):hover, .topbar nav .btn-link:hover { background: var(--accent-soft); color: var(--accent); }
.topbar nav > a:not(.btn):focus-visible, .topbar nav .btn-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.ui-lang summary { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.ui-lang summary:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .topbar nav > a, .topbar nav .btn-link, .ui-lang summary { transition: none; } }
.ui-lang { position: relative; }
.ui-lang summary { list-style: none; cursor: pointer; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.ui-lang summary::-webkit-details-marker { display: none; }
.ui-lang summary::after { content: " ▾"; font-weight: 400; }
.ui-lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: 6px; list-style: none; min-width: 150px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.ui-lang li a, .ui-lang li strong { display: block; padding: 7px 10px; border-radius: var(--radius-sm); text-decoration: none; color: inherit; }
.ui-lang li a:hover { background: var(--bg); }
.ui-lang li strong { color: var(--accent); }
.wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 60px; }
.wrap.wide { max-width: 1440px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
}
.card.narrow { max-width: 420px; margin: 40px auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row-form > label { flex: 1 1 160px; }
.grow { flex: 1 1 260px !important; }
.inline { display: inline; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card { margin-top: 16px; }

label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); font-weight: 600; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { resize: vertical; }
.hint { font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin: 0; }
legend { font-size: var(--fs-sm); padding: 0 4px; }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
label.check input { width: auto; margin-top: 3px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 12px; margin-top: 8px; }
details > summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
details[open] > summary { margin-bottom: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: var(--surface); color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
/* İşletme sayfası üst düğme sırası (Menüyü aç, Günün menüsü…): kartlardaki gibi hafif kalkma + gölge */
.actions .btn { transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.actions .btn:hover { box-shadow: 0 4px 12px rgb(0 0 0 / .1); transform: translateY(-1px); }
.actions .btn:active { transform: none; box-shadow: none; }
.actions .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .actions .btn { transition: none; } .actions .btn:hover { transform: none; } }
.btn.small { padding: 5px 11px; font-size: var(--fs-sm); }
.btn.danger { background: var(--err); border-color: var(--err); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-link:disabled { opacity: .45; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.btn-link.danger { color: var(--err); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sticky-actions {
  position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line);
}

.flash { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--accent-soft); color: var(--accent); }
.flash.err { background: var(--err-soft); color: var(--err); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.page-head h1 { margin-bottom: 0; }
.crumb { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.crumb a { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: center; }

.list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.list-item {
  display: flex; flex-direction: column; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
}
.list-item:hover { border-color: var(--accent); }

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: start; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.table th, .table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr.inactive td { opacity: .5; }
.cat-block { margin-bottom: 18px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.cat-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cat-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-row .row-form { align-items: center; }
.cat-row .row-form input { flex: 1 1 140px; width: auto; }

.tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600; padding: 1px 7px; border-radius: var(--radius-pill);
  background: var(--line); color: var(--text); margin-inline-start: 4px; vertical-align: middle;
}
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.ok { background: var(--accent-soft); color: var(--accent); }
.al-no {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px;
  border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: var(--fs-xs); font-weight: 700; margin-inline-end: 2px;
}
.al-no.light { background: var(--line); color: var(--text); }

.qr-row { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.qr-box { width: 120px; height: 120px; flex: none; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.print-links { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; }

.suggest { background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.suggest p { margin: 0 0 6px; }
.suggest-title { font-weight: 700; font-size: var(--fs-sm); }
.suggest-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 4px; }
.suggest-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.off-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.off-result { margin-top: 10px; }
.off-result p { margin: 0 0 6px; }
.off-title { font-weight: 700; }
.danger-zone { border-color: var(--err-soft); }

.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 2rem; max-width: 680px; margin: 0 auto 12px; }
.hero p { max-width: 600px; margin: 0 auto 20px; color: var(--muted); font-size: var(--fs-md); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.features .card { margin: 0; }
.features h3 { margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

@media (min-width: 601px) { .show-sm { display: none; } }
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .hero h1 { font-size: var(--fs-xl); }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats .stat { margin: 0; padding: 14px 16px; display: flex; flex-direction: column; position: relative; }
.stats .stat:has(.stat-ic) { padding-inline-end: 52px; }
.stat-ic { position: absolute; inset-inline-end: 12px; top: 12px; box-sizing: content-box; padding: 7px; border-radius: 50%; background: var(--bg); color: var(--muted); }
.stat.warn .stat-ic { background: var(--surface); color: var(--warn); }
.stat.err .stat-ic { background: var(--surface); color: var(--err); }
.stat-num { font-size: var(--fs-xl); font-weight: 800; line-height: 1.1; }
.stat.warn { border-color: var(--warn); background: var(--warn-soft); }
.stat.err { border-color: var(--err); background: var(--err-soft); }
.tag.err { background: var(--err-soft); color: var(--err); }
.table-wrap { overflow-x: auto; }
.nowrap { white-space: nowrap; }
.row-form.compact { gap: 6px; flex-wrap: nowrap; }
.row-form.compact input { width: auto; min-width: 0; padding: 6px 8px; }
.row-form.compact input[type="date"] { flex: 0 0 auto; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 24px; }
.site-foot { max-width: 1100px; margin: 0 auto; padding: 0 16px 32px; font-size: var(--fs-sm); color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
/* Klavyeyle ilk durak: içeriğe geç (yalnız odaklanınca görünür) */
.skip-link { position: absolute; z-index: 100; top: 8px; inset-inline-start: 8px; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font-weight: 600; translate: 0 -200%; }
.skip-link:focus { translate: 0 0; outline: 2px solid var(--text); outline-offset: 2px; }
main:focus { outline: none; }
/* Telefonda üst menü ve alt bilgi bağlantıları parmakla rahat dokunulsun (en az 44 px) */
@media (max-width: 600px) {
  .topbar nav > a, .topbar nav .btn, .ui-lang summary, .site-foot > * { min-height: 44px; display: inline-flex; align-items: center; }
  .topbar nav > a:not(.btn) { margin-block: -10px; }
  .site-foot { gap: 0 16px; }
}

/* Ürün listesi: sürükle-bırak, küçük görsel, tükendi anahtarı */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.handle-col { width: 28px; padding-inline: 0 !important; }
.drag-handle { cursor: grab; color: var(--muted); font-weight: 700; letter-spacing: -2px; padding: 4px 6px; user-select: none; touch-action: none; }
.drag-handle:active { cursor: grabbing; }
.sort-ghost { opacity: .45; background: var(--accent-soft); }
.prod-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; flex: none; background: var(--bg); border: 1px solid var(--line); }
.table tr.is-sold-out td:nth-child(2) strong { text-decoration: line-through; color: var(--muted); }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-direction: row; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch-track { position: absolute; inset: 0; border-radius: var(--radius-pill); background: var(--line); transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--err); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
  background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: var(--radius); font-size: var(--fs-sm); box-shadow: 0 6px 24px rgba(0,0,0,.2);
}
.toast.err { background: var(--err); color: var(--on-accent); }
.photo-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.photo-preview { width: 140px; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--line); background: var(--bg); max-width: 100%; }
.variant-rows { display: flex; flex-direction: column; gap: 8px; }
.variant-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr; gap: 6px; }
.variant-row input { padding: 7px 9px; }
@media (max-width: 600px) {
  .variant-row { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-track::after { transition: none; } }

/* Kalori yardımcısı (ürün formu) */
.calc-box > summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.calc-box[open] > summary { margin-bottom: 10px; }
.calc-start { align-items: flex-end; }
.calc-n input { width: 5em; margin-inline-start: 6px; }
.calc-n .hint { display: block; }
.calc-head, .calc-row { display: grid; grid-template-columns: minmax(0, 1fr) 5.5em 4.5em 2.4em; gap: 6px; align-items: center; }
.calc-head { font-size: var(--fs-xs); color: var(--muted); }
.calc-head span:nth-child(3), .calc-kcal { text-align: end; }
.calc-rows { display: flex; flex-direction: column; gap: 6px; }
.calc-row input { padding: 7px 9px; min-width: 0; }
.calc-row.is-unknown input:first-child { border-color: var(--err); background: var(--err-soft); }
.calc-kcal { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--fs-sm); }
.calc-del { min-height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: var(--fs-md); cursor: pointer; }
.calc-del:hover { color: var(--err); border-color: var(--err); }
@media (max-width: 600px) {
  .calc-head, .calc-row { grid-template-columns: minmax(0, 1fr) 3.6em 2.8em 2.2em; gap: 4px; }
  .calc-row input { padding: 7px 6px; }
  .calc-kcal { font-size: var(--fs-xs); }
}
.calc-total { padding: 10px 12px; border-radius: var(--radius); background: var(--accent-soft); }
.calc-total strong { font-size: var(--fs-lg); }
.calc-total .warn-text { display: block; margin-top: 4px; }

/* Tema seçici */
.theme-picker { border: 0; padding: 0; }
.theme-picker legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: 8px; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.theme-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 400; cursor: pointer; background: var(--surface); }
.theme-card input { position: absolute; top: 12px; inset-inline-end: 12px; width: auto; }
.theme-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.theme-swatch { display: flex; height: 34px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 4px; border: 1px solid var(--line); }
.theme-swatch i { flex: 1; }
.theme-swatch i:first-child { flex: 2; }

/* Kategori ağacı */
.cat-children { display: flex; flex-direction: column; gap: 6px; margin-block: 6px 4px; margin-inline-start: 28px; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); min-height: 4px; }
.cat-node { display: flex; flex-direction: column; }
.cat-row.is-sub input[name="name"] { font-size: var(--fs-sm); }
.cat-row select { width: auto; flex: 0 1 190px; padding: 7px 8px; }
.cat-block.is-sub { margin-inline-start: 14px; }
.cat-block.is-sub h3 { font-size: var(--fs-sm); }
.catalog-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.catalog-group > label { font-weight: 700; }
.catalog-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; margin: 10px 0 0 26px; }
.catalog-subs .hint { display: block; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 12px; }
.tag.ok-text { background: var(--accent-soft); }

/* Çeviriler ekranı */
.lang-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; align-items: center; }
.lang-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-size: var(--fs-sm); }
.lang-tabs a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lang-tabs a.small { border: 0; background: none; color: var(--accent); }
.lang-progress { font-size: var(--fs-xs); padding: 1px 7px; border-radius: var(--radius-pill); background: var(--warn-soft); color: var(--warn); font-variant-numeric: tabular-nums; }
.lang-progress.is-done { background: var(--accent-soft); color: var(--accent); }
.lang-tabs a[aria-current="true"] .lang-progress { background: rgba(255, 255, 255, .25); color: var(--on-accent); }
.tr-table td { width: 50%; }
.tr-table td:first-child { color: var(--text); }
.tr-label { display: block; font-size: var(--fs-xs); color: var(--muted); }
.tr-source { display: block; }
.tr-row.is-missing td:last-child input, .tr-row.is-missing td:last-child textarea { border-color: var(--warn); background: var(--warn-soft); }
.tr-group td { background: var(--bg); font-weight: 700; padding-top: 14px !important; }
.tr-table.only-missing .tr-row:not(.is-missing) { display: none; }
.lang-picker { border: 0; padding: 0; }
.lang-picker legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: 4px; }
@media (max-width: 700px) {
  .tr-table, .tr-table tbody, .tr-table tr, .tr-table td { display: block; width: 100%; }
  .tr-table thead { display: none; }
  .tr-table td { border: 0; padding: 4px 0; }
  .tr-row { border-bottom: 1px solid var(--line); padding: 8px 0; }
}
.filter-bar { margin-bottom: 8px; }
.filter-bar label { flex: 0 1 180px; }
.filter-bar label.grow { flex: 1 1 240px; }
.admin-table td:first-child { min-width: 200px; }
.admin-table td:nth-child(2) { min-width: 160px; }

/* İşletme listesi satırı (bayi panelinde lisans düğmesiyle) */
.biz-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.biz-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 260px; }
.biz-main a { color: var(--text); text-decoration: none; }
.biz-main a:hover { color: var(--accent); }
.list-search { max-width: 360px; margin-bottom: 10px; }
.assign-reseller select { margin-top: 4px; padding: 4px 6px; font-size: var(--fs-xs); width: auto; max-width: 180px; }
.make-reseller { display: inline-block; margin-inline-end: 10px; text-align: start; }
.make-reseller summary { list-style: none; display: inline; font-weight: 400; font-size: var(--fs-sm); }
.make-reseller summary::-webkit-details-marker { display: none; }
.make-reseller[open] form { margin-top: 6px; }
.ref-box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 10px 0 14px; }
.ref-code { display: flex; flex-direction: column; padding: 10px 16px; border: 2px dashed var(--accent); border-radius: var(--radius); }
.ref-code strong { font-size: var(--fs-xl); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.ref-link { display: flex; gap: 8px; flex: 1 1 320px; }
.ref-link input { min-width: 0; }
.ref-box .qr-box { width: 96px; height: 96px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

/* İki adımlı doğrulama ve işlem kaydı */
.steps { display: flex; flex-direction: column; gap: 14px; padding-inline-start: 20px; margin: 12px 0 0; }
.totp-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.qr-light { background: #fff; padding: 10px; border-radius: var(--radius-sm); width: 170px; height: 170px; box-sizing: border-box; }
code.secret { font-size: var(--fs-md); letter-spacing: .06em; word-break: break-all; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 12px 0; }
.recovery-codes code { display: block; padding: 8px 10px; border: 1px dashed var(--line); border-radius: var(--radius-sm); text-align: center; font-size: var(--fs-md); }
.audit-table td { vertical-align: top; }
.audit-table .details { max-width: 420px; overflow-wrap: anywhere; }
.new-reseller { margin: 10px 0 16px; }
.new-reseller > summary { list-style: none; display: inline-flex; cursor: pointer; }
.new-reseller > summary::-webkit-details-marker { display: none; }
.new-reseller[open] > summary { margin-bottom: 12px; }

/* Yönetim tablosu: bitiş/not formu ve uzatma düğmeleri dar sütunda alt alta geçer, tablo yatay taşmaz */
.admin-table .row-form.compact { flex-wrap: wrap; }
.admin-table .row-form.compact input[name="billing_note"] { flex: 1 1 150px; }
.admin-table td.extend form { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.admin-table td.extend .btn { white-space: nowrap; }

/* Bir kez gösterilen giriş bilgileri (geçici şifre) */
.flash { scroll-margin-top: 16px; }
.credentials { display: grid; gap: 8px; margin: 12px 0 8px; }
.credentials > div { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 4px 12px; align-items: center; }
.credentials dt { font-weight: 600; }
.credentials dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.credentials code.secret-value { font-size: var(--fs-md); padding: 4px 8px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); user-select: all; overflow-wrap: anywhere; }

/* Giriş bilgileri açılır penceresi */
.cred-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(20, 30, 25, .25); }
.cred-dialog::backdrop { background: rgba(20, 28, 24, .55); }
.cred-dialog h2 { margin: 0 0 6px; font-size: var(--fs-lg); }
.cred-dialog .credentials { margin: 16px 0; }
.cred-warn { margin: 0 0 16px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: var(--fs-sm); }
.cred-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cred-actions form { margin: 0; }
.flash [data-open-dialog] { margin-inline-start: 8px; }
@media (max-width: 480px) {
  .cred-dialog { padding: 18px 16px; }
  .credentials > div { grid-template-columns: 1fr; }
  .cred-actions .btn { flex: 1 1 auto; }
}
.credentials dd { flex-wrap: nowrap; }
.credentials dd code.secret-value { flex: 0 1 auto; min-width: 0; }
.credentials dd .btn { flex: none; }
@media (max-width: 480px) {
  .cred-actions > * { flex: 1 1 100%; }
  .cred-actions form .btn { width: 100%; }
}
.lang-switch { margin: 0 0 8px; color: var(--muted); }

/* DeepL otomatik çeviri */
.deepl-box { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.deepl-box .row-form { align-items: center; }
.tr-row.is-auto td:last-child input, .tr-row.is-auto td:last-child textarea { border-color: var(--warn); background: var(--warn-soft); }
.quota { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.quota p { margin: 0; color: var(--muted); }
.quota-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.quota-bar span { display: block; height: 100%; background: var(--accent); }
.admin-box { margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--radius); }
.lang-packs .check.is-active { font-weight: 600; }
.price-total { margin: 0; font-size: var(--fs-md); }

/* Toplu ürün yükleme önizlemesi */
.import-table tr.is-error td { background: var(--err-soft); }
.import-table tr.is-dup td { background: var(--warn-soft); }

/* Uyum kontrol listesi */
.compliance-score { font-size: var(--fs-sm); padding: 2px 10px; border-radius: var(--radius-pill); margin-inline-start: 6px; vertical-align: middle; }
.compliance-score.is-err, .uyum-badge.is-err { background: var(--err-soft); color: var(--err); }
.compliance-score.is-warn, .uyum-badge.is-warn { background: var(--warn-soft); color: var(--warn); }
.compliance-score.is-ok, .uyum-badge.is-ok { background: var(--accent-soft); color: var(--accent); }
.uyum-badge { padding: 0 8px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.checklist .check-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); }
.check-err .check-icon { background: var(--err); color: var(--on-accent); }
.check-warn .check-icon { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); }
.check-info .check-icon { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.check-ok .check-icon { background: var(--accent-soft); color: var(--accent); }
.check-err { border-color: var(--err) !important; }
.checklist-ok { margin-top: 10px; }
@media (max-width: 560px) { .checklist li { grid-template-columns: 26px 1fr; } .checklist li > .btn { grid-column: 2; justify-self: start; } }
.limit-form { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.limit-form input { width: 58px; padding: 3px 6px; }

/* Günün menüsü */
.daily-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px 10px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 16px; }
.daily-group legend { font-weight: 600; padding: 0 6px; }
.daily-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; min-width: 0; }
.daily-item > span:first-of-type { flex: 1; min-width: 0; }
.daily-canvas { display: block; width: 100%; max-width: 300px; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* Paylaşım görseli tasarımcısı: solda görsel (geniş ekranda yapışkan), sağda ayarlar */
.designer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
@media (min-width: 900px) { .designer { grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); } .designer-stage { position: sticky; top: 12px; } }
.designer-stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.designer-canvas-wrap { background: repeating-conic-gradient(#eceae5 0 25%, #f7f6f3 0 50%) 0 0 / 22px 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; justify-content: center; }
#d-canvas { display: block; width: auto; max-width: 100%; max-height: 72vh; height: auto; border-radius: var(--radius-sm); box-shadow: 0 6px 24px rgba(0,0,0,.18); touch-action: none; cursor: grab; }
#d-canvas:active { cursor: grabbing; }
.designer-tools { padding: 10px 14px; }
.designer-tools p { margin: 0 0 6px; }
.designer-export { display: flex; flex-wrap: wrap; gap: 8px; }
.designer-panel { min-width: 0; }
.designer-panel fieldset { margin: 0; }
.designer-panel legend { font-weight: 700; padding: 0 6px; }
.d-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.d-tpl { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font: inherit; font-size: var(--fs-xs); color: var(--text); text-align: center; }
.d-tpl canvas { width: 100%; height: auto; border-radius: 4px; background: #eee; }
.d-tpl[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.d-formats { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.d-palettes { display: flex; gap: 10px; flex-wrap: wrap; }
.d-pal { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font: inherit; font-size: var(--fs-xs); cursor: pointer; color: var(--text); }
.d-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.d-chip.is-hidden { text-decoration: line-through; opacity: .6; }
.d-saved { list-style: none; margin: 0; padding: 0; }
.d-saved li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.d-saved li.is-current strong { color: var(--accent); }
.d-saved form.inline { margin-inline-start: auto; }
@media (max-width: 899px) { #d-canvas { max-height: 58vh; } } /* telefonda görselin çevresinden sayfa kaydırılabilsin */
.d-layer, .d-el-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; }
.d-el-colors label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.d-el-colors input[type="color"] { width: 40px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.allergen-free { padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }

/* Besin değerleri alanları (ürün ve hazır ürün formu) */
.nut-box > summary { cursor: pointer; font-weight: 600; }
.nut-box[open] > summary { margin-bottom: 8px; }
.nut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5em), 1fr)); gap: 10px 14px; }
.nut-grid input { width: 100%; }

/* Hazır ürünlerden ekle */
.pick-group > summary { cursor: pointer; }
.pick-sub { font-size: var(--fs-sm); margin: 16px 0 6px; color: var(--muted); }
.pick-list { display: grid; gap: 0; }
.pick-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.pick-main span { min-width: 0; }
.pick-meta, .pick-al { display: block; }
.pick-al { margin-top: 3px; }
.pick-al .al-no { margin-inline-end: 3px; }
.pick-price { display: flex; flex-direction: row; align-items: center; justify-self: end; gap: 6px; font-size: var(--fs-sm); white-space: nowrap; }
.pick-price input { width: 6.5em; }
.pick-more { grid-column: 1 / -1; margin-inline-start: 26px; }
.pick-more > summary { cursor: pointer; color: var(--accent); }
.pick-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 6px 0 0; }
.pick-facts dt { color: var(--muted); }
.pick-facts dd { margin: 0; }
@media (max-width: 600px) {
  .pick-row { grid-template-columns: minmax(0, 1fr); }
  .pick-price { margin-inline-start: 26px; justify-self: start; }
  .pick-facts { grid-template-columns: minmax(0, 1fr); }
  .pick-facts dt { margin-top: 4px; }
}

/* Hareket: bildirim yumuşakça girer, seçili kart halkası kayar. "Hareketi azalt" açıksa çalışmaz. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } }
  .flash { animation: flash-in 300ms cubic-bezier(0.22, 1, 0.36, 1); }
  .theme-card { transition: border-color 200ms ease-out, box-shadow 200ms ease-out, transform 200ms ease-out; }
  .theme-card:hover { transform: translateY(-1px); }
  .btn { transition: background-color 150ms ease-out, transform 150ms ease-out; }
  .btn:active { transform: translateY(1px); }
}

/* Ayarlar → garson ataması: masa seçim düğmeleri */
.waiter-row { display: grid; gap: 6px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.waiter-row .row-form { align-items: end; }
.table-picks { display: flex; flex-wrap: wrap; gap: 4px; }
.table-pick { min-width: 36px; min-height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: inherit; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.table-pick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.table-area { align-self: center; min-width: 4.5em; font-size: var(--fs-sm); color: var(--muted, inherit); }
/* Kategori görseli: satırın başında kare; dokununca dosya seçilir, seçilince kendiliğinden kaydedilir */
.cat-photo { display: inline-flex; align-items: center; gap: 6px; }
.cat-photo-pick { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px dashed var(--line); color: var(--muted); cursor: pointer; overflow: hidden; flex: none; }
.cat-photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.cat-photo-pick:hover { border-color: var(--accent); }
.cat-photo-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Düzenleme penceresi (bayi bilgileri): giriş bilgileri penceresiyle aynı kabuk, iki sütunlu form */
.edit-dialog { text-align: start; white-space: normal; }
.edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 16px 0 20px; }
.edit-grid label { display: grid; gap: 4px; margin: 0; }
.edit-grid .span-2 { grid-column: 1 / -1; }
.edit-grid .hint { margin: 2px 0 0; }
@media (max-width: 480px) { .edit-grid { grid-template-columns: minmax(0, 1fr); } }
/* Tablo satırındaki işlem düğmeleri: yan yana, sağa yaslı, dar ekranda alta kayar */
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.row-actions form { margin: 0; }
.btn.ghost.danger { background: var(--surface); color: var(--err); border-color: var(--err); }
.btn.ghost.danger:hover { background: var(--err-soft); }
/* Yatay kaydırmasız tablo: dar ekranda her satır bir kart, hücreler etiketiyle alt alta (data-label) */
.table-cards td { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table-cards td { border: 0; padding: 4px 0; text-align: start; }
  .table-cards td.num { text-align: start; white-space: normal; }
  .table-cards td.num br { display: none; }
  .table-cards td.num > span, .table-cards td.num > a { margin-inline-end: 10px; }
  .table-cards td:empty { display: none; }
  .table-cards td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: var(--fs-xs); }
  .table-cards .row-actions { justify-content: flex-start; padding-top: 6px; }
}
/* Garson ekranı girişi: garson başına kod alanları */
.staff-pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px 16px; padding-inline-start: 28px; }
.staff-pin-row { padding-inline-start: 28px; }
/* Ürün fotoğrafı: önizlemeye dokununca dosya seçici açılır (Gözat düğmesi de duruyor) */
.photo-pick { position: relative; display: inline-block; flex: none; cursor: pointer; border-radius: var(--radius); }
.photo-pick .photo-preview { display: block; }
.photo-pick-hint { position: absolute; inset-inline: 6px; bottom: 6px; padding: 4px 8px; border-radius: var(--radius-sm); background: rgba(20, 28, 24, .72); color: #fff; font-size: var(--fs-xs); font-weight: 600; text-align: center; opacity: .9; }
.photo-pick:hover .photo-preview { border-color: var(--accent); }
.photo-row:has(#photo-input:focus-visible) .photo-pick { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Bağlantıyla (#kat-…) gelinen kategori satırı yapışkan üst menünün altında kalmasın */
.cat-row, .products-table tr { scroll-margin-top: 80px; }
.nav-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.nav-card { margin: 0; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.nav-card { position: relative; padding-inline-end: 40px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
/* Tıklanabilir kart: üstteki sayı kartlarından ayrılsın diye vurgu renginde başlık, çerçeve ve yuvarlak ok */
.nav-card { padding-inline-end: 60px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.nav-card strong { color: var(--accent); }
.nav-card::after { content: "›"; position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); color: var(--accent); font-size: var(--fs-lg); line-height: 1; transition: transform .15s ease, background .15s ease, color .15s ease; }
.nav-card:hover::after, .nav-card:focus-visible::after { background: var(--accent); color: var(--on-accent); }
.nav-card:hover, .nav-card:focus-visible { border-color: var(--accent); box-shadow: 0 4px 14px rgb(0 0 0 / .08); transform: translateY(-2px); }
.nav-card:hover::after, .nav-card:focus-visible::after { transform: translateY(-50%) translateX(3px); }
.nav-card:hover strong { color: var(--accent); }
.nav-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[dir="rtl"] .nav-card::after { content: "‹"; }
[dir="rtl"] .nav-card:hover::after { transform: translateY(-50%) translateX(-3px); }
@media (prefers-reduced-motion: reduce) { .nav-card, .nav-card::after { transition: none; } .nav-card:hover, .nav-card:focus-visible { transform: none; } }
.nav-card.warn { border-color: var(--warn); background: var(--warn-soft); }
.todo-box { border-color: var(--warn); background: var(--warn-soft); }
.todo-box h2 { margin: 0 0 8px; font-size: var(--fs-md); }
.todo-box ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.tab-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.tab-nav a { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-nav a { border-radius: var(--radius-sm) 6px 0 0; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.tab-nav a:hover { background: var(--accent-soft); color: var(--accent); border-bottom-color: var(--line); }
@media (prefers-reduced-motion: reduce) { .tab-nav a { transition: none; } }
.tab-nav a.is-active { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }
.tab-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Çıktı bağlantıları (Karekod ve çıktılar): üst menüdeki gibi yeşil zemin */
.print-links > li > a { padding: 2px 6px; margin: -2px -6px; border-radius: var(--radius-sm); transition: background-color .15s ease, color .15s ease; }
.print-links > li > a:hover { background: var(--accent-soft); color: var(--accent-hover); text-decoration: none; }
.print-links > li > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.tab-nav .muted { font-weight: 400; margin-inline-start: 4px; }
@media (prefers-reduced-motion: reduce) { .print-links > li > a { transition: none; } }
/* Ayarlar: sekme başına kartlar, ortak Kaydet altta yapışık */
.settings-form { margin-bottom: 16px; }
.settings-form > .card { margin: 0; }
.form-save { position: sticky; bottom: 0; z-index: 5; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
/* Ürünler: ana kategori başına akordeon */
.cat-acc { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface); }
.cat-acc > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; list-style: none; border-radius: var(--radius-sm); transition: background-color .15s ease; }
.cat-acc > summary::-webkit-details-marker { display: none; }
.cat-acc > summary::before { content: "›"; font-size: var(--fs-lg); line-height: 1; color: var(--muted); transition: transform .15s ease; }
.cat-acc[open] > summary::before { transform: rotate(90deg); }
[dir="rtl"] .cat-acc > summary::before { content: "‹"; }
[dir="rtl"] .cat-acc[open] > summary::before { transform: rotate(-90deg); }
.cat-acc > summary:hover { background: var(--accent-soft); }
.cat-acc > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-acc-name { font-weight: 700; font-size: var(--fs-md); flex: 1; min-width: 0; }
.cat-acc[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--radius-sm) 8px 0 0; }
.cat-acc-body { padding: 12px 14px 4px; }
.cat-acc-body .cat-block:last-child { margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .cat-acc > summary, .cat-acc > summary::before { transition: none; } }
/* Ürün tablosu telefonda kart: 1. satır tutamaç + ürün + fiyat, 2. satır Tükendi · Yayında · Sil (yatay kaydırma yok) */
@media (max-width: 720px) {
  .products-table thead { display: none; }
  .products-table, .products-table tbody { display: block; }
  .products-table tr { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .products-table td { display: block; border: 0; padding: 0; min-width: 0; }
  .products-table td:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 10px; }
  .products-table td:nth-child(2) { grid-column: 2 / span 2; grid-row: 1; }
  .products-table td:nth-child(3) { grid-column: 4; grid-row: 1; align-self: start; }
  .products-table td:nth-child(4) { display: none; }
  .products-table td:nth-child(5) { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 6px; }
  .products-table td:nth-child(5)::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-xs); }
  .products-table td:nth-child(6) { grid-column: 3; grid-row: 2; }
  .products-table td:nth-child(7) { grid-column: 4; grid-row: 2; text-align: end; }
}
/* İşletme sayfası: seyrek kullanılanlar "Diğer" açılır menüsünde */
.more-menu { position: relative; }
.more-menu > summary { list-style: none; font-size: var(--fs-md); }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu > summary::after { content: " ▾"; font-weight: 400; }
.more-menu-list { position: absolute; inset-inline-start: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; padding: 6px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / .12); }
.more-menu-list a { padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.more-menu-list a:hover, .more-menu-list a:focus-visible { background: var(--accent-soft); color: var(--accent); }
/* Sekmeler telefonda tek satır, yana kayar (iki satıra kırılınca alt çizgi ortada kalıyordu) */
.tab-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav a { white-space: nowrap; flex: none; }
.tab-nav { border-bottom: 0; box-shadow: inset 0 -1px var(--line); overflow-y: hidden; }
.tab-nav a { margin-bottom: 0; }
/* Hazır ürün/katalog listelerindeki kart akordeonları da ürün akordeonu gibi: "›" ok, üzerine gelince zemin */
details.card > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: -8px -10px; padding: 8px 10px; border-radius: var(--radius-sm); list-style: none; transition: background-color .15s ease; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "›"; font-size: var(--fs-lg); line-height: 1; color: var(--muted); transition: transform .15s ease; }
details.card[open] > summary { margin-bottom: 8px; }
details.card[open] > summary::before { transform: rotate(90deg); }
[dir="rtl"] details.card > summary::before { content: "‹"; }
[dir="rtl"] details.card[open] > summary::before { transform: rotate(-90deg); }
details.card > summary:hover { background: var(--accent-soft); }
details.card > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { details.card > summary, details.card > summary::before { transition: none; } }
.btn > .icon, .btn > svg { flex: none; }
/* Hesabım: masaüstünde kart ızgarası (telefonda tek sütun) */
.account-page { max-width: 1100px; margin-inline: auto; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.account-grid > .card, .account-col > .card { margin: 0; }
.account-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.account-grid h2 { margin: 0; }
@media (min-width: 900px) {
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-grid > .account-wide { grid-column: 1 / -1; }
}
/* Süz + Temizle yan yana, giriş kutusuyla aynı yükseklikte */
.filter-actions { display: flex; gap: 8px; }
.filter-actions .btn { min-height: 44px; }
/* Süzgeç satırı: tür kutusu dar, arama geniş; hepsi aynı yükseklikte */
.row-form > .filter-type { flex: 0 1 220px; }
.row-form:has(.filter-actions) select, .row-form:has(.filter-actions) input { height: 44px; box-sizing: border-box; }
/* Ayarlar: logo kartı */
.logo-form { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-pick { display: grid; place-items: center; width: 120px; height: 80px; padding: 8px; border: 1px dashed var(--line); border-radius: var(--radius); cursor: pointer; color: var(--muted);
  background: repeating-conic-gradient(var(--bg) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; flex: none; } /* dama: saydamlık görünsün */
.logo-pick img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-pick:hover { border-color: var(--accent); }
.logo-pick:focus-within, .logo-form .btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.logo-form .stack-sm { flex: 1 1 240px; min-width: 0; }
.cover-pick { width: 160px; height: 90px; padding: 0; overflow: hidden; }
.cover-pick img { width: 100%; height: 100%; object-fit: cover; }

/* Ayarlar → Özellikler: anahtar + ad/açıklama satırları */
.feature-group { margin: 8px 0 0; font-size: var(--fs-md); }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feature-row { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; }
.feature-row .switch { flex: none; margin-top: 2px; }
.feature-text { min-width: 0; }
.feature-text p { margin: 4px 0 0; }
.feature-row.is-locked .feature-text > strong { color: var(--muted); }
.switch-ok input:checked + .switch-track { background: var(--accent); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch-track { opacity: .5; }
.feature-note { margin: 0; }
.call-modes.is-off { opacity: .6; }

/* Seçenek satırları (yönetim → Ana sayfa tanıtımı): radyo solda, düğme sağda, iki seçenek yan yana */
.choice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.choice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.choice-row label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; cursor: pointer; }
.choice-row:has(input:checked) { border-color: var(--accent); }

/* İletişim sayfası ve yönetimdeki mesajlar */
.contact-info { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.contact-info dt { color: var(--muted); }
.contact-info dd { margin: 0; overflow-wrap: anywhere; }
.table tr.is-unread td { background: var(--accent-soft, rgb(0 0 0 / .03)); }
.msg-text { max-width: 56ch; overflow-wrap: anywhere; }

/* Deneme sitesi şeridi (STAGING) */
.stage-band { background: #b42318; color: #fff; text-align: center; font-weight: 600; padding: 4px 16px; }
