/* Shtampy — shared styles for every page (neo-brutalist theme: cream, black outlines, hard shadows) */

/* ---------- font for every page: Noto Sans Georgian, SIL OFL (Georgian + Latin files) ---------- */
@font-face { font-family: 'Noto Sans Georgian'; font-weight: 300 500; font-style: normal; font-display: swap; src: url('fonts/NotoSansGeorgian-georgian-400.woff2') format('woff2'); unicode-range: U+0589,U+10A0-10FF,U+1C90-1CBA,U+1CBD-1CBF,U+205A,U+2D00-2D2F,U+2E31; }
@font-face { font-family: 'Noto Sans Georgian'; font-weight: 300 500; font-style: normal; font-display: swap; src: url('fonts/NotoSansGeorgian-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Noto Sans Georgian'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/NotoSansGeorgian-georgian-600.woff2') format('woff2'); unicode-range: U+0589,U+10A0-10FF,U+1C90-1CBA,U+1CBD-1CBF,U+205A,U+2D00-2D2F,U+2E31; }
@font-face { font-family: 'Noto Sans Georgian'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/NotoSansGeorgian-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Noto Sans Georgian'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/NotoSansGeorgian-georgian-700.woff2') format('woff2'); unicode-range: U+0589,U+10A0-10FF,U+1C90-1CBA,U+1CBD-1CBF,U+205A,U+2D00-2D2F,U+2E31; }
@font-face { font-family: 'Noto Sans Georgian'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/NotoSansGeorgian-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Noto Sans Georgian'; font-weight: 800 900; font-style: normal; font-display: swap; src: url('fonts/NotoSansGeorgian-georgian-800.woff2') format('woff2'); unicode-range: U+0589,U+10A0-10FF,U+1C90-1CBA,U+1CBD-1CBF,U+205A,U+2D00-2D2F,U+2E31; }
@font-face { font-family: 'Noto Sans Georgian'; font-weight: 800 900; font-style: normal; font-display: swap; src: url('fonts/NotoSansGeorgian-latin-800.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --bg: #fff5e1;            /* page: warm cream */
  --surface: #ffffff;       /* panels */
  --ink: #12120f;           /* text, outlines, hard shadows */
  --ink-2: #3b3a32;
  --muted: #6c6757;
  --line: #e6dbc0;          /* soft dividers inside panels */
  --line-strong: #12120f;   /* outlines */
  --field: #fffaf0;
  --accent: #ff5a35;        /* brand orange (fills) */
  --accent-text: #c23a17;   /* the same orange, dark enough for text on light */
  --accent-2: #ffd43b;
  --accent-soft: #ffe1d6;
  --yellow: #ffd43b;        /* brand yellow */
  --yellow-soft: #fff0b8;
  --green: #1f3b2d;         /* the default card color in Google Wallet */
  --ok: #176b43;
  --ok-soft: #cdeedb;
  --warn: #7a4e00;
  --warn-soft: #ffe9a8;
  --danger: #b3261e;
  --danger-soft: #ffd6d0;
  --radius: 8px;
  --radius-sm: 6px;
  --hard: 4px 4px 0 var(--ink);       /* hard offset shadow */
  --hard-sm: 3px 3px 0 var(--ink);
  --shadow: var(--hard);
  --font: 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; /* only for PINs, codes and addresses */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
/* work screens: <body class="ui"> */
main { flex: 1; width: 100%; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: -0.005em; line-height: 1.22; }
a { color: var(--accent-text); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
a { text-underline-offset: 3px; }
.code { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.gap { height: 12px; }
.empty { color: var(--muted); padding: 10px 0; }

/* small uppercase label with a square marker: section titles inside panels */
.eyebrow {
  display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px;
  background: var(--accent); border: 2px solid var(--ink); border-radius: 2px;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 480px; }

.topbar { background: var(--bg); border-bottom: 2px solid var(--ink); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--surface); border: 2px solid var(--ink); flex: none; }
.brand .t { min-width: 0; }
.brand .name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .role { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.who { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.35; }
.who a { color: var(--ink); font-weight: 700; }

.page-title { padding: 28px 0 18px; }
.page-title h1 { font-size: 32px; }

/* footer: always on every page */
.pg-footer { padding: 28px 16px 24px; text-align: center; font-size: 12.5px; color: var(--muted); }
.pg-footer a { color: var(--ink); font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--accent); }
.pg-footer a:hover { background: var(--yellow); }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard); padding: 20px; margin-bottom: 20px; }
.panel > h2, .panel h2.sec { font-size: 19px; margin: 0 0 14px; }
.panel h2.sec { margin-top: 24px; }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-sm); outline: none;
}
input::placeholder, textarea::placeholder { color: #9a9482; }
input:focus, select:focus, textarea:focus { background: #fff; box-shadow: 3px 3px 0 var(--accent); }
textarea { min-height: 72px; resize: vertical; }
input[type=checkbox] {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; padding: 0; flex: none; cursor: pointer;
  background: #fff; border: 2px solid var(--ink); border-radius: 5px; display: inline-block; vertical-align: middle;
}
input[type=checkbox]:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%2312120f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
input[type=checkbox]:focus-visible { box-shadow: 3px 3px 0 var(--ink); }
input[type=radio] { accent-color: var(--ink); }
input[type=color] { padding: 3px; height: 44px; cursor: pointer; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink); margin: 12px 0; font-weight: 500; }

/* ---------- buttons ---------- */
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; box-shadow: none !important; transform: none !important; }
.main, .ghost, .accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; font-size: 15px; font-weight: 800; letter-spacing: -0.005em;
  border-radius: var(--radius-sm); border: 2px solid var(--ink); text-decoration: none; line-height: 1.2;
  transition: transform .08s, box-shadow .08s, background .12s;
}
/* primary: orange, hard shadow, presses down on click */
.main { background: var(--accent); color: var(--ink); box-shadow: var(--hard-sm); }
.main:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.main:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
/* highlight: yellow */
.accent { background: var(--yellow); color: var(--ink); box-shadow: var(--hard-sm); }
.accent:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.accent:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
/* secondary: white outline, no shadow (used a lot in tables) */
.ghost { background: var(--surface); color: var(--ink); }
.ghost:hover:not(:disabled) { background: var(--yellow); }
.ghost:active:not(:disabled) { transform: translate(1px, 1px); }
.ghost.danger { color: var(--danger); }
.ghost.danger:hover:not(:disabled) { background: var(--danger-soft); }
.block { width: 100%; }
.big { padding: 16px 20px; font-size: 17px; }
.sm { padding: 8px 12px; font-size: 13.5px; }
.sm.main, .sm.accent { box-shadow: 2px 2px 0 var(--ink); }
.main svg, .ghost svg, .accent svg { width: 18px; height: 18px; flex: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 2px solid var(--ink); margin-bottom: 20px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  background: none; border: 0; border-bottom: 4px solid transparent; padding: 12px 14px; font-size: 14.5px;
  font-weight: 700; color: var(--muted); white-space: nowrap; margin-bottom: -2px;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 800; }

