/* Burger Prof. prototípus — közös stíluslap (vendég + pult) */

:root {
  --bg: #111111;
  --bg-2: #1a1a1a;
  --bg-3: #242424;
  --line: #2e2e2e;
  --red: #E52E32;
  --red-dark: #c01f23;
  --yellow: #EDCE08;
  --gold: #F2A900;
  --white: #ffffff;
  --muted: #a8a8a8;
  --green: #1fa855;
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tap: 48px;
  --radius: 6px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
p { margin: 0; }
a { color: var(--yellow); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border: 0; border-radius: var(--radius);
  font-weight: 800; font-size: 18px; letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 80ms ease, background-color 120ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-red:disabled { background: var(--bg-3); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid var(--line); }
.btn-xl { width: 100%; min-height: 60px; padding: 0 12px; font-size: 19px; }
.icon-btn {
  width: var(--tap); height: var(--tap);
  border: 0; border-radius: var(--radius); background: var(--bg-3); color: var(--white);
  font-size: 20px; font-weight: 800;
}

/* ---------- Fotó helyőrző (fix 4:3) ---------- */
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 10px, transparent 10px 20px),
    var(--c, #222);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-emoji { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5)); }
.ph-label {
  position: absolute; left: 8px; bottom: 8px;
  padding: 2px 6px; background: rgba(0,0,0,0.75);
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted);
}
.ph-hero .ph-emoji { font-size: 120px; }
.ph-sm .ph-emoji { font-size: 34px; }
.ph-sm .ph-label { font-size: 8px; left: 4px; bottom: 4px; }

/* =====================================================================
   VENDÉG-OLDAL
   ===================================================================== */

.closed-bar {
  padding: 12px var(--gutter);
  background: var(--yellow); color: #111;
  font-weight: 800; font-size: 16px; text-align: center;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 52px; padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 800; font-size: 20px; letter-spacing: -0.03em;
  color: var(--white); text-decoration: none;
}
.logo span { color: var(--red); margin-left: 2px; }
.logo-sm { font-size: 17px; }
.topbar-tag { font-size: 12px; color: var(--muted); font-weight: 600; text-align: right; }

/* Hero */
.hero { max-width: 720px; margin: 0 auto; }
.hero-body { padding: 16px var(--gutter) 20px; }
.hero h1 { font-size: 38px; margin-bottom: 16px; }
.hero-info { margin-top: 12px; font-size: 14px; color: var(--muted); font-weight: 600; text-align: center; }
.hero .btn-xl { font-size: 22px; letter-spacing: 0.04em; }

/* Kategória-fülek */
.cat-tabs {
  position: sticky; top: 0; z-index: 30;
  display: flex; gap: 4px;
  padding: 8px var(--gutter);
  background: rgba(17,17,17,0.96);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 0 0 auto;
  min-height: 44px; min-width: 48px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font-weight: 800; font-size: 16px;
}
.cat-tab.active { background: var(--white); color: #111; }

/* Étlap */
.menu { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) 24px; }
.menu-section { padding-top: 28px; scroll-margin-top: 64px; }
.menu-section h2 { font-size: 30px; margin-bottom: 14px; text-transform: uppercase; }
.cards { display: grid; gap: 12px; }

.card { background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.card h3 { font-size: 24px; }
.desc { color: var(--muted); font-size: 14px; margin-top: 4px; }
.price { font-weight: 800; font-size: 20px; color: var(--white); white-space: nowrap; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* nagy kártya (burgerek) */
.card-large .card-body { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.card-text { min-width: 0; }
.card-large .desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* sor-kártya (köret, szósz, ital) */
.card-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: stretch; }
.card-row .ph { height: 100%; aspect-ratio: 4 / 3; align-self: center; }
.card-row .ph-emoji { font-size: 40px; }
.card-row .ph-label { font-size: 8px; left: 4px; bottom: 4px; }
.card-row .card-body { padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-width: 0; }
.card-row h3 { font-size: 19px; }
.card-row .desc { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-row .price { font-size: 17px; }
.card-row .card-foot { gap: 8px; }
.card-row .plus { width: var(--tap); height: var(--tap); font-size: 30px; }
.card-row .stepper { height: var(--tap); }
.card-row .stepper button { width: var(--tap); height: var(--tap); font-size: 24px; }
.card-row .stepper .qty { min-width: 22px; font-size: 19px; }

.extra-link {
  display: inline-block; margin-top: 6px; min-height: 32px; padding: 6px 0;
  border: 0; background: none; color: var(--gold);
  font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
/* A link tapintható területe 48px legyen, a látvány maradjon kicsi */
.extra-link { position: relative; }
.extra-link::after { content: ''; position: absolute; inset: -8px -12px; }
body.ordering-off .extra-link { display: none; }

.is-soldout { opacity: 0.45; filter: grayscale(1); }
.soldout-tag {
  display: inline-block; padding: 6px 10px; border: 2px solid var(--muted); border-radius: var(--radius);
  font-weight: 800; font-size: 14px; text-transform: uppercase; color: var(--muted);
}

/* + gomb és számláló */
.ctrl { display: inline-flex; }
.plus {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border: 0; border-radius: var(--radius);
  background: var(--red); color: var(--white);
  font-size: 34px; font-weight: 800; line-height: 1;
}
.plus:active { background: var(--red-dark); }
.plus-sm { width: 36px; height: 36px; font-size: 24px; }
.plus-sm.in-cart { width: auto; padding: 0 8px; background: var(--yellow); color: #111; font-size: 16px; }

.stepper {
  display: inline-flex; align-items: center;
  background: var(--white); color: #111; border-radius: var(--radius);
  height: 56px;
}
.stepper button {
  width: 52px; height: 56px; border: 0; background: transparent; color: #111;
  font-size: 28px; font-weight: 800;
}
.stepper .qty { min-width: 28px; text-align: center; font-size: 22px; font-weight: 800; }
.stepper-sm { height: var(--tap); }
.stepper-sm button { width: var(--tap); height: var(--tap); font-size: 24px; }
.stepper-sm .qty { font-size: 18px; min-width: 22px; }

.pop { animation: pop 150ms ease-out; }
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Lábléc */
.footer {
  max-width: 720px; margin: 24px auto 0; padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
  display: grid; gap: 6px;
}
.footer .logo { margin-bottom: 6px; }
.footer a { color: var(--white); display: inline-block; min-height: var(--tap); line-height: var(--tap); }
.footer-links a { margin-right: 4px; }
body.has-cart-bar .footer { padding-bottom: 150px; }

/* ---------- Kosár-sáv (sticky alul) ---------- */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 8px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(17,17,17,1) 70%, rgba(17,17,17,0));
}
.cart-bar > * { max-width: 688px; margin-left: auto; margin-right: auto; }
.cart-bar-btn {
  width: 100%; min-height: 60px; justify-content: flex-start; gap: 6px;
  font-size: 19px; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.cart-bar-count { display: inline-block; }
.cart-bar-go { margin-left: auto; }

.progress { margin-bottom: 8px; }
.progress-text { font-size: 14px; font-weight: 600; color: var(--yellow); margin-bottom: 5px; }
.progress.done .progress-text { font-weight: 800; }
.progress-track { height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--yellow); transition: width 250ms ease-out; }
.progress-inline { margin: 16px 0; }

/* ---------- Alsó panelek (kosár, extra) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); animation: fade 160ms ease-out; }
.sheet-panel {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: 720px; margin: 0 auto;
  max-height: 92vh; max-height: 92dvh;
  background: var(--bg); border-top: 3px solid var(--red);
  border-radius: 14px 14px 0 0;
  animation: slide-up 200ms ease-out;
}
.sheet-small { max-height: 70vh; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); }
.sheet-head h2 { font-size: 28px; }
.sheet-body { overflow-y: auto; padding: 0 var(--gutter) 12px; overscroll-behavior: contain; }
.sheet-foot { padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot:empty { display: none; }
@keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.empty { padding: 24px 0; display: grid; gap: 16px; font-size: 18px; }

.lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.line-text { display: grid; gap: 2px; min-width: 0; }
.line-text strong { font-size: 18px; }
.line-extras { font-size: 13px; color: var(--gold); }
.line-price { font-size: 15px; color: var(--muted); font-weight: 600; }

.swap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; margin-top: 12px; padding: 0 16px;
  background: var(--bg-2); border: 2px solid var(--gold); border-radius: var(--radius);
  color: var(--white); font-weight: 800; font-size: 17px; text-align: left;
}
.swap strong { color: var(--gold); white-space: nowrap; }

.zone-pick { margin-top: 18px; }
.field-label, .field label, .field legend { display: block; font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.hint { margin-top: 6px; font-size: 14px; color: var(--muted); }

.select, .field input[type="text"], .field input[type="tel"], .field input[type="email"], textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--bg-2); color: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius);
  font-size: 17px; /* 16px felett: iOS nem nagyít rá */
}
.select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--white) 50%), linear-gradient(135deg, var(--white) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 40px;
}
.select:focus, .field input:focus, textarea:focus { border-color: var(--yellow); outline: none; }
[aria-invalid] { border-color: var(--red) !important; }

.upsell { margin-top: 8px; }
.upsell h3 { font-size: 22px; margin-bottom: 10px; }
.upsell-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.upsell-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 0 8px; border: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); color: var(--white); text-align: left; min-height: var(--tap);
}
.upsell-name { padding: 0 8px; font-weight: 800; font-size: 14px; line-height: 1.15; min-height: 2.3em; }
.upsell-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: 14px; font-weight: 600; }

