/* ==========================================================================
   Sırada — QR Gel-Al Sipariş & Sıra Sistemi · Tasarım sistemi v2
   Palet: Mavi · Beyaz · Siyah
   ========================================================================== */
:root {
  --blue: #1f5eff;
  --blue-600: #1748d6;
  --blue-700: #1238a8;
  --blue-50: #eef3ff;
  --blue-100: #dbe5ff;
  --ink: #0a0a0b;
  --ink-2: #1a1b1f;
  --ink-3: #2a2c33;
  --white: #ffffff;
  --bg: #ffffff;
  --subtle: #f5f6f9;
  --line: #e7e9ef;
  --line-2: #d9dce4;
  --muted: #5d6270;
  --faint: #9ba0ad;
  --danger: #e5383b;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 11, .06);
  --shadow: 0 10px 30px -12px rgba(10, 10, 11, .18);
  --shadow-lg: 0 30px 60px -24px rgba(10, 10, 11, .35);
  --font: "Inter", "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; letter-spacing: -.005em; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.sr-num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 40%, transparent); outline-offset: 2px; }

/* ---------- İkon ---------- */
.ic { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 26px; height: 26px; }
.ic.xl { width: 34px; height: 34px; }

/* ---------- Butonlar & rozetler ---------- */
.sr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.sr-btn:hover { background: var(--subtle); }
.sr-btn:active { transform: scale(.98); }
.sr-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(31, 94, 255, .55); }
.sr-btn.primary:hover { background: var(--blue-600); border-color: var(--blue-600); }
.sr-btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.sr-btn.dark:hover { background: var(--ink-3); }
.sr-btn.block { width: 100%; }
.sr-btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.sr-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.sr-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--subtle); color: var(--muted); border: 1px solid var(--line); }
.sr-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sr-pill.open { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-600); }
.sr-pill.closed { background: var(--ink); border-color: var(--ink); color: #fff; }
.sr-toast { position: fixed; left: 50%; top: 16px; z-index: 300; display: flex; align-items: center; gap: 10px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); }
.sr-toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-toast.err { background: var(--danger); }
.sr-toast .ic { color: var(--blue-100); }

/* ==========================================================================
   Müşteri menüsü
   ========================================================================== */
.m-bar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.m-bar-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.m-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.m-logo .ic { color: var(--blue); width: 22px; height: 22px; }
.m-title { min-width: 0; flex: 1; }
.m-title b { display: block; font-size: 16px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-title span { display: block; font-size: 12.5px; color: var(--muted); }
.m-cartbtn { position: relative; display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; place-items: center; }
.m-cartbtn em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--blue); color: #fff; font: 700 11px/20px var(--font); font-style: normal; text-align: center; }