/* ---------- stat tiles & charts ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard-sm); padding: 16px; }
.tile .n { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile .l { color: var(--ink-2); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 18px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.chart .bar { width: 100%; max-width: 34px; background: var(--accent); border: 2px solid var(--ink); border-bottom: 0; border-radius: 3px 3px 0 0; min-height: 3px; }
.chart .v { font-size: 11px; color: var(--ink-2); margin-bottom: 4px; font-variant-numeric: tabular-nums; font-weight: 700; }
.chart .d { font-size: 11px; color: var(--muted); margin-top: 6px; }
.brow { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.brow .bn { width: 160px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.brow .bt { flex: 1; height: 14px; background: var(--surface); border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.brow .bt div { height: 100%; background: var(--accent); }
.brow .bv { width: 110px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13px; font-weight: 600; }

/* ---------- lists & tables ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .when { color: var(--muted); font-size: 13px; width: 130px; flex: none; font-variant-numeric: tabular-nums; }
.list .what { flex: 1; min-width: 0; }
.badge { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--yellow); color: var(--ink); white-space: nowrap; letter-spacing: .01em; }
.badge.reward { background: var(--ink); color: var(--yellow); }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { background: var(--yellow-soft); }
th.sort .arr { margin-left: 4px; }

/* ---------- toasts & notices ---------- */
.toast { padding: 13px 16px; border: 2px solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--hard-sm); font-weight: 700; font-size: 14.5px; display: none; color: var(--ink); }
.toast.ok { display: block; background: #bfe8cf; }
.toast.warn { display: block; background: var(--yellow); }
.toast.err { display: block; background: #ffb9ac; }
.toast.float { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100% - 32px); z-index: 20; box-shadow: var(--hard); }
.preview { margin-top: 8px; padding: 10px 12px; border: 2px dashed var(--ink); border-radius: var(--radius-sm); background: var(--yellow-soft); font-size: 14px; }
.preview b { display: block; font-size: 11px; color: var(--ink); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.notice { background: var(--yellow-soft); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13.5px; font-weight: 500; }

/* ---------- popup (rewards, birthday gifts) ---------- */
.modal { position: fixed; inset: 0; background: rgba(18,18,15,.72); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 30; }
.modal .sheet {
  background: var(--surface); border-radius: var(--radius); padding: 30px 22px 22px; width: 100%; max-width: 420px; text-align: center;
  animation: pg-pop .3s cubic-bezier(.2,1.3,.4,1); border: 0; border-top: 10px solid var(--ink);
  box-shadow: 0 0 0 2px var(--ink), 8px 8px 0 2px var(--ink);
}
.modal.reward .sheet { border-top-color: var(--accent); }
.modal.bday .sheet { border-top-color: var(--yellow); }
.modal.level .sheet { border-top-color: #e0a91c; }
.modal.level .icon, .modal.level .label { color: #7a5200; }
.modal .icon { width: 64px; height: 64px; margin: 0 auto; color: var(--accent); animation: pg-nudge .9s ease-in-out 2; }
.modal .label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-top: 14px; }
.modal h2 { font-size: 28px; margin: 6px 0 8px; }
.modal .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.modal .main, .modal .ghost { width: 100%; }
.modal .ghost { margin-top: 10px; }
@keyframes pg-pop { from { transform: translateY(12px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pg-nudge { 0%, 100% { transform: none; } 30% { transform: translateY(-6px) rotate(-6deg); } 60% { transform: translateY(-2px) rotate(5deg); } }

/* ---------- cashier ---------- */
.stamps { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 12px; }
.stamp { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 2px dashed var(--ink); background: var(--surface); }
.stamp.on { background: var(--accent); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.stamp.on::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 7px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translate(-50%, -62%) rotate(-45deg); }
.guest-name { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.qty { display: flex; gap: 8px; margin: 8px 0 4px; }
.qty button { flex: 1; padding: 12px 0; font-size: 17px; font-weight: 800; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.qty button:hover { background: var(--yellow-soft); }
.qty button.on { background: var(--accent); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.gift-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--yellow-soft); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 14px; }
.gift-bar b { color: var(--ink); }
.gift-bar .main { flex: none; }
#reader { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
#reader:empty { display: none; }

/* ---------- owner cabinet ---------- */
.switch { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.color { display: flex; gap: 8px; }
.color input[type=color] { width: 52px; flex: none; }
.logoRow { display: flex; gap: 14px; align-items: center; }
.logoRow img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface); border: 2px solid var(--ink); flex: none; }
.link { display: flex; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.link:last-child { border-bottom: 0; }
.link .t { width: 170px; font-weight: 800; }
.link .u { flex: 1; min-width: 200px; font-family: var(--mono); font-size: 13px; color: var(--muted); word-break: break-all; }
.branch { display: grid; grid-template-columns: 28px 1fr 1.4fr auto; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.branch .num { font-weight: 800; color: var(--muted); padding-top: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.branch .acts { display: flex; gap: 6px; }
.branch .acts button { padding: 10px 12px; }
.branch.extra .num { color: var(--accent-text); }
.branch .ok { font-size: 12px; color: var(--ok); margin-top: 4px; font-weight: 600; }
.branch .bad { font-size: 12px; color: var(--danger); margin-top: 4px; font-weight: 600; }
.divider { font-size: 12.5px; color: var(--ink); background: var(--yellow-soft); border: 2px dashed var(--ink); border-radius: var(--radius-sm); padding: 9px 11px; margin: 12px 0 4px; }
.cash select { width: auto; padding: 8px 10px; font-size: 14px; }
.cash .pinbox { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cash .pinbox button { padding: 7px 10px; font-size: 13px; }
.cash .pin { font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 2px; min-width: 4ch; font-variant-numeric: tabular-nums; }
.cash .pinedit { width: 120px; padding: 8px 10px; font-size: 14px; font-family: var(--mono); }
@media (max-width: 640px) {
  .branch { grid-template-columns: 24px 1fr auto; }
  .branch .coords { grid-column: 2 / 4; }
  .branch .acts { grid-row: 1; grid-column: 3; }
  .cash .what { flex: 1 1 100%; }
  .list .when { width: 92px; }
  .page-title h1 { font-size: 24px; }
}
.login-box { max-width: 380px; margin: 8vh auto 0; }

/* ---------- levels (conditions builder) ---------- */
.lvl { border: 2px solid var(--ink); border-left: 10px solid var(--lvl, var(--accent)); border-radius: var(--radius); padding: 16px; margin-top: 16px; background: var(--surface); }
.lvl-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lvl-head input[data-f=name] { flex: 1; min-width: 160px; font-weight: 800; font-size: 16px; }
.lvl-head input[type=color] { width: 44px; flex: none; }
.lvl-no { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); width: 100%; }
.lvl-when { margin: 14px 0 8px; font-size: 14px; color: var(--ink-2); }
.lvl-when select { width: auto; padding: 5px 8px; font-size: 14px; display: inline-block; }
.cond { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr .8fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.cond select:disabled { opacity: .45; }
@media (max-width: 640px) {
  .cond { grid-template-columns: 1fr 1fr; padding-bottom: 10px; border-bottom: 2px dashed var(--ink); }
  .cond button { grid-column: 2; justify-self: end; }
}
.lvl-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.lvl-badge i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; border: 2px solid var(--ink); }
.lvl-edit { background: none; border: 0; padding: 0; color: inherit; text-align: left; border-bottom: 2px dashed var(--ink); }
.lvl-edit:hover { background: var(--yellow); }
.no-levels .lvlcol { display: none; }
.lvl-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border: 2px solid var(--ink); border-radius: 4px; background: var(--lvl, var(--ink)); color: #fff; }
.lvl-perks-line { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }

/* ---------- guest pages (sign-up, birthday, table QR) ---------- */
.guest-page { background-color: var(--bg); background-image: radial-gradient(rgba(18,18,15,.16) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.guest-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; width: 100%; max-width: 400px; margin: 0 auto; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); }
.guest-card .band { height: 14px; background: var(--venue, var(--ink)); border-bottom: 2px solid var(--ink); }
.guest-card .in { padding: 28px 22px 24px; text-align: center; }
.guest-card .logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--surface); border: 2px solid var(--ink); }
.guest-card h1 { font-size: 27px; margin: 14px 0 6px; }
.guest-card .rule { color: var(--muted); margin: 0 0 22px; }
.guest-card form, .guest-card .left { text-align: left; }
.guest-card .field { margin-bottom: 14px; }
.guest-card .two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.guest-card .err { color: var(--danger); margin-top: 12px; font-size: 14px; text-align: center; font-weight: 700; }
.guest-card .note { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }
.guest-card .done { font-size: 18px; font-weight: 800; color: var(--ok); padding: 10px 0; }
/* ---------- birthday picker (guest pages) ---------- */
.bd { position: relative; }
.bd-field { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-sm); text-align: left; cursor: pointer; }
.bd-field svg { width: 18px; height: 18px; flex: none; }
.bd-field.empty { color: var(--muted); font-weight: 400; }
.bd-field.empty svg { color: var(--muted); }
.bd-val { flex: 1; min-width: 0; }
.bd-chev { width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); flex: none; transition: transform .15s; }
.bd.open .bd-field { background: #fff; box-shadow: 3px 3px 0 var(--accent); }
.bd.open .bd-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.bd-pop { margin-top: 10px; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard-sm); padding: 12px; background: #fff; animation: bd-in .14s ease-out; }
@keyframes bd-in { from { opacity: 0; transform: translateY(-4px); } }
.bd-head { display: flex; align-items: center; gap: 10px; min-height: 30px; margin-bottom: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.bd-head span { margin-left: auto; }
.bd-head span:only-child { margin-left: 0; }
.bd-back { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; font: inherit; font-size: 14px; font-weight: 800; color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); border-radius: 99px; cursor: pointer; }
.bd-back:hover { background: var(--yellow); }
.bd-back::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 3px; }
.bd-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bd-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bd-months button, .bd-days button { font: inherit; color: var(--ink); background: transparent; border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; }
.bd-months button { padding: 10px 2px; font-size: 14px; font-weight: 600; background: var(--surface); border-color: var(--ink); white-space: nowrap; }
:lang(ka) .bd-months button { font-size: 12.5px; letter-spacing: -.01em; }
.bd-days button { height: 40px; font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 600; }
.bd-months button:hover, .bd-days button:hover { background: var(--yellow-soft); border-color: var(--ink); }
.bd-months button:focus-visible, .bd-days button:focus-visible, .bd-field:focus-visible, .bd-back:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.bd-months button.on, .bd-days button.on { background: var(--accent); border-color: var(--ink); color: var(--ink); font-weight: 800; box-shadow: 2px 2px 0 var(--ink); }
@media (max-width: 360px) { .bd-pop { padding: 10px 8px; } .bd-months { gap: 4px; } .bd-months button { font-size: 13px; } :lang(ka) .bd-months button { font-size: 11.5px; } .bd-days button { height: 38px; } }

.guest-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; text-align: left; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.steps li::before { content: counter(s); font-weight: 800; color: var(--accent-text); width: 16px; flex: none; }
#qr { display: flex; justify-content: center; margin: 4px 0 20px; }
#qr img, #qr canvas { border: 10px solid #fff; outline: 2px solid var(--ink); }
.url { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }

/* ---------- language switch (ქარ / ENG) ---------- */
.lang-switch { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; flex: none; background: var(--surface); }
.lang-switch button { background: none; border: 0; padding: 6px 9px; font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: .04em; line-height: 1.2; }
.lang-switch button + button { border-left: 2px solid var(--ink); }
.lang-switch button.on { background: var(--ink); color: var(--bg); }
.lang-switch button:not(.on):hover { background: var(--yellow); }
.guest-card { position: relative; }
.guest-card > .lang-switch { position: absolute; top: 24px; right: 14px; }
.topbar .lang-switch { margin-left: 4px; }

/* consent checkbox on the sign-up page */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; text-align: left; color: var(--ink-2); margin: 2px 0 16px; font-weight: 400; cursor: pointer; }
.consent input { margin-top: 1px; }

/* ---------- owner: first steps, worth checking, messages ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); flex: none; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.checklist li.done .mark { background: var(--accent); border-color: var(--ink); color: var(--ink); }
.checklist li.done .mark::after { content: ''; width: 10px; height: 5px; border: 2.5px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.checklist .txt { flex: 1; min-width: 0; }
.checklist li.done .txt b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--ink); }
.checklist .txt .hint { margin-top: 2px; }
.progress { height: 12px; background: var(--surface); border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; margin: -4px 0 12px; }
.progress div { height: 100%; background: var(--accent); }
.panel.watch { border-left: 10px solid var(--yellow); }
.bc-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bc-item:last-child { border-bottom: 0; }
.bc-item .bc-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.bc-item .bc-body { color: var(--ink-2); font-size: 14px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.bc-item .bar { height: 10px; background: var(--surface); border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; margin-top: 8px; max-width: 320px; }
.bc-item .bar div { height: 100%; background: var(--accent); }
.badge.ok { background: #bfe8cf; color: var(--ink); }
.badge.off { background: #ece3cc; color: var(--muted); border-color: var(--muted); }
.phone-preview { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--hard-sm); padding: 12px 14px; max-width: 360px; }
.phone-preview .ph-title { font-weight: 800; font-size: 14px; }
.phone-preview .ph-body { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.phone-preview .ph-app { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }


/* ---------- helpers: spacing and layout used by the pages (instead of style="" in the HTML) ---------- */
.gap-lg { height: 16px; }
.mt-sm { margin-top: 8px; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 16px; }
.eyebrow.sec { margin-top: 30px; }              /* a new section inside the same panel */
.hint.lead { margin-top: -6px; }                /* intro text right under a section title */
.hint.lead.spaced { margin-bottom: 12px; }
.hint.indent { margin: -6px 0 14px 28px; }      /* explanation under a checkbox */
.hint.flat { margin: 0; }
.hint.block { display: block; margin-top: 2px; }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.invisible { visibility: hidden; }
.dimmed { opacity: .5; }                        /* a block that is switched off */
.row.nowrap { flex-wrap: nowrap; }
.row.between { justify-content: space-between; }
.push { margin-left: auto; }
.no-shrink { flex: none; }
.page-top { padding-top: 16px; }
main.doc { padding-top: 24px; }
.toolbar { margin-bottom: 12px; }
.toolbar .search { max-width: 300px; flex: 1 1 200px; min-width: 0; }
label.sec { margin-top: 18px; }

/* dialogs of the owner cabinet: left aligned; .wide = long scrolling list */
.modal .sheet.left { text-align: left; border-top-color: var(--accent); }
.modal .sheet.wide { max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal .fit { width: auto; margin: 0; }          /* small buttons inside a list in a dialog */
.dlg-name { font-weight: 600; margin-bottom: 12px; }
.list.wrap li { flex-wrap: wrap; }
.list.wrap .what { flex: 1 1 260px; }
.list li.cash { flex-wrap: wrap; }
.lvl > .check { margin: 12px 0 0; }
.lvl-perks .eyebrow { margin: 18px 0 12px; }
.lvl-head .hint { margin: 0; white-space: nowrap; }
.bc-item .ghost { margin-top: 8px; }
.progress div { width: 0; }

/* cashier */
.toast.top { margin-bottom: 14px; }
.guest-meta { font-size: 13.5px; }

/* guest pages */
.guest-card .notice { margin-bottom: 16px; text-align: left; }
.guest-card .no-print { margin-top: 18px; }

/* ---------- super-admin (/admin) ---------- */
th.wrap { white-space: normal; min-width: 80px; }
button.tile { font: inherit; color: inherit; text-align: left; }
.tile.click { cursor: pointer; }
.tile.click:hover { background: var(--yellow-soft); }
.tile.click.on { background: var(--yellow); }
.modal .sheet.form.danger { border-top-color: var(--danger); }
.ad-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tile.warn .n { color: var(--warn); }
.tile.bad .n { color: var(--danger); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input { flex: 1 1 220px; }
.filters select { flex: 0 0 auto; width: auto; }
.vn { display: flex; align-items: center; gap: 10px; }
.vn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface); border: 2px solid var(--ink); flex: none; }
.vn b { display: block; }
.vn .code { font-size: 12px; }
.paid.soon { color: var(--warn); font-weight: 600; }
.paid.over { color: var(--danger); font-weight: 600; }
.paid small { display: block; font-size: 11.5px; font-weight: 500; }
tr.paused td { opacity: .62; }
tr.paused td:last-child { opacity: 1; }
td .row { flex-wrap: nowrap; gap: 6px; }
.modal .sheet.form { text-align: left; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; border-top-color: var(--accent); }
.modal .sheet.form .main, .modal .sheet.form .ghost { width: auto; margin-top: 0; }
.sheet .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.secret { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.secret .k { width: 130px; flex: none; color: var(--muted); font-size: 13px; }
.secret .v { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; word-break: break-all; }
.secret .v.big { font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.danger-zone { margin-top: 22px; padding-top: 16px; border-top: 2px dashed var(--ink); }
@media (max-width: 640px) { .secret .k { width: 96px; } }

/* ---------- privacy policy ---------- */
.doc { max-width: 760px; }
.doc h2 { font-size: 19px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.6; }
.doc .draft { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; margin-bottom: 8px; font-weight: 600; }

@media print {
  body { background: #fff; }
  .guest-card { box-shadow: none; }
  .url, .no-print, .lang-switch { display: none !important; }
}

/* ---------- plans: owner cabinet panel, locks, comparison table; admin badges ---------- */
.plan-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-head .eyebrow { margin: 0; padding: 0; border: 0; }
.plan-name { font-size: 18px; letter-spacing: -0.01em; }
.plan-usage { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.plan-chip { font-size: 13px; color: var(--ink-2); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 5px 10px; }
.plan-chip b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.plan-chip.over { background: var(--yellow); }
.plan-chip.over b { color: var(--warn); }
.plan-warn { margin-top: 12px; font-size: 14px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 10px 12px; line-height: 1.45; font-weight: 600; }
.plan-lock { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink); background: var(--yellow-soft); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 16px; line-height: 1.4; font-weight: 600; }
.plan-lock svg { width: 15px; height: 15px; flex: none; }
.plan-lock span { flex: 1; min-width: 180px; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 12px; }
.pl-table th, .pl-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pl-table th:first-child, .pl-table td:first-child { text-align: left; color: var(--ink-2); white-space: normal; min-width: 150px; }
.pl-table td { white-space: nowrap; }
.modal .sheet.plans { max-width: 760px; }
.pl-table th { font-size: 15px; white-space: nowrap; }
.pl-table th small { display: block; font-size: 11px; font-weight: 800; color: var(--accent-text); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.pl-table .cur { background: var(--yellow-soft); }
.pl-yes { width: 16px; height: 16px; color: var(--ok); vertical-align: middle; }
.pl-no { color: var(--line-strong); }
.badge.plan-essential { background: var(--surface); color: var(--ink); }
.badge.plan-trial { background: var(--yellow-soft); color: var(--ink); }
.badge.plan-premium { background: var(--ink); color: var(--yellow); }
.over-limit { display: block; font-size: 11.5px; color: var(--warn); margin-top: 3px; white-space: nowrap; }

/* ---------- cashier: coupons and gift cards ---------- */
.gift-bar.coupon { background: var(--accent-soft); }
.gift-amount { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 4px; }
#gdQr { display: flex; justify-content: center; margin: 12px 0 8px; }
#gdQr img, #gdQr canvas { border: 10px solid #fff; outline: 2px solid var(--ink); }
.center { text-align: center; }
.join-offer { margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--ink); text-align: left; }
.join-offer p { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }

/* ---------- owner: card tab, analytics ---------- */
.banner-prev { display: block; width: 100%; max-width: 516px; border-radius: var(--radius-sm); border: 2px solid var(--ink); margin: 4px 0 14px; }
.an-chart { height: 150px; margin-bottom: 18px; }
#an .tiles .tile .hint { margin-top: 4px; font-size: 12px; }
.notice.mb { margin-bottom: 16px; }
.warn-text { color: var(--danger); }
/* guests who removed the card from Google Wallet */
tr.removed td { color: var(--muted); }
tr.removed .lvl-edit { color: var(--muted); }
.wallet-off { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 800; color: var(--danger); background: var(--danger-soft); border: 1.5px solid var(--danger); border-radius: 999px; padding: 1px 8px; white-space: nowrap; vertical-align: middle; }
td.email { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
#walletFilter { width: auto; flex: 0 1 200px; min-width: 0; }

/* ---------- owner cabinet: menu on the left (desktop), scrolling bar (phone) ---------- */
.cab-wrap { max-width: 1300px; } /* owner cabinet (also set below) */
.tabs.side { gap: 2px; }
.tabs.side button { display: inline-flex; align-items: center; gap: 8px; }
.tabs.side svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: none; }
.nav-group { display: contents; }
.nav-label { display: none; }
@media (min-width: 980px) {
  .cab { display: grid; grid-template-columns: 224px minmax(0, 1fr); column-gap: 36px; align-items: start; }
  .cab > .page-title { grid-column: 1 / -1; }
  .tabs.side { position: sticky; top: 20px; flex-direction: column; gap: 18px; border: 0; margin: 0; overflow: visible; }
  .nav-group { display: flex; flex-direction: column; gap: 2px; }
  .nav-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 6px; }
  .tabs.side button { width: 100%; text-align: left; padding: 9px 12px; margin: 0; border: 2px solid transparent; border-radius: var(--radius); font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: normal; line-height: 1.25; }
  .tabs.side button:hover { background: var(--yellow-soft); color: var(--ink); }
  .tabs.side button.on { background: var(--yellow); color: var(--ink); font-weight: 800; border-color: var(--ink); box-shadow: var(--hard-sm); }
  .tabs.side svg { display: block; opacity: .85; }
  .cab-main { min-width: 0; }
}
@media (max-width: 979px) {
  /* one scrolling row; a soft fade on the right says "there is more" */
  .tabs.side { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); scroll-snap-type: x proximity; }
  .tabs.side button { scroll-snap-align: start; }
  .nav-group:last-child button:last-child { margin-right: 40px; }
}

/* ---------- super-admin: error log ---------- */
.err-badge { display: block; margin-top: 4px; border: 1.5px solid var(--danger); background: var(--danger-soft); color: var(--danger); font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.err-badge:hover { background: var(--danger); color: #fff; }
.errlist li { align-items: flex-start; }
.errlist .when small { display: block; color: var(--danger); font-weight: 600; margin-top: 2px; }
.errlist .msg { margin-top: 4px; font-size: 14px; color: var(--ink); word-break: break-word; }
.errlist .hint { margin-top: 2px; }
.badge.errb { background: #ffb9ac; color: var(--ink); }
.badge.warnb { background: var(--yellow); color: var(--ink); }
.notice.ok { background: #bfe8cf; color: var(--ink); }


/* ---------- landing page (/) for venues — Shtampy neo-brutalist look ---------- */
.lp { background-color: var(--bg); }
.lp .wrap { max-width: 1200px; padding: 0 24px; }
.lp h1, .lp h2, .lp h3 { color: var(--ink); }
.lp p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.lp a:focus-visible, .lp button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.lp-dots { background-image: radial-gradient(rgba(18,18,15,.16) 1.2px, transparent 1.2px); background-size: 24px 24px; }

/* header */
.lp-top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--ink); }
.lp-top-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.lp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lp-logo img { height: 58px; width: auto; display: block; }
.lp-logo b { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; text-transform: lowercase; line-height: 1; }
.lp-nav { display: flex; gap: 22px; margin-right: auto; }
.lp-nav a { color: var(--ink); text-decoration: none; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 2px; }
.lp-nav a:hover { background: var(--yellow); }
.lp-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); color: var(--ink); font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: var(--hard-sm); transition: transform .08s, box-shadow .08s; }
.lp-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.lp-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.lp-btn svg { width: 16px; height: 16px; flex: none; }
.lp-btn.orange, .lp-btn.purple { background: var(--accent); }
.lp-btn.big { height: 58px; padding: 0 26px; font-size: 16px; box-shadow: 4px 4px 0 var(--ink); }
.lp-link { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.lp-link:hover { background: var(--yellow); }

/* small label: black chip with yellow text, a little crooked, like a rubber stamp */
.lp-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); background: var(--ink); padding: 6px 12px; margin-bottom: 22px; transform: rotate(-1.2deg); }
.lp-ink .lp-eyebrow { background: var(--accent); color: var(--ink); }
.lp h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.04em; }
:lang(ka) .lp h2, :lang(ka) .lp h3 { letter-spacing: -0.01em; line-height: 1.12; }

/* hero */
.lp-hero { overflow: hidden; background-image: radial-gradient(rgba(18,18,15,.16) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.lp .lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-top: 76px; padding-bottom: 92px; }
.lp-hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.lp h1 { overflow-wrap: break-word; font-size: clamp(44px, 6.6vw, 92px); line-height: .94; letter-spacing: -0.05em; font-weight: 800; }
:lang(ka) .lp h1 { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.1; letter-spacing: -0.02em; }
.lp .lp-lead { font-size: 18px; margin-top: 28px; max-width: 32em; color: var(--ink); }
.lp-cta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.lp-hero-art { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px 12px 36px; }
.lp-tag { position: absolute; top: 0; right: 4%; z-index: 2; transform: rotate(5deg); background: var(--yellow); border: 2px solid var(--ink); padding: 6px 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink); }

/* the example card: built in HTML, no screenshots */
.lp-pass { width: 100%; max-width: 360px; background: var(--accent); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; padding: 22px 22px 24px; box-shadow: 10px 10px 0 var(--ink); transform: rotate(3deg); animation: lp-wobble 6s ease-in-out infinite alternate; }
@keyframes lp-wobble { to { transform: rotate(1.5deg) translateY(-6px); } }
.lp-pass-top { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 800; }
.lp-pass-logo { width: 36px; height: 36px; border-radius: 50%; background: #fff5e1; color: var(--ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.lp-pass-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 20px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.lp-pass-row b { font-size: 30px; letter-spacing: -0.02em; opacity: 1; }
.lp-pass-stamps { background: #fff5e1; border-radius: 12px; padding: 12px; display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.lp-pass-stamps i { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #9b957f; flex: none; }
.lp-pass-stamps i.on { background: var(--accent); border: 2px solid var(--ink); }
.lp-pass-stamps i.on::after { content: ''; position: absolute; left: 50%; top: 50%; width: 13px; height: 6px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translate(-50%, -62%) rotate(-45deg); }
.lp-pass-qr { background: #fff; border-radius: 12px; padding: 14px; margin-top: 12px; display: grid; place-items: center; }
.lp-pass-qr svg { width: 150px; height: 150px; display: block; }

/* ticker band */
.lp-ticker { background: var(--yellow); color: var(--ink); border: 0; overflow: hidden; padding: 16px 0; transform: rotate(-1deg) scale(1.02); margin: 18px 0 -22px; position: relative; z-index: 3; }
.lp-ticker + .lp-sec { padding-top: 126px; }
.lp-ticker-track { display: flex; width: max-content; animation: lp-marquee 38s linear infinite; }
.lp-ticker-track span { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding: 0 22px; }
.lp-ticker-track i { font-style: normal; color: var(--accent); -webkit-text-stroke: 0; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* sections: heading on top, content below */
.lp-sec { padding: 104px 0; }
.lp-ink { background: var(--ink); color: #fff5e1; }
.lp-ink h2, .lp-ink h3 { color: #fff5e1; }
.lp-white { background: #fff; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.lp-split { display: block; }
.lp-split > header { max-width: 40em; margin-bottom: 48px; }
.lp-split > header p { margin-top: 20px; }
.lp-ink .lp-split > header p { color: #d8d1bc; }
.lp-grid2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lp-item { background: #fff5e1; color: var(--ink); border: 2px solid #fff5e1; border-radius: 6px; padding: 24px; }
.lp-item h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--ink); }
.lp-item p { font-size: 15px; color: var(--ink-2); }
.lp-ink .lp-item:nth-child(9n+1), .lp-ink .lp-item:nth-child(9n+6), .lp-ink .lp-item:nth-child(9n+8) { background: var(--accent); border-color: var(--accent); }
.lp-ink .lp-item:nth-child(9n+3), .lp-ink .lp-item:nth-child(9n+4), .lp-ink .lp-item:nth-child(9n+9) { background: var(--yellow); border-color: var(--yellow); }
.lp-ink .lp-item:nth-child(9n+1) p, .lp-ink .lp-item:nth-child(9n+6) p, .lp-ink .lp-item:nth-child(9n+8) p { color: var(--ink); }
.lp-white .lp-item { background: #fff5e1; border-color: var(--ink); box-shadow: var(--hard); }
.lp-white .lp-item:nth-child(2) { background: var(--yellow); transform: rotate(1deg); }

/* how it works: three numbered cards */
.lp-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 52px; align-items: end; }
.lp-steps { list-style: none; counter-reset: lp; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.lp-steps li { counter-increment: lp; background: #fff; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink); }
.lp-steps li:nth-child(2) { background: var(--yellow); transform: rotate(-1.2deg); }
.lp-steps img { display: none; }
.lp-steps .in { padding: 26px 26px 30px; }
.lp-steps .in::before { content: '0' counter(lp); display: block; font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--accent); -webkit-text-stroke: 2px var(--ink); margin-bottom: 14px; }
.lp-steps h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px; }
.lp-steps p { color: var(--ink); }

/* plans */
.lp-head-note { align-self: end; max-width: 34em; color: var(--ink); }
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.lp-plan { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink); padding: 32px 28px 28px; display: flex; flex-direction: column; }
.lp-plan.pop { background: var(--accent); }
.lp-plan:nth-child(3n):not(.pop) { background: var(--ink); color: #fff5e1; }
.lp-plan:nth-child(3n):not(.pop) h3, .lp-plan:nth-child(3n):not(.pop) .lp-plan-tag, .lp-plan:nth-child(3n):not(.pop) li { color: #fff5e1; }
.lp-plan-badge { position: absolute; top: -14px; right: 18px; transform: rotate(3deg); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); background: var(--ink); padding: 5px 10px; }
.lp-plan h3 { font-size: 32px; letter-spacing: -0.03em; margin: 0; }
.lp .lp-plan-tag { color: var(--ink-2); font-size: 15px; margin: 6px 0 22px; min-height: 3.2em; }
.lp-plan.pop .lp-plan-tag { color: var(--ink); }
.lp-plan ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.lp-plan li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid rgba(18,18,15,.22); font-size: 15px; line-height: 1.4; }
.lp-plan:nth-child(3n):not(.pop) li { border-color: rgba(255,245,225,.22); }
.lp-plan li .pl-yes, .lp-plan li .pl-no { flex: none; width: 16px; margin-top: 2px; text-align: center; }
.lp-plan li .pl-yes { color: var(--ink); }
.lp-plan:nth-child(3n):not(.pop) li .pl-yes { color: var(--yellow); }
.lp-plan li .pl-no { color: inherit; opacity: .5; }
.lp-plan li.off { opacity: .6; }
.lp-plan .lp-btn { justify-content: center; }
.lp-plan.pop .lp-btn { background: var(--ink); color: var(--yellow); box-shadow: 3px 3px 0 #fff5e1; }

/* who it is for */
.lp-who { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); margin-top: 64px; padding-top: 32px; border-top: 2px solid var(--ink); max-width: 30em; }
.lp .lp-who { color: var(--ink); line-height: 1.25; }
.lp-who + .hint { margin-top: 16px; color: var(--ink-2); }

/* closing block: orange, with a round stamp */
.lp-dark { background-color: var(--accent); background-image: radial-gradient(rgba(18,18,15,.18) 1.2px, transparent 1.2px); background-size: 24px 24px; border-top: 2px solid var(--ink); color: var(--ink); padding: 96px 0 104px; }
.lp-dark .lp-eyebrow { background: var(--ink); color: var(--yellow); }
.lp-dark h2 { color: var(--ink); max-width: 11em; font-size: clamp(36px, 5.6vw, 76px); }
.lp-end-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.lp-end-text { flex: 1 1 420px; }
.lp .lp-dark p { color: var(--ink); max-width: 36em; margin-top: 24px; font-weight: 500; }
.lp .lp-dark .lp-btn { margin-top: 32px; }
.lp-seal { width: 210px; height: 210px; flex: none; transform: rotate(var(--rot, -12deg)); }
.lp-seal text { font-family: var(--font); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.lp .pg-footer { background: var(--ink); color: #cfc8b4; padding: 32px 16px; }
.lp .pg-footer a { color: var(--yellow); border-bottom-color: var(--accent); }
.lp .pg-footer a:hover { background: transparent; color: #fff; }
.lp-foot-sep { display: inline-block; width: 18px; }

@media (max-width: 960px) {
  .lp-nav { display: none; }
  .lp-top-in { gap: 14px; }
  .lp-logo { margin-right: auto; }
  .lp .lp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 48px; padding-bottom: 64px; }
  .lp-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .lp-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-steps li:nth-child(2) { transform: none; }
  .lp-plans { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lp-sec { padding: 68px 0; }
  .lp-ticker + .lp-sec { padding-top: 90px; }
  .lp-dark { padding: 68px 0; }
  .lp-seal { width: 150px; height: 150px; }
}
@media (max-width: 640px) {
  .lp .wrap { padding: 0 16px; }
  .lp-top-in { min-height: 60px; }
  .lp-logo img { height: 46px; width: auto; }
  .lp-logo b { font-size: 21px; }
  .lp-top .lp-btn { display: none; }
  .lp-grid2 { grid-template-columns: 1fr; gap: 16px; }
  .lp-white .lp-item:nth-child(2) { transform: none; }
  .lp-pass { transform: none; animation: none; box-shadow: 7px 7px 0 var(--ink); }
  .lp-btn.big { white-space: normal; height: auto; min-height: 58px; padding: 12px 22px; line-height: 1.3; }
  .lp-who { margin-top: 44px; }
  .lp-seal { display: none; }
}

/* ---------- landing: motion (everything respects prefers-reduced-motion, see the end) ---------- */
/* page load: the hero "gets stamped" onto the page */
@keyframes lp-drop { 0% { opacity: 0; transform: translateY(-20px) rotate(-7deg) scale(1.3); } 60% { opacity: 1; transform: rotate(-1.2deg) scale(.96); } 100% { opacity: 1; transform: rotate(-1.2deg) scale(1); } }
@keyframes lp-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes lp-in-right { from { opacity: 0; transform: translateX(70px) rotate(8deg); } to { opacity: 1; transform: none; } }
@keyframes lp-pop { 0% { opacity: 0; transform: scale(.4) rotate(-12deg); } 65% { opacity: 1; transform: scale(1.12) rotate(7deg); } 100% { opacity: 1; transform: rotate(5deg) scale(1); } }
@keyframes lp-press { 0% { opacity: 0; transform: scale(2.4); } 55% { opacity: 1; transform: scale(.88); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lp-count { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes lp-num { 0% { opacity: 0; transform: scale(.4) rotate(-14deg); } 65% { opacity: 1; transform: scale(1.12) rotate(3deg); } 100% { opacity: 1; transform: none; } }
.lp-hero .lp-eyebrow { animation: lp-drop .6s .1s both cubic-bezier(.2,1.3,.4,1); }
.lp-hero h1 { animation: lp-up .8s .2s both cubic-bezier(.2,.8,.2,1); }
.lp-hero .lp-lead { animation: lp-up .8s .38s both cubic-bezier(.2,.8,.2,1); }
.lp-hero .lp-cta { animation: lp-up .8s .52s both cubic-bezier(.2,.8,.2,1); }
.lp-hero-art { animation: lp-in-right .9s .3s both cubic-bezier(.2,1,.3,1); }
.lp-tag { animation: lp-pop .5s 1.25s both cubic-bezier(.2,1.3,.4,1); }
/* the example card: stamps land one by one, then a new stamp is added every few seconds (landing.js) */
.lp-pass { translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 12px); rotate: calc(var(--mx, 0) * 3deg); transition: translate .3s ease-out, rotate .3s ease-out; }
.lp-pass-stamps i.on { animation: lp-press .4s both cubic-bezier(.2,1.4,.4,1); }
.lp-pass-row b { display: inline-block; transform-origin: right center; }
.lp-pass-row b.pop { animation: lp-count .4s ease-out; }
.lp-pass { transition: translate .3s ease-out, rotate .3s ease-out, background-color .5s ease, color .5s ease; }
.lp-pass.full { background: var(--yellow); }
.lp-pass.full .lp-pass-logo { background: var(--ink); color: var(--yellow); }

/* scroll reveal: elements rise into place, one after another */
html.js .rv { opacity: 0; translate: 0 38px; transition: opacity .6s ease, translate .75s cubic-bezier(.2,1.1,.3,1), transform .2s ease, rotate .2s ease, box-shadow .2s ease; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms, 0ms; }
html.js .rv.is-in { opacity: 1; translate: 0 0; }
html.js .rv.is-in .lp-eyebrow { animation: lp-drop .55s .15s both cubic-bezier(.2,1.3,.4,1); }
html.js .rv.is-in .in::before { animation: lp-num .6s calc(var(--d, 0ms) + .25s) both cubic-bezier(.2,1.3,.4,1); transform-origin: left bottom; }
html.js .rv:not(.is-in) .lp-eyebrow { opacity: 0; }

/* hover: cards tilt a little, like a sticker being picked up */
.lp-item, .lp-steps li, .lp-plan { transition: rotate .2s ease, box-shadow .2s ease, transform .2s ease; }
.lp-item:hover, .lp-steps li:hover { rotate: -1deg; }
.lp-plan:hover { rotate: -.6deg; box-shadow: 9px 9px 0 var(--ink); }
.lp-white .lp-item:hover, .lp-steps li:hover { box-shadow: 8px 8px 0 var(--ink); }
.lp-btn svg { transition: translate .15s ease; }
.lp-btn:hover svg { translate: 3px -3px; }

/* header: progress line (the orange "ink" fills as you scroll), shadow after the first scroll, current section */
.lp-top { transition: box-shadow .2s; }
.lp-top.scrolled { box-shadow: 0 4px 0 var(--ink); }
.lp-top::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 4px; width: calc(var(--p, 0) * 100%); background: var(--accent); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); box-sizing: content-box; opacity: 0; transition: opacity .2s; pointer-events: none; }
.lp-top.scrolled::after { opacity: 1; }
.lp-nav a { transition: background .15s; }
.lp-nav a.on { background: var(--yellow); }
.lp [id] { scroll-margin-top: 72px; }

@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 1; translate: none; transition: none; }
  html.js .rv:not(.is-in) .lp-eyebrow { opacity: 1; }
  .lp-hero *, .lp-hero-art, .lp-tag, .lp-pass, .lp-ticker-track, .lp-pass-stamps i, .rv .lp-eyebrow, .rv .in::before { animation: none !important; }
  .lp-pass { translate: none; rotate: none; }
}

/* gift above the example card: waits greyed out, opens when the 6th stamp lands */
.lp-pass-wrap { position: relative; width: 100%; max-width: 360px; padding-top: 112px; }
.lp-gift { position: absolute; top: 0; left: 50%; width: 120px; height: 112px; margin-left: -60px; display: flex; flex-direction: column; align-items: center; opacity: 0; pointer-events: none; }
.lp-gift svg { width: 84px; height: 84px; overflow: visible; }
.lp-gift svg rect, .lp-gift svg path { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.lp-gift .g-box { fill: var(--accent); }
.lp-gift .g-rib { fill: var(--yellow); }
.lp-gift .g-lid .g-rib2 { fill: var(--yellow); }
.lp-gift .g-lid rect { fill: #7a1c35; }
.lp-gift .g-lid { transform-origin: 60px 52px; transition: transform .5s cubic-bezier(.2,1.4,.4,1); }
.lp-gift b { margin-top: 2px; padding: 2px 10px; background: var(--ink); color: var(--yellow); border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lp-gift .sp { position: absolute; width: 10px; height: 10px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 2px; rotate: 45deg; opacity: 0; }
.lp-gift .s1 { left: 8px; top: 14px; } .lp-gift .s2 { right: 6px; top: 6px; } .lp-gift .s3 { left: 0; top: 52px; } .lp-gift .s4 { right: 0; top: 46px; }
.lp-pass-wrap.full .lp-gift { opacity: 1; animation: lp-gift 1s both cubic-bezier(.2,1.3,.4,1); }
.lp-pass-wrap.full .lp-gift .g-lid { animation: lp-lid 1.2s .5s both cubic-bezier(.2,1.3,.4,1); }
.lp-pass-wrap.full .lp-gift .sp { animation: lp-spark 1.4s .5s ease-out infinite; }
.lp-pass-wrap.full .lp-gift .s2 { animation-delay: .75s; } .lp-pass-wrap.full .lp-gift .s3 { animation-delay: 1s; } .lp-pass-wrap.full .lp-gift .s4 { animation-delay: 1.25s; }
@keyframes lp-gift { 0% { transform: translateY(30px) scale(.6) rotate(-8deg); } 60% { transform: translateY(-8px) scale(1.1) rotate(4deg); } 100% { transform: none; } }
@keyframes lp-lid { 0% { transform: none; } 55% { transform: translate(14px, -34px) rotate(22deg); } 100% { transform: translate(10px, -24px) rotate(16deg); } }
@keyframes lp-spark { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: translateY(-18px) scale(.4); } }
@media (prefers-reduced-motion: reduce) { .lp-gift, .lp-gift .sp, .lp-gift .g-lid { animation: none !important; transition: none; } }

/* advantages: keep the divider away from the cards (.lp p resets margins, so the selector is stronger) */
.lp .lp-who { margin-top: 80px; }
@media (max-width: 960px) { .lp .lp-who { margin-top: 56px; } }

/* plans: short cards, only what each plan adds */
.lp-plan li { padding: 7px 0; font-size: 14.5px; }
.lp-plan li.more { font-weight: 800; padding: 12px 0 6px; border-top: 2px solid currentColor; margin-top: 6px; }
.lp-plan li.more::before { content: '+'; display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; margin-right: 2px; background: var(--ink); color: var(--yellow); border-radius: 50%; font-weight: 800; line-height: 1; }
.lp-plan:nth-child(3n):not(.pop) li.more::before { background: var(--yellow); color: var(--ink); }
.lp-dark { min-height: 560px; display: flex; align-items: center; }
.lp-dark > .wrap { width: 100%; }
@media (max-width: 960px) { .lp-dark { min-height: 0; } }

/* no sideways scroll on the landing page (the tilted ticker is wider than the screen) */
html:has(.lp) { overflow-x: clip; }
.lp { overflow-x: clip; }

/* small icons on the cards: pop in with the card, hop on hover, a few move all the time */
.lp-ic { display: block; width: 46px; height: 46px; margin-bottom: 14px; }
.lp-ic svg { width: 100%; height: 100%; overflow: visible; fill: rgba(255,255,255,.6); stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: 50% 60%; }
.lp-ic .f { fill: var(--ink); stroke: none; }
html.js .rv.is-in .lp-ic svg { animation: lp-ic-in .7s calc(var(--d, 0ms) + .35s) both cubic-bezier(.2,1.5,.4,1); }
.lp-item:hover .lp-ic svg { animation: lp-hop .6s ease; }
.lp-white .ic-bell svg { animation: lp-ring 3.2s 1s ease-in-out infinite; transform-origin: 50% 10%; }
.lp-white .ic-card svg { animation: lp-float 3.6s ease-in-out infinite; }
.lp-white .ic-phone svg { animation: lp-buzz 4s 1.5s ease-in-out infinite; }
@keyframes lp-ic-in { 0% { opacity: 0; transform: scale(.2) rotate(-25deg); } 100% { opacity: 1; transform: none; } }
@keyframes lp-hop { 0%, 100% { transform: none; } 30% { transform: translateY(-8px) rotate(-8deg); } 60% { transform: translateY(0) rotate(6deg); } }
@keyframes lp-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(16deg); } 80% { transform: rotate(-14deg); } 85% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }
@keyframes lp-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes lp-buzz { 0%, 80%, 100% { transform: none; } 84% { transform: translateX(-3px) rotate(-4deg); } 88% { transform: translateX(3px) rotate(4deg); } 92% { transform: translateX(-2px); } 96% { transform: translateX(2px); } }

/* plans: the badge wiggles, the popular card breathes */
.lp-plan-badge { animation: lp-wiggle 3s 1.5s ease-in-out infinite; }
@keyframes lp-wiggle { 0%, 80%, 100% { transform: rotate(3deg); } 85% { transform: rotate(-4deg) scale(1.08); } 92% { transform: rotate(6deg) scale(1.08); } }

/* contact: the seal rolls in from the right like a wheel and settles in place, the stars twinkle */
html.js .lp-seal.rv { translate: none; opacity: 0; transition: none; }
html.js .lp-seal.rv.is-in { opacity: 1; animation: lp-roll 2.2s cubic-bezier(.12,.6,.25,1) both; }
.lp-seal .st { animation: lp-twinkle 2.4s ease-in-out infinite; }
.lp-seal .st:nth-child(2) { animation-delay: .4s; } .lp-seal .st:nth-child(3) { animation-delay: .8s; }
@keyframes lp-roll { 0% { translate: 62vw 0; rotate: 560deg; } 78% { translate: -10px 0; rotate: -14deg; } 90% { translate: 4px 0; rotate: 5deg; } 100% { translate: 0 0; rotate: 0deg; } }
@keyframes lp-twinkle { 0%, 60%, 100% { opacity: 1; } 75% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .lp-ic svg, .lp-plan-badge, .lp-seal, .lp-seal .st { animation: none !important; } html.js .lp-seal.rv { scale: 1; opacity: 1; } }

/* round badge next to the example card: the ring of text turns all the time */
.lp-badge { position: absolute; left: -6px; bottom: 6px; width: 132px; height: 132px; z-index: 2; filter: drop-shadow(4px 4px 0 var(--ink)); rotate: -8deg; }
.lp-badge .ring { transform-origin: 50% 50%; animation: lp-spin 18s linear infinite; }
.lp-badge text { font-family: var(--font); font-weight: 800; font-size: 11.5px; fill: var(--ink); text-transform: uppercase; }
.lp-badge .big { font-size: 30px; fill: var(--yellow); letter-spacing: -0.03em; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) { .lp-badge { width: 100px; height: 100px; left: 0; bottom: -4px; } }

/* plans: the buttons hop a little, one after another */
.lp-plan .lp-btn { animation: lp-btn-hop 4.5s 2.2s ease-in-out infinite; }
.lp-plan:nth-child(2) .lp-btn { animation-delay: 2.8s; } .lp-plan:nth-child(3) .lp-btn { animation-delay: 3.4s; }
@keyframes lp-btn-hop { 0%, 12%, 100% { transform: none; } 4% { transform: translateY(-6px); } 8% { transform: translateY(0); } 10% { transform: translateY(-2px); } }

/* features: a stamp lands on the card on hover */
@media (hover: hover) {
  .lp-ink .lp-item { position: relative; }
  .lp-ink .lp-item::after { content: ''; position: absolute; right: 14px; top: 14px; width: 58px; height: 58px; opacity: 0; rotate: -16deg; scale: 2.6; transition: opacity .12s, scale .22s cubic-bezier(.5,0,.9,.4); pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 58' fill='none' stroke='%2312120f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='29' cy='29' r='25' stroke-dasharray='4 5'/%3E%3Cpath d='M18 30l8 8 14-17' stroke-width='4.5'/%3E%3C/svg%3E") center / contain no-repeat; }
  .lp-ink .lp-item:hover::after { opacity: .85; scale: 1; transition-delay: .05s; }
}

/* how it works: a line with three dots that light up while you scroll */
.lp-track { position: relative; height: 26px; margin: 0 0 20px; }
.lp-track::before { content: ''; position: absolute; left: 16.67%; right: 16.67%; top: 11px; height: 4px; background: rgba(18,18,15,.15); border-radius: 2px; }
.lp-track-bar { position: absolute; left: 16.67%; top: 11px; height: 4px; width: calc(66.66% * var(--tp, 0)); background: var(--ink); border-radius: 2px; }
.lp-track i { position: absolute; top: 0; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: #fff5e1; border: 3px solid var(--ink); transition: background-color .3s, scale .4s cubic-bezier(.2,1.6,.4,1); }
.lp-track i:nth-of-type(1) { left: 16.67%; } .lp-track i:nth-of-type(2) { left: 50%; } .lp-track i:nth-of-type(3) { left: 83.33%; }
.lp-track i.on { background: var(--accent); scale: 1.25; }
.lp-track i.on::after { content: ''; position: absolute; left: 50%; top: 45%; width: 9px; height: 5px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translate(-50%, -50%) rotate(-45deg); }
@media (max-width: 960px) { .lp-track { display: none; } }

/* small touches: the logo mark wobbles, button arrows nudge */
.lp-logo:hover img { animation: lp-hop .6s ease; }
.lp-btn svg { transition: translate .18s ease; }
.lp-btn:hover svg { translate: 3px -2px; }
@media (prefers-reduced-motion: reduce) { .lp-badge .ring, .lp-plan .lp-btn { animation: none !important; } }

/* stamps counter instead of the "example card" tag */
.lp-count { text-transform: none; letter-spacing: 0; text-align: center; padding: 8px 16px 9px; }
.lp-count b { display: block; font-size: 26px; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lp-count span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
/* badge is a link now */
a.lp-badge-link { position: absolute; left: -6px; bottom: 6px; width: 132px; height: 132px; z-index: 3; border-radius: 50%; transition: scale .2s cubic-bezier(.2,1.6,.4,1), rotate .2s; rotate: -8deg; }
a.lp-badge-link .lp-badge { position: static; left: auto; bottom: auto; rotate: none; width: 100%; height: 100%; display: block; }
a.lp-badge-link:hover { scale: 1.08; rotate: -3deg; }
a.lp-badge-link:hover .lp-badge .ring { animation-duration: 6s; }
a.lp-badge-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
@media (max-width: 960px) { a.lp-badge-link { width: 100px; height: 100px; left: 0; bottom: -4px; } }

/* ===== tablets and phones: no tilted cards, long lists become swipeable rows ===== */
@media (max-width: 960px) {
  .lp { --gx: 24px; }
  .lp-white .lp-item:nth-child(2), .lp-steps li:nth-child(2) { transform: none; rotate: none; }
  .lp-item:hover, .lp-steps li:hover, .lp-plan:hover { rotate: none; }
  .lp .lp-hero-in { padding-top: 40px; }
  .lp-count { right: 0; top: -6px; padding: 6px 12px 7px; }
  .lp-count b { font-size: 21px; }
  .lp-count span { font-size: 10.5px; }

  /* swipeable rows: the next card peeks in from the right, cards snap into place */
  .lp-steps, .lp-grid2, .lp-plans {
    display: grid; grid-auto-flow: column; grid-template-columns: none; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gx) * -1); padding: 22px var(--gx) 28px; scroll-padding-inline: var(--gx); scrollbar-width: none;
  }
  .lp-steps::-webkit-scrollbar, .lp-grid2::-webkit-scrollbar, .lp-plans::-webkit-scrollbar { display: none; }
  .lp-steps > li, .lp-grid2 > .lp-item, .lp-plans > .lp-plan { scroll-snap-align: start; }
  .lp-steps { grid-auto-columns: calc((100% - 32px) / 3); }
  .lp-white .lp-grid2 { grid-auto-columns: calc((100% - 32px) / 3); }
  .lp-ink .lp-grid2 { grid-template-rows: repeat(2, auto); grid-auto-columns: calc((100% - 16px) / 2.3); }
  .lp-plans { grid-auto-columns: calc((100% - 16px) / 2.2); gap: 20px; }
  .lp-split { gap: 8px; }
}
@media (max-width: 640px) {
  .lp { --gx: 16px; }
  .lp .lp-hero-in { padding-top: 56px; gap: 28px; }
  .lp-hero-art { padding-top: 40px; }
  .lp-steps, .lp-white .lp-grid2 { grid-auto-columns: 80%; }
  .lp-ink .lp-grid2 { grid-auto-columns: 72%; }
  .lp-plans { grid-auto-columns: 86%; }
  .lp-item { padding: 20px; }
}
@media (max-width: 640px) { .lp h1 { line-height: 1.02; letter-spacing: -0.04em; } }

/* ===== burger menu (tablet and phone) ===== */
.lp-burger, .lp-menu { display: none; }
@media (max-width: 960px) {
  .lp-top #lang { display: none; }
  .lp-burger { display: block; position: relative; width: 44px; height: 44px; flex: none; padding: 0; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
  .lp-burger i { position: absolute; left: 9px; right: 9px; height: 3px; background: var(--ink); border-radius: 2px; transition: top .2s, rotate .25s, opacity .15s, scale .2s; }
  .lp-burger i:nth-child(1) { top: 10px; } .lp-burger i:nth-child(2) { top: 17.5px; } .lp-burger i:nth-child(3) { top: 25px; }
  .lp-burger.open { background: var(--accent); }
  .lp-burger.open i:nth-child(1) { top: 17.5px; rotate: 45deg; }
  .lp-burger.open i:nth-child(2) { opacity: 0; scale: 0 1; }
  .lp-burger.open i:nth-child(3) { top: 17.5px; rotate: -45deg; }
  .lp-menu:not([hidden]) { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 3px solid var(--ink); max-height: calc(100vh - 64px); overflow-y: auto; animation: lp-menu-in .22s ease-out; counter-reset: m; }
  .lp-menu .wrap { padding-top: 6px; padding-bottom: 22px; }
  .lp-menu a:not(.lp-btn) { counter-increment: m; display: flex; align-items: baseline; gap: 14px; padding: 15px 4px; border-bottom: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
  .lp-menu a:not(.lp-btn)::before { content: '0' counter(m); font-size: 13px; letter-spacing: .06em; color: var(--accent); -webkit-text-stroke: .6px var(--ink); }
  .lp-menu a.on:not(.lp-btn) { background: var(--yellow); padding-left: 12px; }
  .lp-menu .lp-btn { display: flex; justify-content: center; margin-top: 20px; }
  .lp-menu #langMenu { display: flex; width: 100%; margin-top: 18px; }
  .lp-menu #langMenu button { flex: 1; padding: 11px 18px; font-size: 14px; }
}
@keyframes lp-menu-in { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 961px) { .lp-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .lp-menu { animation: none !important; } }

/* ===== phone: a lighter first screen ===== */
@media (max-width: 640px) {
  .lp-hero-art { padding: 44px 0 56px; }
  .lp-pass-wrap { max-width: 290px; padding-top: 100px; }
  .lp-pass { padding: 18px 18px 20px; box-shadow: 5px 5px 0 var(--ink); border-radius: 18px; }
  .lp-pass-top { font-size: 15px; }
  .lp-pass-row { margin-top: 14px; }
  .lp-pass-row b { font-size: 24px; }
  .lp-pass-stamps { padding: 10px; gap: 6px; }
  .lp-pass-stamps i { width: 30px; height: 30px; }
  .lp-pass-qr { padding: 10px; }
  .lp-pass-qr svg { width: 112px; height: 112px; }
  a.lp-badge-link { width: 92px; height: 92px; left: auto; right: -2px; bottom: 10px; }
  .lp-gift { transform-origin: 50% 100%; scale: .85; }
}

/* ===== smoother edges on tilted things (the browser leaves them jagged otherwise) ===== */
.lp-eyebrow, .lp-count, .lp-plan-badge, .lp-pass, .lp-ticker, .lp-badge-link, .lp-steps li:nth-child(2), .lp-white .lp-item:nth-child(2), .lp-gift { will-change: transform; backface-visibility: hidden; }
.lp-eyebrow, .lp-count, .lp-plan-badge, .lp-pass { outline: 1px solid transparent; }

/* ===== long Georgian words must fit a phone: smaller headings, no hidden overflow ===== */
.lp-split, .lp-head, .lp-end-in, .lp-end-text, .lp-hero-text, .lp-head > *, .lp-split > * { min-width: 0; }
.lp h1, .lp h2, .lp h3, .lp p { overflow-wrap: break-word; }
.lp-gift { height: 112px; }
.lp-pass-wrap { padding-top: 124px; }
@media (max-width: 960px) {
  .lp-head { grid-template-columns: minmax(0, 1fr); }
  .lp-end-in { display: block; }
  .lp .lp-dark h2 { max-width: none; }
}
@media (max-width: 640px) {
  .lp h2 { font-size: clamp(27px, 8vw, 36px); line-height: 1.08; }
  .lp .lp-dark h2 { font-size: clamp(27px, 8.4vw, 38px); }
  html[lang="ka"] .lp h1 { font-size: clamp(30px, 8.6vw, 38px); line-height: 1.12; letter-spacing: -0.02em; }
  html[lang="ka"] .lp h2, html[lang="ka"] .lp .lp-dark h2 { font-size: clamp(25px, 7.4vw, 32px); letter-spacing: -0.02em; }
  html[lang="ka"] .lp-who { font-size: 20px; }
  .lp-eyebrow { font-size: 11px; letter-spacing: .03em; padding: 6px 10px; line-height: 1.25; max-width: 100%; text-wrap: balance; }
  .lp-pass-wrap { padding-top: 126px; }
  a.lp-badge-link { width: 84px; height: 84px; right: -4px; bottom: 2px; }
  .lp-hero-art { padding-bottom: 40px; }
  .lp-btn.big { font-size: 16px; }
  .pg-footer { padding-left: 16px; padding-right: 16px; line-height: 1.7; }
}
@media (max-width: 960px) { .lp-plans { align-items: start; } }

/* fox animations on feature cards */
.lp-media { width: 80px; height: 80px; border: 2.5px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fde8ce; margin-bottom: 16px; box-shadow: 3px 3px 0 var(--ink); transition: box-shadow .2s ease; }
.lp-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-item:hover .lp-media { box-shadow: 5px 5px 0 var(--ink); }

/* logo lockup + fox mark on the sample pass */
a.su-brand img { width: auto; height: 56px; }
.lp-pass-logo { overflow: hidden; border: 2px solid var(--ink); }
.lp-pass-logo img { display: block; width: 24px; height: auto; margin-top: 3px; }


/* ---------- owner: Notifications (modules + editor) ---------- */
.nt-lang { display: flex; gap: 12px; align-items: flex-start; background: var(--yellow-soft); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.nt-lang > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; margin-top: 1px; }
.nt-lang b { display: block; color: var(--ink); }
.nt-lang span { color: var(--ink-2); }
.nt-other { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 0; font-weight: 400; }
.nt-other select { width: auto; min-width: 140px; padding-top: 6px; padding-bottom: 6px; }
.nt-group { margin-top: 22px; }
.nt-group > .eyebrow { display: block; margin-bottom: 10px; }
.nt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.nt-card { display: flex; flex-direction: column; gap: 8px; text-align: left; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard-sm); padding: 14px; cursor: pointer; font: inherit; color: inherit; transition: box-shadow .1s, transform .1s; min-width: 0; }
.nt-card:hover, .nt-card:focus-visible { box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px); outline: none; }
.nt-card.off { background: var(--field); }
.nt-card.off .nt-ico { background: var(--surface); color: var(--muted); border-color: var(--muted); }
.nt-top { display: flex; align-items: center; gap: 10px; }
.nt-top b { flex: 1; font-size: 15px; line-height: 1.3; font-weight: 800; }
.nt-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); display: grid; place-items: center; flex: none; }
.nt-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nt-when { font-size: 13px; color: var(--muted); }
.nt-snip { font-size: 13.5px; color: var(--ink-2); background: var(--field); border-radius: var(--radius-sm); padding: 8px 10px; }
.nt-snip span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-card.off .nt-snip { color: var(--muted); }
.nt-sheet { max-width: 600px; }
.nt-dlg-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.nt-dlg-head .eyebrow { font-size: 17px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); border: 0; padding: 0; margin: 0; }
.nt-dlg-head .nt-ico { width: 42px; height: 42px; }
.nt-params { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; margin-bottom: 6px; }
.nt-params.dimmed, .nt-text.dimmed { opacity: .5; }
.nt-tabs { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; margin: 10px 0 12px; }
.nt-tabs button { border: 0; background: var(--surface); padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink); }
.nt-tabs button + button { border-left: 2px solid var(--ink); }
.nt-tabs button.on { background: var(--ink); color: var(--yellow); }
.nt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.nt-chips button { border: 1px dashed var(--line-strong); background: var(--surface); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.nt-chips button:hover { border-color: var(--accent); color: var(--accent-text); }
.nt-chips .lbl { font-size: 12.5px; color: var(--muted); align-self: center; margin-right: 2px; }
.nt-phone { margin-top: 12px; background: var(--ink); border-radius: 14px; padding: 12px; }
.nt-phone-bar { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); margin: 0 4px 8px; }
.nt-push { display: flex; gap: 10px; background: rgba(255,255,255,.94); border-radius: 12px; padding: 10px 12px; }
.nt-push img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.nt-push > div { min-width: 0; flex: 1; }
.nt-push-app { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.nt-push b { display: block; font-size: 14px; margin-top: 1px; }
.nt-push p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.nt-rule { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; }
.nt-rule .chip { display: inline-flex; align-items: center; gap: 4px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 13.5px; font-weight: 800; }
.nt-rule .chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 5px; border-radius: 50%; }
.nt-rule .chip button:hover { background: rgba(18,18,15,.15); }
.nt-rule input { width: 92px; padding-top: 5px; padding-bottom: 5px; }
.nt-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.nt-presets button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-sm); padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.nt-presets button:hover { border-color: var(--accent); color: var(--accent-text); }
.nt-every { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; font-size: 14.5px; }
.nt-every input[type=number] { width: 80px; }
.nt-every input[type=checkbox] { width: 20px; }
@media (max-width: 560px) { .nt-grid { grid-template-columns: 1fr; } }

/* ---------- guest: rate a visit ---------- */
.stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 6px; }
.stars button { background: none; border: 0; padding: 4px; cursor: pointer; border-radius: 50%; transition: transform .12s; }
.stars button:hover { transform: scale(1.08); }
.stars svg { width: 44px; height: 44px; fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; transition: fill .12s; }
.stars button.on svg { fill: var(--yellow); stroke: var(--ink); }
.star-label { font-size: 14px; color: var(--muted); min-height: 21px; margin-bottom: 14px; }
#googleBox { margin-top: 18px; }
#googleBox .rule { margin-bottom: 12px; }

/* ---------- owner: Reviews tab ---------- */
.rv-top { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: center; }
.rv-avg { text-align: center; }
.rv-avg b { display: block; font-size: 48px; line-height: 1.1; font-weight: 800; }
.rv-avg .st { color: #f2b01e; font-size: 20px; letter-spacing: 2px; }
.rv-bars { display: grid; gap: 6px; }
.rv-bar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.rv-bar i { display: block; height: 12px; border-radius: 99px; background: var(--surface); border: 2px solid var(--ink); overflow: hidden; }
.rv-bar i span { display: block; height: 100%; background: var(--accent); }
.rv-tiles { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.rv-tiles b { color: var(--ink); }
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv-list li { border-top: 1px solid var(--line); padding: 12px 0; }
.rv-list .head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: 14px; }
.rv-list .st { color: #f2b01e; letter-spacing: 1px; }
.rv-list .st.low { color: var(--danger); }
.rv-list .c { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .rv-top { grid-template-columns: 1fr; } }
.rv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 14px; flex-wrap: wrap; }
.rv-head .eyebrow { flex: 1; }
.rv-head select { width: auto; margin-bottom: 12px; }
.branch .rvurl { grid-column: 2 / 4; }
.branch .rvurl input { font-size: 14px; }
@media (max-width: 640px) { .branch .rvurl { grid-column: 2 / 4; } }
#rvBranches { margin-top: 18px; }
#rvBranches table { width: 100%; }
.rv-head select + select { margin-left: 0; }

/* ---------- venue sign-up (free trial) ---------- */
.guest-card.signup-card { max-width: 480px; }
.signup-card .in { padding-top: 52px; }
.signup-card .band { background: var(--accent); }
.su-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--ink); text-decoration: none; }
.su-brand img { width: 34px; height: 34px; display: block; }
.su-brand b { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; text-transform: lowercase; line-height: 1; }
.su-perks { list-style: none; margin: -10px 0 22px; padding: 0; text-align: left; display: grid; gap: 6px; font-size: 14px; }
.su-perks li { padding-left: 24px; position: relative; color: var(--ink-2); }
.su-perks li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.su-slug { display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.su-slug span { padding: 0 2px 0 12px; display: flex; align-items: center; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.su-slug input { border: 0; background: transparent; padding-left: 0; min-width: 0; flex: 1; box-shadow: none; }
.su-slug:focus-within { box-shadow: 3px 3px 0 var(--accent); background: #fff; }
.ok-text { color: var(--ok); }
.err-text { color: var(--danger); }
.su-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.su-ts:not(:empty) { margin: 6px 0 12px; }
.su-pin { background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard-sm); padding: 16px; margin: 0 0 18px; display: grid; gap: 4px; }
.su-pin span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 800; }
.su-pin b { font-size: 36px; letter-spacing: .2em; font-variant-numeric: tabular-nums; font-weight: 800; }
.su-pin small { color: var(--ink-2); font-size: 13px; }
.trial-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard-sm); padding: 12px 16px; margin-bottom: 20px; font-size: 14.5px; font-weight: 600; }
.trial-bar b { color: var(--ink); }
.trial-bar .push { margin-left: auto; }

/* preview of the stamp strip (Program settings) */
.stamp-prev { display: flex; gap: 10px; padding: 16px 18px; border-radius: var(--radius); margin: 8px 0 6px; flex-wrap: wrap; border: 2px solid var(--ink); }
.stamp-prev i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 17px; opacity: 1; }
.stamp-prev i:not([style*="background"]) { opacity: .5; }
#stampHint.warn-text { color: var(--warn); }

/* ---------- super-admin: calmer layout, 1300 px wide ---------- */
body.admin .wrap { max-width: 1300px; }
body.admin .ad-head { align-items: flex-end; margin: 28px 0 18px; }
body.admin .ad-head h1 { margin: 0; font-size: 30px; }
.ad-totals { color: var(--muted); font-size: 14px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ad-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.ad-tools { display: flex; gap: 8px; margin-left: auto; }
.ad-tools input { width: 240px; padding-top: 8px; padding-bottom: 8px; }
.ad-tools select { width: auto; padding-top: 8px; padding-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 2px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.chip:hover { background: var(--yellow-soft); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.chip.on b { color: rgba(255,212,59,.8); }
.chip.warn:not(.on) { background: var(--yellow); color: var(--ink); }
.chip.warn:not(.on) b { color: var(--ink); }
.chip.bad:not(.on) { background: #ffb9ac; color: var(--ink); }
.chip.bad:not(.on) b { color: var(--ink); }
.panel.flush { padding: 0; overflow: hidden; }
.ad-table { width: 100%; }
.ad-table th { padding: 12px 14px; }
.ad-table td { padding: 12px 14px; vertical-align: middle; }
.ad-table th:first-child, .ad-table td:first-child { padding-left: 20px; }
.ad-table th:last-child, .ad-table td:last-child { padding-right: 20px; }
.ad-table tbody tr:hover td { background: var(--yellow-soft); }
.ad-table .vn .code { display: block; color: var(--muted); font-family: inherit; margin-top: 1px; }
.acts-cell { white-space: nowrap; text-align: right; }
.acts-cell button + button { margin-left: 6px; }
.icon-btn { min-width: 34px; font-weight: 700; letter-spacing: 1px; }
.ad-errors { padding: 0; }
.ad-err-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 20px; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; color: inherit; }
.ad-err-head .eyebrow { margin: 0; border: 0; padding: 0; }
.ad-err-sum { font-size: 14px; color: var(--muted); }
.ad-err-sum.bad { color: var(--danger); }
.ad-err-sum.ok::before { content: '●'; color: var(--ok); margin-right: 6px; font-size: 10px; vertical-align: 2px; }
.ad-chev { margin-left: auto; color: var(--muted); transition: transform .15s; }
.ad-err-head[aria-expanded="true"] .ad-chev { transform: rotate(180deg); }
#errBody { padding: 0 20px 18px; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 760px) {
  .ad-tools { margin-left: 0; width: 100%; }
  .ad-tools input { flex: 1; width: auto; }
}
body.admin #errBody select, body.admin #errBody button { padding-top: 8px; padding-bottom: 8px; }

/* ---------- owner cabinet: calmer, 1300 px ---------- */
.cab-wrap { max-width: 1300px; }
@media (min-width: 980px) {
  .cab { grid-template-columns: 220px minmax(0, 1fr); column-gap: 40px; }
  .cab > nav.tabs.side { grid-row: 1 / span 2; padding-top: 30px; }
  .cab > .page-title { grid-column: 2; }
}
.cab-main .eyebrow { border-bottom: 0; padding-bottom: 0; margin-bottom: 14px; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard); margin-bottom: 20px; }
.stats > div { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stats > div + div { border-left: 2px solid var(--ink); }
.stats b { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stats span { font-size: 13.5px; color: var(--ink); font-weight: 700; }
.stats small { font-size: 12.5px; color: var(--muted); }
.stats small i { font-style: normal; color: var(--ink-2); font-weight: 600; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 2px solid var(--ink); }
}
.check-head { display: flex; align-items: baseline; gap: 10px; }
.check-head .eyebrow { margin-bottom: 8px; }
.plan-panel { padding: 12px 20px; }
.plan-panel .plan-head .eyebrow { margin: 0; }
#activity.short li:nth-child(n+9) { display: none; }
.plan-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.plan-panel .plan-head { display: contents; }
.plan-panel .plan-usage { order: 2; margin: 0; }
.plan-panel #planCompare { order: 3; margin-left: auto; }
.plan-panel .plan-warn { order: 4; flex-basis: 100%; }
.cab-main .chart { height: 130px; }
.chip.new:not(.on) { background: var(--accent-soft); color: var(--ink); }
.chip.new:not(.on) b { color: var(--ink); }

/* online payment of the plan (owner cabinet) */
.pay-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.pay-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 12px 14px; background: var(--yellow-soft); border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.pay-total b { font-size: 22px; }
#payBox p { line-height: 1.5; }
#payBox .ghost.block { margin-top: 10px; text-align: center; }
/* two ways to pay in the dialog: card and bank transfer */
.pay-ways { display: grid; gap: 14px; }
.pay-way .hint { margin: 6px 0 0; }
/* Billing tab: plan and paid time, invoices waiting for payment, the list */
.bill-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.bill-head .plan-name { display: block; font-size: 24px; margin-top: 2px; }
.bill-state { margin-top: 4px; font-weight: 600; color: var(--muted); }
.bill-state.late { color: var(--ink); background: var(--yellow); display: inline-block; padding: 2px 8px; border-radius: 4px; }
.bill-actions { gap: 8px; }
.bill-status .plan-lock { margin-top: 14px; }
.bill-ways { margin-top: 14px; }
.bill-due { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding: 12px 14px;
  background: var(--yellow-soft); border: 2px solid var(--ink); border-radius: var(--radius-sm); text-align: left; }
.bill-due b { display: block; }
.bill-due span { font-size: 13.5px; color: var(--muted); }
.bill-due.late { background: #fbebeb; }
.bill-due.checking { background: #e5f4e4; }
.bill-due .row { gap: 8px; }
.bill-last { margin-top: 18px; text-align: left; display: grid; gap: 6px; }
.badge.late { background: #f6c9c4; color: var(--ink); }
.bill-table td .row { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
#payBoxInvoices { margin-top: 6px; }

/* super-admin: plans and online payment */
.ad-panel-head select.inv-filter { width: auto; min-width: 200px; max-width: 60%; margin: 0; }
.ad-panel-sub { padding: 0 20px; margin: 4px 0 8px; }
.ad-table td .row { flex-wrap: nowrap; justify-content: flex-end; gap: 6px; }
#iRows .hint { white-space: normal; max-width: 240px; }
.modal .sheet.form.wide-x { max-width: 980px; }
/* owner: what guests collect */
.unit-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.unit-pick label { margin: 0; cursor: pointer; }
.unit-pick input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.unit-pick span { display: inline-block; padding: 7px 14px; border: 2px solid var(--ink); border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--surface); transition: background .12s; }
.unit-pick label:hover span { background: var(--yellow-soft); }
.unit-pick input:checked + span { background: var(--accent); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.unit-pick input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.unit-own { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
@media (max-width: 640px) { .unit-own { grid-template-columns: 1fr 1fr; } .unit-own > div:last-child { grid-column: 1 / -1; } }

/* super-admin: texts */
.tx-bar { display: grid; grid-template-columns: 1fr 220px 180px auto; gap: 8px; align-items: center; margin: 4px 0 12px; position: sticky; top: -30px; background: var(--surface); padding: 8px 0; z-index: 1; }
.tx-list { border-top: 1px solid var(--line); }
.tx-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tx-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.tx-key > span:first-child { margin-right: 4px; font-family: var(--mono); word-break: break-word; }
.tx-key .badge { font-size: 11px; }
.tx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tx-f { margin: 0; }
.tx-l { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 3px; min-height: 20px; }
.tx-f textarea { min-height: 0; padding: 7px 9px; font-size: 14px; line-height: 1.4; resize: vertical; }
.tx-f.changed .tx-l { color: var(--accent-text); }
.tx-f.changed textarea { border-color: var(--accent); background: #fff; }
.tx-reset { border: 0; background: var(--accent-soft); color: var(--accent-text); border-radius: 99px; width: 20px; height: 20px; line-height: 1; cursor: pointer; font-size: 13px; padding: 0; }
@media (max-width: 760px) {
  .tx-bar { grid-template-columns: 1fr 1fr; top: -16px; }
  .tx-bar #txQ { grid-column: 1 / -1; }
  .tx-two { grid-template-columns: 1fr; gap: 8px; }
}
.pl-admin td { vertical-align: top; }
.pl-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pl-feats .check { margin: 6px 0; }
@media (max-width: 640px) { .pl-feats { grid-template-columns: 1fr; } }
.row.nowrap { flex-wrap: nowrap; }
.row.nowrap select, .row.nowrap input { flex: 1; min-width: 0; }
.sheet .acts .push { margin-left: auto; }
.eyebrow.mt { margin-top: 18px; }

/* guest: "All messages" (/v/<venue>/messages) */
.guest-center.top { align-items: flex-start; padding-top: 32px; }
.guest-card.inbox-card { max-width: 460px; }
.inbox-card .ib-list, .inbox-card .ib-older { text-align: left; }
.ib-msg { border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; background: var(--surface); }
.ib-msg.new { box-shadow: 4px 4px 0 var(--venue, var(--ink)); }
.ib-date { font-size: 12px; color: var(--muted); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.ib-h { font-size: 16px; font-weight: 800; margin: 0 0 4px; line-height: 1.35; }
.ib-b { margin: 0; color: var(--ink-2); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.ib-empty { color: var(--muted); padding: 18px 0; text-align: center; }
.ib-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 4px 0 10px; padding: 11px 12px;
  background: var(--surface); border: 2px dashed var(--ink); border-radius: var(--radius-sm); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ib-toggle:hover { background: var(--yellow-soft); }
.ib-toggle svg { width: 16px; height: 16px; transition: transform .25s ease; }
.ib-toggle.on svg { transform: rotate(180deg); }
.ib-older { overflow: hidden; transition: max-height .35s ease; }
.ib-older .ib-msg { opacity: .92; }
.ib-month { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 8px; }
@media (prefers-reduced-motion: reduce) { .ib-older, .ib-toggle svg { transition: none; } }
/* ----- super-admin: sections in the menu on the left (the layout itself is the owner cabinet's .cab) ----- */
/* a number next to a section in the menu: venues; errors of the last 24 hours (red) */
.nav-count { margin-left: auto; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); background: #efe5cc; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 8px; line-height: 1.5; }
.nav-count.bad { background: var(--danger); color: #fff; border-color: var(--ink); }
.tabs.side button.on .nav-count:not(.bad) { background: #fff; color: var(--ink); }
body.admin .tabs.side button { width: 100%; }
/* a bar above a table: filters or a short explanation on the left, actions on the right */
body.admin .ad-bar { align-items: center; }
body.admin .ad-tools { align-items: center; }
body.admin .ad-tools .main, body.admin .ad-tools .ghost { white-space: nowrap; }
.ad-lead { flex: 1 1 360px; max-width: 720px; }
.ad-panel-head { padding: 16px 20px 4px; }
.ad-err-top { margin-bottom: 14px; }
body.admin section > .hint { margin: -6px 2px 0; }
/* tables next to the menu have less room than a full-width page: tighter columns, and the venue's second
   line (address · cashiers · branches) wraps instead of pushing the buttons out of sight */
@media (min-width: 980px) {
  body.admin .cab-main .ad-table th, body.admin .cab-main .ad-table td { padding-left: 10px; padding-right: 10px; }
  body.admin .cab-main .ad-table th:first-child, body.admin .cab-main .ad-table td:first-child { padding-left: 20px; }
  body.admin .cab-main .ad-table th:last-child, body.admin .cab-main .ad-table td:last-child { padding-right: 16px; }
  body.admin .cab-main .ad-table td:first-child { white-space: normal; min-width: 210px; }
  body.admin .cab-main .ad-table .vn > div { min-width: 0; }
  body.admin .cab-main .ad-table .vn .code { white-space: normal; overflow-wrap: anywhere; }
  body.admin .cab-main .pl-admin td:first-child { min-width: 170px; }
}
/* a narrow laptop: the table scrolls sideways, the buttons of each row stay in view on the right */
@media (min-width: 980px) {
  body.admin .cab-main .ad-table td.acts-cell { position: sticky; right: 0; background: var(--surface); box-shadow: -10px 0 10px -10px rgba(18, 18, 15, .25); }
  body.admin .cab-main .ad-table tbody tr:hover td.acts-cell { background: var(--yellow-soft); }
}
/* Overview: what needs a decision. One line = what, which venues, and a button to the place where it is fixed */
.ad-todo li { align-items: flex-start; gap: 12px; padding: 12px 0; }
.ad-todo li:first-child { padding-top: 6px; }
.ad-todo li:last-child { padding-bottom: 2px; }
.ad-todo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; margin-top: 7px; }
.ad-todo li.bad .dot { background: var(--danger); }
.ad-todo li.warn .dot { background: #e0962a; }
.ad-todo li.new .dot { background: var(--accent); }
.ad-todo li.ok .dot { background: var(--ok); }
.ad-todo .what b { display: block; font-weight: 600; font-size: 14.5px; }
.ad-todo li.bad .what b { color: var(--danger); }
.ad-todo .what .hint { display: block; margin-top: 2px; }
.ad-todo button { flex: none; }
.ad-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ad-two .panel { margin-bottom: 0; }
.ad-two .eyebrow { margin-bottom: 0; }
.ad-rank { margin-top: 8px; }
.ad-rank li { justify-content: space-between; gap: 12px; }
.ad-rank .what { min-width: 0; }
.ad-rank .what b, .ad-rank .what .linklike { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ad-rank .what .hint { display: block; margin-top: 1px; }
.ad-rank .n { flex: none; font-variant-numeric: tabular-nums; font-size: 14.5px; text-align: right; }
.ad-rank b.n { font-size: 18px; letter-spacing: -0.01em; }
.linklike { border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.linklike:hover { color: var(--accent-text); text-decoration: underline; }
/* Texts as a page: the search stays under the top edge while the list scrolls */
.tx-page .tx-bar { top: 0; margin-top: 12px; }
body.admin .ad-tools .main, body.admin .ad-tools .ghost { padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 979px) {
  .ad-two { grid-template-columns: 1fr; }
  .tx-page .tx-bar { position: static; }
  /* the closed menu shows only the open section: no numbers in it (they are in the list when it opens) */
  .cab > .tabs.side:not(.open) .nav-count { display: none; }
  /* search over the whole width, then the plan filter and the main button side by side */
  body.admin .ad-bar .ad-tools { flex-wrap: wrap; }
  body.admin .ad-tools input { order: 1; flex: 1 1 100%; }
  body.admin .ad-tools select { order: 2; flex: 1 1 0; max-width: none; }
  body.admin .ad-tools .main, body.admin .ad-tools .ghost { order: 3; flex: 1 1 0; justify-content: center; text-align: center; }
  body.admin .ad-lead { flex-basis: 100%; }
}
.ad-daily { padding: 16px 20px; }
.ad-daily .eyebrow { margin: 0 0 4px; border: 0; padding: 0; }
.ad-daily-sum { font-size: 14px; color: var(--muted); }
.ad-daily .ok { color: var(--ok); font-weight: 600; }
.ad-daily .bad { color: var(--danger); font-weight: 600; }
.ad-daily .code { font-family: ui-monospace, monospace; font-size: 12px; background: var(--field); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

/* =====================================================================
   PHONES — the work screens (owner cabinet, super-admin, cashier) on a narrow screen.
   Kept together at the end, so it wins over the desktop rules above.
   Tables become rows / cards: public/assets/responsive.js puts each column title on its cells (data-label).
   The section switcher (one button "current section ▾") is run by owner.js.
   ===================================================================== */
@media (max-width: 979px) {
  /* ---- section switcher: one button with the current section; a tap opens the grouped list ---- */
  .cab > .page-title { display: none; } /* the switcher shows the section name */
  .cab > .tabs.side {
    position: sticky; top: 0; z-index: 30; display: block; overflow: visible;
    margin: 0 -16px 16px; padding: 10px 16px; background: var(--bg);
    border: 0; border-bottom: 2px solid var(--ink); -webkit-mask-image: none; mask-image: none;
  }
  .cab > .tabs.side .nav-group { display: contents; }
  .cab > .tabs.side .nav-label { display: none; }
  .cab > .tabs.side button { display: none; }
  .cab > .tabs.side svg { display: block; width: 18px; height: 18px; flex: none; }
  .cab > .tabs.side button.on {
    display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 11px 14px;
    background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; box-shadow: var(--hard-sm);
    font-size: 16px; font-weight: 800; color: var(--ink); text-align: left; white-space: nowrap;
  }
  .cab > .tabs.side button.on::after {
    content: ''; margin-left: auto; width: 18px; height: 18px; flex: none; background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* the open list: a sheet from the top over a dimmed page */
  .cab > .tabs.side.open {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60; margin: 0; padding: 8px 12px 14px;
    max-height: 86vh; overflow-y: auto; background: var(--surface); border-bottom: 0;
    border-radius: 0 0 16px 16px; border-bottom: 2px solid var(--ink); box-shadow: 0 0 0 100vmax rgba(18, 18, 15, .55);
    animation: pg-sheet .18s ease-out;
  }
  .cab > .tabs.side.open .nav-group { display: block; padding-top: 6px; }
  .cab > .tabs.side.open .nav-group + .nav-group { border-top: 2px dashed var(--ink); margin-top: 6px; }
  .cab > .tabs.side.open .nav-label {
    display: block; padding: 8px 12px 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  }
  .cab > .tabs.side.open button {
    display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 11px 12px;
    border: 0; border-radius: 10px; background: none; font-size: 15.5px; font-weight: 700; color: var(--ink); text-align: left;
  }
  .cab > .tabs.side.open button.on { background: var(--yellow); color: var(--ink); font-weight: 800; box-shadow: none; }
  .cab > .tabs.side.open button.on::after { background: var(--ink); transform: rotate(180deg); }
  body.nav-open { overflow: hidden; }
}
@keyframes pg-sheet { from { transform: translateY(-12px); opacity: .6; } to { transform: none; opacity: 1; } }

@media (max-width: 640px) {
  body.ui { overflow-x: clip; } /* last guard: nothing may push the page sideways */
  .wrap { padding-left: 12px; padding-right: 12px; }
  .cab > .tabs.side { margin: 0 -12px 12px; padding: 8px 12px; }
  .panel { padding: 16px; margin-bottom: 16px; border-radius: var(--radius); box-shadow: var(--hard-sm); }
  .cab-main .eyebrow { margin-bottom: 10px; }
  .hint.lead { margin-bottom: 12px; }
  .page-title { padding: 18px 0 12px; }
  .page-title h1 { font-size: 22px; }

  /* ---- header: name first; back, log out → icons; compact language switch ---- */
  .topbar .wrap { min-height: 56px; gap: 6px; }
  .brand { gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .brand .name { font-size: 15.5px; }
  .brand .role { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .ghost, .topbar .main { padding: 7px 10px; font-size: 13px; }
  .topbar .lang-switch button { padding: 7px 7px; font-size: 11.5px; }
  #logout, #toAdmin { font-size: 0; width: 36px; height: 34px; padding: 0; justify-content: center; align-items: center; }
  #logout::before, #toAdmin::before { content: ''; width: 18px; height: 18px; background: currentColor; }
  #logout::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H5.5A1.5 1.5 0 0 0 4 5.5v13A1.5 1.5 0 0 0 5.5 20H9M16 16l4-4-4-4M20 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H5.5A1.5 1.5 0 0 0 4 5.5v13A1.5 1.5 0 0 0 5.5 20H9M16 16l4-4-4-4M20 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  #toAdmin::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  /* ---- number tiles: one calm strip with hairlines, never "two and one alone" ---- */
  .tiles {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin-bottom: 16px;
    background: var(--ink); border: 2px solid var(--ink); border-radius: 8px; box-shadow: var(--hard-sm); overflow: hidden;
  }
  .tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd one out takes the full row */
  .tiles:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* three: one row */
  .tiles:has(> :nth-child(3):last-child) > :last-child { grid-column: auto; }
  .tiles > .tile { border: 0; border-radius: 0; box-shadow: none; padding: 12px; background: var(--surface); min-width: 0; }
  .tile .n { font-size: 21px; line-height: 1.2; }
  .tile .l { font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink-2); margin-top: 2px; }
  .tile .hint { font-size: 11.5px; margin-top: 2px; }
  .stats > div { padding: 12px 14px; }
  .stats b { font-size: 22px; }
  .stats span { font-size: 13px; }

  /* ---- lists with a date: name on top, date under it, the badge on the right ---- */
  .list li:has(> .when) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; }
  .list li:has(> .when) > .what { grid-column: 1; grid-row: 1; line-height: 1.35; }
  .list li:has(> .when) > .when { grid-column: 1; grid-row: 2; width: auto; font-size: 12px; }
  .list li:has(> .when) > :not(.what):not(.when) { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .list .what .code { white-space: nowrap; }
  .errlist li:has(> .when) > .what { grid-row: 2; }
  .errlist li:has(> .when) > .when { grid-row: 1; }

  /* ---- tables → flat rows inside the panel: label on the left, value on the right ---- */
  .tablewrap:has(> table:not(.pl-table)) { overflow: visible; }
  .tablewrap > table:not(.pl-table) thead { display: none; }
  .tablewrap > table:not(.pl-table),
  .tablewrap > table:not(.pl-table) tbody,
  .tablewrap > table:not(.pl-table) tr { display: block; width: 100%; }
  .tablewrap > table:not(.pl-table) tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tablewrap > table:not(.pl-table) tbody tr:first-child { padding-top: 4px; }
  .tablewrap > table:not(.pl-table) tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .tablewrap > table:not(.pl-table) td {
    display: flow-root; padding: 3px 0; border: 0; white-space: normal; text-align: right;
    min-width: 0; overflow-wrap: anywhere; font-size: 14px;
  }
  .tablewrap > table:not(.pl-table) td::before {
    content: attr(data-label); float: left; max-width: 50%; margin-right: 12px; text-align: left;
    color: var(--muted); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; overflow-wrap: normal;
  }
  .tablewrap > table:not(.pl-table) td:first-child { text-align: left; font-size: 15px; font-weight: 600; color: var(--ink); padding-bottom: 5px; }
  .tablewrap > table:not(.pl-table) td:first-child::before,
  .tablewrap > table:not(.pl-table) td[data-label=""]::before,
  .tablewrap > table:not(.pl-table) td[colspan]::before { display: none; }
  .tablewrap > table:not(.pl-table) td[colspan] { text-align: left; font-weight: 400; }
  .tablewrap > table:not(.pl-table) td:empty { display: none; }
  .tablewrap > table:not(.pl-table) tbody tr:hover td { background: none; }
  .tablewrap > table:not(.pl-table) td .ghost, .tablewrap > table:not(.pl-table) td .main { padding: 7px 12px; font-size: 13.5px; }
  .pl-table { font-size: 13px; }

  /* guest list: name and level on top, email under it, then short facts in one flowing line */
  #guestTable tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 3px; }
  #guestTable td { display: block; padding: 0; text-align: left; font-size: 13px; color: var(--ink); font-weight: 400; }
  #guestTable td::before { float: none; display: inline; margin-right: 4px; font-size: 12.5px; }
  #guestTable td:first-child { flex: 1 1 auto; min-width: 0; font-size: 15.5px; font-weight: 600; padding: 0; }
  #guestTable td.lvlcol { order: 1; margin-left: auto; font-size: 13.5px; }
  #guestTable td.lvlcol::before, #guestTable td.lvlcol .hint { display: none; }
  #guestTable td.email { order: 2; flex-basis: 100%; color: var(--muted); padding-bottom: 3px; }
  #guestTable td.email::before { display: none; }
  #guestTable td:nth-child(n+3):not(.lvlcol):not(.email) { order: 3; }
  #guestTable td.code { letter-spacing: 0; }
  #guestTable td[colspan] { flex-basis: 100%; }
  #guestTable td:first-child::before { display: none; }
  #guestTable td::before { font-family: var(--font); letter-spacing: 0; }

  /* ---- guest list toolbar: search; filter + count; two equal buttons ---- */
  .row.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
  .row.toolbar .search { grid-column: 1 / -1; width: 100%; max-width: none; }
  .row.toolbar select { width: 100%; grid-column: 1; }
  .row.toolbar .hint { grid-column: 2; text-align: right; margin: 0; }
  .row.toolbar select.hidden + .hint { grid-column: 1 / -1; text-align: left; }
  .row.toolbar .push { margin-left: 0; }
  #trashBtn { grid-column: 1; }
  #xlsxBtn { grid-column: 2; }
  .row.toolbar > button { align-self: stretch; justify-content: center; text-align: center; white-space: normal; line-height: 1.2; padding: 10px 6px; font-size: 13.5px; min-height: 42px; }

  /* ---- branches editor: number, name and buttons on one line; no empty button space ---- */
  .branch { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px 8px; padding: 12px 0; }
  .branch .num { padding-top: 11px; text-align: left; font-size: 13px; }
  .branch .coords, .branch .rvurl { grid-column: 2 / 4; }
  .branch .acts { grid-row: 1; grid-column: 3; gap: 4px; }
  .branch .acts button { padding: 9px 11px; min-width: 40px; }
  .branch .acts .invisible { display: none; }
  .branch .ok, .branch .bad { margin-top: 3px; }

  /* ---- Links & QR: the address in one line, Copy and Open side by side ---- */
  .link { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 0; }
  .link .t { width: auto; grid-column: 1 / -1; }
  .link .u {
    grid-column: 1 / -1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal;
    background: var(--field); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 9px 11px; font-size: 12.5px;
  }
  .link .ghost { justify-content: center; text-align: center; }

  /* ---- cashiers ---- */
  .cash .pinbox button { padding: 7px 10px; }
  .list li.cash { row-gap: 8px; }

  /* ---- dialogs: whole width, buttons share the row ---- */
  .modal { padding: 10px; }
  .modal .sheet { padding: 22px 16px 16px; max-height: calc(100dvh - 20px); overflow-y: auto; }
  .sheet .acts > .main, .sheet .acts > .ghost { flex: 1 1 auto; justify-content: center; }
  .sheet .acts .push { margin-left: 0; }

  /* ---- super-admin ---- */
  .ad-head { align-items: stretch; gap: 14px; }
  .ad-head h1 { font-size: 24px; }
  .ad-head > .row { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ad-head > .row > button { justify-content: center; padding-left: 6px; padding-right: 6px; font-size: 14px; }
  #newBtn { grid-column: 1 / -1; order: -1; }
  .ad-bar { gap: 10px; }
  .ad-tools { display: flex; gap: 8px; width: 100%; margin-left: 0; }
  .ad-tools input { flex: 1 1 auto; width: auto; min-width: 0; }
  .ad-tools select { flex: 0 1 auto; width: auto; max-width: 46%; }
  .panel.flush { background: transparent; border: 0; overflow: visible; }
  .vn img { width: 36px; height: 36px; }
  .vn .code { white-space: normal; }
  /* venues: separate cards — name, then plan, paid until, cards… three in a row, buttons at the bottom */
  .tablewrap > table.ad-table tr {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 12px 14px; margin-bottom: 10px;
    background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard-sm);
  }
  .tablewrap > table.ad-table tbody tr:first-child, .tablewrap > table.ad-table tr:last-child { padding: 12px 14px; border-bottom: 2px solid var(--ink); }
  .tablewrap > table.ad-table td { display: block; text-align: left; padding: 0; font-size: 14px; }
  .tablewrap > table.ad-table td::before { float: none; display: block; max-width: none; margin: 0 0 2px; font-size: 11.5px; }
  .tablewrap > table.ad-table td:first-child { grid-column: 1 / -1; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
  .tablewrap > table.ad-table td:nth-child(6) { grid-column: span 2; }
  .tablewrap > table.ad-table td:last-child:not(:first-child) { grid-column: 1 / -1; text-align: right; }
  .tablewrap > table.ad-table td[colspan] { grid-column: 1 / -1; }
  .tablewrap > table.ad-table .err-badge { display: inline-block; margin: 4px 0 0; }
  .tablewrap > table.ad-table .over-limit { display: block; }
  .ad-err-head { padding: 14px 16px; flex-wrap: wrap; row-gap: 4px; }
  #errBody { padding: 14px 16px 16px; }
  #errBody .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #errBody .filters > * { width: 100%; min-width: 0; }
  #eVenue { grid-column: 1 / -1; }
  .ad-daily { padding: 14px 16px; }
  .ad-daily .row.between { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
}

/* ===== animated fox stickers between the sections (decorative) ===== */
.lp-sec > .wrap { position: relative; }
.lp-gif { position: absolute; z-index: 1; right: 24px; top: -18px; width: clamp(140px, 14vw, 172px); rotate: var(--r, 3deg); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff5e1; box-shadow: 6px 6px 0 var(--ink); pointer-events: none; user-select: none; }
.lp-gif img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.lp-ink .lp-gif { box-shadow: 6px 6px 0 var(--accent); }
.lp-gif.g-coffee { --r: 3deg; } .lp-gif.g-medal { --r: -3deg; } .lp-gif.g-phone { --r: 3deg; } .lp-gif.g-plant { --r: -2deg; top: -6px; }
#plans .lp-head { padding-right: 190px; }
@media (max-width: 960px) {
  .lp-gif { width: 120px; right: 16px; top: -10px; }
  #plans .lp-head { padding-right: 140px; }
}
@media (max-width: 640px) { .lp-gif { display: none; } #plans .lp-head { padding-right: 0; } }

/* ===== 404 page ===== */
.nf-page { display: flex; flex-direction: column; min-height: 100vh; }
.nf { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 80px); padding: 56px 24px; max-width: 1000px; width: 100%; margin: 0 auto; }
.nf-pic { flex: none; width: clamp(200px, 30vw, 320px); rotate: -3deg; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff5e1; box-shadow: 8px 8px 0 var(--ink); }
.nf-pic img { display: block; width: 100%; height: auto; }
.nf-text { min-width: 0; }
.nf-code { margin: 0; font-size: clamp(72px, 12vw, 132px); line-height: .9; font-weight: 800; letter-spacing: -0.05em; color: var(--accent); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.nf h1 { margin: 12px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; overflow-wrap: break-word; }
.nf-lead { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 26em; }
.nf-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.nf-page .lp-link { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.nf-page .lp-link:hover { background: var(--yellow); }
@media (max-width: 720px) { .nf { flex-direction: column; text-align: center; padding: 36px 20px 48px; } .nf-actions { justify-content: center; } .nf-lead { margin-inline: auto; } }

/* ===== language switch as links (landing: / and /ge) ===== */
.lang-switch a { display: block; padding: 6px 9px; font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: .04em; line-height: 1.2; text-decoration: none; }
.lang-switch a + a { border-left: 2px solid var(--ink); }
.lang-switch a.on { background: var(--ink); color: var(--bg); }
.lang-switch a:not(.on):hover { background: var(--yellow); }
@media (max-width: 960px) {
  .lp-menu #langMenu, .lp-menu #siteLangMenu { display: flex; width: 100%; margin-top: 18px; }
  .lp-menu .lang-switch { display: flex; width: 100%; }
  .lp-menu .lang-switch a, .lp-menu .lang-switch a.on { counter-increment: none; flex: 1; display: block; justify-content: center; text-align: center; padding: 11px 18px; font-size: 14px; border-bottom: 0; gap: 0; }
  .lp-menu .lang-switch a::before { content: none; }
  .lp-menu .lang-switch a.on { background: var(--ink); color: var(--bg); padding-left: 18px; }
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== Georgian (/ge): Georgian words are long, so the type is a step smaller than English and lines are
   balanced: whole words, no one-word lines, the same number of lines as the English page ===== */
html[lang="ka"] .lp h1, html[lang="ka"] .lp h2, html[lang="ka"] .lp h3 { text-wrap: balance; }
html[lang="ka"] .lp h1 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.14; letter-spacing: -0.02em; }
html[lang="ka"] .lp .lp-lead { font-size: 17px; }
html[lang="ka"] .lp h2 { font-size: clamp(28px, 2.9vw, 42px); line-height: 1.14; letter-spacing: -0.015em; }
html[lang="ka"] .lp .lp-dark h2 { max-width: 16em; font-size: clamp(30px, 3.2vw, 46px); }
html[lang="ka"] .lp-item h3, html[lang="ka"] .lp-steps h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
html[lang="ka"] .lp-who { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.35; }
@media (max-width: 960px) {
  html[lang="ka"] .lp h2, html[lang="ka"] .lp .lp-dark h2 { font-size: clamp(25px, 4.2vw, 34px); }
}
@media (max-width: 640px) {
  html[lang="ka"] .lp h1 { font-size: clamp(25px, 7vw, 32px); line-height: 1.16; }
  html[lang="ka"] .lp h2, html[lang="ka"] .lp .lp-dark h2 { font-size: clamp(21px, 6vw, 27px); line-height: 1.18; }
  html[lang="ka"] .lp-item h3, html[lang="ka"] .lp-steps h3 { font-size: clamp(15.5px, 4.6vw, 18px); }
  html[lang="ka"] .lp-who { font-size: 17px; }
}
/* the plans heading has the fox sticker on its right: the heading gets the wider column */
@media (min-width: 961px) { html[lang="ka"] #plans .lp-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
@media (max-width: 360px) {
  html[lang="ka"] .lp-item h3, html[lang="ka"] .lp-steps h3 { font-size: 14.5px; letter-spacing: -0.02em; }
}

/* "Add to Google Wallet" / "Add to Apple Wallet": the official artwork, never redrawn (public/assets/wallet).
   Google: at least 48 px high; Apple: its badge as supplied. Clear space around both. */
.wallet-btn { display: block; width: fit-content; max-width: 100%; margin: 14px auto 0; padding: 8px; border: 0; background: none; cursor: pointer; line-height: 0; }
.wallet-btn img { display: block; height: 52px; width: auto; max-width: 100%; }
.wallet-btn.apple img { height: 56px; }
.wallet-btn:disabled { opacity: .45; cursor: default; }
.wallet-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 30px; }
.wallet-btn.hidden { display: none; }

/* ---------- folds: settings that are rarely changed stay closed until opened (<details class="fold">) ---------- */
details.fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; padding: 4px 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .eyebrow { margin: 0; }
details.fold > summary .fold-sum { color: var(--muted); font-size: 13.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.fold > summary::after { content: ""; margin-left: auto; flex: none; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg); transition: transform .15s; margin-right: 4px; margin-top: -4px; }
details.fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.fold > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
details.fold[open] > summary { margin-bottom: 12px; }
/* a fold inside a panel (a subsection): a line above it, like .eyebrow.sec */
details.fold.sub { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }
details.fold.sub + details.fold.sub { margin-top: 0; }
/* a whole panel that folds */
details.panel.fold:not([open]) { padding-top: 16px; padding-bottom: 16px; }

/* collapsible rows: a level, a branch (closed: one line with a summary; open: the fields) */
.row-fold { border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--surface); margin-top: 12px; }
.row-fold > .rf-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.row-fold > .rf-head .rf-title { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-fold > .rf-head .rf-sum { color: var(--muted); font-size: 13.5px; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-fold > .rf-head .rf-acts { display: flex; gap: 6px; margin-left: auto; flex: none; }
.row-fold > .rf-head .rf-toggle { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.row-fold > .rf-head .rf-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.row-fold.open > .rf-head .rf-toggle::before { transform: rotate(-135deg); margin-top: 4px; }
.row-fold > .rf-body { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.row-fold:not(.open) > .rf-body { display: none; }
.row-fold .rf-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); flex: none; background: var(--lvl, var(--accent)); }
.row-fold .rf-num { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.row-fold .rf-warn { color: var(--danger); font-weight: 700; }
@media (max-width: 640px) {
  .row-fold > .rf-head { flex-wrap: wrap; }
  .row-fold > .rf-head .rf-sum { order: 3; flex-basis: 100%; white-space: normal; }
}

/* Levels: closed = the top line only */
.lvl-top { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }
.lvl-top .rf-title { font-weight: 800; font-size: 16px; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvl-top .rf-sum { color: var(--muted); font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvl-top .rf-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); flex: none; background: var(--lvl, var(--accent)); }
.lvl-top .rf-toggle { margin-left: auto; width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lvl-top .rf-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.lvl.open .lvl-top .rf-toggle::before { transform: rotate(-135deg); margin-top: 4px; }
.lvl:not(.open) .lvl-body { display: none; }
.lvl.open .lvl-top { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.lvl:not(.open) { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 640px) {
  .lvl-top { flex-wrap: wrap; }
  .lvl-top .rf-sum { order: 3; flex-basis: 100%; white-space: normal; }
}

/* super-admin: one box per bank (on/off, keys, callback) */
.bank-box { border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 12px; }
.bank-box .switch { margin: 0; }
.bank-box.off .bank-fields { display: none; }

/* several banks: one "Pay by card" button each */
.pay-banks > div { display: grid; gap: 10px; }
.main.alt { background: var(--surface); }
