/* ==========================================================================
   Stół i Ogień — demo gastro (GroDev)
   Warstwa wizualna. Ciepły grafit/espresso + akcent bursztynowy.
   Bez zależności zewnętrznych, bez fontów z CDN.
   ========================================================================== */

/* ------------------------------ Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
img, svg { display: block; max-width: 100%; }
/* Bezpiecznik ikon: żaden inline SVG bez własnej klasy/rozmiaru nie może się rozrosnąć
   (klasowe reguły typu .btn svg / .qr-svg mają wyższą specyficzność i wygrywają) */
svg { width: 1.1em; height: 1.1em; flex: none; }
a { color: inherit; }

/* ------------------------------ Tokens --------------------------------- */
:root {
  --bg:        #14100d;
  --bg-2:      #1b1611;
  --panel:     #221b15;
  --panel-2:   #2a221a;
  --card:      #2c231b;
  --line:      #3a2f24;
  --line-soft: #33291f;

  --ink:       #f4ece0;
  --ink-2:     #d9cbb8;
  --muted:     #a2917c;
  --faint:     #7c6c58;

  --amber:     #e0912f;
  --amber-2:   #f2b45a;
  --brick:     #c65a34;
  --brick-2:   #e07048;
  --olive:     #8aa15a;
  --olive-2:   #a9c079;
  --danger:    #e0563f;
  --danger-bg: #3a1e17;
  --warn:      #e0a63a;
  --warn-bg:   #3a2e12;
  --ok:        #7fa94e;
  --ok-bg:     #23301a;

  --focus:     #f2b45a;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow:    0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-sm: 0 4px 14px -8px rgba(0,0,0,.55);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --topbar-h: 60px;
  --maxw: 1440px;
}

