:root {
  --bg: #1d1b19;
  --panel: #2a2724;
  --panel2: #34302c;
  --line: #4a443e;
  --text: #ece8e0;
  --muted: #a89f93;
  --teal: #6fb7b5;
  --gold: #e6b85c;
  --danger: #e0705f;
  --ok: #7cc08a;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--teal); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.wide { max-width: 1100px; }

/* Üst çubuk */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 10; }
.topbar .brand { font-weight: 700; color: var(--gold); text-decoration: none; letter-spacing: .02em; }
.topbar .who { color: var(--muted); font-size: .9rem; }

/* Düğmeler ve form alanları */
button, .btn {
  font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; display: inline-block; text-align: center; min-height: 44px;
}
button:hover, .btn:hover { border-color: var(--teal); }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: var(--teal); color: #10201f; border-color: var(--teal); font-weight: 700; }
.gold { background: var(--gold); color: #2a1f08; border-color: var(--gold); font-weight: 700; }
.danger { color: var(--danger); border-color: #6d3a33; }
.small { padding: 6px 10px; min-height: 34px; font-size: .9rem; }
input, select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #161412; color: var(--text); min-height: 44px;
}
input:focus, select:focus, textarea:focus, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
label { display: block; margin: 12px 0 4px; color: var(--muted); font-size: .9rem; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 140px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0; }
.err { color: var(--danger); min-height: 1.4em; margin: 8px 0 0; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--teal); padding: 10px 16px; border-radius: 10px; z-index: 50; max-width: 90vw; }

/* Ana sayfa */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 18px; }
.logo { width: min(280px, 70vw); border-radius: 18px; display: block; }
.corner { position: fixed; top: 12px; right: 12px; z-index: 5; }
.hero .btn { font-size: 1.15rem; padding: 14px 32px; }

/* Menü */
.menu-head { text-align: center; padding: 18px 12px 6px; }
.menu-head .logo { width: 150px; margin: 0 auto 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; position: sticky; top: 0; background: var(--bg); z-index: 5; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.chip.on { background: var(--gold); color: #2a1f08; border-color: var(--gold); }
.cat { padding-top: 14px; scroll-margin-top: 62px; }
.cat h2 { color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.cat .note { color: var(--teal); font-style: italic; margin: 4px 0 8px; }
.item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #3b3631; }
.item .p { white-space: nowrap; font-weight: 700; color: var(--gold); }
.item .p.ask { color: var(--muted); font-weight: 400; font-size: .9rem; }

/* Garson */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.tbtn { padding: 0; height: 72px; font-size: 1.4rem; font-weight: 700; position: relative; }
.tbtn.open { background: #3b3017; border-color: var(--gold); color: var(--gold); }
.tbtn.pending { background: #4b2a22; border-color: var(--danger); color: #ffb9ac; }
.tbtn small { position: absolute; bottom: 4px; left: 0; right: 0; font-size: .65rem; font-weight: 400; }
.menu-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px dashed #3b3631; }
.menu-row .nm { flex: 1; }
.menu-row .pr { color: var(--gold); white-space: nowrap; font-size: .9rem; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 44px; padding: 0; font-size: 1.3rem; }
.qty b { min-width: 24px; text-align: center; }
.cartbar { position: sticky; bottom: 0; margin: 0 -16px; background: var(--panel); border-top: 1px solid var(--teal); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); z-index: 8; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.tab { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.tab.on { background: var(--teal); color: #10201f; border-color: var(--teal); font-weight: 700; }

/* Admin */
.cols { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .cols { grid-template-columns: 330px 1fr; align-items: start; } }
.order { border-left: 4px solid var(--danger); }
.order.done { border-left-color: var(--ok); opacity: .8; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; background: var(--panel2); border: 1px solid var(--line); }
.badge.new { color: #ffb9ac; border-color: var(--danger); }
.badge.done { color: var(--ok); border-color: var(--ok); }
table.list { width: 100%; border-collapse: collapse; }
table.list td, table.list th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.list input { min-height: 38px; padding: 6px 8px; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 12px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.total { font-size: 1.3rem; font-weight: 700; color: var(--gold); text-align: right; margin-top: 8px; }
