/* Gotowe.app brand: orange #F7941D, navy #2B3440 (header/footer), black text on orange, white, Barlow. */
:root {
  --orange: #F7941D;
  --gt-orange: #F7941D; /* Gotowe's own logo: never replaced by a restaurant's colour */
  --orange-dark: #E07F0B;
  --orange-soft: #FFF3E3;
  --navy: #2B3440;
  --navy-2: #3A4552;
  --on-orange: #000000;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-soft: #F4F5F7;
  --ink: #2B3440;
  --muted: #5A6470;
  --line: #D5D9DE;
  --ok: #1F7A4D;
  --danger: #C62828;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43,52,64,.06), 0 8px 24px rgba(43,52,64,.08);
  font-family: 'Barlow', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-weight: 900; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 800; color: var(--orange-dark); }
.accent { color: var(--orange); }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--gt-orange); display: inline-grid; place-items: center; flex: none; }
.logo-mark svg { width: 26px; height: 26px; stroke: #fff; }
.logo-word { font-weight: 900; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; }
.logo-word .dot { color: var(--gt-orange); }
.logo-word.tm::after { content: "™"; font-size: .38em; font-weight: 700; vertical-align: super; margin-left: 1px; letter-spacing: 0; opacity: .85; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.top nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-links { display: none; gap: 20px; font-weight: 700; }
.nav-links a { text-decoration: none; }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* buttons: text on orange is black (white on orange is too low contrast) */
.btn { appearance: none; border: 2px solid var(--line); background: var(--white); color: var(--navy); border-radius: 12px; padding: 10px 18px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; line-height: 1.1; }
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn:focus-visible, .input:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--on-orange); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--white); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { border-color: transparent; text-decoration: underline; text-decoration-color: var(--orange); }
.btn-danger { color: var(--danger); }
.btn-lg { font-size: 1.15rem; padding: 14px 26px; min-height: 58px; border-radius: 14px; }
.btn-xl { font-size: 1.6rem; padding: 18px 28px; min-height: 76px; border-radius: 18px; width: 100%; font-weight: 900; }

