/* Sezgin QR Menü - ortak tasarım sistemi (sıkı boşluk, RTL uyumlu) */
:root {
  --p: #ff8c00;
  --p-soft: #fff0dc;
  --p-dark: #8b4513;
  --bg: #fff8ef;
  --card: #ffffff;
  --text: #2b2118;
  --muted: #7a6a5c;
  --line: #f0e2d0;
  --ok: #2f9e44;
  --warn: #f08c00;
  --bad: #e03131;
  --info: #1c7ed6;
  --r: 10px;
  --shadow: 0 1px 3px rgba(80, 40, 0, .12);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Naskh Arabic", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
}
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3 { line-height: 1.2; }
[hidden] { display: none !important; }

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 36px; padding: 0 12px; border-radius: 8px;
  background: var(--p); color: #fff; font-weight: 600;
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(.95); }
.btn:active { transform: scale(.98); }
.btn.sm { min-height: 30px; padding: 0 9px; font-size: 13px; }
.btn.lg { min-height: 44px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--p-dark); border: 1px solid var(--line); }
.btn.ok { background: var(--ok); }
.btn.bad { background: var(--bad); }
.btn.info { background: var(--info); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Form elemanları */
.inp, .sel {
  min-height: 36px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; width: 100%;
}
textarea.inp { padding: 8px 10px; min-height: 60px; resize: vertical; }
.sel.mini { width: auto; min-height: 30px; padding: 0 6px; font-size: 13px; }

/* Rozetler */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: var(--p-soft); color: var(--p-dark);
}
.badge.ok { background: #e3f5e8; color: #1f7a35; }
.badge.warn { background: #fff0cf; color: #9a5b00; }
.badge.bad { background: #ffe3e3; color: #b32020; }
.badge.info { background: #e1efff; color: #14609f; }

/* Kart */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }

/* Bildirim */
.toast-wrap {
  position: fixed; inset-inline: 0; bottom: calc(76px + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; z-index: 90; padding-inline: 10px;
}
.toast {
  background: #2b2118; color: #fff; padding: 8px 14px; border-radius: 99px;
  font-size: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.25);
  animation: toast-in .2s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ===================== MÜŞTERİ MENÜSÜ ===================== */
.m-app { max-width: 640px; margin: 0 auto; padding-bottom: calc(70px + var(--safe-b)); }
.m-top {
  position: sticky; top: 0; z-index: 30;
  background: var(--p); color: #fff;
  padding: calc(6px + var(--safe-t)) 10px 6px;
  display: flex; align-items: center; gap: 8px;
}
.m-brand { flex: 1; min-width: 0; }
.m-brand h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-brand small { opacity: .9; font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.m-top .sel { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.m-top .sel option { color: #000; }

.m-tabs {
  position: sticky; top: calc(46px + var(--safe-t)); z-index: 20;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 8px; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.m-tabs::-webkit-scrollbar { display: none; }
.m-tab {
  flex: none; padding: 5px 12px; border-radius: 99px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 13px;
}
.m-tab.on { background: var(--p); border-color: var(--p); color: #fff; }

.m-search { padding: 6px 8px 0; }
.m-sec { padding: 8px 8px 0; }
.m-sec h2 { font-size: 15px; margin: 4px 2px 6px; color: var(--p-dark); }
.m-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) { .m-grid { grid-template-columns: repeat(3, 1fr); } }

.item { overflow: hidden; display: flex; flex-direction: column; }
.item .pic {
  aspect-ratio: 2 / 1; display: grid; place-items: center; font-size: 34px;
  background: linear-gradient(135deg, #ffe3bd, #ffc27a);
}
.item .body { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item .nm { font-weight: 700; font-size: 13.5px; }
.item .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.item .pr { font-weight: 800; color: var(--p-dark); }
.add {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--p); color: #fff; font-size: 20px; line-height: 1; font-weight: 700;
  display: grid; place-items: center;
}
.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--p-soft); border-radius: 99px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; font-size: 18px; font-weight: 700; color: var(--p-dark); }
.qty b { min-width: 18px; text-align: center; }

.m-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px; justify-content: center;
  padding: 8px 8px calc(8px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.m-bar .inner { width: 100%; max-width: 640px; display: flex; gap: 8px; }
.m-bar .cartbtn { flex: 1; justify-content: space-between; }

.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 640px; max-height: 88dvh; overflow: auto;
  background: var(--bg); border-radius: 16px 16px 0 0;
  padding: 10px 10px calc(10px + var(--safe-b));
  animation: sheet-in .2s ease-out;
}
@keyframes sheet-in { from { transform: translateY(30px); opacity: .6; } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-h h2 { font-size: 16px; }
.x { width: 32px; height: 32px; border-radius: 50%; background: var(--p-soft); font-size: 18px; }

.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .nm { font-weight: 700; }
.line .sub { color: var(--muted); font-size: 12px; }
.line .inp { grid-column: 1 / -1; min-height: 30px; font-size: 13px; }
.total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; padding: 8px 0; }

.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chip { padding: 12px 8px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chip i { font-style: normal; font-size: 24px; }

.track { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.step { display: flex; align-items: center; gap: 10px; opacity: .45; }
.step.on { opacity: 1; }
.step .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 800; }
.step.on .dot { background: var(--ok); color: #fff; }
.step.cur .dot { background: var(--p); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,140,0,.25); } }

.expired { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 20px; }

/* ===================== PANEL ===================== */
.p-top {
  position: sticky; top: 0; z-index: 30; background: var(--p); color: #fff;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px;
}
.p-top h1 { font-size: 17px; margin-inline-end: auto; }
.p-top .sel { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.p-top .sel option { color: #000; }
.p-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 6px 8px 0; scrollbar-width: none; }
.p-tabs::-webkit-scrollbar { display: none; }
.p-tab { flex: none; padding: 7px 14px; border-radius: 8px 8px 0 0; font-weight: 700; background: var(--p-soft); color: var(--p-dark); display: flex; align-items: center; gap: 6px; }
.p-tab.on { background: #fff; box-shadow: 0 -1px 3px rgba(80,40,0,.12); }
.p-main { background: #fff; margin: 0 8px 8px; padding: 8px; border-radius: 0 var(--r) var(--r) var(--r); min-height: 60dvh; box-shadow: var(--shadow); }

.legend { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 4px; background: var(--c); }

.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tbl {
  border-radius: var(--r); padding: 8px; text-align: start; border: 2px solid var(--c, var(--line));
  background: color-mix(in srgb, var(--c, #ccc) 12%, #fff);
  display: flex; flex-direction: column; gap: 3px; min-height: 84px;
}
.tbl b { font-size: 18px; }
.tbl small { color: var(--muted); }
.tbl .amt { font-weight: 800; margin-top: auto; }
.s-free { --c: #adb5bd; }
.s-busy { --c: #f08c00; }
.s-ready { --c: #2f9e44; }
.s-bill { --c: #e03131; }

.kan { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 8px; overflow-x: auto; }
.col { background: var(--bg); border-radius: var(--r); padding: 6px; display: flex; flex-direction: column; gap: 6px; min-height: 200px; }
.col > h3 { font-size: 14px; display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.tk { background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 8px; border-inline-start: 5px solid var(--c, var(--p)); display: flex; flex-direction: column; gap: 6px; }
.tk.late { --c: var(--bad); }
.tk-h { display: flex; justify-content: space-between; align-items: center; }
.tk-h b { font-size: 17px; }
.tk ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.tk li { display: flex; gap: 6px; }
.tk li b { min-width: 24px; color: var(--p-dark); }
.tk .note { background: #fff4cf; border-radius: 6px; padding: 3px 6px; font-size: 12px; }
.tk .acts { display: flex; gap: 6px; }
.tk .acts .btn { flex: 1; }

.call { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: var(--bg); margin-bottom: 6px; }
.call.done { opacity: .5; }
.call .ico { font-size: 22px; }
.call .mid { flex: 1; }

.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 60; display: flex; justify-content: flex-end; }
.drawer { width: min(420px, 100%); height: 100%; background: #fff; padding: 10px; overflow: auto; display: flex; flex-direction: column; gap: 8px; animation: drawer-in .2s ease-out; }
[dir="rtl"] .drawer-bg { justify-content: flex-start; }
@keyframes drawer-in { from { transform: translateX(30px); opacity: .6; } }
[dir="rtl"] .drawer { animation-name: drawer-in-rtl; }
@keyframes drawer-in-rtl { from { transform: translateX(-30px); opacity: .6; } }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay button { padding: 8px 4px; border-radius: 8px; border: 2px solid var(--line); font-weight: 700; background: #fff; }
.pay button.on { border-color: var(--p); background: var(--p-soft); }

/* Giriş sayfası */
.home { max-width: 520px; margin: 0 auto; padding: 24px 12px; display: flex; flex-direction: column; gap: 10px; }
.home h1 { font-size: 24px; color: var(--p-dark); }
.home a.btn { text-decoration: none; }



/* Giriş / kaydol */
.auth { max-width: 380px; margin: 0 auto; padding: 14px 12px calc(14px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
.auth .top { display: flex; align-items: center; gap: 6px; }
.auth .top .sp { flex: 1; }
.auth h1 { font-size: 20px; }
.auth form { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); }
.fld { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.fld input, .fld select { min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font-size: 15px; width: 100%; }
.fld input:focus, .fld select:focus { outline: 2px solid var(--p); outline-offset: 0; }
.fld small { font-size: 11px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.chk input { width: 16px; height: 16px; accent-color: var(--p); }
.errbox { background: #fff0f0; color: var(--bad); border: 1px solid #f5c2c2; border-radius: 8px; padding: 6px 9px; font-size: 13px; }
.auth .alt { text-align: center; font-size: 13px; color: var(--muted); }
.auth .alt a { color: var(--p-dark); font-weight: 600; }
.btn:disabled { opacity: .6; cursor: default; }
.btn { text-decoration: none; }
.infobox { background: #effaf1; color: var(--ok); border: 1px solid #c3e8c9; border-radius: 8px; padding: 6px 9px; font-size: 13px; }
.code { letter-spacing: .4em; text-align: center; font-size: 20px !important; }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* Panel: rapor */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.kpi { background: var(--bg); border-radius: var(--r); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi b { font-size: 18px; color: var(--p-dark); }
.rl { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid var(--line); }
.rl:last-child { border-bottom: 0; }

/* görseller (panel) */
.g-alan { display: flex; gap: 8px; align-items: center; }
.g-on { width: 72px; height: 72px; flex: 0 0 auto; border: 2px dashed #64748b; border-radius: 8px; background: #e2e8f0; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 26px; }
.g-on.genis { width: 144px; }
.g-on img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-btn { display: flex; flex-direction: column; gap: 4px; }
.call .ico img.g-k { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
/* görseller (müşteri menüsü) */
.m-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: #fff; flex: none; }
.m-kapak img { width: 100%; height: 150px; object-fit: cover; display: block; }
.m-kapak[hidden], .m-logo[hidden] { display: none; }
.item .pic.foto { background: #e2e8f0; cursor: zoom-in; }
.item .pic.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-sec h2 { display: flex; align-items: center; gap: 6px; }
.m-kat { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.m-big { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; display: block; background: #f1f5f9; }

/* ---------- raporlar (panel) ---------- */
.rp { display: flex; flex-direction: column; gap: 6px; }
.rp-bar { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; }
.rp-bar { align-items: center; }
.rp-geri { width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 8px; background: var(--p-dark); color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; }
.rp-ad { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.rp-ad small { font-size: 11px; color: var(--muted); }
.rp-ad b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-grup { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; margin-top: 4px; }
.rp-grup::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--c); }
.rp-kartlar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rp-kart { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px; background: #fff; border: 1.5px solid var(--c); border-radius: 10px; text-align: start; cursor: pointer; font: inherit; color: var(--text); }
.rp-kart:hover { background: #fff3e3; }
.rp-kart .ik { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 8px; background: var(--c); font-size: 17px; }
.rp-kart .ad { font-size: 13px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-dl { display: flex; gap: 6px; }
.rp-dl .btn { min-height: 40px; font-weight: 800; }
.rp-csv { background: var(--info); color: #fff; border: 0; }
.rp-chips { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.rp-chip { flex: 0 0 auto; padding: 6px 10px; border-radius: 16px; border: 1.5px solid #b08a66; background: #fff; color: var(--text); font-weight: 700; font-size: 13px; white-space: nowrap; cursor: pointer; }
.rp-chip.on { background: var(--p-dark); border-color: var(--p-dark); color: #fff; }
.rp-chip.sube { border-color: var(--info); color: var(--info); }
.rp-chip.sube.on { background: var(--info); color: #fff; }
.rp-ozel { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; font-weight: 700; }
.rp-ozel input { min-height: 36px; padding: 0 6px; border: 1.5px solid #b08a66; border-radius: 8px; font-size: 14px; }
.rp-not { padding: 10px; color: var(--p-dark); font-weight: 700; }
.rp-ust { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; }
.rp-say { background: var(--p-dark); color: #fff; border-radius: 10px; padding: 2px 8px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.rp-ara { min-height: 36px; padding: 0 9px; border: 1.5px solid #b08a66; border-radius: 8px; font-size: 14px; width: 100%; }
.rp-kutu { overflow: auto; max-height: calc(100vh - 230px); border: 1px solid #c9b8a3; border-radius: 8px; background: #fff; }
.rp-kutu.yuk { opacity: .55; }
.rp-tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.rp-tbl th, .rp-tbl td { border: 1px solid #c9b8a3; padding: 5px 8px; white-space: nowrap; text-align: start; }
.rp-tbl .n { text-align: end; font-variant-numeric: tabular-nums; }
.rp-tbl thead th { position: sticky; top: 0; background: var(--p-dark); color: #fff; cursor: pointer; user-select: none; z-index: 1; }
.rp-tbl tbody tr:nth-child(even) td { background: #f6ebdd; }
.rp-tbl tbody tr:hover td { background: #ffe2bf; }
.rp-tbl tfoot td { position: sticky; bottom: 0; background: #ffd8a8; font-weight: 800; color: var(--text); }
.rp-bos { text-align: center !important; color: var(--p-dark); font-weight: 700; padding: 14px !important; }

/* ================= Panel kabuğu: yan menü + üst çubuk + telefon alt çubuğu ================= */
.ps-body { --side-w: 232px; background: #f4efe8; }
.ps-side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: #fff; border-inline-end: 1px solid #e3d5c3; display: flex; flex-direction: column; z-index: 40; }
[dir="rtl"] .ps-side { inset: 0 0 0 auto; }
.ps-logo { display: flex; align-items: center; gap: 9px; padding: 12px 12px 10px; border-bottom: 1px solid #efe4d6; }
.ps-mark { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--p); color: #fff; display: grid; place-items: center; }
.ps-mark svg { width: 22px; height: 22px; }
.ps-ad { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.ps-ad b { font-size: 15px; color: var(--text); white-space: nowrap; }
.ps-ad b span { color: var(--p); }
.ps-ad small { font-size: 11.5px; color: #6b5a4a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-nav { flex: 1; overflow: auto; padding: 4px 8px 10px; }
.ps-nb { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #8b4513; padding: 10px 8px 3px; }
.ps-nl { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 8px; margin-bottom: 1px; border-radius: 9px; color: #3d3026; font-weight: 600; font-size: 14px; text-decoration: none; }
.ps-nl .ic { width: 30px; height: 30px; flex: none; padding: 6px; border-radius: 8px; color: #fff; background: var(--ic); }
.ps-nl span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-nl:hover { background: #f6eee4; }
.ps-nl.on { background: #ffe8cc; color: #7a3300; font-weight: 800; box-shadow: inset 3px 0 0 var(--p); }
[dir="rtl"] .ps-nl.on { box-shadow: inset -3px 0 0 var(--p); }
.ps-say { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 800; font-style: normal; display: inline-grid; place-items: center; line-height: 1; }
.ps-plan { border-top: 1px solid #efe4d6; padding: 9px 14px; font-size: 12.5px; color: #5c4b3c; text-decoration: none; }
.ps-plan b { color: var(--p-dark); }

.ps-main { margin-inline-start: var(--side-w); min-height: 100dvh; display: flex; flex-direction: column; min-width: 0; }
.ps-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 14px; padding-top: var(--safe-t); background: #fff; border-bottom: 1px solid #e3d5c3; }
.ps-top h1 { font-size: 18px; font-weight: 800; color: var(--text); margin-inline-end: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ps-sel { height: 34px; padding: 0 8px; border: 1.5px solid #c9b8a3; border-radius: 8px; background: #fff; color: var(--text); font-weight: 600; font-size: 13.5px; max-width: 160px; }
.ps-zil { position: relative; width: 38px; height: 38px; flex: none; border: 1.5px solid #c9b8a3; border-radius: 10px; background: #fff; color: #5c4b3c; display: grid; place-items: center; cursor: pointer; }
.ps-zil svg { width: 21px; height: 21px; }
.ps-zil.var { border-color: #7048e8; color: #7048e8; }
.ps-zil .ps-say { position: absolute; top: -6px; inset-inline-end: -6px; }
.ps-av { width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; background: var(--p-dark); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.ps-av.lg { width: 46px; height: 46px; font-size: 20px; display: grid; place-items: center; }
.ps-view { flex: 1; padding: 10px 12px 14px; min-width: 0; }
.ps-bos { padding: 18px; text-align: center; color: #6b5a4a; font-weight: 600; }
.ps-tabbar { display: none; }

/* alttan açılan pencere */
.ps-shbg { position: fixed; inset: 0; z-index: 70; background: rgba(30, 20, 10, .45); display: flex; align-items: flex-end; justify-content: center; }
.ps-sheet { width: min(480px, 100%); max-height: 85dvh; overflow: auto; background: #fff; border-radius: 16px 16px 0 0; padding: 8px 8px calc(12px + var(--safe-b)); animation: ps-up .18s ease-out; }
.ps-sheet .ps-nav { padding: 0; }
@keyframes ps-up { from { transform: translateY(40px); opacity: .6; } }
.ps-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid #efe4d6; margin-bottom: 6px; }
.ps-user b { display: block; font-size: 16px; }
.ps-user small { display: block; color: #5c4b3c; font-size: 12.5px; }

/* tablet: yalnızca simgeler */
@media (max-width: 1023px) {
  .ps-body { --side-w: 64px; }
  .ps-ad, .ps-nb, .ps-nl span, .ps-plan { display: none; }
  .ps-logo { justify-content: center; padding: 12px 0; }
  .ps-side .ps-nav { padding: 6px; }
  .ps-side .ps-nl { justify-content: center; padding: 6px 0; }
  .ps-side .ps-nl .ps-say { position: absolute; top: 0; inset-inline-end: 2px; }
  .ps-sheet .ps-nb, .ps-sheet .ps-nl span { display: block; }
}
/* telefon: yan menü gizli, alt çubuk */
@media (max-width: 719px) {
  .ps-side { display: none; }
  .ps-main { margin-inline-start: 0; }
  .ps-top { height: 50px; padding: 0 8px; gap: 6px; }
  .ps-top h1 { font-size: 16px; }
  .ps-sel { max-width: 92px; height: 32px; font-size: 12.5px; padding: 0 4px; }
  .ps-zil, .ps-av { width: 34px; height: 34px; }
  .ps-view { padding: 8px 8px calc(70px + var(--safe-b)); }
  .ps-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; z-index: 50; background: #fff; border-top: 1px solid #e3d5c3; padding: 4px 2px calc(4px + var(--safe-b)); }
  .ps-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 0; color: #4a3b2e; text-decoration: none; font-size: 11px; font-weight: 700; min-width: 0; }
  .ps-tabbar a span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ps-tabbar .ic { width: 34px; height: 28px; padding: 4px 8px; border-radius: 14px; }
  .ps-tabbar a.on { color: var(--ic); }
  .ps-tabbar a.on .ic { background: var(--ic); color: #fff; }
  .ps-tabbar .ps-say { position: absolute; top: -2px; inset-inline-start: calc(50% + 6px); }
}

/* ================= Ana Sayfa ================= */
.hm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 1000px) { .hm { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.hm-sol, .hm-sag { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hm-bas { font-size: 13px; font-weight: 800; color: #5c3410; margin-top: 2px; }
.hm-duyl { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.hm-duy { --c: var(--info); display: flex; gap: 8px; align-items: flex-start; background: #fff; border: 1.5px solid var(--c); border-inline-start-width: 6px; border-radius: 10px; padding: 8px 10px; }
.hm-duy.uyari { --c: #b45309; } .hm-duy.kampanya { --c: var(--ok); }
.hm-duy > div { flex: 1; min-width: 0; }
.hm-duy b { color: var(--c); font-size: 14.5px; }
.hm-duy p { margin: 2px 0 0; font-size: 13.5px; color: var(--text); }
.hm-duy a { display: inline-block; margin-top: 3px; font-weight: 800; color: var(--c); font-size: 13px; }
.hm-duy button { border: 0; background: transparent; color: #6b5a4a; width: 28px; height: 28px; padding: 4px; cursor: pointer; }
.hm-duy button .ic { width: 20px; height: 20px; }
.hm-ciro { display: flex; flex-direction: column; background: var(--p-dark); color: #fff; border-radius: 12px; padding: 12px 14px; text-decoration: none; }
.hm-ciro small { font-size: 13px; font-weight: 700; opacity: .95; }
.hm-ciro b { font-size: 28px; font-weight: 900; line-height: 1.2; }
.hm-ciro span { font-size: 13px; font-weight: 600; }
.hm-hiz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hm-hiz a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 8px 4px; border-radius: 12px; background: var(--c); color: #fff; text-decoration: none; text-align: center; font-weight: 800; font-size: 13px; line-height: 1.15; }
.hm-hiz a:hover { filter: brightness(1.08); }
.hm-hiz .ic { width: 28px; height: 28px; }
.hm-hiz span { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-sayac { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hm-say { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #d8c8b4; border-radius: 12px; padding: 9px 10px; text-decoration: none; color: var(--text); min-width: 0; }
.hm-say.dikkat { border: 2px solid var(--c); background: #fff8f0; }
.hm-say .ic { width: 36px; height: 36px; flex: none; padding: 7px; border-radius: 10px; background: var(--c); color: #fff; }
.hm-say div { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hm-say b { font-size: 20px; font-weight: 900; }
.hm-say span { font-size: 12.5px; font-weight: 700; color: #4a3b2e; }
.hm-say small { font-size: 11.5px; font-weight: 700; color: var(--c); }
.hm-best { background: #fff; border: 1.5px solid #d8c8b4; border-radius: 12px; padding: 4px 10px; }
.hm-best > div { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #efe4d6; font-size: 14px; }
.hm-best > div:last-child { border-bottom: 0; }
.hm-best i { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--p); color: #fff; font-style: normal; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.hm-best span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hm-best p { padding: 10px 0; margin: 0; color: #6b5a4a; text-align: center; font-weight: 600; }

.hm-duy > div > b { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.hm-duy > div > b .ok { margin-inline-start: auto; font-size: 15px; }
.hm-duy.kucuk p, .hm-duy.kucuk a { display: none; }

/* Ayarlar sekmesi */
.st { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.st-kart { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; }
.st-kart > b { font-size: 14px; color: var(--text); }
.st-kart > small { font-size: 12px; color: var(--muted); margin-top: -4px; }
.st-kart .rp-chips { flex-wrap: wrap; }
.st-kart input:disabled { background: #f1f3f5; color: var(--text); }
.st-hata { color: #c92a2a; font-weight: 700; font-size: 12px; }
.st-kaydet { align-self: flex-start; min-width: 140px; }
.rp-chip:disabled { opacity: .55; cursor: default; }
.ps-bos { padding: 10px; color: var(--muted); }

/* Mutfak ekranı */
.kan { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; align-items: start; }
.col { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); padding: 6px; min-height: 120px; }
.col > h3 { font-size: 15px; font-weight: 800; color: var(--c); }
.col-say { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--c); color: #fff; font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; }
.col-bos { color: var(--muted); padding: 8px 4px; font-size: 13px; }
.col .tk { --c: inherit; border: 1px solid var(--line); border-inline-start: 5px solid var(--c); box-shadow: none; gap: 5px; }
.col .tk.late { border-color: var(--bad); border-inline-start-color: var(--bad); background: #fff5f5; }
.tk-h { gap: 6px; }
.tk-h b { flex: 1; min-width: 0; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-h small { color: var(--muted); font-size: 12px; font-weight: 700; }
.tk-sure { font-weight: 800; font-size: 13px; color: var(--p-dark); background: var(--p-soft); border-radius: 10px; padding: 2px 7px; white-space: nowrap; }
.tk.late .tk-sure { background: var(--bad); color: #fff; }
.tk-ik { width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #c9b8a6; border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; display: grid; place-items: center; color: var(--text); }
.tk-ik.iptal { color: var(--bad); border-color: #f1a5a5; }
.tk-ik:hover { background: var(--bg); }
.tk li { font-size: 16px; align-items: baseline; }
.tk li b { font-size: 17px; min-width: 30px; }
.tk li span { display: flex; flex-direction: column; font-weight: 600; }
.tk li i { color: var(--bad); font-size: 13px; font-weight: 700; }
.tk .note { font-size: 13px; font-weight: 600; background: #ffe8a3; color: #5c3d00; }
.tk-ana { width: 100%; min-height: 42px; font-size: 16px; font-weight: 800; background: var(--b); color: #fff; white-space: nowrap; }
.kan-sek { display: none; }
@media (max-width: 719px) {
  .kan-sek { display: flex; gap: 5px; margin-bottom: 6px; }
  .kan-sek button { flex: 1; min-width: 0; padding: 7px 4px; border-radius: 8px; border: 2px solid var(--c); background: #fff; color: var(--c); font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kan-sek button.on { background: var(--c); color: #fff; }
  .kan { display: block; }
  .col { display: none; border-top-width: 1px; }
  .col.on { display: flex; }
  .col.on > h3 { display: none; }
}