.totals { margin: 18px 0 4px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .grand { padding-top: 8px; border-top: 1px solid var(--line); font-size: 22px; }
.totals .grand dt { color: var(--white); font-weight: 800; }
.totals .grand dd { font-weight: 800; }

.extra-list { display: grid; gap: 8px; margin-top: 12px; }

.check-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 12px;
  background: var(--bg-2); border-radius: var(--radius);
  cursor: pointer;
}
.check-row input { width: 24px; height: 24px; flex: 0 0 auto; accent-color: var(--red); margin: 0; }
.check-label { flex: 1; font-weight: 600; font-size: 17px; }
.check-label.small { font-size: 15px; font-weight: 400; }
.check-price { font-weight: 800; color: var(--gold); }

/* ---------- Pénztár ---------- */
.view { min-height: 100vh; }
.back {
  min-height: var(--tap); padding: 0 8px 0 0; border: 0; background: none;
  color: var(--white); font-weight: 800; font-size: 17px;
}
.checkout { max-width: 560px; margin: 0 auto; padding: 18px var(--gutter) 40px; display: grid; gap: 16px; }
.checkout h1 { font-size: 36px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.err { color: #ff6b6e; font-size: 14px; font-weight: 600; margin-top: 4px; }
.err:empty { display: none; }

.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { position: relative; margin: 0 !important; }
.pay-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-opt > span {
  display: grid; justify-items: center; gap: 2px;
  min-height: 96px; padding: 12px 8px;
  background: var(--bg-2); border: 3px solid var(--line); border-radius: var(--radius);
  font-weight: 800; font-size: 18px; text-align: center; cursor: pointer;
}
.pay-opt small { font-weight: 400; font-size: 13px; color: var(--muted); }
.pay-icon { font-size: 30px; line-height: 1.1; }
.pay-opt input:checked + span { border-color: var(--yellow); background: #221f05; }
.pay-opt input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.note summary {
  min-height: var(--tap); display: flex; align-items: center;
  font-weight: 800; cursor: pointer; color: var(--muted);
}
.note textarea { margin-top: 6px; resize: vertical; }

.summary { background: var(--bg-2); border-radius: var(--radius); padding: 16px; }
.summary h2 { font-size: 20px; margin-bottom: 10px; }
.sum-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-lines small { color: var(--gold); }
.summary .totals { margin-top: 12px; }

.co-min { background: #2a1111; border: 2px solid var(--red); border-radius: var(--radius); padding: 12px; font-weight: 600; display: grid; gap: 10px; }
.co-submit {
  position: sticky; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 75%, rgba(17,17,17,0));
}

/* ---------- Jutalom-képernyő ---------- */
.success { max-width: 560px; margin: 0 auto; padding: 48px var(--gutter) 40px; display: grid; gap: 18px; text-align: center; }
.success-kicker { font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-size: 14px; }
.success-num {
  font-size: clamp(48px, 16vw, 88px); white-space: nowrap; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  color: var(--yellow);
  animation: num-in 450ms cubic-bezier(.2,1.4,.4,1) both;
}
.success h1 { font-size: 34px; }
.success-status { font-size: 17px; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); }
.success-status.st-accepted { border-color: var(--green); }
.success-status.st-rejected { border-color: var(--red); }
.success .summary { text-align: left; }
.meta { margin: 14px 0 0; display: grid; gap: 4px; font-size: 14px; }
.meta div { display: flex; justify-content: space-between; gap: 12px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; text-align: right; }
@keyframes num-in { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; display: none; }
.confetti.on { display: block; }

.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 95;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: var(--radius);
  background: var(--white); color: #111; font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* =====================================================================
   PULT-OLDAL (fekvő tablet, 1024×768)
   ===================================================================== */
body.pult { font-size: 20px; }

.pult-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--bg); border-bottom: 2px solid var(--line);
}
.pult-top .logo { font-size: 21px; margin-right: auto; white-space: nowrap; }
.pult-top .logo .muted { color: var(--muted); font-size: 16px; font-weight: 600; margin-left: 6px; }
.pult-top button { white-space: nowrap; }