/* cards & forms */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.form { display: grid; gap: 14px; max-width: 440px; margin: 32px auto; }
.form h1 { font-size: 2rem; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.input { font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; min-height: 50px; width: 100%; color: var(--ink); }
.input:focus { border-color: var(--orange); outline: none; }
.error { color: var(--danger); font-weight: 700; min-height: 1.5em; }

/* landing */
.hero { padding-top: 48px; padding-bottom: 40px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.2fr .8fr; padding-top: 72px; padding-bottom: 56px; } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.03em; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 56ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .small { font-size: .95rem; color: var(--muted); margin-top: 10px; }
.phone { justify-self: center; width: 260px; aspect-ratio: 9 / 17; border-radius: 40px; background: var(--navy); padding: 12px; box-shadow: 0 30px 60px rgba(43,52,64,.25); }
.phone-screen { height: 100%; border-radius: 30px; background: var(--orange); color: var(--on-orange); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 16px; }
.phone-screen .bell { width: 64px; height: 64px; stroke: var(--on-orange); animation: ring 1.6s ease-in-out infinite; transform-origin: 50% 10%; }
.phone-screen .n { font-size: 5.5rem; font-weight: 900; line-height: .9; letter-spacing: -.04em; }
.phone-screen .r { font-size: 2.2rem; font-weight: 900; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .phone-screen .bell { animation: none; } }

.section { padding: 56px 0; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .muted { color: #C9CFD6; }
.section-navy a { color: var(--white); }
.grid3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.step .num { width: 48px; height: 48px; border-radius: 14px; background: var(--orange); color: var(--on-orange); font-weight: 900; font-size: 1.5rem; display: grid; place-items: center; margin-bottom: 14px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { padding-left: 34px; position: relative; font-weight: 600; }
.features li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.who { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 2px solid var(--line); border-radius: 99px; padding: 8px 16px; font-weight: 700; background: #fff; }
.price-card { max-width: 440px; border: 3px solid var(--orange); }
.price { font-size: 3.6rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 6px; }
.price small { font-size: 1.1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; display: inline-block; line-height: 1.25; }
.price-gross { font-weight: 700; color: var(--muted); margin: 6px 0 18px; }
.badge { display: inline-block; background: var(--orange-soft); color: #8A4A00; font-weight: 800; border-radius: 99px; padding: 4px 12px; font-size: .9rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--orange-dark); font-weight: 900; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.cta-band { text-align: center; }
.cta-band h2 { color: var(--white); }

/* footer */
.site-foot { background: var(--navy); color: #C9CFD6; padding: 48px 0 32px; font-size: .95rem; }
.site-foot a { color: var(--white); text-decoration: none; }
.site-foot a:hover { color: var(--orange); }
.site-foot .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Desktop: the contact column is the widest (label and address on one line), the product column the narrowest. */
@media (min-width: 1000px) { .site-foot .cols { grid-template-columns: 1.25fr .8fr 1.45fr 1fr; gap: 40px; } }
.site-foot li { line-height: 1.45; }
.site-foot li:has(> .hidden) { display: none; } /* the cookie settings link exists only with tracking on */
.site-foot h4 { color: var(--white); margin: 0 0 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot .logo, .site-foot .logo:hover { color: var(--white); }
.site-foot .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* legal / content pages */
.doc { max-width: 820px; margin: 32px auto 56px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 1.6em; }
.doc h3 { font-size: 1.12rem; margin: 1.3em 0 .4em; }
.doc li { margin-bottom: .35em; }
.doc .draft { background: var(--orange-soft); border-radius: 12px; padding: 10px 14px; font-weight: 700; color: #8A4A00; }
.doc .version { color: var(--muted, #6b6b6b); font-size: .95rem; }
.doc .version a { font-weight: 700; margin-left: 6px; }
.doc .table-wrap { overflow-x: auto; margin: 10px 0 14px; }
.doc-table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 620px; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.doc-table th { background: var(--bg-soft); }
.doc .form-box { border: 2px dashed var(--line); border-radius: 12px; padding: 14px 16px; }
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-grid .card h3 { font-size: 1.1rem; }
.contact-grid a { font-weight: 800; font-size: 1.1rem; }

/* panel */
body.panel-body { background: var(--bg-soft); }
.panel-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; }
.panel-head .logo, .panel-head .logo:hover { color: #fff; }
.panel-head .logo-word { font-size: 1.3rem; }
.panel-head .stats { display: flex; gap: 18px; font-size: .95rem; color: #C9CFD6; flex-wrap: wrap; }
.panel-head .stats b { color: #fff; font-size: 1.15rem; }
.panel-head .btn { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.panel-head .btn:hover { border-color: #fff; }
.panel-head .btn-ghost { border-color: transparent; }
.panel-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Language sits on its own, apart from the action buttons: far right on wide screens, top right on phones. */
.lang-chip { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.lang-chip::before { content: "🌐 "; }
.lang-chip:hover { background: rgba(255,255,255,.2); }
.panel-head .lang-chip { margin-left: 8px; font-size: 1rem; padding: 9px 16px; }
/* The connection chip sits right after the restaurant name; the name shrinks first, the chip never does. */
.panel-head .rest-wrap { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; }
.panel-head .rest-wrap .rest-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 0; }
.panel-head .conn { flex: 0 0 auto; white-space: nowrap; }
/* Tablets and computers: logo, name, stats and language on top, buttons in one row below. */
@media (min-width: 701px) {
  .panel-head .rest-name { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 0; }
  .panel-head .stats { order: 1; flex-wrap: nowrap; white-space: nowrap; gap: 12px; font-size: .88rem; }
  .panel-head .stats b { font-size: 1.05rem; }
  .panel-head .lang-chip { order: 2; margin-left: 0; padding: 7px 12px; font-size: .9rem; }
  .panel-nav { order: 3; width: 100%; gap: 6px; }
  .panel-nav .btn { padding: 8px 12px; font-size: .9rem; }
}
/* Tablets and computers: the button row is centred, with equal space on both sides. */
@media (min-width: 701px) { .panel-nav { justify-content: center; } }
@media (min-width: 701px) and (max-width: 1100px) { .panel-nav .btn { padding: 8px 10px; font-size: .86rem; } .panel-head .stats { gap: 10px; font-size: .82rem; } .panel-head .stats b { font-size: .98rem; } .panel-head .rest-name { padding-left: 10px; font-size: 1.05rem; } }
/* Phones: logo and name on one line, then stats, then the buttons wrapping under each other, nothing wider than the screen. */
@media (max-width: 700px) {
  .panel-head { gap: 8px 12px; }
  .panel-head .logo-word { font-size: 1.1rem; }
  .panel-head .rest-name { font-size: 1rem; padding-left: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
  .panel-head .stats { width: 100%; gap: 12px; font-size: .85rem; }
  .panel-nav { width: 100%; gap: 6px; }
  .panel-nav .btn { min-height: 38px; padding: 6px 10px; font-size: .85rem; }
  .panel-head .conn { font-size: .78rem; padding: 3px 8px; }
  .panel-head .lang-chip { order: 2; margin-left: auto; font-size: .85rem; padding: 6px 12px; }
  .panel-head .rest-wrap { flex: 1 1 calc(100% - 170px); gap: 8px; }
  .panel-head .stats { order: 1; width: auto; flex: 1 1 auto; }
  .panel-nav { order: 3; }
}
.conn { font-size: .85rem; padding: 4px 10px; border-radius: 99px; background: #DDF3E6; color: var(--ok); font-weight: 700; }
.conn.off { background: #FDE2E2; color: var(--danger); }
.trial-bar { background: var(--orange-soft); color: #8A4A00; font-weight: 700; padding: 8px 16px; text-align: center; }
.trial-bar a { color: #8A4A00; }
.panel-new { display: grid; gap: 10px; grid-template-columns: 1fr; padding: 16px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 760px) { .panel-new { grid-template-columns: 1fr 2fr; align-items: center; } }
.board { display: grid; gap: 16px; padding: 0 16px 32px; max-width: 1280px; margin: 0 auto; grid-template-columns: 1fr; }
@media (min-width: 760px) { .board { grid-template-columns: 1fr 1fr; } }
.col h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .04em; }
.col h2 .count { background: var(--navy); color: #fff; border-radius: 99px; padding: 0 10px; font-size: .95rem; }
.list { display: grid; gap: 10px; }
.ticket { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ticket .n { font-size: 2.3rem; font-weight: 900; min-width: 2.6ch; text-align: center; letter-spacing: -.03em; }
.ticket .meta { font-size: .9rem; color: var(--muted); flex: 1 1 170px; min-width: 0; }
.ticket .label { font-weight: 800; color: var(--ink); }
.ticket .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.ticket.ready { border-color: var(--orange); background: var(--orange-soft); }
.ticket.done { opacity: .6; }
.ticket.flash { animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(.96); background: var(--orange-soft); } 100% { transform: none; } }
details.done-list summary { cursor: pointer; font-weight: 800; padding: 8px 0; }

/* QR modal */
.modal { position: fixed; inset: 0; background: rgba(43,52,64,.7); display: grid; place-items: center; padding: 16px; z-index: 20; overflow-y: auto; }
.qr-actions { display: flex; gap: 8px; justify-content: center; }
.modal .card { max-width: 420px; width: 100%; text-align: center; }
.modal .big-n { font-size: 5.5rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.qr { width: 100%; max-width: 300px; aspect-ratio: 1; margin: 12px auto; }
.qr svg, .qr img { width: 100%; height: 100%; }
/* Short screens (tablet on its side, phone in landscape): QR on the left, number and buttons on the right, all visible without scrolling. */
@media screen and (max-height: 700px) and (orientation: landscape) {
  #qr-modal .card { max-width: 720px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto 1fr auto auto; column-gap: 24px; align-items: center; text-align: left; padding: 16px 20px; }
  #qr-modal .qr { grid-column: 1; grid-row: 1 / -1; width: min(300px, calc(100vh - 80px)); margin: 0; }
  #qr-modal .card > :not(.qr) { grid-column: 2; margin: 0 0 6px; }
  #qr-modal .big-n { font-size: 4rem; }
  #qr-modal .qr-actions { justify-content: flex-start; }
  #qr-modal .qr-safe { text-align: left; max-width: none; }
}
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 30; max-width: calc(100% - 32px); font-weight: 700; }

/* customer order page */
body.customer { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.cust { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; gap: 16px; }
/* Restaurant name: big when short, smaller when long, never more than two lines (company names can be 80 characters). */
.cust .rest { color: var(--muted); font-weight: 800; font-size: clamp(1.5rem, 7.5vw, 2rem); line-height: 1.15; max-width: 100%; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cust .rest.long { font-size: clamp(1.25rem, 6vw, 1.6rem); }
.cust .rest.very-long { font-size: clamp(1.05rem, 4.8vw, 1.3rem); }
.cust .num-label { text-transform: uppercase; letter-spacing: .14em; font-size: clamp(1.05rem, 4.8vw, 1.3rem); color: var(--muted); font-weight: 800; margin-top: 4px; }
.cust .num { font-size: clamp(5.5rem, 32vw, 11rem); font-weight: 900; line-height: .9; letter-spacing: -.05em; }
.cust .status-title { font-size: 1.6rem; font-weight: 800; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 6px solid var(--line); border-top-color: var(--orange); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { background: var(--orange-soft); border: 1px solid #FBD3A0; color: #6B3A00; border-radius: 14px; padding: 12px 14px; font-size: 1rem; max-width: 460px; text-align: left; font-weight: 600; }
.note.ok { background: #E6F4EC; border-color: #B9E0C9; color: #145235; }
#company-done { max-width: none; margin-bottom: 14px; display: grid; gap: 10px; }
.ios-steps ol { margin: 6px 0 0; padding-left: 22px; }
.ios-steps li { margin-bottom: 10px; }
.ios-shot { display: block; width: 100%; max-width: 280px; height: auto; margin: 6px 0 2px; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
html[lang="en"] .only-pl, html:not([lang="en"]) .only-en { display: none; }
.finish { position: fixed; inset: 0; z-index: 50; background: rgba(20,26,34,.72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.finish-box { background: #fff; border-radius: 20px; padding: 26px 20px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.finish-box .btn { width: 100%; margin-top: 8px; }
.priv { align-items: flex-start; overflow-y: auto; }
.priv-box { text-align: left; max-width: 520px; font-size: .92rem; color: var(--navy); }
.priv-box h2 { margin: 0 0 10px; font-size: 1.15rem; }
.priv-box p { margin: 0 0 10px; }
.priv-box a { word-break: break-all; }
.welcome-bell { width: 72px; height: 72px; stroke: var(--orange); margin: 8px auto 4px; display: block; }
.cust-foot { text-align: center; font-size: .85rem; color: var(--muted); padding: 12px 16px 20px; }
.cust-foot a { color: var(--muted); }
body.is-ready { background: var(--orange); color: var(--on-orange); }
body.is-ready .cust .rest, body.is-ready .cust .num-label, body.is-ready .cust-foot, body.is-ready .cust-foot a, body.is-ready .logo, body.is-ready .top .btn { color: var(--on-orange); }
body.is-ready .logo-mark { background: var(--on-orange); }
body.is-ready .logo-mark svg { stroke: var(--orange); }
body.is-ready .logo-word .dot { color: var(--on-orange); }
body.is-ready.flash-on { background: var(--on-orange); color: var(--flash-text, var(--white)); }
body.is-ready.flash-on .cust .rest, body.is-ready.flash-on .cust .num-label, body.is-ready.flash-on .logo, body.is-ready.flash-on .top .btn, body.is-ready.flash-on .cust-foot, body.is-ready.flash-on .cust-foot a { color: var(--flash-text, var(--white)); }
body.is-ready.flash-on .logo-mark { background: var(--orange); }
body.is-ready.flash-on .logo-mark svg { stroke: var(--on-orange); }
body.is-ready.flash-on .logo-word .dot { color: var(--orange); }
/* With a restaurant's colour (Pro), the Gotowe logo keeps its own orange and white on every screen, flashing included. */
html.branded body.is-ready .logo-mark, html.branded body.is-ready.flash-on .logo-mark { background: var(--gt-orange); }
html.branded body.is-ready .logo-mark svg, html.branded body.is-ready.flash-on .logo-mark svg { stroke: #fff; }
html.branded body.is-ready .logo-word .dot, html.branded body.is-ready.flash-on .logo-word .dot { color: var(--gt-orange); }
.ready-bell { width: 96px; height: 96px; stroke: currentColor; animation: ring 1.2s ease-in-out infinite; transform-origin: 50% 10%; }
.ready-title { font-size: clamp(3.4rem, 18vw, 7rem); font-weight: 900; letter-spacing: -.03em; line-height: .95; }
.tap-hint { font-weight: 800; opacity: .9; }

/* scanner */
.scan-box { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; background: var(--navy); border-radius: 20px; overflow: hidden; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-box .frame { position: absolute; inset: 18%; border: 5px solid var(--orange); border-radius: 18px; }

/* print ticket */
@media print {
  .panel-body * { visibility: hidden; } /* the panel prints only the order ticket */
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; width: 58mm; box-shadow: none; border: 0; }
  .print-area .btn { display: none; }
}
[hidden] { display: none !important; }
.panel-head .rest-name { font-weight: 800; font-size: 1.15rem; padding-left: 14px; border-left: 2px solid rgba(255,255,255,.25); margin-right: auto; }
/* header on small screens: section links hidden, compact buttons */
.top nav.nav-links { display: none; }
@media (min-width: 900px) { .top nav.nav-links { display: flex; } }
@media (max-width: 599px) {
  .site-head .top nav .btn { min-height: 40px; padding: 6px 10px; font-size: .9rem; }
  .site-head .top nav .btn-primary { display: none; }
  .site-head .logo-word { font-size: 1.3rem; }
  .site-head .logo-mark { width: 32px; height: 32px; }
  .phone { width: 200px; }
}

/* Call number: solid navy on white; white with a thin black outline on orange. */
.cust .num, .modal .big-n { color: var(--navy); -webkit-text-stroke: 0; }
body.is-ready .cust .num, .phone-screen .n {
  color: var(--num-fill, var(--white));
  -webkit-text-stroke: 6px var(--num-line, #000);
  paint-order: stroke fill;
}
.phone-screen .n { -webkit-text-stroke-width: 5px; letter-spacing: .1em; text-indent: .1em; }
/* Keep outlined digits from touching each other. */
.cust .num { letter-spacing: 0.05em; text-indent: 0.05em; }
body.is-ready .cust .num { letter-spacing: 0.1em; text-indent: 0.1em; }

/* ---------- customer screen (/display): a second device facing the customer ---------- */
.display-body { background: var(--bg-soft); min-height: 100vh; min-height: 100dvh; }
.display-body .en { color: var(--muted); font-weight: 600; }
.display-start { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 16px; text-align: center; max-width: 640px; margin: 0 auto; }
.display-start .logo-word { font-size: 1.6rem; }
.display-start p { font-size: 1.1rem; }
.display { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.display-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: var(--navy); color: var(--white); }
.display-head .logo, .display-head .logo:hover { color: var(--white); }
.display-head .logo-word { font-size: 1.4rem; }
.display-rest { font-weight: 800; font-size: 1.3rem; }
.display-view { flex: 1; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; justify-items: center; padding: 24px; }
@media (orientation: landscape) and (min-width: 700px) { .display-view { grid-template-columns: 1fr 1fr; padding: 32px 48px; } }
.display-text { max-width: 560px; }
.display-text.center { text-align: center; grid-column: 1 / -1; }
.display-text h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 900; margin-bottom: .3em; }
.display-text p { font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 0 0 .4em; }
.display-label { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--muted); }
.display-num { font-size: clamp(6rem, 18vw, 12rem); font-weight: 900; line-height: .95; color: var(--navy); letter-spacing: .05em; margin: 4px 0 16px; }
.display-qr { background: var(--white); padding: 18px; border-radius: 24px; box-shadow: var(--shadow); width: min(78vw, 62vh, 460px); aspect-ratio: 1; }
.display-qr img { width: 100%; height: 100%; display: block; }
.display-check { width: 140px; height: 140px; border-radius: 50%; background: var(--orange); color: var(--on-orange); font-size: 5rem; font-weight: 900; display: grid; place-items: center; margin: 0 auto 20px; }
.display-offline { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--danger); color: var(--white); padding: 8px 16px; border-radius: 999px; font-weight: 700; }

/* ---------- counter QR page (/r/<code>) ---------- */
.claim-form { display: grid; gap: 12px; width: 100%; max-width: 360px; }
.claim-input { font-size: 2.6rem; font-weight: 900; text-align: center; letter-spacing: .08em; min-height: 84px; }

/* ---------- panel: auto-QR switch ---------- */
.auto-qr { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); cursor: pointer; }
.auto-qr input { width: 22px; height: 22px; accent-color: var(--orange); }

/* ---------- printable counter poster (/poster), A4 ---------- */
.poster-body { background: var(--bg-soft); }
.poster-tools { display: flex; justify-content: space-between; gap: 8px; max-width: 760px; margin: 0 auto; padding: 16px; }
.poster { background: var(--white); max-width: 760px; margin: 0 auto 32px; padding: 48px 40px; text-align: center; border-top: 18px solid var(--orange); box-shadow: var(--shadow); }
.poster .logo { justify-content: center; }
.poster .logo-word { font-size: 2rem; }
.poster-rest { font-weight: 800; font-size: 1.4rem; color: var(--muted); margin: 10px 0 24px; }
.poster h1 { font-size: 3rem; margin-bottom: .2em; }
.poster-lead { font-size: 1.5rem; font-weight: 600; margin: 0 0 24px; }
.poster-qr { width: 340px; max-width: 80%; margin: 0 auto 24px; }
.poster-qr img { width: 100%; display: block; }
.poster-en { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 0 auto 16px; }
.poster-foot { font-weight: 800; color: var(--navy); margin: 0; }
@media print {
  @page { size: A4; margin: 12mm; }
  .poster-body { background: #fff; }
  .poster-body * { visibility: visible; }
  .no-print { display: none !important; }
  .poster { box-shadow: none; margin: 0 auto; border-top-color: var(--orange); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- two plans ---------- */
.price-grid { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 1180px; margin-top: 16px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .price-grid { grid-template-columns: 1fr 1fr 1fr; } }
/* Business: for chains, price agreed one to one */
.price-grid .price-biz { border-color: var(--navy); background: linear-gradient(180deg, #F4F6F9, #fff 40%); }
.price-biz .biz-from { font-size: 2rem; }
.price-grid .price-card { max-width: none; border-color: var(--line); display: flex; flex-direction: column; }
.price-grid .price-card .btn { margin-top: auto; align-self: flex-start; }
.price-grid .price-card h3 { font-size: 1.5rem; margin-bottom: .3em; }
.price-grid .price-pro { border-color: var(--orange); position: relative; }
.badge-pro { position: absolute; top: -14px; right: 20px; background: var(--orange); color: var(--on-orange); }
.price-note { margin-top: 16px; max-width: 1180px; }
.price-grid .features { margin-bottom: 22px; }
.panel-new .auto-qr { grid-column: 1 / -1; }

/* Pro lock on the customer screen button + upgrade screen */
.screen-btn.locked { color: var(--muted); border-style: dashed; }
.pro-tag { background: var(--orange); color: var(--on-orange); font-size: .7rem; font-weight: 900; letter-spacing: .06em; border-radius: 6px; padding: 3px 6px; }
.modal .card.upgrade { max-width: 460px; text-align: left; }
.upgrade h3 { font-size: 1.6rem; margin: 10px 0 6px; }
.upgrade .features { margin: 16px 0; }
.upgrade .btn-lg { width: 100%; margin-top: 4px; }
.upgrade .btn-ghost { width: 100%; }
.upgrade-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.upgrade-prices > div { border: 2px solid var(--line); border-radius: 12px; padding: 12px; }
.upgrade-prices b { font-size: 1.35rem; }
.small { font-size: .85rem; }
.save { color: var(--ok); font-weight: 800; }
.badge-inline { background: var(--orange); color: var(--on-orange); }
.plan-bar { background: #E8F3EC; color: var(--ok); }

/* Monthly / yearly pricing switch */
.bill-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-top: 18px; background: var(--white); border: 2px solid var(--line); border-radius: 14px; }
.bill-toggle button { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--navy); padding: 10px 16px; border-radius: 10px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.bill-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.bill-toggle button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.save-pill { background: #E8F3EC; color: var(--ok); font-size: .8rem; font-weight: 800; border-radius: 99px; padding: 3px 8px; }
#cennik .p-yearly { display: none; }
#cennik[data-bill="yearly"] .p-yearly { display: block; }
#cennik[data-bill="yearly"] .p-monthly { display: none; }
.p-yearly .was { font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.p-yearly .was s { font-size: 1.05rem; }

/* Owner's admin panel */
.admin-body { background: var(--soft, #F4F5F7); min-height: 100vh; }
.admin-wrap { max-width: 1400px; margin: 0 auto; padding: 20px 16px 40px; }
.admin-login { max-width: 400px; margin: 40px auto; display: grid; gap: 12px; }
.admin-login h1 { font-size: 1.6rem; margin: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-stat { padding: 16px; display: grid; gap: 2px; }
.admin-stat b { font-size: 1.7rem; font-weight: 900; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.admin-tools #search { flex: 1 1 260px; }
.admin-tools #filter { flex: 0 1 200px; }
.admin-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th, .admin-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.admin-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #FAFBFC; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table .num-cell { text-align: right; font-weight: 800; }
.input-sm { min-height: 38px; padding: 6px; border-radius: 8px; width: auto; font-size: .9rem; }
.admin-table td:first-child { white-space: normal; min-width: 170px; }
.btn-sm { min-height: 38px; padding: 6px 12px; border-radius: 10px; font-size: .9rem; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; max-width: 340px; }
.st { display: inline-block; border-radius: 99px; padding: 4px 10px; font-weight: 800; font-size: .85rem; }
.st-ok { background: #E8F3EC; color: var(--ok); }
.st-warn { background: #FDECEA; color: var(--danger); }
.st-trial { background: var(--orange-soft); color: #8A4A00; }
.st-expired { background: #FDECEC; color: var(--danger); }

/* Customer phone state on tickets */
.ticket .phone-state { margin-top: 2px; font-weight: 700; }
.ticket .phone-state.good { color: var(--ok); }
.ticket .phone-state.bad { color: var(--danger); }
.ticket.call-out { border-color: var(--danger); background: #FDECEC; animation: callout 1s ease-in-out infinite alternate; }
@keyframes callout { from { box-shadow: 0 0 0 0 rgba(198,40,40,.0); } to { box-shadow: 0 0 0 6px rgba(198,40,40,.25); } }
@media (prefers-reduced-motion: reduce) { .ticket.call-out { animation: none; } }
.term-bar { background: #FDECEC; color: var(--danger); }
.admin-who { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.admin-who #who { color: #C9CED6; font-weight: 600; }
.admin-login .check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.code-input { font-size: 1.6rem; letter-spacing: .3em; text-align: center; font-weight: 800; }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 2px solid var(--line); }
.admin-tabs button { appearance: none; border: 0; background: none; font: inherit; font-weight: 800; color: var(--muted); padding: 10px 14px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.admin-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--orange); }
.site-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.site-state.site-closed { border-color: var(--danger); color: var(--danger); background: #FDECEC; }
.admin-banner { background: var(--orange-soft); color: #8A4A00; font-weight: 700; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.link-btn { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: inherit; text-decoration: underline; cursor: pointer; }
.admin-form { margin-bottom: 16px; display: grid; gap: 10px; }
.admin-form h2, .admin-account h2 { font-size: 1.25rem; margin: 0 0 6px; }
.admin-form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-form-row .input { flex: 1 1 200px; width: auto; }
.admin-account { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.admin-account form, .admin-account .card { display: grid; gap: 10px; }
.totp-qr svg { width: 200px; height: 200px; display: block; }
.admin-table .wrap-cell { white-space: normal; min-width: 260px; }
.admin-table tr.is-terminated td { background: #FFF7F7; }
.admin-table td .st.small { display: block; margin-top: 4px; white-space: normal; max-width: 260px; border-radius: 10px; }
.danger { color: var(--danger); font-weight: 700; }

/* Plan and payment page */
.billing-wrap { max-width: 980px; margin: 0 auto; padding: 20px 16px 48px; }
.bill-status h1 { font-size: 1.6rem; margin: 0 0 6px; }
.bill-status p { margin: 0 0 8px; font-weight: 700; }
#card-line.bill-ending { color: var(--danger); }
.bill-transfer { margin-top: 16px; border: 3px solid var(--orange); }
.bill-transfer h2, .bill-pick { font-size: 1.4rem; margin: 0 0 8px; }
.bill-pick { margin-top: 28px; }
.bank { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 14px 0; align-items: center; }
.bank dt { color: var(--muted); font-weight: 700; }
.bank dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .bank { grid-template-columns: 1fr; gap: 2px; } .bank dd { margin-bottom: 8px; } }
.bill-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.price-grid .price-card .bill-actions .btn { margin-top: 0; width: 100%; }
.pay-btn { appearance: none; width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); color: var(--navy); font: inherit; cursor: pointer; }
.pay-btn:hover { border-color: var(--navy); }
.pay-btn:focus-visible, .pay-link:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.pay-btn:disabled { opacity: .5; cursor: not-allowed; }
.pay-main { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.pay-main:hover { border-color: var(--orange-dark); }
.pay-logos { display: flex; gap: 6px; }
.pay-logo { flex: 1 1 0; min-width: 0; height: 38px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #dfe3e8; border-radius: 8px; padding: 0 6px; }
.pay-logo img { display: block; width: auto; height: 20px; max-width: 100%; object-fit: contain; }
.pay-sub { font-size: .85rem; font-weight: 700; color: var(--muted); text-align: center; }
.pay-link { appearance: none; background: none; border: 0; width: 100%; padding: 8px; font: inherit; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer; }
.pay-link:hover { color: var(--navy); }
.badge-current { background: var(--navy); color: var(--white); left: 20px; right: auto; }
#paid-note { margin-bottom: 16px; }

/* Cookie consent */
.cookie-box { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: var(--white); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(43,52,64,.25); padding: 20px; max-height: calc(100vh - 32px); overflow: auto; }
.cookie-box h2 { margin: 0 0 6px; font-size: 1.2rem; }
.cookie-box p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.cookie-box p a { color: var(--ink); font-weight: 700; }
.cookie-opts { display: grid; gap: 10px; margin: 0 0 14px; }
.cookie-opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cookie-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.cookie-opt span { display: grid; gap: 2px; }
.cookie-opt small { color: var(--muted); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-btns .btn { flex: 1 1 140px; }

/* Owner's account page: report + password */
.account-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.rep-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 16px; }
.rep-date { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: .9rem; }
.rep-date .input { width: auto; padding: 6px 8px; min-height: 0; }
.rep-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.rep-sum div { background: var(--bg, #F4F5F7); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.rep-sum b { font-size: 1.6rem; }
.rep-sum span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.rep-table-wrap { overflow-x: auto; }
.rep-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rep-table th, .rep-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rep-table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.rep-orders > td { background: #FAFAFB; padding: 4px 6px 10px 18px; }
.rep-orders table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rep-orders th, .rep-orders td { padding: 4px 6px; border-bottom: 1px dashed var(--line); text-align: left; }
.rep-cancelled td { color: var(--muted); text-decoration: line-through; }
#csv { margin-top: 12px; }
.acc-form { display: grid; gap: 12px; max-width: 420px; }
.acc-form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
@media (max-width: 700px) { .rep-sum { grid-template-columns: repeat(2, 1fr); } }

/* iPhone: order moved from Safari into the Home Screen icon with a 4-digit code */
.have-icon { border-bottom: 1px dashed rgba(138,74,0,.3); padding-bottom: 12px; margin-bottom: 12px; }
.have-icon p { margin: 4px 0 8px; }
.move-code { font-size: 2.6rem; font-weight: 900; letter-spacing: .3em; text-align: center; margin: 6px 0; color: var(--ink); }
.code-form { display: grid; gap: 8px; max-width: 320px; margin: 18px auto 0; text-align: center; font-weight: 700; }
.code-row { display: flex; gap: 8px; }
.code-row .input { text-align: center; font-size: 1.4rem; letter-spacing: .25em; font-weight: 800; }
.finish-num { font-size: 6rem; font-weight: 900; line-height: .95; letter-spacing: .05em; text-indent: .05em; color: var(--navy); margin: 6px 0 10px; }
.finish-box .btn { font-size: 1.4rem; }
.finish-box .num-label { font-size: 1rem; }

/* Two columns that can't be mixed up: Preparing on grey, Ready for pickup on green. */
.col-waiting, .col-ready { border-radius: 18px; padding: 14px 14px 16px; }
.col-waiting h2, .col-ready h2 { margin-top: 0; padding-left: 2px; }
.col-waiting { background: #E9EDF2; }
.col-ready { background: #E3F5EA; box-shadow: inset 0 0 0 2px #A8DDBB; }
.col-ready h2 { color: var(--ok); }
.col-ready h2 .count { background: var(--ok); }
.col-ready .ticket.ready { border-color: var(--ok); background: #fff; }
.col-ready .ticket.call-out { border-color: var(--danger); background: #FDECEC; }
/* iPhone icon: the "code from the browser" box reads as one short line, not a lone word wrapping */
.code-form label { text-wrap: balance; font-size: .95rem; }

/* /admin › Messages (contact form) */
.tab-badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .8rem; line-height: 20px; text-align: center; }
.msg-list { display: grid; gap: 12px; margin-bottom: 12px; }
.msg { display: grid; gap: 8px; padding: 16px 18px; }
.msg.is-done { opacity: .65; }
.msg-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.msg-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; align-items: center; }
.msg-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; background: #FAFBFC; border-radius: 10px; padding: 10px 12px; }

/* Contact form (/kontakt) */
.contact-form { display: grid; gap: 14px; margin: 20px 0 8px; }
.contact-form h2 { margin: 0; font-size: 1.35rem; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.contact-form textarea { resize: vertical; min-height: 130px; font: inherit; }
.contact-form .btn-lg { justify-self: start; }
.contact-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .contact-row { grid-template-columns: 1fr; } }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha:empty { display: none; }
.captcha-gate { border: 1px dashed var(--line, #d0d4dc); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; justify-items: start; }
.captcha-gate p { margin: 0; }
.contact-done { margin: 20px 0 8px; border: 2px solid var(--ok); }
#msg-filter { max-width: 260px; }

/* WhatsApp button in its own green */
.btn-wa { background: #25D366; border-color: #25D366; color: #fff; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn-wa:hover { background: #1EBE5A; border-color: #1EBE5A; color: #fff; }
.wa-icon { width: 22px; height: 22px; flex: none; }
.acc-2fa .totp-qr { margin: 4px 0; }
.acc-2fa .st { display: inline-block; }

/* Pro branding: restaurant logo on the customer's phone and the customer screen. */
/* shown exactly as uploaded: no frame, so transparent and white logos keep their own look */
.brand-logo { display: block; max-width: min(300px, 78vw); max-height: 150px; width: auto; height: auto; object-fit: contain; margin: 0 auto 6px; }
.brand-logo[hidden], body.no-brand .brand-logo { display: none; }
.display-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.display-logo { max-height: 64px; max-width: 240px; width: auto; height: auto; object-fit: contain; }
/* with a logo the header turns light, so dark logos stay visible */
.display-head.branded { background: var(--white); color: var(--navy); border-bottom: 4px solid var(--orange); }
.display-head.branded .logo, .display-head.branded .logo:hover { color: var(--navy); }
.display-logo[hidden] { display: none; }

/* Account: Pro look and sound */
.acc-brand fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
.acc-brand .locked .swatches, .acc-brand .locked .brand-row, .acc-brand .locked #brand-save, .acc-brand .locked .sound-opt label { opacity: .5; }
.acc-brand .locked label[for=logo-file] { pointer-events: none; }
.acc-brand h3 { margin: 0 0 8px; font-size: 1.05rem; }
.brand-lock { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; max-width: none; }
.brand-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* checkerboard so a transparent or white logo is still visible here */
.brand-logo-box { width: 200px; height: 110px; border: 2px dashed var(--line); border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: #fff repeating-conic-gradient(#e8ebef 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.brand-logo-box img { max-width: 180px; max-height: 96px; object-fit: contain; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { width: 44px; height: 44px; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--navy); }
.hex-field { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px 4px 4px; background: #fff; }
.hex-field.on { box-shadow: 0 0 0 3px var(--navy); }
.hex-dot { width: 34px; height: 34px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.hex-input { width: 7.2em; min-height: 36px; padding: 4px 8px; font-family: ui-monospace, monospace; font-size: 1rem; border: 0; }
.hex-input.bad { color: #B42318; }
.hex-pick { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; }
@media (pointer: coarse) { .hex-pick { display: none; } }
.sound-list { display: grid; gap: 8px; max-width: 420px; }
.sound-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; }
.sound-opt label { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.sound-opt input { width: 20px; height: 20px; accent-color: var(--navy); }
.brand-preview { display: flex; gap: 10px; }
.pv-screen { width: 150px; border-radius: 20px; padding: 14px 8px; text-align: center; display: grid; gap: 4px; justify-items: center; align-content: start; box-shadow: var(--shadow); background: var(--pv-bg); color: var(--pv-on); }
.pv-screen.pv-flash { background: var(--pv-on); color: var(--pv-flash); }
.pv-screen img { max-width: 120px; max-height: 50px; object-fit: contain; }
.pv-screen img[hidden] { display: none; }
.brand-preview .pv-num { font-size: 2.8rem; font-weight: 900; line-height: 1; color: var(--num-fill); -webkit-text-stroke: 4px var(--num-line); paint-order: stroke fill; letter-spacing: .08em; }
.brand-preview .pv-title { font-weight: 900; font-size: 1.35rem; }
.brand-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .brand-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }

/* Collected screen: thank-you heading, then (Pro) the restaurant's review link. */
.final-thanks { font-size: clamp(2.1rem, 10vw, 2.8rem); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; max-width: 12ch; }
#v-final .status-title { margin-top: -4px; }
#v-final p.muted { margin: 0; }
.review-box { display: grid; gap: 12px; justify-items: center; margin-top: 18px; }
.review-title { font-size: clamp(1.7rem, 8vw, 2.2rem); font-weight: 900; line-height: 1.1; }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark:hover { background: #1d242d; color: #fff; }
.review-stars { color: #F5B301; font-size: 1.7rem; letter-spacing: .12em; line-height: 1; }
.review-set { display: grid; gap: 10px; max-width: 520px; }
.review-set h3 { margin-bottom: 0; }
.check-row { display: flex; gap: 10px; align-items: center; font-weight: 700; cursor: pointer; }
.check-row input { width: 22px; height: 22px; accent-color: var(--navy); flex: none; }
.bill-early { align-items: flex-start; font-weight: 600; font-size: .95rem; line-height: 1.4; margin: 6px 0 18px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); }
.bill-early.bill-early-need { border-color: var(--danger); }
.bill-early a { font-weight: 700; }
#err:not(:empty) { margin-top: 18px; }
.form label.terms-row, .terms-row { display: flex; flex-direction: row; gap: 10px; font-weight: 500; align-items: flex-start; line-height: 1.45; }
.terms-row input { margin-top: 1px; }

/* Company account (Business): its locations */
.co-nav { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.plan-strip { background: #E8F3EC; color: var(--ok); font-weight: 800; border-radius: 14px; padding: 10px 16px; }
.plan-strip.off { background: #FDECEC; color: #B42318; }
.co-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.co-head h1 { margin: 0; }
.rep-range [aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.co-table td.co-name { font-weight: 800; }
.co-table tfoot td { font-weight: 800; border-top: 2px solid var(--line); }
.pass-row { display: flex; gap: 8px; align-items: center; }
.pass-row .input { flex: 1; font-family: ui-monospace, monospace; }
#created { white-space: pre-line; max-width: none; margin-top: 14px; }
.modal .card.co-modal { max-width: 460px; text-align: left; }
.co-modal hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.co-modal-actions { display: flex; gap: 8px; }
.admin-company { margin: 12px 0; max-width: 900px; }
.admin-company h3 { margin-top: 0; }
.admin-company-grid { display: grid; gap: 10px 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 10px 0; }
.admin-company-grid label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.price-input { width: 7em; }

/* Company page: API keys and webhooks */
.api-base code, .mono, .secret-row code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.api-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.api-form .input { flex: 1 1 240px; }
.secret-box { max-width: none; margin-top: 12px; display: grid; gap: 8px; }
.secret-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.secret-row code { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; word-break: break-all; flex: 1 1 260px; color: var(--ink); }
.api-hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0 8px; }
.api-events { border: 0; padding: 0; margin: 0; }
.api-events legend { font-weight: 700; margin-bottom: 6px; }
.api-events #hook-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.api-events .check { display: flex; gap: 6px; align-items: center; font-weight: 500; }
.api-events .check code { font-size: .85rem; }
.api-hooks td.api-url { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.api-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.api-hooks td { white-space: normal; }
#hook-form { margin-top: 16px; }

/* /developers */
.dev .lead { font-size: 1.15rem; }
.dev pre { background: var(--navy); color: #E8ECF0; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: .85rem; line-height: 1.5; }
.dev pre code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: none; padding: 0; color: inherit; }
.dev :not(pre) > code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: #EEF1F4; border-radius: 6px; padding: 1px 6px; }
.dev-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.dev-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; }
.dev-toc a:hover { border-color: var(--orange); }
.dev-table td.dev-wrap { white-space: normal; }
.dev-table td { vertical-align: top; }
.dev-m { display: inline-block; min-width: 52px; text-align: center; border-radius: 6px; padding: 2px 6px; font-weight: 800; font-size: .78rem; }
.dev-get { background: #E6F4EC; color: #145235; }
.dev-post { background: var(--orange-soft); color: #8A4A00; }
.dev h3 { margin-top: 1.4em; }
/* "Log in with Google" on /login */
.google-box { display: grid; gap: 10px; }
.google-box .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.google-box .or::before, .google-box .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; gap: 12px; }
.btn-google:hover { border-color: var(--navy); }
.google-box .small { margin: 0; text-align: center; }
/* Loyalty stamp card on the customer's order page (Pro) */
.stamp-card { width: min(440px, calc(100% - 32px)); margin: 0 auto 24px; background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 12px; text-align: center; }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.1rem; }
.sc-count { font-weight: 900; color: var(--orange-dark); font-size: 1.25rem; }
.sc-grid { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 8px; }
.sc-box { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; position: relative; }
.sc-gift { width: 86%; height: 86%; border-radius: 50%; border: 2px solid var(--stamp-ink, var(--orange)); background: var(--orange-soft); display: grid; place-items: center; overflow: hidden; }
.sc-gift img { width: 72%; height: 72%; object-fit: contain; }
.sc-square .sc-gift { border-radius: 10px; }
.sc-box { background: var(--white); }
.sc-box.on { border: 2px solid var(--orange-soft); background: var(--white); }
.sc-ink { width: 86%; height: 86%; border-radius: 50%; border: 3px solid var(--stamp-ink, var(--orange)); color: var(--stamp-ink, var(--orange)); display: grid; place-items: center; font-weight: 900; text-transform: uppercase; line-height: 1; transform: rotate(-14deg); opacity: .92; overflow: hidden; }
.sc-box:nth-child(3n) .sc-ink { transform: rotate(9deg); }
.sc-box:nth-child(4n+1) .sc-ink { transform: rotate(-4deg); }
.sc-ink.short { font-size: clamp(.7rem, 3.4vw, .95rem); }
.sc-ink.long { font-size: clamp(.5rem, 2.4vw, .68rem); padding: 0 2px; word-break: break-all; }
.sc-ink img { width: 78%; height: 78%; object-fit: contain; }
.sc-box.pressed .sc-ink { animation: sc-press .5s ease-out; }
@keyframes sc-press { 0% { transform: scale(1.8) rotate(-30deg); opacity: 0; } 70% { transform: scale(.92) rotate(-12deg); opacity: 1; } 100% { transform: scale(1) rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) { .sc-box.pressed .sc-ink { animation: none; } }
.sc-reward { margin: 0; }
.sc-prize { background: var(--orange); color: var(--on-orange, #fff); border-radius: 14px; padding: 12px 14px; font-weight: 800; font-size: 1.1rem; }
.sc-note { margin: 0; color: var(--muted); }
.sc-note.ok { color: var(--green, #1C7C3A); font-weight: 700; }
.sc-code summary { cursor: pointer; color: var(--muted); }
.sc-code summary b { color: var(--navy); letter-spacing: .08em; font-size: 1.1rem; }
.sc-code p { margin: 8px 0 0; }
.sc-restore { display: grid; gap: 6px; text-align: left; font-weight: 700; }
.sc-restore input { text-transform: uppercase; letter-spacing: .08em; }
#sc-out { display: grid; gap: 8px; justify-items: center; }
#sc-out p { margin: 0; }
/* Stamp card in the cashier panel */
.stamp-state { font-weight: 800; color: var(--orange-dark); }
.stamp-state.prize { color: var(--navy); background: var(--orange-soft); border-radius: 8px; padding: 2px 8px; display: inline-block; }
.btn-gift { background: var(--orange-soft); border-color: var(--orange); }
.card-lookup { display: grid; gap: 12px; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.card-lookup .code-row .input { font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; }
.card-count-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.6rem; }
.card-history { margin: 0; padding-left: 20px; font-size: .92rem; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.acc-stamps fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; align-content: start; }
.acc-stamps .locked { opacity: .55; }
.acc-stamps h3 { margin: 0 0 8px; font-size: 1.05rem; }
.acc-stamps .check-row { font-weight: 600; margin-bottom: 6px; }
.acc-stamps #st-preview { margin: 0 0 10px; width: 100%; }
@media (min-width: 760px) { .acc-stamps .brand-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.acc-stamps .brand-grid > * { min-width: 0; }
.card-history { text-align: left; }
/* Loyalty card look: colour or picture behind the card, square boxes */
.stamp-card { background-size: cover; background-position: center; }
.stamp-card.sc-colored { border-color: transparent; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.stamp-card.sc-dark { color: #fff; }
.sc-colored .sc-count { color: inherit; } /* the brand orange would vanish on an orange card */
.sc-dark .sc-count, .sc-dark .sc-code summary b { color: #fff; }
.sc-dark .muted, .sc-dark .sc-note, .sc-dark .sc-code summary, .sc-dark .sc-restore label { color: rgba(255,255,255,.88); }
.sc-dark .sc-note.ok { color: #fff; }
.sc-dark .btn-ghost { color: #fff; }
.sc-colored .sc-box:not(.on) { border: 2px solid #fff; } /* on a coloured card the empty boxes are plain white */
.sc-dark .sc-head b, .sc-dark .sc-reward { text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.sc-square .sc-box, .sc-square .sc-ink { border-radius: 14px; }
.sc-square .sc-ink { border-radius: 10px; }
.st-look { display: grid; gap: 10px; }
.st-look .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.st-look h4 { margin: 0 0 8px; font-size: .95rem; }
.st-gift-thumb { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--orange-soft); padding: 4px; }
#st-gift-row { margin-top: 8px; }
.acc-stamps .locked label[for=st-bg-file], .acc-stamps .locked label[for=st-gift-file] { pointer-events: none; }
/* Home page: Pro showcase */
.pro-show .badge-pro { position: static; display: inline-block; margin-bottom: 10px; }
.pro-lead { max-width: 60ch; font-size: 1.15rem; }
.pro-grid { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1000px) { .pro-grid { grid-template-columns: repeat(3, 1fr); } .pro-wide { grid-column: span 2; } }
.pro-tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.pro-tile h3 { margin: 0; font-size: 1.25rem; color: var(--white); }
.pro-tile p { margin: 0; color: #C9CFD6; }
.pro-wide { grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 700px) { .pro-wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; } }
.new-tag { display: inline-block; background: var(--orange); color: #1b1b1b; font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; vertical-align: middle; }
.features .new-tag { margin: 0 0 0 4px; font-size: .68rem; padding: 2px 8px; }
.pro-art { border-radius: 14px; background: var(--white); color: var(--navy); min-height: 110px; padding: 14px; }
.art-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.art-stamps i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line); background: #fff; display: grid; place-items: center; font-style: normal; font-size: 1.2rem; }
.art-stamps i b { width: 86%; height: 86%; border-radius: 50%; display: grid; place-items: center; }
.art-stamps i.on { border: 2px solid var(--orange-soft); }
.art-stamps i.on b { border: 3px solid var(--orange); color: var(--orange); transform: rotate(-14deg); font-weight: 900; opacity: .92; }
.art-stamps i.on:nth-child(3n) b { transform: rotate(9deg); }
.art-stamps i.on:nth-child(4n+1) b { transform: rotate(-4deg); }
.art-stamps i.gift b { border: 2px solid var(--orange); background: var(--orange-soft); font-weight: 400; }
.art-screen { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: #1F262F; color: #fff; border: 6px solid #0f1318; }
.art-screen .scr-txt { display: grid; gap: 2px; }
.art-screen b { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.art-screen span { font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--orange); }
.art-screen small { font-size: .8rem; opacity: .85; }
.art-screen .qr-art { width: 92px; height: 92px; border-radius: 6px; }
.art-brand { display: flex; align-items: center; gap: 10px; justify-content: center; }
.art-brand .lg { width: 64px; height: 64px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .8rem; }
.art-brand i { width: 28px; height: 28px; border-radius: 50%; }
.art-sound { display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; }
.art-sound > svg:not(.mnote) { width: 64px; height: 64px; stroke: var(--orange); transform: rotate(-12deg); }
.art-sound .mnote { color: var(--navy); width: 28px; height: 28px; }
.art-sound .n1 { transform: translateY(14px); } .art-sound .n2 { transform: translateY(-16px); width: 34px; height: 34px; } .art-sound .n3 { transform: translateY(10px); color: var(--orange); }
.art-social { display: flex; align-items: center; justify-content: center; gap: 12px; }
.art-social i { width: 52px; height: 52px; border-radius: 50%; background: var(--orange-dark); color: #1b1b1b; display: grid; place-items: center; }
.art-social svg { width: 26px; height: 26px; }
.art-review { display: grid; place-items: center; font-size: 2rem; color: #F5B301; letter-spacing: .1em; }
.pro-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: var(--white); }
/* "Follow us" under the customer's order (Pro) */
.follow { display: grid; gap: 10px; justify-items: center; margin: 0 auto 24px; }
.follow-title { font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.follow-links { display: flex; gap: 12px; }
.follow-links a { width: 52px; height: 52px; border-radius: 50%; background: var(--orange-dark); color: var(--on-orange, #1b1b1b); display: grid; place-items: center; }
.follow-links a:hover { background: var(--orange); }
.follow-links svg { width: 24px; height: 24px; }
.social-set { display: grid; gap: 10px; }
.social-set h3 { margin: 0; }
.social-set p { margin: 0; }

/* User guide (/instrukcja): screenshots next to the steps, printable */
.guide-doc { max-width: 900px; }
.guide .g-toc { background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 14px 20px; margin: 18px 0 8px; }
.guide .g-toc ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 0; list-style: none; }
.guide .g-toc li { break-inside: avoid; margin: 0 0 4px; }
.guide .g-toc a { color: var(--ink); font-weight: 700; text-decoration: none; }
.guide .g-toc a:hover { color: var(--orange-dark); }
.guide h2 { scroll-margin-top: 90px; border-top: 3px solid var(--orange); padding-top: 16px; }
.g-fig { margin: 16px auto; text-align: center; break-inside: avoid; }
.g-fig img { display: block; margin: 0 auto; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.08); background: #fff; }
.g-fig figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.g-phone img { width: 250px; border-radius: 22px; border: 6px solid #2B3440; }
.g-part img { max-width: min(100%, 560px); }
.g-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 18px; break-inside: avoid; }
.g-row .g-fig { margin: 8px 0; flex: 0 1 auto; }
.g-row .g-part img { max-width: min(100%, 440px); }
.g-tip { background: var(--orange-soft); border-radius: 12px; padding: 10px 14px; }
.g-tip::before { content: "💡 "; }
.g-faq dt { font-weight: 800; margin-top: 12px; }
.g-faq dd { margin: 4px 0 0; }
.g-print { margin-left: 6px; vertical-align: middle; }
@media (max-width: 600px) { .guide .g-toc ol { columns: 1; } .g-phone img { width: 210px; } }
@media print {
  .site-head, .site-foot, .g-print, .version a, .cookie-box { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .guide-doc { margin: 0 auto; max-width: none; }
  .guide h2 { break-before: page; break-after: avoid; }
  .guide h2#start { break-before: auto; }
  .g-fig img { box-shadow: none; }
  .g-phone img { width: 200px; }
  .g-fig img { width: auto; max-width: 100%; max-height: 105mm; }
  .g-phone img { width: auto; max-height: 120mm; }
  .g-fig.g-wide img { max-height: 200mm; }
  a { color: inherit; text-decoration: none; }
}

/* Discount codes: home page bar, Subscription page field, admin form */
.promo-bar { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; justify-content: center; padding: 10px 16px; background: var(--navy, #2B3440); color: #fff; font-weight: 700; text-align: center; }
.promo-bar a { color: var(--orange, #F7941D); text-decoration: none; }
.bill-promo { margin: 14px 0 16px; }
.bill-promo label { font-weight: 700; display: block; margin-bottom: 6px; }
.bill-promo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bill-promo-row .input { flex: 1 1 180px; max-width: 260px; text-transform: uppercase; }
#promo-msg { margin: 6px 0 0; min-height: 1.2em; color: var(--ok); font-weight: 700; }
#promo-msg.error { color: var(--danger); }
.promo-price { margin: 6px 0 12px; font-weight: 800; color: var(--ok); }
.promo-price.muted { color: var(--muted, #5A6470); font-weight: 600; }
.promo-checks { border: 0; padding: 0; margin: 0; display: flex; gap: 14px; align-items: center; }
.promo-checks legend { font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: 4px; }
.admin-company-grid label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bill-promo-row .input::placeholder { text-transform: none; }

/* Price with a discount code: the usual price struck through, the new one in red. */
.price .amt-old { font-size: .55em; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 3px; }
.price .amt-promo { color: var(--danger); }
.price-gross.promo-gross { color: var(--danger); }

/* ---------- stamp card: several rewards, stamps for the next card, Moja karta ---------- */
.sc-word { font-weight: 900; font-size: clamp(.75rem, 3.6vw, 1rem); color: var(--stamp-ink, var(--orange-dark)); line-height: 1.05; text-align: center; padding: 0 1px; white-space: nowrap; letter-spacing: -.02em; }
.sc-extra { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--stamp-ink, var(--orange)); color: #fff; font-size: .85rem; vertical-align: 2px; }
.sc-extra-note { font-size: .9rem; font-weight: 700; opacity: .9; }
.sc-prize .sc-extra-note:only-child { font-size: 1rem; }
.sc-tiers { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 2px; }
.sc-tiers li.ready b { color: var(--stamp-ink, var(--orange-dark)); }
.sc-tiers li.ready::before { content: '🎁 '; }
.sc-dark .sc-tiers li.ready b { color: #fff; }
.sc-reward small { color: var(--muted); }
.sc-dark .sc-reward small { color: rgba(255,255,255,.85); }
.sc-next { margin: 0; font-weight: 700; color: var(--muted); }
.sc-dark .sc-next { color: rgba(255,255,255,.9); }
.sc-open { font-weight: 800; color: inherit; }
.sc-url { margin: 6px 0 0; }
/* Panel: a reached reward is a small chip next to the order */
.stamp-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; }
.chip-gift { border: 1.5px solid var(--orange); background: var(--orange-soft); color: var(--navy); border-radius: 999px; padding: 2px 10px; font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
.chip-gift:hover { background: var(--orange); color: #000; }
.chip-gift:disabled { opacity: .5; }
.card-rewards { display: flex; flex-wrap: wrap; gap: 8px; }
.card-rewards:empty { display: none; }
/* Header: Moja karta for customers, in red so it reads apart from the restaurant buttons */
.btn-card { background: var(--danger); border-color: var(--danger); color: #fff; gap: 6px; }
.btn-card:hover { background: #a91f1f; border-color: #a91f1f; color: #fff; }
.btn-card svg { width: 22px; height: 18px; flex: none; }
/* Small phones: the logo mark alone, so English, Moja karta and Login B2B fit on one line */
@media (max-width: 440px) { .site-head .logo-word { display: none; } .site-head .top nav { gap: 6px; flex-wrap: nowrap; } .site-head .top nav .btn { padding: 6px 9px; } .site-head .top nav .btn-card svg { width: 18px; height: 18px; } }
.karta { max-width: 520px; margin: 0 auto; padding: 32px 16px 56px; display: grid; gap: 18px; }
.karta h1 { margin: 0; }
.karta .lead { margin: 0; }
.karta-find { display: grid; gap: 8px; }
.karta-find .input { font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; }
.karta-list { display: grid; gap: 18px; }
.karta-list .stamp-card { width: 100%; margin: 0; }
.karta-name { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; text-align: left; }
.karta-name img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #fff; }
.karta-meta { margin: 0; font-size: .9rem; opacity: .85; }
.st-multi { display: grid; gap: 8px; justify-items: start; }
.st-multi p { margin: 0; }
.st-tiers { display: grid; gap: 8px; width: 100%; }
.st-tier { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 6px 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.st-tier > b { grid-column: 1 / -1; }
.st-tier .btn { justify-self: start; }
.st-tier .st-gift-thumb { width: 28px; height: 28px; object-fit: contain; }
@media (max-width: 520px) { .st-tier { grid-template-columns: 1fr; } }
.st-tier-box, .st-giftbox { grid-column: 1 / -1; display: grid; gap: 6px; justify-items: start; }
.st-giftbox h4 { margin: 0; }
.st-giftbox p { margin: 0; }
.st-mark-in { max-width: 160px; }

.sc-word.long { font-size: clamp(.55rem, 2.6vw, .78rem); }
.card-rewards { margin-bottom: 10px; }

/* ---------- Home: What do you need? ---------- */
/* customer screen ── link ── cashier ── 15 flies ── customer's phone */
.need-lead { max-width: 720px; margin-top: -4px; }
.need-hl { background: var(--orange); color: var(--navy); padding: 0 .22em; border-radius: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; white-space: nowrap; }
@media (max-width: 560px) { .need-hl { display: table; margin-top: 6px; white-space: normal; } }
.need-grid { display: grid; grid-template-columns: minmax(0,1fr) 64px minmax(0,1fr) 56px 214px; align-items: stretch; margin-top: 28px; }
.need-card { display: grid; gap: 14px; align-content: start; padding: 20px; }
.need-head { display: flex; align-items: center; gap: 10px; }
.need-head h3 { margin: 0; font-size: 1.3rem; }
.need-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--orange-soft); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.need-picks, .need-plans { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.need-pick, .need-plan, .need-scr { appearance: none; border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .95rem; font-weight: 800; cursor: pointer; color: var(--navy); }
.need-pick.on, .need-plan.on, .need-scr.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.need-or { color: var(--muted); font-size: .85rem; }
.need-plans { background: var(--bg-soft); border-radius: 999px; padding: 4px; width: max-content; gap: 2px; }
.need-plan { border-color: transparent; background: transparent; padding: 6px 16px; }
.need-ctrl { min-height: 92px; display: grid; align-content: center; gap: 10px; }
.need-grid[data-plan="start"] .need-screens, .need-grid[data-plan="pro"] .need-posterchip { display: none; }
.need-posterchip .need-scr { cursor: default; }
.need-note { margin: 0; color: var(--muted); font-size: .95rem; }
.need-more { margin: 22px 0 0; font-weight: 800; }
.need-stage { height: 230px; position: relative; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); border-radius: 16px; }
/* devices drawn in CSS, real screenshots on their screens */
.dev { background: var(--navy); position: relative; transition: width .45s ease, height .45s ease, border-radius .45s ease; }
.dev .scr { position: absolute; inset: 7px; background: #fff; border-radius: 10px; overflow: hidden; }
.dev-phone { width: 96px; height: 200px; border-radius: 13px; }
.dev-phone .scr { inset: 6px; border-radius: 7px; }
.dev-tablet { width: 270px; height: 180px; border-radius: 18px; }
.dev-laptop { width: 280px; height: 162px; border-radius: 12px 12px 4px 4px; }
.dev-laptop::after { content: ''; position: absolute; left: -20px; right: -20px; bottom: -12px; height: 12px; background: #3a4552; border-radius: 0 0 14px 14px; }
.shot { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); }
.shot img { height: 100%; width: auto; display: block; }
.shot-phone { aspect-ratio: 360 / 798; } .shot-desk { aspect-ratio: 960 / 471; } 
.dev-phone .shot-desk, .dev:not(.dev-phone) .shot-phone { display: none; }
.mp-ticket { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 4px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(43,52,64,.12); }
.mp-ticket b { font-weight: 900; line-height: 1; }
.mp-ready { background: var(--orange); border-radius: 3px; font-weight: 900; line-height: 1; color: #000; }
.shot-phone .mp-ticket { left: 6%; right: 6%; top: 61.8%; padding: 2px 4px; }
.shot-phone .mp-ticket b { font-size: .7rem; } .shot-phone .mp-ready { font-size: .42rem; padding: 2px 4px; }
.shot-desk .mp-ticket { left: 18.2%; width: 30.6%; top: 35.5%; padding: 2px 4px; }
.shot-desk .mp-ticket b { font-size: .62rem; } .shot-desk .mp-ready { font-size: .42rem; padding: 2px 4px; }
/* customer side: the poster (Start) or a screen (Pro): tablet, monitor or TV */
.need-poster, .dev-screen { position: absolute; transition: opacity .35s, transform .35s, width .45s, height .45s, border-radius .45s; }
.need-grid[data-plan="start"] .dev-screen, .need-grid[data-plan="pro"] .need-poster { opacity: 0; transform: scale(.9); pointer-events: none; }
.need-poster { width: 136px; height: 182px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 20px rgba(43,52,64,.14); overflow: hidden; }
.need-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scr-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.need-grid[data-screen="tablet"] .scr-wide, .need-grid:not([data-screen="tablet"]) .scr-tab { display: none; }
.dev-screen { width: 270px; height: 180px; border-radius: 18px; }
.dev-screen .scr { inset: 7px; border-radius: 10px; }
.need-grid[data-screen="monitor"] .dev-screen { width: 230px; height: 140px; border-radius: 8px; }
.need-grid[data-screen="tv"] .dev-screen { width: 270px; height: 156px; border-radius: 6px; }
.need-grid:not([data-screen="tablet"]) .dev-screen .scr { inset: 6px; border-radius: 3px; }
.tv-foot { position: absolute; left: 50%; bottom: -18px; width: 56px; height: 18px; transform: translateX(-50%); background: #3a4552; clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity .3s; }
.need-grid[data-screen="monitor"] .tv-foot { opacity: 1; height: 26px; bottom: -26px; clip-path: polygon(42% 0, 58% 0, 58% 70%, 100% 70%, 100% 100%, 0 100%, 0 70%, 42% 70%); }
.need-grid[data-screen="tv"] .tv-foot { opacity: 1; }
/* the link between the customer screen and the counter: nothing (poster), Wi-Fi, or a cable */
.need-link { position: relative; }
.nl-dots { position: absolute; top: 50%; left: 8px; right: 8px; border-top: 3px dashed var(--line); transition: opacity .3s; }
.nl-wifi { position: absolute; top: 50%; left: 50%; width: 46px; transform: translate(-50%, -60%); fill: none; stroke: var(--orange); stroke-width: 4.5; stroke-linecap: round; opacity: 0; transition: opacity .3s; }
.nl-wifi circle { fill: var(--orange); stroke: none; }
.nl-wifi .w1, .nl-wifi .w2, .nl-wifi .w3 { animation: need-wave 1.6s ease-in-out infinite; }
.nl-wifi .w2 { animation-delay: .2s; } .nl-wifi .w3 { animation-delay: .4s; }
.nl-cable { position: absolute; top: 50%; left: 8px; right: 8px; height: 6px; margin-top: -3px; background: var(--navy); border-radius: 3px; opacity: 0; transition: opacity .3s; overflow: hidden; }
.nl-cable i { position: absolute; top: 0; bottom: 0; width: 14px; border-radius: 3px; background: var(--orange); animation: need-signal 2.4s linear infinite; }
.need-grid[data-plan="pro"] .nl-dots { opacity: 0; }
.need-grid[data-plan="pro"]:not([data-screen="monitor"]) .nl-wifi { opacity: 1; }
.need-grid[data-plan="pro"][data-screen="monitor"] .nl-cable { opacity: 1; }
@keyframes need-wave { 0%, 100% { opacity: .2; } 40%, 60% { opacity: 1; } }
@keyframes need-signal { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 40% { left: calc(100% - 14px); opacity: 1; } 46%, 50% { left: calc(100% - 14px); opacity: 0; } 56% { opacity: 1; } 90% { left: 0; opacity: 1; } 96%, 100% { left: 0; opacity: 0; } }
/* the customer's own phone: dark until 15 arrives, then it lights up and flashes */
.need-phone { display: grid; place-items: center; }
.need-cust { width: 206px; height: 412px; border-radius: 22px; }
.need-cust .scr { inset: 8px; border-radius: 14px; background: #000; }
.need-cust img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nc-on, .nc-off { opacity: 0; }
/* the flight from the counter to the phone */
.need-flow { position: relative; }
.need-line { position: absolute; top: 50%; left: 8px; right: 8px; border-top: 3px dashed var(--line); }
.need-bubble { position: absolute; top: 50%; left: 0; transform: translate(0, -50%); background: var(--orange); color: #000; font-weight: 900; border-radius: 999px; padding: 6px 12px; white-space: nowrap; box-shadow: 0 6px 16px rgba(247,148,29,.35); opacity: 0; z-index: 2; }
/* one round (class .go): Ready pressed, 15 flies, the phone lights up and flashes */
.need.go .mp-ready { animation: need-press 5.2s ease both; }
.need.go .need-bubble { animation: need-fly 5.2s ease both; }
.need.go .nc-off { animation: need-ready 5.2s steps(1) both; }
.need.go .nc-on { animation: need-flash 5.2s steps(1) both; }
.need.done .nc-on { opacity: 1; }
@keyframes need-press { 0%, 8% { transform: none; } 12% { transform: scale(.85); box-shadow: 0 0 0 4px rgba(247,148,29,.35); } 18%, 100% { transform: none; } }
@keyframes need-fly { 0%, 14% { left: -110px; opacity: 0; } 18% { opacity: 1; } 40% { left: calc(100% + 30px); opacity: 1; } 46%, 100% { left: calc(100% + 30px); opacity: 0; } }
@keyframes need-ready { 0%, 45% { opacity: 0; } 46%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes need-flash { 0%, 46% { opacity: 0; } 50% { opacity: 1; } 56% { opacity: 0; } 62% { opacity: 1; } 68% { opacity: 0; } 74%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
/* narrower screens: the three parts stack, the links run vertically */
@media (max-width: 1100px) {
  .need-grid { grid-template-columns: minmax(0,1fr) 56px minmax(0,1fr); grid-template-rows: auto 70px auto; }
  .need-flow { grid-column: 1 / -1; }
  .need-phone { grid-column: 1 / -1; }
  .need-line { top: 8px; bottom: 8px; left: 50%; right: auto; border-top: 0; border-left: 3px dashed var(--line); }
  .need.go .need-bubble { animation-name: need-fly-v; left: 50%; transform: translate(-50%, 0); }
}
@media (max-width: 860px) {
  .need-grid { grid-template-columns: minmax(0,1fr); grid-template-rows: none; }
  .need-link { height: 80px; }
  .nl-dots { top: 8px; bottom: 8px; left: 50%; right: auto; border-top: 0; border-left: 3px dashed var(--line); }
  .nl-wifi { transform: translate(-50%, -55%); }
  .nl-cable { top: 8px; bottom: 8px; left: 50%; right: auto; width: 6px; height: auto; margin: 0 0 0 -3px; }
  .nl-cable i { left: 0; right: 0; width: auto; height: 14px; animation-name: need-signal-v; }
  .need-flow { height: 80px; }
}
@keyframes need-fly-v { 0%, 14% { top: -10px; opacity: 0; } 18% { opacity: 1; } 40% { top: calc(100% - 30px); opacity: 1; } 46%, 100% { top: calc(100% - 30px); opacity: 0; } }
@keyframes need-signal-v { 0% { top: calc(100% - 14px); opacity: 0; } 6% { opacity: 1; } 40% { top: 0; opacity: 1; } 46%, 50% { top: 0; opacity: 0; } 56% { opacity: 1; } 90% { top: calc(100% - 14px); opacity: 1; } 96%, 100% { top: calc(100% - 14px); opacity: 0; } }
@media (max-width: 420px) { .need-card { padding: 16px; } .need-stage { height: 220px; } .dev-tablet, .dev-laptop { width: 240px; } .dev-tablet { height: 160px; } .dev-laptop { height: 140px; } .dev-screen { width: 240px; height: 160px; } .need-grid[data-screen="tv"] .dev-screen { width: 240px; height: 138px; } }
@media (max-width: 860px) { .need-ctrl { min-height: 0; } .need-more { text-align: center; margin-top: 40px; } }
.need-pro { font-size: .92rem; }
.need-pro b { display: block; margin-bottom: 6px; color: var(--navy); }
.need-pro ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.need-pro li { background: var(--orange-soft); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 3px 10px; }

/* Lost customers: "why did you leave?" (email page /powod, one-time window in the app) and unsubscribe (/wypisz) */
.exit-card { max-width: 560px; }
.exit-kicker { margin: 0 0 4px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-dark); }
.exit-form { display: grid; gap: 14px; text-align: left; }
.exit-form .exit-lead { margin: 0; color: var(--muted); }
.exit-form .exit-q { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.exit-opts { display: grid; gap: 8px; }
.exit-opt { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; line-height: 1.35; }
.exit-opt input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; margin: 0; }
.exit-opt:hover { border-color: var(--navy-2); }
.exit-opt.on { border-color: var(--orange); background: var(--orange-soft); }
.exit-comment { display: grid; gap: 6px; font-weight: 700; }
.exit-comment textarea { resize: vertical; min-height: 80px; font: inherit; }
.exit-thanks { display: grid; gap: 10px; justify-items: start; }
.exit-thanks h2 { margin: 0; }
.modal .card.exit-modal { max-width: 560px; text-align: left; position: relative; max-height: calc(100vh - 32px); overflow-y: auto; }
.exit-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.exit-x:hover { background: var(--bg-soft); color: var(--ink); }
#exit-prev { margin: 0 0 12px; }
/* Offers consent on the account page */
.acc-mk .check-row { font-weight: 600; margin: 4px 0; }
/* Admin: offers consent, lost customers, send offer */
.st-muted { background: var(--bg-soft); color: var(--muted); }
.admin-table .lost-reason { margin-top: 4px; max-width: 320px; line-height: 1.35; }
.modal .card.offer-modal { max-width: 520px; text-align: left; display: grid; gap: 10px; }
.offer-modal h3, .offer-modal p { margin: 0; }
.offer-modal label { display: grid; gap: 4px; font-weight: 700; }
.offer-modal select, .offer-modal textarea { width: 100%; font: inherit; }
.form label.exit-opt { display: flex; flex-direction: row; align-items: center; gap: 12px; font-weight: 600; }
.form label.exit-comment { display: grid; }
/* Admin company row: a small gap between each label and its box */
.biz-cell { display: grid; grid-template-columns: auto 120px; gap: 8px 10px; align-items: center; }
.biz-cell label { display: contents; white-space: nowrap; }
.biz-cell select, .biz-cell input { width: 100%; }
/* Branch account: space under "set by the company" before the (locked) settings */
#brand-managed, #st-managed { margin-bottom: 16px; }
/* Order numbering on the account page */
.num-row { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 12px; }
#num-managed { margin-bottom: 16px; }
/* Subscription page: nothing about plans shows until the account is known (Business accounts have no plans to pick) */
.bill-loading .bill-pick, .bill-loading .bill-toggle, .bill-loading .price-grid, .bill-loading .bill-promo, .bill-loading #bill-foot { display: none; }
.num-form .btn { justify-self: start; }
.num-form .error:empty { display: none; }
/* Short pages (login, sign-up, password): the footer stays at the bottom of the screen, the form sits in the middle */
body:has(> .site-foot) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(> .site-foot) > main { flex: 1 0 auto; width: 100%; }
main.wrap:has(> form.form.card) { display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
main.wrap:has(> form.form.card) > .form { margin: 0 auto; width: 100%; }
#st-gift-row, #st-stamp-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#st-gift-row.hidden, #st-stamp-row.hidden { display: none; }
#mail-lang-sel { max-width: 320px; }
/* Admin: the login box in the middle of the screen, a small line at the bottom */
.admin-body { display: flex; flex-direction: column; min-height: 100dvh; }
.admin-body > main.admin-wrap { flex: 1 0 auto; width: 100%; }
.admin-wrap:has(> #dash.hidden) { display: flex; flex-direction: column; justify-content: center; }
.admin-wrap:has(> #dash.hidden) > .admin-login { margin: 0 auto; width: 100%; }
.admin-foot { text-align: center; font-size: .8rem; color: var(--muted); padding: 14px 16px 18px; }

.pro-tag.pro-tag-trial { background: var(--green, #2b8a3e); color: #fff; }

.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-inv .acc-form { max-width: 520px; }

/* Help assistant (chat bubble) */
.bot { position: fixed; right: 16px; bottom: 16px; z-index: 900; font-size: .95rem; }
.bot-open { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--navy); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.bot-open svg { width: 22px; height: 22px; color: var(--orange); }
.bot-open:hover { background: var(--navy-2); }
.bot-box { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); overflow: hidden; }
.bot-box.hidden, .bot-open.hidden { display: none; }
.bot-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--navy); color: #fff; }
.bot-close { border: 0; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.bot-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #F4F5F7; }
.bot-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.bot-assistant { align-self: flex-start; background: #fff; color: var(--navy); border: 1px solid #E3E6EA; border-bottom-left-radius: 4px; }
.bot-user { align-self: flex-end; background: var(--orange); color: #1d1d1d; border-bottom-right-radius: 4px; }
.bot-error { color: #B42318; }
.bot-wait span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #9AA3AE; animation: bot-dot 1s infinite ease-in-out; }
.bot-wait span:nth-child(2) { animation-delay: .15s; } .bot-wait span:nth-child(3) { animation-delay: .3s; }
@keyframes bot-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.bot-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #E3E6EA; }
.bot-input { flex: 1; resize: none; min-height: 0; font-size: .95rem; }
.bot-send { align-self: stretch; }
.bot-note { margin: 0; padding: 0 12px 10px; font-size: .75rem; color: #6B7480; }
@media print { .bot { display: none; } }

.noapp { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; max-width: 100%; }
.noapp-sub { text-align: center; }
.noapp-pill { display: inline-flex; align-items: center; gap: 10px; background: #e7f6ec; color: #166534; border: 2px solid #22a052; border-radius: 999px; padding: 8px 18px 8px 12px; font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.2; }
.noapp-pill svg { width: 1.4em; height: 1.4em; flex: none; }
.noapp-sub { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.phone { position: relative; }
.phone-tag { position: absolute; bottom: calc(100% + 14px); left: 50%; width: 100%; box-sizing: border-box; text-align: center; z-index: 2; background: var(--navy); color: var(--orange); font-weight: 900; font-size: 1.35rem; letter-spacing: .02em; padding: 10px 16px; border-radius: 999px; transform: translateX(-50%); box-shadow: 0 6px 16px rgba(43,52,64,.25); white-space: nowrap; }
.phone { margin-top: 70px; }
.noapp-pill { animation: noapp-in .6s cubic-bezier(.2,1.4,.4,1) .15s both, noapp-glow 2.8s ease-in-out 1.2s infinite; }
.noapp-pill svg path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: noapp-strike .45s ease-out .7s forwards; }
.noapp-sub { animation: noapp-fade .5s ease-out .5s both; }
.phone-tag { animation: noapp-stamp .5s cubic-bezier(.2,1.6,.4,1) .9s both, noapp-wiggle 2.4s ease-in-out 1.5s infinite, noapp-flash 1.2s ease-in-out 1.5s infinite; }
@keyframes noapp-in { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes noapp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes noapp-strike { to { stroke-dashoffset: 0; } }
@keyframes noapp-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(34,160,82,0); } 50% { box-shadow: 0 0 0 8px rgba(34,160,82,.15); } }
@keyframes noapp-stamp { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes noapp-wiggle { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .noapp-pill, .noapp-sub, .phone-tag, .noapp-pill svg path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 600px) { .noapp { align-items: flex-start; } .noapp-sub { text-align: left; font-size: .95rem; padding-left: 4px; } }
@media (max-width: 600px) { .phone-tag { font-size: 1.2rem; padding: 9px 14px; } }
@keyframes noapp-flash { 0%,40% { color: var(--orange); } 50%,90% { color: #fff; } 100% { color: var(--orange); } }
.verify-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: #fff4e0; border: 2px solid var(--orange); color: var(--navy); border-radius: 14px; padding: 12px 16px; margin: 16px auto 0; width: calc(100% - 32px); max-width: 1248px; box-sizing: border-box; font-weight: 600; }
.verify-bar .verify-text { flex: 1 1 260px; }
.verify-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.verify-form { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.verify-form input { flex: 1 1 220px; min-width: 0; padding: 8px 12px; border: 2px solid var(--line, #d5d9de); border-radius: 10px; font: inherit; }
/* Panel error (e.g. no order before the email is confirmed): a clear red box with space under it. */
#panel-err { min-height: 0; }
#panel-err:not(:empty) { background: var(--danger); color: #fff; border-radius: 12px; padding: 12px 16px; width: calc(100% - 32px); max-width: 1248px; box-sizing: border-box; margin: 12px auto 18px; line-height: 1.4; }

/* Optional stamp card: before joining (or after saying no) only a small box with the join button. */
.stamp-card.compact { gap: 8px; padding: 14px 16px; }
.stamp-card.compact .sc-grid, .stamp-card.compact .sc-reward, .stamp-card.compact .sc-prize,
.stamp-card.compact .sc-next, .stamp-card.compact .sc-count { display: none; }
.stamp-card.compact .sc-head { justify-content: center; }
.sc-leave { display: block; background: none; border: 0; padding: 4px; margin: 6px auto 0; color: var(--muted); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.sc-dark .sc-leave { color: rgba(255,255,255,.85); }
.sc-modal { text-align: center; display: grid; gap: 12px; }
.sc-modal h2 { margin: 0; font-size: 1.35rem; }
.sc-modal p { margin: 0; }
.sc-ask-icon { font-size: 3.2rem; line-height: 1; }
.sc-torn { width: 120px; height: auto; margin: 0 auto; display: block; }
#sc-tear-yes { background: #C62828; border-color: #C62828; color: #fff; }
#sc-tear-yes:hover { background: #A61F1F; }

/* Show / hide password */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--navy); }
.pw-eye:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.api-num { border: 0; padding: 0; margin: 0 0 4px; display: grid; gap: 10px; }
.api-num .check { display: flex; gap: 10px; align-items: flex-start; }
.api-num input { margin-top: 4px; }
.poster-dl { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* Card validity (days / weeks / months, empty = no limit) */
.st-valid { grid-column: 1 / -1; display: grid; gap: 6px; justify-items: start; }
.st-valid .row { display: flex; gap: 8px; flex-wrap: wrap; }
.st-valid input { width: 140px; }
.st-valid select { width: auto; }
.st-valid p, .st-keep { margin: 0; }
.st-keep { grid-column: 1 / -1; }
.st-until { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.st-until.soon { color: #c62828; font-weight: 600; }
/* Admin: email every account (terms change) */
.admin-company-grid .notice-wide { grid-column: 1 / -1; }
.admin-company-grid textarea { font: inherit; font-weight: 400; resize: vertical; }
#notice-form .row { display: flex; gap: 8px; flex-wrap: wrap; }
/* Panel tips (💡): dimmed screen with a hole over one button, and a small box next to it */
.tour-block { position: fixed; inset: 0; z-index: 1200; }
.tour-hole { position: fixed; z-index: 1201; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 4px var(--orange), 0 0 0 9999px rgba(20, 26, 34, .62); transition: all .25s ease; }
.tour-box { position: fixed; z-index: 1202; background: #fff; color: var(--navy); border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.tour-top { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.tour-bulb { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #FFF4E6; font-size: 1.05rem; }
.tour-box h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.tour-text { margin: 0 0 14px; line-height: 1.5; font-size: .95rem; }
.tour-btns { display: flex; justify-content: flex-end; gap: 8px; }
.tour-btns .hidden { display: none; }
@media (prefers-reduced-motion: reduce) { .tour-hole { transition: none; } }
/* Narrow screens: the connection chip becomes a coloured dot next to the name, so the restaurant name keeps its room. */
@media (max-width: 900px) {
  .panel-head .conn { font-size: 0; width: 12px; height: 12px; padding: 0; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }
  .panel-head .conn.off { background: #FF5A5A; box-shadow: 0 0 0 3px rgba(255,90,90,.25); }
}
/* Large computer screens (Full HD and up): a bit more room, so the buttons, stats and language read at a normal size. Laptops keep the smaller size. */
@media (min-width: 1600px) {
  .panel-nav { gap: 10px; }
  .panel-nav .btn { padding: 10px 18px; font-size: 1.02rem; }
  .panel-head .stats { font-size: .98rem; gap: 16px; }
  .panel-head .stats b { font-size: 1.15rem; }
  .panel-head .lang-chip { font-size: .98rem; padding: 8px 14px; }
}
.keep-note { font-size: .88rem; margin: 10px 0 0; }
/* Home page: "See how it works" video under the three steps. Our own cover until clicked, then the YouTube player. */
.how-video { max-width: 880px; margin: 36px auto 0; }
.hv-cover, .hv-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 50px rgba(31,37,50,.22); background: #1f2532; }
.hv-cover { position: relative; padding: 0; cursor: pointer; font: inherit; color: #fff; }
.hv-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hv-cover:hover img, .hv-cover:focus-visible img { transform: scale(1.02); }
.hv-play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(247,147,30,.25), 0 10px 30px rgba(0,0,0,.35); transition: transform .2s ease, box-shadow .2s ease; }
.hv-play svg { width: 44px; height: 44px; fill: #1f2532; margin-left: 6px; }
.hv-cover:hover .hv-play, .hv-cover:focus-visible .hv-play { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(247,147,30,.22), 0 12px 34px rgba(0,0,0,.4); }
.hv-cta { position: absolute; right: 22px; bottom: 20px; background: rgba(255,255,255,.95); color: #1f2532; font-weight: 800; font-size: .95rem; padding: 9px 16px; border-radius: 999px; }
.hv-note { text-align: center; font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 700px) {
  .how-video { margin-top: 24px; }
  .hv-cover, .hv-frame { border-radius: 16px; }
  .hv-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; box-shadow: 0 0 0 8px rgba(247,147,30,.25); }
  .hv-play svg { width: 32px; height: 32px; margin-left: 4px; }
  .hv-cta { right: 12px; bottom: 12px; font-size: .82rem; padding: 7px 12px; }
}
/* Guide: link to the YouTube video under the table of contents. */
.g-video { margin: 18px 0 8px; }
.g-video a { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 16px; background: var(--navy, #2B3240); color: #fff; text-decoration: none; line-height: 1.3; }
.g-video a:hover { filter: brightness(1.12); }
.g-video small { color: #ffcf99; font-weight: 600; }
.g-video-play { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #1f2532; display: grid; place-items: center; font-size: 1.1rem; padding-left: 3px; flex: none; }
@media print { .g-video a { background: #2B3240 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* Panel: "Watch the video" strip under the plan bar, closable; the player opens in a window. */
.video-bar { display: flex; justify-content: center; align-items: center; gap: 6px; background: #FFF4E6; border-bottom: 1px solid #FBD3A0; padding: 6px 12px; }
.video-bar.hidden { display: none; }
.vb-open { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; font: inherit; font-weight: 800; color: var(--navy); cursor: pointer; padding: 4px 8px; border-radius: 999px; }
.vb-open:hover { background: rgba(247,147,30,.15); }
.vb-play { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #1f2532; display: inline-grid; place-items: center; font-size: .8rem; padding-left: 2px; }
.vb-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.modal .card.video-card { max-width: 960px; padding: 12px; }
.video-frame { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Under every QR customers scan: what happens when they scan it (nothing to install, nothing to give), and where it goes. */
.qr-safe { font-size: 1.05rem; line-height: 1.4; font-weight: 700; color: var(--navy); text-align: center; max-width: 360px; margin: 10px auto 0; }
.qr-safe .en { display: block; font-size: .9em; font-weight: 600; color: #3d4452; margin-top: 4px; }
.qr-safe .qr-site { display: block; color: var(--navy); font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; margin-top: 6px; }
.display-qr-wrap { display: flex; flex-direction: column; align-items: center; }
.display-qr-wrap .display-qr { width: min(78vw, 54vh, 440px); }
.display-qr-wrap .qr-safe { font-size: clamp(1.05rem, 1.9vw, 1.35rem); max-width: 460px; margin-top: 12px; }
.poster-safe { font-size: 1.3rem; max-width: 560px; margin: -12px auto 20px; }
.poster-safe .qr-site { font-size: 1.3rem; }
#qr-modal .qr-safe { margin-bottom: 14px; }

/* Admin > Email all > Your message */
.msg-who { border: 1px solid var(--line, #e3e6ea); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.msg-who legend { font-weight: 800; padding: 0 6px; }
.msg-who label { display: block; margin: 6px 0; font-size: .95rem; }
.msg-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.msg-pics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.msg-pic { position: relative; margin: 0; width: 120px; }
.msg-pic img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid #e3e6ea; display: block; }
.msg-pic figcaption { font-size: .8rem; font-weight: 800; text-align: center; }
.msg-pic-x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; line-height: 1; }
.msg-add { cursor: pointer; }
.msg-check { display: flex !important; flex-direction: row !important; gap: 8px; align-items: center; font-weight: 600; }
.msg-check input, .msg-who input { width: auto; margin: 0 6px 0 0; flex: none; }
.msg-prev { margin-top: 16px; }
.msg-prev .row { align-items: center; gap: 8px; margin-bottom: 8px; }
.msg-prev [aria-pressed="true"] { background: var(--navy); color: #fff; }
.msg-prev iframe { width: 100%; max-width: 680px; height: 900px; border: 1px solid #e3e6ea; border-radius: 12px; background: #f2f4f6; display: block; }