/* --------------------------- Base document ----------------------------- */
html, body { height: 100%; }
html { background-color: #0b0907; } /* solidne dno — nic jasnego nie prześwituje */
body {
  margin: 0;
  font-family: var(--sans);
  background: radial-gradient(1200px 600px at 80% -10%, #241a12 0%, var(--bg) 55%) fixed;
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--amber); color: #1a130c; padding: 10px 14px;
  border-radius: 8px; font-weight: 700; z-index: 200; transition: top .15s;
}
.skip-link:focus { top: 8px; }

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

.mono { font-family: var(--mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------ App shell ------------------------------ */
.app { min-height: 100%; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(20,16,13,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px; min-height: var(--topbar-h);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border-radius: 10px; }
button.brand { cursor: pointer; }
button.brand:hover .brand__name { color: var(--amber-2); }
.brand__mark {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px;
  background: linear-gradient(150deg, var(--brick), var(--amber));
  display: grid; place-items: center; color: #1a130c;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.brand__tag { font-family: var(--mono); font-size: .62rem; color: var(--faint); letter-spacing: .5px; text-transform: uppercase; }

.topbar__spacer { flex: 1 1 auto; }

.role-switch {
  display: flex; gap: 4px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.role-switch::-webkit-scrollbar { display: none; }
.role-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 9px; color: var(--muted);
  font-weight: 600; font-size: .86rem; white-space: nowrap;
  min-height: 44px;
}
.role-btn svg { width: 16px; height: 16px; }
.role-btn[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.role-btn .role-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brick); color: #fff; font-size: .68rem; font-weight: 700;
  display: inline-grid; place-items: center;
}

.topbar__tools { display: flex; align-items: center; gap: 8px; }

.sim-indicator {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); font-size: .76rem; color: var(--ink-2);
}
.sim-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(127,169,78,.6); }
.sim-indicator.is-running .sim-dot { animation: pulse 1.8s ease-out infinite; }
.sim-indicator.is-paused .sim-dot { background: var(--faint); }
@keyframes pulse { 0%{ box-shadow:0 0 0 0 rgba(127,169,78,.5);} 70%{ box-shadow:0 0 0 7px rgba(127,169,78,0);} 100%{ box-shadow:0 0 0 0 rgba(127,169,78,0);} }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
  font-weight: 600; font-size: .9rem; transition: transform .06s ease, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--sm { min-height: 38px; padding: 0 12px; font-size: .84rem; border-radius: 9px; }
.btn--tiny { min-height: 32px; padding: 0 10px; font-size: .78rem; border-radius: 8px; gap: 5px; }
.btn--icon { padding: 0; width: 44px; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(160deg, var(--amber-2), var(--amber)); color: #201509; border-color: transparent; }
.btn--primary:hover { filter: brightness(1.05); }
.btn--brick { background: linear-gradient(160deg, var(--brick-2), var(--brick)); color: #fff; border-color: transparent; }
.btn--ghost { background: transparent; }
.btn--danger { background: var(--danger-bg); color: #f3b7ab; border-color: #5a2b20; }
.btn--ok { background: var(--ok-bg); color: var(--olive-2); border-color: #38491f; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* --------------------------- Generic bits ------------------------------ */
.main { flex: 1 1 auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 16px 14px 96px; }
.section-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 4px 0 12px; }
.eyebrow { font-family: var(--mono); font-size: .68rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--bg-2);
  letter-spacing: .3px;
}
.badge--veg { color: var(--olive-2); border-color: #38491f; background: #1e2814; }
.badge--gf  { color: #d9c07a; border-color: #4a3d17; background: #2a2411; }
.badge--spicy { color: #eaa07a; border-color: #542b1c; background: #2f1a12; }
.badge--warn { color: #f0c15a; border-color: var(--warn-bg); background: var(--warn-bg); }
.badge--danger { color: #f3a898; border-color: #5a2b20; background: var(--danger-bg); }
.badge--ok { color: var(--olive-2); border-color: #38491f; background: var(--ok-bg); }
.badge--muted { color: var(--muted); }

.empty {
  text-align: center; padding: 40px 18px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-2);
}
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--faint); }

/* ------------------------------ Toasts --------------------------------- */
.toasts {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px;
  width: min(440px, calc(100vw - 24px)); pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 12px; padding: 11px 13px; box-shadow: var(--shadow);
  animation: toast-in .22s ease;
}
.toast--success { border-left-color: var(--ok); }
.toast--warn { border-left-color: var(--warn); }
.toast--danger { border-left-color: var(--danger); }
.toast--info { border-left-color: var(--amber); }
.toast__icon { flex: 0 0 auto; }
.toast__icon svg { width: 20px; height: 20px; }
.toast__body { flex: 1 1 auto; min-width: 0; }
.toast__title { font-weight: 700; font-size: .9rem; }
.toast__sub { font-size: .78rem; color: var(--muted); }
.toast__undo { flex: 0 0 auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =========================== LANDING ================================== */
.landing { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.landing__bar { max-width: var(--maxw); width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.landing__bar .topbar__spacer { flex: 1 1 auto; }
.landing__hero { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 24px 20px 48px; }
.landing__inner { max-width: 940px; width: 100%; text-align: center; }
.landing__eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--amber-2); margin-bottom: 18px; }
.landing__title { font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.05; font-weight: 600; letter-spacing: -.5px; }
.landing__title .amber { color: var(--amber-2); }
.landing__lead { color: var(--ink-2); font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 620px; margin: 18px auto 0; line-height: 1.55; }
.landing__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 10px; }
.landing__cta .btn { min-height: 54px; padding: 0 24px; font-size: 1rem; }
.landing__note { color: var(--faint); font-size: .82rem; margin-top: 6px; display: inline-flex; gap: 8px; align-items: center; }
.landing__note svg { width: 16px; height: 16px; }

.landing__flow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 36px auto 0; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 132px; padding: 18px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.flow-node__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: radial-gradient(circle at 30% 25%, #3a2c1e, #241a12); border: 1px solid var(--line-soft); }
.flow-node__t { font-weight: 700; font-size: .92rem; }
.flow-node__s { color: var(--muted); font-size: .74rem; text-align: center; }
.flow-arrow { color: var(--amber); flex: 0 0 auto; }
.flow-arrow svg { width: 26px; height: 26px; }

.landing__roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 40px auto 0; max-width: 820px; }
.role-card { text-align: left; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, transform .06s; display: flex; flex-direction: column; gap: 8px; min-height: 128px; }
.role-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.role-card:active { transform: translateY(0); }
.role-card__ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--amber-2); }
.role-card__ico svg { width: 20px; height: 20px; }
.role-card__t { font-weight: 700; }
.role-card__s { color: var(--muted); font-size: .78rem; }

.landing__foot { text-align: center; color: var(--faint); font-size: .78rem; padding: 20px; border-top: 1px solid var(--line-soft); }
.landing__foot .mono { color: var(--muted); }

@media (max-width: 720px) {
  .landing__roles { grid-template-columns: repeat(2, 1fr); }
  .flow-arrow { transform: rotate(90deg); }
  .landing__flow { flex-direction: column; }
  .flow-node { width: 100%; max-width: 260px; flex-direction: row; text-align: left; }
  .flow-node__s { text-align: left; }
}

/* =========================== TRYB POKAZU ============================= */
.showcase { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.showcase__bar {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: rgba(20,16,13,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.showcase__stage {
  flex: 1 1 auto; display: grid; grid-template-columns: minmax(300px, 380px) 56px 1fr;
  align-items: start; max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 22px 16px 8px;
}
.stage-col { min-width: 0; }
.stage-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .6px; text-transform: uppercase; color: var(--faint); margin: 0 4px 12px; display: flex; align-items: center; gap: 8px; }
.stage-label svg { width: 16px; height: 16px; color: var(--amber-2); }

.phone { position: relative; width: 100%; max-width: 360px; margin: 0 auto; background: #0e0b08; border: 2px solid #3a2f24; border-radius: 34px; padding: 10px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); }
.phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 20px; background: #0e0b08; border-radius: 0 0 14px 14px; z-index: 3; }
.phone__screen { background: var(--bg); border-radius: 26px; overflow: hidden; height: 520px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.phone__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 22px 16px 12px; background: linear-gradient(160deg,#2a221a,#1b1611); border-bottom: 1px solid var(--line); }
.phone__brand { font-family: var(--serif); font-weight: 600; }
.phone__table { font-family: var(--mono); font-size: .72rem; color: var(--amber-2); border: 1px solid #4a3a1c; background: #271d0f; padding: 2px 8px; border-radius: 7px; }
.phone-list { padding: 10px; display: grid; gap: 8px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.prow.is-in-cart { border-color: var(--amber); background: #271d0f; }
.prow__thumb { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; border: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.prow__body { flex: 1 1 auto; min-width: 0; }
.prow__name { display: block; font-weight: 600; font-size: .86rem; line-height: 1.2; }
.prow__price { font-family: var(--mono); font-size: .76rem; color: var(--amber-2); }
.pq__add { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--amber); color: #201509; font-size: 1.35rem; font-weight: 700; display: grid; place-items: center; }
.pq { display: inline-flex; align-items: center; gap: 8px; }
.pq__b { width: 32px; height: 32px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--amber-2); font-size: 1.1rem; font-weight: 700; }
.pq b { min-width: 16px; text-align: center; }
.phone-bar { position: sticky; bottom: 0; padding: 10px; background: linear-gradient(0deg, var(--bg) 72%, transparent); }
.phone-send { width: 100%; min-height: 52px; border-radius: 14px; background: linear-gradient(160deg, var(--amber-2), var(--amber)); color: #201509; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 12px 26px -12px rgba(224,145,47,.6); }
.phone-send svg { width: 18px; height: 18px; }
.phone-hint { text-align: center; color: var(--muted); font-size: .82rem; padding: 10px; }
.phone-hint b { color: var(--amber-2); }

.stage-conn { display: flex; align-items: center; justify-content: center; min-height: 220px; position: relative; }
.stage-conn__line { position: absolute; left: 50%; top: 12%; bottom: 12%; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, transparent, var(--amber), transparent); opacity: .45; }
.stage-conn__arrow { position: relative; color: var(--amber); background: var(--bg); padding: 8px 0; }
.stage-conn__arrow svg { width: 26px; height: 26px; }

.stage-kds { min-width: 0; }
.kds-mini { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.stage-board { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.showcase__caption { max-width: 900px; width: 100%; margin: 0 auto; padding: 12px 20px 28px; text-align: center; font-size: 1.05rem; color: var(--ink-2); min-height: 30px; transition: color .2s; }
.showcase__caption.is-ok { color: var(--olive-2); font-weight: 600; }

/* Element „paragonu" lecący z telefonu do kuchni */
.fly-ticket {
  position: fixed; left: 0; top: 0; z-index: 130; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: #201509;
  background: linear-gradient(160deg, var(--amber-2), var(--amber));
  box-shadow: 0 12px 30px -8px rgba(224,145,47,.6);
  transition: transform .72s cubic-bezier(.5,0,.2,1), opacity .72s ease; pointer-events: none;
}
.fly-ticket svg { width: 24px; height: 24px; }

/* Błysk gotowej karty + puls pozycji */
.kco--flash { animation: kco-flash 1.4s ease; }
@keyframes kco-flash { 0% { box-shadow: 0 0 0 0 rgba(127,169,78,.6); } 30% { box-shadow: 0 0 0 6px rgba(127,169,78,.25); } 100% { box-shadow: 0 0 0 0 rgba(127,169,78,0); } }
.pulse { animation: pulse-el .5s ease; }
@keyframes pulse-el { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* Dopracowane wejście karty KDS (nadpisuje wcześniejsze) */
.kco.is-new { animation: kco-pop .5s cubic-bezier(.2,.8,.2,1); }
@keyframes kco-pop { 0% { transform: translateY(-14px) scale(.96); opacity: 0; box-shadow: 0 0 0 4px rgba(224,145,47,.55); } 60% { transform: translateY(0) scale(1.01); } 100% { transform: none; opacity: 1; box-shadow: var(--shadow-sm); } }

/* Apetyczne miniatury dań (gradient per kategoria + delikatny połysk) */
.menu-card__thumb::after, .prow__thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 46%); pointer-events: none; }
.dish-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transform: scale(1.01);
  transition: transform .35s ease;
}
.menu-card:hover .dish-photo { transform: scale(1.055); }
.dish-emoji { line-height: 1; }
.thumb--przystawki { background: radial-gradient(circle at 30% 22%, #4c3a1f, #241a12) !important; }
.thumb--zupy      { background: radial-gradient(circle at 30% 22%, #5b3520, #241a12) !important; }
.thumb--dania     { background: radial-gradient(circle at 30% 22%, #4a301d, #241a12) !important; }
.thumb--burgery   { background: radial-gradient(circle at 30% 22%, #543818, #241a12) !important; }
.thumb--desery    { background: radial-gradient(circle at 30% 22%, #4a2436, #241a12) !important; }
.thumb--napoje    { background: radial-gradient(circle at 30% 22%, #24463a, #17201a) !important; }
.thumb--kawa      { background: radial-gradient(circle at 30% 22%, #402c1b, #241a12) !important; }

@media (max-width: 920px) {
  .showcase__stage { grid-template-columns: 1fr; padding: 16px 12px 4px; }
  .stage-conn { min-height: 40px; }
  .stage-conn__line { left: 50%; top: auto; bottom: auto; width: 44%; height: 2px; background: linear-gradient(90deg, transparent, var(--amber), transparent); }
  .stage-conn__arrow { transform: rotate(90deg); padding: 0 8px; }
  .phone__screen { height: 430px; }
  .stage-col--phone { max-width: 420px; margin: 0 auto; width: 100%; }
  .showcase__bar .btn .label { display: none; }
}

/* =========================== GUEST ==================================== */
.guest { max-width: 760px; margin: 0 auto; }

.guest-header {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px;
}
.guest-header__main { min-width: 0; flex: 1 1 auto; }
.guest-header__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.guest-header__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.guest-header__table {
  font-family: var(--mono); font-weight: 700; color: var(--amber-2);
  border: 1px solid #4a3a1c; background: #271d0f; padding: 3px 9px; border-radius: 8px; font-size: .8rem;
}
.dot-open { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.guest-header__actions { display: flex; gap: 8px; }

.tabbar {
  display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; margin-bottom: 14px;
}
.tabbar__btn {
  flex: 1 1 0; min-height: 46px; border-radius: 9px; color: var(--muted);
  font-weight: 600; font-size: .86rem; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.tabbar__btn svg { width: 16px; height: 16px; }
.tabbar__btn[aria-selected="true"] { background: var(--panel-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabbar__btn .role-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brick); color: #fff; font-size: .66rem; font-weight: 700; display: inline-grid; place-items: center; }

/* search + filters */
.searchbar { position: relative; margin-bottom: 10px; }
.searchbar svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); }
.searchbar input {
  width: 100%; min-height: 46px; padding: 0 14px 0 40px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
}
.searchbar input::placeholder { color: var(--faint); }

.cat-chips, .filters, .station-chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* afordancja przewijania bez surowego scrollbara: delikatny fade na prawej krawędzi */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
}
.cat-chips::-webkit-scrollbar, .filters::-webkit-scrollbar, .station-chips::-webkit-scrollbar { display: none; height: 0; }
.cat-chips { margin-bottom: 8px; }
.chip {
  flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2);
  font-weight: 600; font-size: .84rem; white-space: nowrap;
}
.chip[aria-pressed="true"], .chip.is-active { background: var(--amber); color: #201509; border-color: transparent; }
.chip--filter[aria-pressed="true"] { background: var(--olive); color: #12180a; }
.filters { margin-bottom: 14px; }

.menu-list { display: grid; gap: 12px; }
.menu-card {
  display: flex; gap: 12px; text-align: left; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; transition: border-color .15s, transform .06s;
}
.menu-card:hover { border-color: var(--faint); }
.menu-card:active { transform: translateY(1px); }
.menu-card.is-unavailable { opacity: .58; }
.menu-card__thumb {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.7rem;
  background: radial-gradient(circle at 30% 25%, #3a2c1e, #241a12); border: 1px solid var(--line-soft);
  position: relative; overflow: hidden; /* KLUCZOWE: zamyka ::after (połysk) w kafelku, inaczej rozlewa się na cały ekran */
}
.menu-card__body { flex: 1 1 auto; min-width: 0; }
.menu-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.menu-card__name { font-weight: 700; font-size: .98rem; }
.menu-card__price { font-family: var(--mono); font-weight: 700; color: var(--amber-2); white-space: nowrap; }
.menu-card__desc { color: var(--muted); font-size: .82rem; margin: 3px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-card__meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.allergens { color: var(--faint); font-size: .72rem; }

.cat-heading { font-family: var(--serif); font-size: 1.1rem; margin: 18px 2px 10px; color: var(--ink-2); scroll-margin-top: 80px; }
.cat-heading:first-child { margin-top: 4px; }

/* cart FAB */
.cart-fab {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 55;
  width: min(720px, calc(100vw - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 8px 0 18px; border-radius: 16px;
  background: linear-gradient(160deg, var(--amber-2), var(--amber)); color: #201509;
  border: none; box-shadow: 0 14px 34px -10px rgba(224,145,47,.5); font-weight: 700;
}
.cart-fab small { display: block; font-weight: 600; font-size: .72rem; opacity: .8; }
.cart-fab__cta { background: #201509; color: var(--amber-2); border-radius: 12px; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.cart-fab__count { background: #201509; color: var(--amber-2); border-radius: 999px; min-width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: .84rem; }

/* ----------------------------- Order status ---------------------------- */
.order-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
}
.order-card__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.order-code { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.timeline { display: flex; align-items: center; margin: 6px 0 14px; }
.timeline__step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; width: 74px; text-align: center; }
.timeline__dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 2px solid var(--line); color: var(--faint);
}
.timeline__dot svg { width: 15px; height: 15px; }
.timeline__label { font-size: .72rem; color: var(--faint); }
.timeline__bar { flex: 1 1 auto; height: 2px; background: var(--line); margin-top: -22px; }
.timeline__step.is-done .timeline__dot { background: var(--ok-bg); border-color: var(--ok); color: var(--olive-2); }
.timeline__step.is-done .timeline__label { color: var(--ink-2); }
.timeline__step.is-active .timeline__dot { background: var(--amber); border-color: var(--amber-2); color: #201509; box-shadow: 0 0 0 4px rgba(224,145,47,.18); }
.timeline__step.is-active .timeline__label { color: var(--amber-2); font-weight: 700; }
.timeline__bar.is-done { background: var(--ok); }

.order-items { display: grid; gap: 8px; }
.order-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.order-line:last-child { border-bottom: none; }
.order-line__opts { color: var(--muted); font-size: .78rem; }
.order-line__note { color: var(--amber-2); font-size: .78rem; }
.order-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.05rem; font-weight: 700; }
.order-total .mono { color: var(--amber-2); }

/* =========================== KITCHEN (KDS) ============================= */
.kds-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; }
.stat__label { font-family: var(--mono); font-size: .64rem; letter-spacing: .6px; text-transform: uppercase; color: var(--faint); }
.stat__value { font-size: 1.5rem; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.stat--warn .stat__value { color: var(--warn); }
.stat--danger .stat__value { color: var(--danger); }
.stat--ok .stat__value { color: var(--olive-2); }

.kds-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.kco {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--faint);
}
.kco.is-new { animation: kco-in .4s ease; }
.kco--accepted { border-left-color: var(--muted); }
.kco--preparing { border-left-color: var(--amber); }
.kco--ready { border-left-color: var(--ok); }
.kco--warn { border-left-color: var(--warn); }
.kco--late { border-left-color: var(--danger); }
@keyframes kco-in { from { transform: translateY(-8px) scale(.99); opacity: 0; box-shadow: 0 0 0 3px rgba(224,145,47,.4);} to { transform: none; opacity: 1; } }

.kco__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.kco__table { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.kco__code { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.kco__timer { text-align: right; }
.kco__time { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; }
.kco__sla { font-size: .68rem; color: var(--faint); }
.kco--warn .kco__time { color: var(--warn); }
.kco--late .kco__time { color: var(--danger); }
.kco__flags { display: flex; gap: 6px; padding: 8px 14px 0; flex-wrap: wrap; }
.kco__items { padding: 10px 14px; display: grid; gap: 8px; }
.kitem { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-soft); }
.kitem.is-ready { opacity: .6; }
.kitem.is-ready .kitem__name { text-decoration: line-through; }
.kitem__qty { flex: 0 0 auto; font-family: var(--mono); font-weight: 700; color: var(--amber-2); min-width: 28px; }
.kitem__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kitem__name { font-weight: 600; }
.kitem__opts { color: var(--muted); font-size: .78rem; }
.kitem__note { color: var(--warn); font-size: .78rem; font-weight: 600; }
.kitem__station { font-family: var(--mono); font-size: .64rem; color: var(--faint); text-transform: uppercase; }
.kitem__btn { flex: 0 0 auto; }
.kco__foot { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.kco__foot .btn { flex: 1 1 0; }

/* =========================== WAITER =================================== */
.waiter-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.zone { margin-bottom: 18px; }
.zone__title { font-family: var(--mono); font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); margin: 0 2px 10px; }
.table-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.ttile {
  position: relative; text-align: left; padding: 14px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); min-height: 120px;
  display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .06s;
}
.ttile:hover { border-color: var(--faint); }
.ttile:active { transform: translateY(1px); }
.ttile__num { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.ttile__seats { font-size: .74rem; color: var(--muted); }
.ttile__status { margin-top: auto; }
.ttile__meta { font-size: .74rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.ttile__amount { font-family: var(--mono); color: var(--amber-2); font-weight: 700; }
.ttile--free { opacity: .82; }
.ttile--free .ttile__num { color: var(--faint); }
.ttile--occupied { border-color: #4a3a1c; }
.ttile--reserved { border-color: #3d3358; background: linear-gradient(160deg, #241d33, var(--card)); }
.ttile--bill { border-color: #4a3d17; }
.ttile--ready { border-color: var(--ok); box-shadow: 0 0 0 1px rgba(127,169,78,.3); }
.ttile--call { border-color: var(--brick); box-shadow: 0 0 0 1px rgba(198,90,52,.4); }
.ttile--call { animation: tcall 1.6s ease-in-out infinite; }
@keyframes tcall { 0%,100% { box-shadow: 0 0 0 1px rgba(198,90,52,.4);} 50% { box-shadow: 0 0 0 4px rgba(198,90,52,.18);} }
.ttile__pill {
  position: absolute; top: 10px; right: 10px; font-size: .64rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; background: var(--brick); color: #fff;
}
.ttile__pill--ready { background: var(--ok); color: #12180a; }
.ttile__pill--bill { background: var(--warn); color: #201509; }
.ttile__pill--reserved { background: #6a5ba0; color: #fff; }

.calls-strip { display: grid; gap: 8px; margin-bottom: 14px; }
.call-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--danger-bg); border: 1px solid #5a2b20; }
.call-row__t { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.call-row__body { flex: 1 1 auto; min-width: 0; }
.call-row__reason { font-weight: 600; }
.call-row__time { font-size: .76rem; color: var(--muted); }

/* =========================== OWNER =================================== */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.kpi__label { font-family: var(--mono); font-size: .64rem; letter-spacing: .6px; text-transform: uppercase; color: var(--faint); }
.kpi__value { font-size: 1.7rem; font-weight: 700; margin-top: 6px; line-height: 1.05; }
.kpi__sub { font-size: .76rem; color: var(--muted); margin-top: 3px; }
.kpi__value.amber { color: var(--amber-2); }
.kpi__value.olive { color: var(--olive-2); }

.owner-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-block { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.card-block h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 12px; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 8px; }
.bar-chart__col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart__bar { width: 70%; max-width: 34px; background: linear-gradient(180deg, var(--amber-2), var(--brick)); border-radius: 6px 6px 0 0; min-height: 3px; transition: height .3s; }
.bar-chart__label { font-size: .66rem; color: var(--muted); font-family: var(--mono); }

.hbars { display: grid; gap: 10px; }
.hbar__top { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 4px; }
.hbar__track { height: 10px; background: var(--bg-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--line-soft); }
.hbar__fill { height: 100%; background: linear-gradient(90deg, var(--olive), var(--olive-2)); border-radius: 6px; }

.log { display: grid; gap: 7px; max-height: 320px; overflow: auto; }
.log__row { display: flex; gap: 10px; align-items: baseline; font-size: .82rem; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.log__time { font-family: var(--mono); font-size: .72rem; color: var(--faint); flex: 0 0 auto; }
.log__text { color: var(--ink-2); }

/* =========================== MODALS / SHEETS ========================== */
.modal-root:empty { display: none; }
.backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(8,6,4,.62);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(560px, 100%); max-height: min(88vh, 820px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); animation: modal-in .2s ease;
}
.modal--wide { width: min(720px, 100%); }
@keyframes modal-in { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 10px; position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.modal__sub { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.modal__body { padding: 8px 20px 20px; }
.modal__foot { position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 14px 20px; display: flex; gap: 10px; }
.modal__foot .btn { flex: 1 1 0; }
.modal__close { flex: 0 0 auto; }

/* bottom sheet on mobile */
.sheet .modal { width: 100%; max-width: 640px; }
@media (max-width: 640px) {
  .backdrop { align-items: flex-end; padding: 0; }
  .modal { max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; animation: sheet-in .24s ease; }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
}

/* option groups (dish detail) */
.option-group { margin: 14px 0; }
.option-group__label { font-weight: 700; font-size: .9rem; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.option-group__hint { font-size: .72rem; color: var(--faint); font-weight: 500; }
.option-list { display: grid; gap: 8px; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; min-height: 48px;
}
.option:hover { border-color: var(--faint); }
.option input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--amber); }
.option__label { flex: 1 1 auto; }
.option__price { font-family: var(--mono); color: var(--amber-2); font-size: .84rem; }
.option.is-checked { border-color: var(--amber); background: #271d0f; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 11px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
}
.field textarea { min-height: 72px; resize: vertical; }
.field__err { color: var(--danger); font-size: .78rem; margin-top: 5px; display: none; }
.field.has-err input, .field.has-err select { border-color: var(--danger); }
.field.has-err .field__err { display: block; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.qty button { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.3rem; color: var(--amber-2); }
.qty button:disabled { color: var(--faint); }
.qty output { min-width: 44px; text-align: center; font-weight: 700; font-size: 1.05rem; }

.dish-hero {
  aspect-ratio: 7 / 5; width: 100%; max-height: 320px; border-radius: 14px; margin-bottom: 12px;
  background: radial-gradient(circle at 30% 25%, #43301f, #241a12);
  display: grid; place-items: center; font-size: 3rem; border: 1px solid var(--line-soft);
  overflow: hidden;
}
.dish-photo--hero { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; }

/* cart lines in modal */
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line__body { flex: 1 1 auto; min-width: 0; }
.cart-line__name { font-weight: 600; }
.cart-line__opts { color: var(--muted); font-size: .78rem; }
.cart-line__price { font-family: var(--mono); color: var(--amber-2); font-weight: 700; white-space: nowrap; }
.cart-line__remove { color: var(--muted); font-size: .78rem; }

.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.pay-method {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); cursor: pointer; min-height: 88px; justify-content: center;
}
.pay-method svg { width: 26px; height: 26px; color: var(--ink-2); }
.pay-method.is-checked { border-color: var(--amber); background: #271d0f; }
.pay-method input { position: absolute; opacity: 0; }
.pay-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: #f0c15a; font-size: .8rem; border: 1px solid #4a3d17; }

.pay-success { text-align: center; padding: 22px 10px; }
.pay-success__ring { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok-bg); border: 3px solid var(--ok); display: grid; place-items: center; animation: pop .35s ease; }
.pay-success__ring svg { width: 38px; height: 38px; color: var(--olive-2); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.25); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* QR */
.qr-box { text-align: center; }
.qr-svg { width: 180px; height: 180px; margin: 8px auto 12px; background: #fff; padding: 10px; border-radius: 14px; }
.qr-url { font-family: var(--mono); font-size: .78rem; color: var(--amber-2); word-break: break-all; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 10px 0; }
.qr-tables { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }

/* help panel */
.help-card { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; position: relative; }
.help-card ol { counter-reset: step; display: grid; gap: 10px; margin: 12px 0 16px; }
.help-card li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; }
.help-card li::before { content: counter(step); flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: #201509; font-weight: 700; display: grid; place-items: center; font-size: .82rem; }
.help-card__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.split-tabs { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.split-tabs button { flex: 1 1 0; min-height: 40px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: .82rem; }
.split-tabs button[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); }
.split-persons { display: flex; gap: 8px; margin: 10px 0; }
.split-person { flex: 1 1 0; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); font-weight: 700; }
.split-person[aria-pressed="true"] { border-color: var(--amber); background: #271d0f; color: var(--amber-2); }

/* ----------------------------- Responsive ------------------------------ */
@media (max-width: 900px) {
  .kds-stats { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .owner-cols { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .main { padding: 12px 12px 96px; }
  .brand__tag { display: none; }
  .topbar__tools .btn span.label { display: none; }
  .kds-board { grid-template-columns: 1fr; }
  .kds-stats { grid-template-columns: repeat(2, 1fr); }
  .field__row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .table-map { grid-template-columns: repeat(2, 1fr); }
  .pay-methods { grid-template-columns: 1fr; }
  .pay-method { flex-direction: row; justify-content: flex-start; min-height: 56px; }
}

@media (min-width: 768px) {
  .role-btn .role-label { display: inline; }
}

/* larger screens: stats full 6 cols already; owner cols side by side */
@media (min-width: 1024px) {
  .waiter-grid { grid-template-columns: 1fr; }
}

/* ----------------------- Reduced motion -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ttile--call { animation: none; border-color: var(--brick); box-shadow: 0 0 0 2px rgba(198,90,52,.5); }
  .sim-indicator.is-running .sim-dot { animation: none; }
}

/* ==========================================================================
   Warstwa premium 2026
   Hybryda editorial + live operations. Poniższe reguły świadomie nadpisują
   bazowy system bez ingerowania w logikę aplikacji.
   ========================================================================== */
:root {
  --bg: #0b0907;
  --bg-2: #12100d;
  --panel: #181411;
  --panel-2: #211b16;
  --card: #1d1814;
  --line: #3c3025;
  --line-soft: #2b241d;
  --ink: #f3eadc;
  --ink-2: #d4c6b3;
  --muted: #9c8c77;
  --faint: #716454;
  --amber: #dc792d;
  --amber-2: #f5a64a;
  --brick: #b9482d;
  --brick-2: #d5633d;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 26px 70px -30px rgba(0,0,0,.9);
  --shadow-sm: 0 14px 34px -24px rgba(0,0,0,.9);
}

body {
  background:
    radial-gradient(900px 520px at 92% -12%, rgba(119,60,25,.18), transparent 70%),
    linear-gradient(180deg, #0b0907, #100d0a 58%, #0b0907);
}

.topbar {
  background: rgba(11,9,7,.88);
  border-bottom-color: rgba(245,166,74,.16);
  backdrop-filter: blur(18px) saturate(125%);
}
.topbar__inner { padding: 10px 18px; }
.main { padding-top: 22px; }
.panel, .stat, .kpi, .card-block, .menu-card, .order-card, .kco, .ttile, .help-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 44%),
    var(--panel);
  border-color: rgba(204,162,112,.18);
  box-shadow: var(--shadow-sm);
}
.menu-card, .kco, .ttile, .role-card, .btn {
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.menu-card:hover, .kco:hover, .ttile:hover {
  border-color: rgba(245,166,74,.52);
  box-shadow: 0 20px 42px -28px rgba(0,0,0,.95);
}
.stat__label, .kpi__label, .eyebrow, .zone__title { letter-spacing: .11em; }
.stat__value, .kpi__value, .kco__time { font-variant-numeric: tabular-nums; }
.chip, .tabbar, .role-switch { backdrop-filter: blur(14px); }
.modal {
  background:
    radial-gradient(520px 260px at 90% 0%, rgba(220,121,45,.08), transparent 66%),
    var(--panel);
  border-color: rgba(245,166,74,.24);
}

/* Landing */
.landing {
  --hero-image: url("gastro-hero.webp");
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7,6,5,.99) 0%, rgba(7,6,5,.93) 36%, rgba(7,6,5,.36) 67%, rgba(7,6,5,.78) 100%),
    linear-gradient(180deg, transparent 55%, #090806 91%),
    var(--hero-image, radial-gradient(circle at 76% 39%, #5e321d 0%, #21150f 26%, #090806 65%));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.landing::before {
  content: none;
}
.landing::after {
  content: none;
}
.landing__bar {
  position: relative;
  z-index: 5;
  padding: 20px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(224,145,47,.22);
}
.landing__bar .brand__mark {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(245,166,74,.42);
  background: linear-gradient(145deg, rgba(220,121,45,.32), rgba(15,12,9,.78));
  color: var(--amber-2);
  box-shadow: inset 0 0 22px rgba(220,121,45,.12);
}
.landing__bar .brand__name { font-size: 1.42rem; }
.landing__bar .brand__tag { letter-spacing: .22em; }
.landing__bar .btn {
  min-height: 46px;
  padding-inline: 17px;
  background: rgba(10,8,6,.56);
  border-color: rgba(202,155,104,.32);
}
.landing__bar .btn--danger { color: #ec8f6e; border-color: rgba(185,72,45,.58); }

.landing__hero {
  position: relative;
  z-index: 2;
  display: block;
  padding: clamp(42px, 6vh, 78px) clamp(18px, 3vw, 42px) 34px;
}
.landing__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: left;
}
.landing__inner--hybrid {
  display: grid;
  grid-template-columns: minmax(400px, .87fr) minmax(530px, 1.13fr);
  gap: clamp(36px, 5vw, 78px);
  align-items: center;
}
.landing__copy { max-width: 650px; }
.landing__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-2);
  font-size: .71rem;
  letter-spacing: .22em;
  margin-bottom: 24px;
}
.live-pip {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91c65b;
  box-shadow: 0 0 0 5px rgba(145,198,91,.08), 0 0 14px rgba(145,198,91,.55);
}
.landing__title {
  font-size: clamp(3.25rem, 5.45vw, 5.8rem);
  line-height: .93;
  letter-spacing: -.045em;
  font-weight: 500;
  text-wrap: balance;
}
.landing__title .amber {
  color: transparent;
  background: linear-gradient(120deg, #f8c077 10%, #e2792e 76%);
  -webkit-background-clip: text;
  background-clip: text;
}
.landing__lead {
  max-width: 610px;
  margin: 25px 0 0;
  color: #c8b9a6;
  font-size: clamp(.98rem, 1.35vw, 1.12rem);
  line-height: 1.66;
}
.landing__cta {
  justify-content: flex-start;
  margin: 29px 0 12px;
}
.landing__cta .btn {
  min-height: 58px;
  padding-inline: 22px;
}
.landing__cta .btn svg:last-child { margin-left: 7px; }
.btn--primary {
  background: linear-gradient(120deg, #f2a652, #d36d28);
  box-shadow: 0 14px 34px -18px rgba(224,121,45,.9), inset 0 1px rgba(255,255,255,.35);
}
.btn--glass {
  background: rgba(16,13,10,.66);
  backdrop-filter: blur(12px);
  border-color: rgba(223,180,126,.42);
}
.landing__showcase {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-top: 8px;
  color: var(--ink-2);
  text-align: left;
  border-radius: 13px;
  border: 1px solid rgba(223,180,126,.19);
  background: rgba(14,11,8,.46);
}
.landing__showcase:hover { border-color: rgba(245,166,74,.58); background: rgba(31,23,17,.72); }
.landing__showcase > svg:first-child {
  width: 36px;
  height: 36px;
  padding: 11px;
  color: #1b1109;
  border-radius: 50%;
  background: var(--amber-2);
}
.landing__showcase > svg:last-child { width: 18px; color: var(--amber-2); }
.landing__showcase strong { display: block; font-size: .86rem; }
.landing__showcase small { display: block; color: var(--faint); font-size: .72rem; margin-top: 1px; }
.landing__note {
  margin-top: 17px;
  color: #766958;
  font-size: .77rem;
}

.landing__visual {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual__glow {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,123,43,.18), rgba(225,123,43,.03) 46%, transparent 70%);
  filter: blur(4px);
}
.visual__plate {
  position: absolute;
  right: -2%;
  bottom: -3%;
  width: 390px;
  height: 126px;
  border-radius: 50%;
  border: 1px solid rgba(239,170,94,.18);
  background:
    radial-gradient(ellipse at 50% 43%, rgba(99,53,27,.65) 0 18%, #17120e 19% 45%, #37261a 47%, #090706 56%);
  box-shadow: 0 28px 80px rgba(0,0,0,.76), inset 0 4px 14px rgba(255,189,113,.08);
  transform: rotate(-5deg);
  opacity: .72;
}
.live-flow {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  padding: 48px 12px 52px;
}
.live-flow__head {
  position: absolute;
  inset: 0 12px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  color: #a99a88;
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .1em;
  border: 1px solid rgba(221,165,100,.2);
  border-radius: 10px;
  background: rgba(10,8,6,.56);
  backdrop-filter: blur(14px);
}
.live-flow__head span { display: inline-flex; align-items: center; gap: 8px; }
.live-flow__head strong { color: var(--amber-2); font-variant-numeric: tabular-nums; }
.live-card {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(217,169,112,.32);
  background: linear-gradient(145deg, rgba(35,29,24,.94), rgba(15,12,10,.95));
  box-shadow: 0 28px 65px -34px #000, inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(15px);
}
.live-card--order { transform: translateY(-24px); }
.live-card--kds { border-color: rgba(205,76,43,.68); transform: translateY(34px); }
.live-card__top {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-bottom: 1px solid rgba(217,169,112,.16);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .045em;
}
.live-card__top > span:nth-child(2) { flex: 1; }
.live-card__step {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--amber-2);
  border: 1px solid rgba(245,166,74,.48);
  border-radius: 6px;
}
.live-card__status { color: #a8cd73; font-size: .54rem; white-space: nowrap; }
.live-card__title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 13px 10px;
  font-family: var(--serif);
  font-size: 1.16rem;
}
.live-card__title strong { color: var(--amber-2); font: 600 .67rem var(--mono); }
.live-card__line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 13px;
  padding: 10px 0;
  color: #c7b7a3;
  font-size: .71rem;
  border-top: 1px solid rgba(217,169,112,.12);
}
.live-card__line strong { color: var(--ink); font-family: var(--mono); font-size: .65rem; white-space: nowrap; }
.live-flow__connector {
  position: relative;
  display: flex;
  justify-content: center;
  color: var(--amber-2);
}
.live-flow__connector > span {
  position: absolute;
  left: -8px;
  right: -8px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(245,166,74,.2), var(--amber-2), rgba(245,166,74,.2));
}
.live-flow__connector svg {
  position: relative;
  width: 28px;
  padding: 6px;
  border-radius: 50%;
  background: #17110c;
  border: 1px solid rgba(245,166,74,.46);
}
.live-flow__connector small {
  position: absolute;
  top: calc(50% + 18px);
  width: 100px;
  text-align: center;
  color: var(--faint);
  font: .56rem var(--mono);
}
.kds-clock {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(224,121,45,.09), transparent 60%);
}
.kds-clock span { color: var(--amber-2); font: .62rem var(--mono); }
.kds-clock strong { color: #f2a443; font: 500 2.95rem/1 var(--sans); letter-spacing: -.05em; margin: 8px 0; }
.kds-clock small { color: var(--amber-2); font: 700 .72rem var(--mono); letter-spacing: .1em; }
.live-card__station {
  padding: 10px 12px;
  color: var(--muted);
  border-top: 1px solid rgba(217,169,112,.14);
  font: .61rem var(--mono);
}
.live-toast {
  position: absolute;
  right: 7px;
  bottom: 0;
  width: 250px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(245,166,74,.34);
  border-radius: 11px;
  background: rgba(25,20,16,.94);
  box-shadow: 0 18px 40px -24px #000;
}
.live-toast > svg { width: 20px; color: var(--amber-2); }
.live-toast strong, .live-toast small { display: block; }
.live-toast strong { font-size: .72rem; }
.live-toast small { margin-top: 2px; color: var(--muted); font-size: .61rem; }

.landing__roles-wrap {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(219,170,112,.2);
}
.landing__roles-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--amber-2);
  font: .65rem var(--mono);
  letter-spacing: .18em;
}
.landing__roles-title small { color: var(--faint); letter-spacing: 0; font-size: .69rem; }
.landing__roles {
  max-width: none;
  margin: 12px 0 0;
  gap: 10px;
}
.role-card {
  position: relative;
  min-height: 102px;
  display: grid;
  grid-template-columns: 46px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 15px 14px;
  border-radius: 13px;
  background: rgba(20,16,13,.75);
  backdrop-filter: blur(15px);
  border-color: rgba(210,164,108,.23);
}
.role-card:hover {
  border-color: rgba(245,166,74,.65);
  background: rgba(34,26,20,.9);
  box-shadow: 0 18px 42px -28px rgba(0,0,0,.95);
  transform: translateY(-3px);
}
.role-card__number {
  position: absolute;
  top: 7px;
  left: 9px;
  color: #8d623d;
  font: .56rem var(--mono);
}
.role-card__ico {
  width: 46px;
  height: 46px;
  margin-top: 6px;
  border-color: rgba(245,166,74,.25);
  background: linear-gradient(145deg, rgba(245,166,74,.1), rgba(255,255,255,.02));
}
.role-card__ico svg { width: 23px; height: 23px; }
.role-card__copy { min-width: 0; }
.role-card__t, .role-card__s { display: block; }
.role-card__t { font-family: var(--serif); font-size: 1.03rem; }
.role-card__s { margin-top: 4px; line-height: 1.35; }
.role-card__arrow { color: #a8835e; }
.role-card__arrow svg { width: 17px; }
.landing__foot {
  position: relative;
  z-index: 2;
  color: #6e6152;
  border-top-color: rgba(219,170,112,.14);
}

@media (max-width: 1120px) {
  .landing__inner--hybrid { grid-template-columns: minmax(350px, .86fr) minmax(470px, 1.14fr); gap: 28px; }
  .landing__title { font-size: clamp(3rem, 5.7vw, 4.8rem); }
  .live-flow { transform: scale(.92); transform-origin: center; }
  .landing__roles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .landing {
    background:
      linear-gradient(180deg, rgba(7,6,5,.84), rgba(7,6,5,.98) 59%, #090806 100%),
      var(--hero-image, radial-gradient(circle at 70% 20%, #5e321d 0%, #21150f 25%, #090806 66%));
    background-size: auto 520px;
    background-repeat: no-repeat;
    background-position: top center;
  }
  .landing__inner--hybrid { grid-template-columns: 1fr; }
  .landing__copy { max-width: 680px; }
  .landing__title { font-size: clamp(3.2rem, 10vw, 5.2rem); }
  .landing__visual { min-height: 460px; margin-top: -12px; }
  .live-flow { width: min(100%, 650px); transform: none; }
  .landing__roles-wrap { margin-top: 6px; }
}
@media (max-width: 620px) {
  .landing__bar { padding: 14px 14px; }
  .landing__bar .brand__mark { width: 40px; height: 40px; }
  .landing__bar .brand__name { font-size: 1.12rem; }
  .landing__bar .btn { width: 44px; padding: 0; }
  .landing__bar .btn .label { display: none; }
  .landing__hero { padding: 34px 14px 26px; }
  .landing__eyebrow { margin-bottom: 17px; font-size: .62rem; letter-spacing: .16em; }
  .landing__title { font-size: clamp(2.8rem, 14.5vw, 4.25rem); line-height: .94; }
  .landing__lead { font-size: .95rem; line-height: 1.58; }
  .landing__cta { display: grid; grid-template-columns: 1fr; }
  .landing__cta .btn { width: 100%; min-height: 56px; }
  .landing__showcase { width: 100%; }
  .landing__visual { min-height: 620px; margin-top: 2px; }
  .live-flow {
    grid-template-columns: 1fr;
    gap: 48px;
    width: min(100%, 330px);
    padding-top: 54px;
  }
  .live-card--order, .live-card--kds { transform: none; }
  .live-flow__connector {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .live-flow__connector small { display: none; }
  .live-toast { right: 0; bottom: -34px; }
  .visual__plate { width: 300px; right: -40px; }
  .landing__roles-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .landing__roles { grid-template-columns: 1fr; }
  .role-card { min-height: 88px; }
}

/* =========================================================================
   WORLD-CLASS PASS — kinowy hero bez WebGL: wejście z ruchem, sygnaturowy
   beat "ticket -> KDS", warstwa konwersji. Wszystko reduced-motion-safe
   (globalna reguła prefers-reduced-motion zwija animacje do stanu końcowego).
   ========================================================================= */

/* Wejście hero z ruchem (odtwarza się przy renderze landingu) */
@keyframes gd-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.landing__copy > * { animation: gd-rise .72s cubic-bezier(.16,1,.3,1) both; }
.landing__copy > *:nth-child(1) { animation-delay: .04s; }
.landing__copy > *:nth-child(2) { animation-delay: .10s; }
.landing__copy > *:nth-child(3) { animation-delay: .17s; }
.landing__copy > *:nth-child(4) { animation-delay: .24s; }
.landing__copy > *:nth-child(5) { animation-delay: .31s; }
.landing__copy > *:nth-child(6) { animation-delay: .38s; }
.landing__visual { animation: gd-rise .8s cubic-bezier(.16,1,.3,1) .22s both; }
.landing__roles-wrap { animation: gd-rise .7s cubic-bezier(.16,1,.3,1) .34s both; }
.landing__pitch { animation: gd-rise .7s cubic-bezier(.16,1,.3,1) .42s both; }

/* Sygnaturowy beat: ticket wylatuje z zamówienia i "wpada" do KDS, w pętli */
.flow-ticket {
  position: absolute; z-index: 6; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 10px; color: #201509;
  background: linear-gradient(160deg, #f2b45a, #e0912f);
  box-shadow: 0 12px 26px -8px rgba(224,145,47,.75);
  pointer-events: none; opacity: 0;
  animation: gd-ticket-fly 3.8s cubic-bezier(.55,0,.25,1) infinite;
}
.flow-ticket svg { width: 20px; height: 20px; }
@keyframes gd-ticket-fly {
  0%   { left: 26%; top: 40%; opacity: 0; transform: translate(-50%,-50%) scale(.5) rotate(-6deg); }
  10%  { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(-4deg); }
  50%  { left: 72%; top: 55%; opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(6deg); }
  62%  { left: 72%; top: 55%; opacity: 0; transform: translate(-50%,-50%) scale(1.22) rotate(6deg); }
  100% { left: 72%; top: 55%; opacity: 0; transform: translate(-50%,-50%) scale(1.22); }
}
/* Karta KDS "przyjmuje" ticket w tej samej sekundzie */
.live-card--kds { animation: gd-kds-receive 3.8s ease-in-out infinite; }
@keyframes gd-kds-receive {
  0%, 46%   { box-shadow: 0 28px 65px -34px #000, inset 0 1px rgba(255,255,255,.04); border-color: rgba(205,76,43,.68); }
  58%       { box-shadow: 0 0 0 3px rgba(224,145,47,.42), 0 24px 60px -30px #000; border-color: var(--amber-2); }
  74%, 100% { box-shadow: 0 28px 65px -34px #000, inset 0 1px rgba(255,255,255,.04); border-color: rgba(205,76,43,.68); }
}
/* Zamówienie "wysyła" — subtelny puls na starcie cyklu (zachowuje offset -24px) */
.live-card--order { animation: gd-order-send 3.8s ease-in-out infinite; }
@keyframes gd-order-send {
  0%   { transform: translateY(-24px) scale(1); }
  8%   { transform: translateY(-24px) scale(1.025); }
  18%  { transform: translateY(-24px) scale(1); }
  100% { transform: translateY(-24px) scale(1); }
}
/* Impuls biegnący po łączniku (linia od zamówienia do kuchni) */
.live-flow__connector > span { overflow: visible; }
.live-flow__connector::after {
  content: ""; position: absolute; top: 50%; left: -8px;
  width: 7px; height: 7px; border-radius: 50%; margin-top: -3px;
  background: var(--amber-2); box-shadow: 0 0 10px 2px rgba(245,166,74,.7);
  animation: gd-pulse-run 3.8s cubic-bezier(.55,0,.25,1) infinite; opacity: 0;
}
@keyframes gd-pulse-run {
  0% { left: -8px; opacity: 0; } 12% { opacity: 1; } 50% { left: calc(100% + 8px); opacity: 1; }
  56%, 100% { left: calc(100% + 8px); opacity: 0; }
}

/* Warstwa konwersji GroDev */
.landing__pitch {
  grid-column: 1 / -1;
  margin-top: clamp(28px, 4vw, 52px);
  padding: clamp(20px, 2.4vw, 30px) clamp(22px, 3vw, 40px);
  border-radius: 20px;
  border: 1px solid rgba(224,145,47,.28);
  background:
    radial-gradient(700px 220px at 88% -40%, rgba(224,121,45,.16), transparent 70%),
    linear-gradient(120deg, rgba(38,24,15,.9), rgba(15,12,10,.92));
  display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 3vw, 40px);
  flex-wrap: wrap;
}
.landing__pitch-copy { max-width: 640px; color: #c8b9a6; font-size: clamp(.95rem, 1.3vw, 1.08rem); line-height: 1.6; }
.landing__pitch-copy strong { color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.14em; display: block; margin-bottom: 4px; }
.landing__pitch-cta { min-height: 56px; padding-inline: 24px; flex: 0 0 auto; text-decoration: none; }

@media (max-width: 767px) {
  .landing__pitch { flex-direction: column; align-items: flex-start; text-align: left; }
  .landing__pitch-cta { width: 100%; }
  /* na telefonie karty obiegu stackują się pionowo — ticket leci w dół */
  @keyframes gd-ticket-fly {
    0% { left: 50%; top: 20%; opacity: 0; transform: translate(-50%,-50%) scale(.5); }
    12% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    52% { left: 50%; top: 78%; opacity: 1; transform: translate(-50%,-50%) scale(1); }
    64%, 100% { left: 50%; top: 78%; opacity: 0; transform: translate(-50%,-50%) scale(1.2); }
  }
}

/* Telefon w pokazie: bez surowego scrollbara; CTA konwersji jako link */
.phone__screen { scrollbar-width: none; }
.phone__screen::-webkit-scrollbar { display: none; width: 0; height: 0; }
a.btn, .showcase__pitch, .landing__pitch-cta { text-decoration: none; }
.showcase__pitch { display: inline-flex; align-items: center; }

/* Legenda mapy sali (stan = kolor + tekst, nigdy sam kolor) */
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; color: var(--muted); font-size: .74rem; }
.map-legend__item { display: inline-flex; align-items: center; gap: 7px; }
.map-legend__dot { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line); background: var(--panel-2); display: inline-block; flex: none; }
.map-legend__dot--free { background: var(--panel); }
.map-legend__dot--occupied { background: #4a3a1c; border-color: #5c4a26; }
.map-legend__dot--call { background: var(--brick); border-color: var(--brick); }
.map-legend__dot--ready { background: var(--ok); border-color: var(--ok); }
.map-legend__dot--bill { background: var(--warn); border-color: var(--warn); }
.map-legend__dot--reserved { background: #6a5ba0; border-color: #6a5ba0; }

/* Wezwania kelnera na wąskich ekranach: przyciski schodzą do drugiego wiersza */
@media (max-width: 520px) {
  .call-row { flex-wrap: wrap; }
  .call-row__body { flex: 1 1 140px; }
  .call-row .btn { flex: 1 1 auto; }
}

/* Topbar operacyjny na telefonie: marka jako sam znak, narzędzia obok,
   przełącznik ról w osobnym pełnym wierszu (2 wiersze zamiast 3) */
@media (max-width: 767px) {
  .topbar__inner { flex-wrap: wrap; row-gap: 6px; padding: 8px 10px; }
  .role-switch { order: 10; flex: 1 1 100%; width: 100%; }
  .sim-indicator .mono { display: none; } /* zostaje kropka live */
  .topbar .brand > span:last-child { display: none; } /* sam znak ognia (ma aria-label) */
  .topbar .brand { flex: 0 0 auto; }
  .topbar__tools { margin-left: auto; }
}

/* --- Mobile topbar: dwa wiersze zamiast trzech --------------------------
   .topbar__spacer (flex:1 1 auto) wypychal narzedzia do osobnego wiersza,
   mimo ze .topbar__tools ma juz margin-left:auto i sam sie odsuwa.
   Zmierzone: 375 px 3 wiersze (154 px) -> 2 wiersze (114 px).
   Ponizej 375 px dodatkowo ciasniejsze odstepy, zeby zmiescic 360 px. */
@media (max-width: 767px) {
  .topbar__spacer { display: none; }
}
@media (max-width: 374px) {
  .topbar__inner { column-gap: 6px; padding-left: 8px; padding-right: 8px; }
  .topbar__tools { gap: 6px; }
}