.switch {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 0 18px;
  border: 0; border-radius: var(--radius);
  font-weight: 800; font-size: 19px; color: var(--white);
}
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="false"] { background: var(--red); }
.switch-knob { width: 44px; height: 26px; border-radius: 13px; background: rgba(0,0,0,0.35); position: relative; }
.switch-knob::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); transition: left 120ms ease;
}
.switch[aria-checked="true"] .switch-knob::after { left: 21px; }

.pult-btn {
  min-height: 64px; padding: 0 14px; border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); color: var(--white); font-weight: 800; font-size: 17px;
}
.pult-btn.sound-on { border-color: var(--green); color: #7be3a4; }
.pult-btn.attention { border-color: var(--yellow); color: var(--yellow); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { border-color: var(--line); } }

.pult-tabs { display: flex; gap: 6px; padding: 12px 20px 0; border-bottom: 2px solid var(--line); }
.pult-tab {
  min-height: 56px; padding: 0 22px; border: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: transparent; color: var(--muted); font-weight: 800; font-size: 20px;
}
.pult-tab.active { background: var(--bg-2); color: var(--white); }
.pult-tab .badge { display: inline-block; margin-left: 6px; min-width: 30px; padding: 0 8px; border-radius: 15px; background: var(--red); color: var(--white); font-size: 17px; }

.pult-main { padding: 16px 20px 40px; }
.pult-empty { padding: 60px 0; text-align: center; color: var(--muted); font-size: 24px; font-weight: 600; }

.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 16px; align-items: start; }