.m-wrap { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding: 20px 20px 120px; align-items: start; }
.m-wrap > main { min-width: 0; }
.m-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.m-hero .eta { display: flex; align-items: baseline; gap: 4px; }
.m-hero .eta b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.m-hero .eta span { color: #a7acb8; font-weight: 600; }
.m-hero p { margin: 0; font-size: 14px; line-height: 1.45; color: #c9ccd4; }
.m-hero p strong { color: #fff; }
.m-meter { display: flex; gap: 4px; margin-top: 10px; }
.m-meter i { flex: 1; height: 5px; border-radius: 4px; background: var(--ink-3); transition: background .3s; }
.m-meter i.on { background: var(--blue); }
.m-hero .sr-pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.m-hero .sr-pill.open { background: rgba(31, 94, 255, .2); border-color: rgba(31, 94, 255, .45); color: #b9ccff; }
.m-hero .sr-pill.closed { background: #fff; color: var(--ink); }
.m-info { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.m-info span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.m-info .ic { color: var(--blue); }
.m-notice { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--blue-50); color: var(--blue-700); font-size: 14px; font-weight: 600; border: 1px solid var(--blue-100); }
.m-ticket { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; box-shadow: var(--shadow-sm); animation: pop .35s; }
.m-ticket .no { min-width: 58px; height: 44px; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.m-ticket span { flex: 1; font-size: 14px; color: var(--muted); }
.m-ticket span b { display: block; color: var(--ink); }
.m-ticket.ready { border-color: var(--blue); background: var(--blue-50); }
.m-ticket.ready .no { background: var(--blue); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }

.m-nav { position: sticky; top: 65px; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); padding: 14px 0 10px; margin-top: 8px; }
.m-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--subtle); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.m-search:focus-within { background: #fff; border-color: var(--blue); }
.m-search .ic { color: var(--faint); }
.m-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
.m-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; }
.m-cats::-webkit-scrollbar { display: none; }
.m-cats button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .15s; }
.m-cats button .ic { width: 17px; height: 17px; }
.m-cats button:hover { color: var(--ink); border-color: var(--line-2); }
.m-cats button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.m-cats button.on .ic { color: var(--blue-100); }

.m-sec { scroll-margin-top: 170px; }
.m-sec h2 { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-size: 19px; letter-spacing: -.02em; }
.m-sec h2 .ic { color: var(--blue); }
.m-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m-item { position: relative; display: flex; gap: 14px; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: left; width: 100%; transition: border-color .15s, box-shadow .2s, transform .15s; }
.m-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.m-item:active { transform: scale(.99); }
.m-item .art { width: 76px; height: 76px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, var(--blue-50), #fff); border: 1px solid var(--blue-100); color: var(--blue); }
.m-item .art .ic { width: 36px; height: 36px; stroke-width: 1.6; }
.m-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.m-item .t { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.m-item .d { font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-item .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.m-item .price { font-weight: 750; font-size: 15.5px; }
.m-item .add { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background .15s; }
.m-item:hover .add { background: var(--blue); }
.m-item .incart { position: absolute; top: 10px; left: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; }
.m-item.out { opacity: .5; }
.m-item.out .add { background: var(--faint); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 650; background: var(--subtle); color: var(--muted); }
.tag .ic { width: 12px; height: 12px; }
.tag.populer { background: var(--ink); color: #fff; }
.tag.yeni { background: var(--blue); color: #fff; }
.tag.vejetaryen { background: var(--blue-50); color: var(--blue-700); }
.tag.tukendi { background: var(--line); color: var(--ink); }
.m-empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* Sepet */
.cart { position: sticky; top: 85px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: calc(100vh - 105px); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 8px; }
.cart-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; letter-spacing: -.02em; }
.cart-head h2 .ic { color: var(--blue); }
.cart-close { display: none; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--subtle); place-items: center; }
.cart-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; flex: 1 1 auto; min-height: 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-lines .ln-name { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 14.5px; min-width: 0; }
.cart-lines .ln-name .art { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.cart-lines .ln-name .art .ic { width: 18px; height: 18px; }
.cart-lines small { grid-column: 1; color: var(--muted); font-size: 12.5px; padding-left: 44px; }
.cart-lines .lp { text-align: right; font-weight: 700; font-size: 14.5px; }
.qty { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 32px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--ink); }
.qty button:hover { background: var(--subtle); }
.qty button .ic { width: 15px; height: 15px; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-empty { display: grid !important; justify-items: center; gap: 10px; padding: 30px 0 !important; text-align: center; color: var(--muted); font-size: 14px; border: 0 !important; }
.cart-empty .ic { width: 34px; height: 34px; color: var(--line-2); }
.upsell { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px; border-radius: 14px; background: var(--blue-50); border: 1px solid var(--blue-100); font-size: 13.5px; }
.upsell .art { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.upsell span { flex: 1; line-height: 1.35; }
.upsell button { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 9px; border: 0; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; }
.cart-form { padding: 14px 0 6px; display: grid; gap: 12px; }
.cart-form label { font-size: 13px; font-weight: 650; display: grid; gap: 6px; }
.cart-form input, .cart-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; outline: none; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.cart-form input:focus, .cart-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.cart-form textarea { resize: none; min-height: 60px; }
.cart-form .hint { font-weight: 400; color: var(--faint); font-size: 12px; }
.paybox { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--subtle); font-size: 13.5px; color: var(--muted); }
.paybox .ic { color: var(--ink); }
.cart-foot { flex-shrink: 0; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cart-total b { font-size: 24px; letter-spacing: -.03em; }
.cart-eta { color: var(--muted); font-size: 13px; }
.cart-fab { display: none; }

/* Ürün seçenek sayfası */
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 11, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-bg.show { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 100; left: 50%; bottom: 0; width: min(520px, 100%); max-height: 92vh; display: flex; flex-direction: column; border-radius: 24px 24px 0 0; background: #fff; transform: translate(-50%, 105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.sheet.show { transform: translate(-50%, 0); }
.sheet-top { padding: 10px 20px 0; position: relative; }
.sheet-top::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 0 auto 6px; }
.sheet-x { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--subtle); display: grid; place-items: center; }
.sheet-hero { display: flex; gap: 16px; align-items: center; padding: 10px 20px 16px; }
.sheet-hero .art { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg, var(--blue-50), #fff); border: 1px solid var(--blue-100); color: var(--blue); flex-shrink: 0; }
.sheet-hero .art .ic { width: 42px; height: 42px; stroke-width: 1.5; }
.sheet-hero h3 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.02em; }
.sheet-hero p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 10px; }
.opt-group { border: 0; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.opt-group legend { padding: 0; width: 100%; }
.opt-group h4 { margin: 0 0 8px; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; }
.opt-group h4 small { color: var(--faint); font-weight: 500; font-size: 12.5px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.opt input { appearance: none; width: 20px; height: 20px; margin: 0; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; transition: all .15s; }
.opt input[type=radio] { border-radius: 50%; }
.opt input[type=checkbox] { border-radius: 6px; }
.opt input:checked { border-color: var(--blue); background: var(--blue); }
.opt input[type=radio]:checked { box-shadow: inset 0 0 0 4px #fff; }
.opt input[type=checkbox]:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt span { flex: 1; }
.opt em { font-style: normal; color: var(--muted); font-size: 14px; font-weight: 600; }
.sheet-foot { flex-shrink: 0; display: flex; gap: 10px; align-items: center; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.sheet-foot .qty { height: 48px; }
.sheet-foot .qty button { width: 42px; }
.sheet-foot .sr-btn { flex: 1; min-height: 48px; }

/* ==========================================================================
   Bilet / takip
   ========================================================================== */
.t-body { background: var(--subtle); min-height: 100vh; }
.t-wrap { max-width: 460px; margin: 0 auto; padding: 16px 16px 40px; }
.t-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.t-top a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); }
.ticket { border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.ticket-main { position: relative; padding: 26px 24px 24px; text-align: center; background: var(--ink); color: #fff; overflow: hidden; transition: background .4s; }
.ticket-main::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 94, 255, .45), transparent 65%); pointer-events: none; }
.ticket.is-ready .ticket-main { background: var(--blue); }
.ticket.is-ready .ticket-main::after { background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 65%); }
.ticket.is-done .ticket-main, .ticket.is-cancel .ticket-main { background: var(--ink-3); }
.t-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a7acb8; }
.ticket.is-ready .t-label { color: var(--blue-100); }
.t-no { position: relative; z-index: 1; font-size: clamp(96px, 32vw, 136px); font-weight: 850; letter-spacing: -.06em; line-height: .95; margin: 10px 0 8px; }
.ticket.is-ready .t-no { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.t-name { position: relative; z-index: 1; font-size: 15px; color: #c9ccd4; }
.t-name b { color: #fff; }
.t-code { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; letter-spacing: .08em; }
.t-state { padding: 20px 24px 6px; text-align: center; }
.t-status { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.t-status .ic { color: var(--blue); width: 24px; height: 24px; }
.t-sub { margin-top: 6px; color: var(--muted); font-size: 15px; min-height: 1.3em; }
.t-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.t-steps li { display: grid; gap: 7px; justify-items: center; font-size: 11.5px; font-weight: 650; color: var(--faint); }
.t-steps li::before { content: ""; width: 100%; height: 6px; border-radius: 9px; background: var(--line); transition: background .4s; }
.t-steps li.on { color: var(--ink); }
.t-steps li.on::before { background: var(--blue); }
.t-steps li.now::before { background: repeating-linear-gradient(-45deg, var(--blue), var(--blue) 6px, #6f97ff 6px, #6f97ff 12px); background-size: 17px 17px; animation: stripe 1s linear infinite; }
@keyframes stripe { to { background-position: 17px 0; } }
.t-detail { padding: 18px 24px 24px; }
.t-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.t-meta div { padding: 12px 8px; border-radius: 14px; background: var(--subtle); text-align: center; }
.t-meta b { display: block; font-size: 20px; letter-spacing: -.02em; }
.t-meta small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.t-items { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.t-items li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.t-items small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.t-total { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 800; font-size: 18px; }
.t-pay { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--subtle); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.t-pay.paid { background: var(--blue-50); color: var(--blue-700); }
.t-actions { display: grid; gap: 10px; margin-top: 16px; }
.t-err { text-align: center; padding: 60px 20px; color: var(--muted); }
.t-help { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 16px; }

/* ==========================================================================
   Mutfak / kasa paneli
   ========================================================================== */
.p-body { background: var(--subtle); }
.p-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--ink); }
.p-login form { width: min(360px, 100%); padding: 32px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); text-align: center; }
.p-login .badge { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; background: var(--ink); color: var(--blue); display: grid; place-items: center; }
.p-login h1 { margin: 16px 0 4px; font-size: 22px; letter-spacing: -.02em; }
.p-login p { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.pin { width: 100%; height: 58px; text-align: center; font-size: 28px; letter-spacing: .5em; border: 1px solid var(--line-2); border-radius: 14px; margin-bottom: 10px; outline: none; }
.pin:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.p-err { color: var(--danger); font-size: 14px; min-height: 1.3em; margin: 0 0 10px !important; }
.p-demo { margin: 14px 0 0 !important; font-size: 13px; color: var(--muted); }
.p-demo a { color: var(--blue); text-decoration: none; font-weight: 600; }
.p-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 18px; background: var(--ink); color: #fff; }
.p-bar h1 { display: flex; align-items: center; gap: 10px; margin: 0 auto 0 0; font-size: 16px; letter-spacing: -.01em; }
.p-bar h1 .ic { color: var(--blue); }
.p-bar .clock { font-size: 14px; color: #a7acb8; font-weight: 600; }
.p-bar button, .p-bar a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ink-3); background: var(--ink-2); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.p-bar button:hover, .p-bar a:hover { background: var(--ink-3); }
.p-bar button.on { background: var(--blue); border-color: var(--blue); }
.p-bar button.off { background: #fff; border-color: #fff; color: var(--ink); }
.p-bar .ic { width: 16px; height: 16px; }
.p-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 16px 18px 0; }
.p-stats div { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.p-stats .ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--blue-50); color: var(--blue); }
.p-stats b { display: block; font-size: 21px; letter-spacing: -.02em; }
.p-stats small { color: var(--muted); font-size: 12px; font-weight: 600; }
.p-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px 18px; align-items: start; }
.p-col { border-radius: 20px; background: #eceef3; padding: 10px; min-height: 220px; }
.p-col h2 { display: flex; align-items: center; gap: 8px; margin: 4px 6px 10px; font-size: 14.5px; }
.p-col h2 .cnt { margin-left: auto; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; background: #fff; font-size: 13px; }
.p-col[data-col="hazirlaniyor"] h2 .ic { color: var(--blue); }
.p-col[data-col="hazir"] { background: var(--blue-50); }
.p-col[data-col="hazir"] h2 { color: var(--blue-700); }
.p-card { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); animation: pop .3s; position: relative; }
.p-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ink); }
.p-card.hazirlaniyor::before { background: var(--blue); }
.p-card.hazir::before { background: var(--blue); }
.p-card.late::before { background: var(--danger); }
.p-card.fresh { animation: flash 1.2s 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 4px var(--blue-100); } }
.p-card-top { display: flex; align-items: center; gap: 10px; }
.p-card-top .no { font-size: 24px; font-weight: 850; letter-spacing: -.04em; }
.p-card-top .who { font-weight: 650; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card-top .age { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.p-card.late .age { color: var(--danger); }
.p-items { list-style: none; margin: 10px 0; padding: 0; font-size: 14px; }
.p-items li { padding: 4px 0; }
.p-items li b { display: inline-block; min-width: 28px; }
.p-items small { display: block; color: var(--muted); font-size: 12px; padding-left: 28px; }
.p-note { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: var(--blue-50); color: var(--blue-700); font-size: 13px; font-weight: 600; }
.p-note .ic { width: 16px; height: 16px; margin-top: 1px; }
.p-card-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.p-card-foot .go { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 11px; border: 0; color: #fff; font-weight: 700; font-size: 14px; }
.go.yeni { background: var(--ink); } .go.hazirlaniyor { background: var(--blue); } .go.hazir { background: var(--ink); }
.p-mini { display: inline-flex; align-items: center; gap: 5px; height: 42px; padding: 0 11px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; font-size: 12.5px; font-weight: 650; }
.p-mini .ic { width: 15px; height: 15px; }
.p-mini.paid { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); }
.p-mini.unpaid { border-color: var(--ink); }
.p-code { margin-top: 8px; font-size: 12px; color: var(--muted); }
.p-code b { color: var(--ink); letter-spacing: .06em; }
.p-side { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; padding: 0 18px 30px; }
.p-box { background: #fff; border-radius: 20px; padding: 18px; border: 1px solid var(--line); }
.p-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; }
.p-box h2 .ic { color: var(--blue); }
.p-box h2 small { color: var(--faint); font-weight: 500; font-size: 12.5px; }
.p-stock { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.p-stock label { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; cursor: pointer; }
.p-stock label .ic { color: var(--blue); width: 17px; height: 17px; }
.p-stock input { accent-color: var(--ink); }
.p-stock label.out { background: var(--ink); border-color: var(--ink); color: #fff; }
.p-stock label.out .ic { color: var(--faint); }
.p-hist { list-style: none; margin: 0; padding: 0; font-size: 13.5px; max-height: 320px; overflow-y: auto; }
.p-hist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.p-hist li b { min-width: 44px; }
.p-hist li span { flex: 1; color: var(--muted); }
.p-hist .p-mini { height: 32px; }
.p-notice { display: flex; gap: 8px; margin-top: 12px; }
.p-notice input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); outline: none; }
.p-notice input:focus { border-color: var(--blue); }
.p-empty { display: grid; justify-items: center; gap: 6px; color: var(--faint); text-align: center; font-size: 13px; padding: 26px 0; }
.p-empty .ic { width: 26px; height: 26px; }

/* ==========================================================================
   TV sıra panosu
   ========================================================================== */
.e-body { background: var(--ink); color: #fff; min-height: 100vh; overflow: hidden; }
.e-head { display: flex; justify-content: space-between; align-items: center; height: 11vh; padding: 0 3vw; border-bottom: 1px solid var(--ink-3); }
.e-head h1 { margin: 0; font-size: 3.4vh; display: flex; align-items: center; gap: 1.6vh; letter-spacing: -.02em; }
.e-head h1 i { width: 6vh; height: 6vh; border-radius: 1.6vh; display: grid; place-items: center; background: var(--blue); }
.e-head h1 i svg { width: 3.4vh; height: 3.4vh; }
.e-clock { font-size: 4vh; font-weight: 800; letter-spacing: -.02em; }
.e-grid { display: grid; grid-template-columns: 1fr 1.3fr; height: 78vh; }
.e-col { padding: 3vh 3vw; overflow: hidden; }
.e-col h2 { margin: 0 0 3vh; font-size: 2.8vh; text-transform: uppercase; letter-spacing: .14em; display: flex; align-items: center; gap: 1.4vh; color: #a7acb8; }
.e-col h2 svg { width: 3.2vh; height: 3.2vh; color: var(--blue); }
.e-col.ready { background: var(--blue); }
.e-col.ready h2 { color: #fff; }
.e-col.ready h2 svg { color: #fff; }
.e-nums { display: flex; flex-wrap: wrap; gap: 1.8vh; align-content: flex-start; }
.e-num { min-width: 16vh; padding: 1.4vh 2.2vh; border-radius: 1.8vh; font-size: 7vh; font-weight: 850; letter-spacing: -.04em; text-align: center; background: var(--ink-2); border: 1px solid var(--ink-3); color: #9ba0ad; }
.e-num.cooking { color: #fff; border-color: var(--blue); box-shadow: inset 0 -.6vh 0 var(--blue); }
.e-col.ready .e-num { background: #fff; border-color: #fff; color: var(--ink); font-size: 11vh; min-width: 24vh; }
.e-col.ready .e-num.new { animation: callout 1s ease-in-out 6; }
@keyframes callout { 50% { transform: scale(1.06); box-shadow: 0 0 0 1vh rgba(255, 255, 255, .35); } }
.e-empty { color: #5d6270; font-size: 3vh; }
.e-col.ready .e-empty { color: var(--blue-100); }
.e-foot { display: flex; justify-content: space-between; align-items: center; height: 11vh; padding: 0 3vw; border-top: 1px solid var(--ink-3); font-size: 2.4vh; color: #a7acb8; gap: 2vw; }
.e-foot b { color: #fff; }
.e-foot #notice { margin-right: 22vw; text-align: right; }
.e-qr { display: flex; align-items: center; gap: 1.8vh; }
.e-qr span:first-child { display: block; width: 8.4vh; height: 8.4vh; background: #fff; border-radius: 1vh; padding: .5vh; }
.e-qr svg { width: 100%; height: 100%; display: block; }
.e-sound { position: fixed; right: 3vw; bottom: 2.6vh; display: inline-flex; align-items: center; gap: 1vh; padding: 1.2vh 2vh; border-radius: 1.2vh; border: 1px solid var(--ink-3); background: var(--ink-2); color: #fff; font-size: 1.9vh; font-weight: 600; z-index: 5; }
.e-sound svg { width: 2.4vh; height: 2.4vh; }
.e-sound.on { background: #fff; color: var(--ink); }
.e-callout { position: fixed; inset: 0; display: grid; place-items: center; background: var(--blue); z-index: 10; opacity: 0; pointer-events: none; transition: opacity .3s; text-align: center; }
.e-callout.show { opacity: 1; }
.e-callout small { display: block; font-size: 3.4vh; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-100); font-weight: 700; }
.e-callout b { display: block; font-size: 34vh; line-height: 1; font-weight: 900; letter-spacing: -.06em; }
.e-callout span { font-size: 5vh; font-weight: 700; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
  .p-stats { grid-template-columns: repeat(3, 1fr); }
  .p-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-board .p-col[data-col="hazir"] { grid-column: span 2; }
  .p-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 920px) {
  .m-wrap { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .m-cartbtn { display: grid; }
  .m-list { grid-template-columns: minmax(0, 1fr); }
  .cart { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 100; max-height: 92vh; border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
  .cart.show { transform: none; }
  .cart-close { display: grid; }
  .cart-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .cart-fab { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15.5px; box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .5); transform: translateY(150%); transition: transform .3s; }
  .cart-fab.show { transform: none; }
  .cart-fab .count { min-width: 28px; height: 28px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; font-size: 13px; }
  .cart-fab span:nth-child(2) { flex: 1; text-align: left; }
  .e-grid { grid-template-columns: 1fr; height: auto; }
  .e-body { overflow: auto; }
}
@media (max-width: 640px) {
  .m-hero { grid-template-columns: auto minmax(0, 1fr); }
  .m-hero > .sr-pill { grid-column: 1 / -1; justify-self: start; }
  .p-board { grid-template-columns: minmax(0, 1fr); }
  .p-board .p-col[data-col="hazir"] { grid-column: auto; }
  .p-stats { grid-template-columns: 1fr 1fr; }
  .p-bar h1 { width: 100%; }
  .p-bar .lbl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