.order {
  background: var(--bg-2); border: 3px solid var(--line); border-radius: 10px;
  padding: 16px 18px; display: grid; gap: 12px;
}
.order.is-new { border-color: var(--red); animation: pulse 1.4s ease-in-out infinite; }
.order.is-accepted { border-color: var(--green); }
.order.is-rejected, .order.is-done { opacity: 0.85; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,46,50,0.7); }
  50% { box-shadow: 0 0 0 10px rgba(229,46,50,0); }
}
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.order-head .order-time { margin-left: auto; }
.order-num { white-space: nowrap; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.order-time { font-size: 20px; color: var(--muted); font-weight: 600; }
.status { display: inline-block; padding: 4px 10px; border-radius: var(--radius); font-size: 16px; font-weight: 800; text-transform: uppercase; }
.status-new { background: var(--red); }
.status-accepted { background: var(--green); }
.status-done { background: var(--bg-3); color: var(--muted); }
.status-rejected { background: #4a1416; color: #ffb3b5; }

.order-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.order-who { display: grid; gap: 2px; font-size: 20px; }
.order-who strong { font-size: 24px; }
.order-who a { color: var(--yellow); font-weight: 800; font-size: 24px; text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.zone-chip { display: inline-block; padding: 2px 8px; border: 2px solid var(--gold); color: var(--gold); border-radius: var(--radius); font-size: 16px; font-weight: 800; margin-left: 6px; }

.pay-badge {
  display: grid; justify-items: center; align-content: center; gap: 2px;
  min-width: 132px; padding: 10px 12px; border-radius: var(--radius);
  font-weight: 800; font-size: 20px; text-align: center; line-height: 1.1;
}
.pay-badge .pay-icon { font-size: 40px; }
.pay-cash { background: var(--yellow); color: #111; }
.pay-card { background: var(--white); color: #111; }

.order-items { list-style: none; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; font-size: 21px; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; }
.order-items b { color: var(--yellow); }
.order-items small { color: var(--gold); font-size: 17px; display: block; }
.order-note { background: #2b2508; border-left: 5px solid var(--yellow); padding: 8px 12px; font-size: 19px; }
.order-total { display: flex; justify-content: space-between; font-size: 26px; font-weight: 800; }
.order-eta { font-size: 20px; color: #7be3a4; font-weight: 800; }
.order-reason { font-size: 18px; color: #ffb3b5; }

.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.act {
  min-height: 64px; padding: 0 22px; border: 0; border-radius: var(--radius);
  font-weight: 800; font-size: 22px; color: var(--white); background: var(--bg-3);
}
.act-accept { background: var(--green); flex: 1; }
.act-reject { background: transparent; border: 2px solid var(--line); color: var(--muted); }
.act-done { background: var(--white); color: #111; flex: 1; }
.act-time { flex: 1; background: var(--green); font-size: 26px; min-width: 80px; }
.act-cancel { background: transparent; border: 2px solid var(--line); color: var(--muted); }
.act-danger { background: var(--red); flex: 1; }
.eta-pick { display: grid; gap: 8px; }
.eta-pick p { font-weight: 800; }
.reject-box { display: grid; gap: 8px; }
.reject-box textarea { min-height: 80px; font-size: 19px; }

.pult-search { width: 100%; max-width: 560px; min-height: 60px; padding: 0 18px; margin-bottom: 16px; background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--radius); font-size: 20px; }
.pult-search:focus { border-color: var(--yellow); outline: none; }

/* Étlap-kezelő */
.menu-admin { display: grid; gap: 24px; max-width: 980px; }
.menu-admin h2 { font-size: 26px; margin-bottom: 8px; text-transform: uppercase; }
.admin-row {
  display: grid; grid-template-columns: 1fr 190px 150px 150px; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.admin-name strong { font-size: 22px; display: block; }
.admin-name small { color: var(--muted); font-size: 15px; }
.admin-price { display: flex; align-items: center; gap: 6px; }
.admin-price input {
  width: 130px; min-height: 56px; padding: 0 12px; background: var(--bg-2); border: 2px solid var(--line);
  border-radius: var(--radius); font-size: 22px; font-weight: 800; text-align: right;
}
.admin-price input:focus { border-color: var(--yellow); outline: none; }
.admin-price.changed input { border-color: var(--gold); }
.toggle {
  min-height: 56px; border: 2px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--muted); font-weight: 800; font-size: 17px;
}
.toggle[aria-pressed="true"].t-soldout { background: var(--gold); border-color: var(--gold); color: #111; }
.toggle[aria-pressed="true"].t-hidden { background: var(--bg-3); border-color: var(--white); color: var(--white); }
.admin-row.is-off .admin-name { opacity: 0.5; }

body.pult .toast { top: 100px; bottom: auto; font-size: 20px; padding: 16px 24px; background: var(--green); color: var(--white); }

/* ---------- Csökkentett mozgás ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Szélesebb kijelző (vendég) ---------- */
@media (min-width: 640px) {
  .layout-large .cards { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 52px; }
}

/* ---------- Pult: belépés, kapcsolat-figyelmeztetés ---------- */
.offline-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #E52E32; color: #fff; font-weight: 800; font-size: 22px;
  padding: 16px 20px; text-align: center;
  animation: bp-blink 1s steps(2, start) infinite;
}
@keyframes bp-blink { to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .offline-banner { animation: none; } }
.login {
  position: fixed; inset: 0; z-index: 100; background: #111;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-box { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.login-box label { display: grid; gap: 6px; font-weight: 600; }
.login-box input {
  font: inherit; font-size: 20px; padding: 14px; border-radius: 10px;
  border: 2px solid #333; background: #1c1c1c; color: #fff;
}
.login-err { color: #ff6b6e; min-height: 1.2em; margin: 0; }
.login-submit { font-size: 20px; padding: 16px; }

/* ---------- Jogi oldalak (ÁSZF, adatkezelés) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; line-height: 1.6; }
.legal h1 { font-size: 32px; line-height: 1.15; margin: 16px 0 4px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal ul, .legal ol { padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid #333; }
.legal-table th { width: 28%; color: var(--muted); font-weight: 600; }
@media (max-width: 520px) {
  .legal-table th, .legal-table td { display: block; width: auto; border: 0; padding: 2px 0; }
  .legal-table tr { display: block; padding: 8px 0; border-bottom: 1px solid #333; }
}

/* ---------- Pult: „úton van” állapot ---------- */
.order.is-on_the_way { border-color: var(--yellow); }
.status-on_the_way { background: var(--yellow); color: #111; }
.act-out { background: var(--yellow); color: #111; flex: 1; font-weight: 800; }

/* ---------- Vendég: rendelés-állapot sáv ---------- */
.track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 20px 0 8px; counter-reset: st; }
.track li { position: relative; padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.track li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--bg-3); }
.track li.is-done { color: var(--white); }
.track li.is-done::before { background: var(--yellow); }
.track li.is-now { color: var(--yellow); }
.track li.is-now::before { background: var(--yellow); animation: bp-pulse 1.2s ease-in-out infinite; }
@keyframes bp-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .track li.is-now::before { animation: none; } }

/* Pult: nincs szerver-kapcsolat (pl. túl régi böngésző) */
.broken { max-width: 640px; margin: 10vh auto; padding: 32px; background: #b00020; color: #fff; border-radius: 16px; font-size: 20px; line-height: 1.4; }
.broken h1 { font-size: 28px; margin: 0 0 16px; }
.broken .muted { opacity: .8; font-size: 16px; }

/* Pult: a futár elfogadta-e a rendelést */
.courier-alert { background: #b00020; color: #fff; font-size: 22px; font-weight: 800; padding: 14px 12px; text-align: center; }
.courier-state { font-weight: 700; }
.courier-state.late { color: #ff8a70; font-weight: 800; }

/* A megjegyzés (pl. előrendelés) nem sikkadhat el */
.order-note-main { background: #EDCE08; color: #000; border: 3px solid #000; border-radius: 8px; padding: 10px 12px; font-size: 20px; font-weight: 800; }
.order-note-main b { display: block; font-size: 13px; letter-spacing: .5px; margin-bottom: 2px; }
