/* Platform + club admin. Calm, dense, readable. */
:root {
  --bg: #f6f6f3; --card: #ffffff; --ink: #17171b; --muted: #6b6b75; --line: #e4e4de;
  --brand: #e0115f; --brand-ink: #fff; --ok: #0f8a4b; --err: #c4252a; --warn: #c27a00;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: var(--brand); }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: #f0f0ec; padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); } .small, small { font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.eyebrow a { color: inherit; text-decoration: none; }
.ok-text { color: var(--ok); } .err-text { color: var(--err); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #cfcfc7; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--brand); }
.btn-ghost { background: transparent; }
.btn-danger { background: #fff; color: var(--err); border-color: #f0c8c9; }
.btn-lg { padding: 12px 22px; font-size: 16px; } .btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; padding: 0; }

/* forms */
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.form label small { font-weight: 400; }
input, textarea, select { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  color: var(--ink); width: 100%; min-width: 0; }
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; }
input[type=color] { padding: 2px; height: 40px; width: 72px; }
/* checkbox/radio + text: text flows as one paragraph (links/bold inside don't become separate columns) */
.check { display: block !important; position: relative; padding-left: 28px; font-weight: 400 !important; line-height: 1.45; }
.check > input[type=checkbox], .check > input[type=radio] { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.input-prefix > span { padding: 9px 4px 9px 11px; color: var(--muted); font-weight: 400; white-space: nowrap; background: #fafaf7; }
.input-prefix input { border: 0; border-radius: 0; }
.cols-2, .cols-3 { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-3.align-end { align-items: end; } .cols-3.align-end label { margin-bottom: 0; }
.form-actions { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .inline-form input { width: auto; }
label.inline { flex-direction: row; align-items: center; gap: 12px; }
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; } .filters input { max-width: 320px; } .filters select { width: auto; }

/* cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.narrow { max-width: 460px; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.flashes { max-width: 1100px; margin: 0 auto 14px; display: grid; gap: 8px; }
.flash { padding: 11px 14px; border-radius: 10px; border: 1px solid; font-weight: 500; }
.flash-ok { background: #ecf8f1; border-color: #bfe6cf; color: #0b5e33; }
.flash-error { background: #fdf0f0; border-color: #f3c9ca; color: #8c1b1f; }

/* admin shell */
body.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: #111116; color: #e9e9ee; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.side .logo { color: #fff; }
.side-club { color: #9a9aa6; font-size: 13px; margin: 14px 10px 6px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { color: #d6d6de; text-decoration: none; padding: 8px 10px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; }
.side nav a:hover { background: #1d1d25; } .side nav a.on { background: #2e1c27; color: #fff; }
.side-site { margin-top: 12px; color: #d6d6de; border-color: #33333f; }
.side-logout { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.side-logout .linklike { color: #ff9cbd; text-align: left; }
.lang-switch { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; align-self: flex-start; }
.lang-switch a { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang-switch a.on { background: var(--brand); color: #fff; }
.side .lang-switch { border-color: #33333f; } .side .lang-switch a { color: #9a9aa6; }
.p-top nav { align-items: center; }
.dot-warn { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.content { padding: 28px 32px 60px; max-width: 1160px; width: 100%; }
.logo { font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-flex; } .logo-mark img { display: block; border-radius: 9px; }
.logo-word { font-family: "Dela", system-ui, sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .02em; line-height: 1; }

/* data */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi span { color: var(--muted); font-size: 13px; display: block; } .kpi b { font-size: 22px; font-variant-numeric: tabular-nums; }
.kpi.accent { background: #ffeef4; border-color: #ffd0df; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; } .table tr[data-href]:hover td { background: #fafaf7; }
.table a { color: var(--ink); text-decoration: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.dim { opacity: .5; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #efefea; color: #55555d; white-space: nowrap; }
.badge.ok { background: #e3f5ea; color: var(--ok); } .badge.err { background: #fbe7e7; color: var(--err); }
.badge.big { font-size: 14px; padding: 5px 14px; }
.row-link { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.row-link:last-child { border-bottom: 0; } .row-link:hover b { color: var(--brand); }
.row-plain { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0; }
.right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bar { display: block; width: 110px; height: 6px; background: #ececE6; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; margin: 0 0 14px; } .dl dt { color: var(--muted); } .dl dd { margin: 0; }
.thumb { max-width: 220px; max-height: 140px; border-radius: 8px; border: 1px solid var(--line); margin-top: 6px; object-fit: cover; }
.logo-thumb { background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50% / 16px 16px; object-fit: contain; }
.img-row { display: flex; align-items: center; gap: 10px; }
.status-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.copy { margin-top: 6px; max-width: 520px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; cursor: copy; }
.refund-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.plain-list { padding-left: 20px; } .plain-list li { margin: 4px 0; }

h3.sub { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
/* design editor + live preview */
.design-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 44%); gap: 18px; align-items: start; }
.design-form h3 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-weight: 600; font-size: 14px; background: var(--card); }
.chip input { margin: 0; } .chip:has(input:checked) { border-color: var(--brand); background: #ffeef4; }
.small-chips .chip { padding: 3px 9px; }
.design-preview { position: sticky; top: 16px; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; }
.preview-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; height: calc(100vh - 120px); box-shadow: var(--shadow); }
.preview-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.preview-frame.mobile { width: 390px; max-width: 100%; margin: 0 auto; }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 6px 0; }
.gallery-edit label { display: grid; gap: 4px; } .gallery-edit img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding: 18px 0 10px; }
@media (max-width: 1100px) { .design-wrap { grid-template-columns: 1fr; } .design-preview { position: static; } .preview-frame { height: 70vh; } }

/* start: three big steps on the dashboard */
.start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.start-step { background: var(--card); border: 2px solid #ffd6e4; border-radius: 16px; padding: 22px; position: relative; }
.start-step h2 { font-size: 20px; margin: 10px 0 6px; }
.start-step p { margin: 0 0 14px; color: var(--muted); }
.start-step .btn-lg { width: 100%; }
.start-step .copy { width: 100%; max-width: none; }
.start-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 800; }
.start-step.done { border-color: #bfe5cf; background: #f3fbf6; }
.start-step.done .start-num { background: var(--ok); }
@media (max-width: 820px) {
  .start { grid-template-columns: 1fr; gap: 10px; }
  /* phone: number next to the title, less padding → all 3 steps nearly fit one screen */
  .start-step { padding: 14px 16px; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; }
  .start-step > * { grid-column: 2; } .start-step > .start-num { grid-column: 1; grid-row: 1; width: 30px; height: 30px; font-size: 14px; }
  .start-step h2 { font-size: 17px; margin: 4px 0 4px; grid-row: 1; }
  .start-step p { margin-bottom: 10px; font-size: 14px; }
  .start-step.done p:last-child { margin-bottom: 0; }
}
details.more { margin-top: 10px; } details.more summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.form-actions .check { margin-right: auto; }
.seg { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.seg label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; font-weight: 600; }
.seg label:has(input:checked) { border-color: var(--brand); background: #fff3f7; }
.payout-form .check { margin-top: 8px; }
/* onboarding */
.onboarding { background: #fff3f7; border-color: #ffd6e4; }
.steps { margin: 0; padding-left: 22px; } .steps li { margin: 6px 0; } .steps li.done a { color: var(--ok); text-decoration: line-through; }
.steps li.done::marker { content: "✓  "; color: var(--ok); }

/* ticket rows */
.tt-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.tt-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.tt-head { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* theme picker */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.theme-card { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.theme-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-prev { height: 110px; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.tp-title { font-weight: 800; font-size: 15px; } .tp-line { height: 6px; border-radius: 3px; background: currentColor; opacity: .25; width: 80%; }
.tp-line.short { width: 50%; } .tp-btn { margin-top: auto; width: 70px; height: 20px; border-radius: 6px; }
.theme-pick { border: 0; padding: 0; margin: 0 0 14px; } .theme-pick legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.theme-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-opt { flex-direction: row !important; align-items: center; gap: 8px !important; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 6px 6px; margin: 0 !important; font-weight: 500 !important; cursor: pointer; }
.theme-opt:has(input:checked) { border-color: var(--brand); background: #fff3f7; }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.swatch { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; border: 1px solid rgba(0,0,0,.1); }

/* scanner */
.scan-result { border-radius: var(--radius); padding: 20px; margin-bottom: 16px; color: #fff; }
.scan-result h2 { font-size: 24px; margin-bottom: 6px; } .scan-result code { background: rgba(255,255,255,.2); color: #fff; }
.scan-ok, .scan-found { background: #0f8a4b; } .scan-already { background: #c27a00; } .scan-invalid { background: #c4252a; }
.scan-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; } .scan-form label { margin: 0; }
.scan-form input { font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }

/* platform pages */
body.platform { min-height: 100vh; display: flex; flex-direction: column; }
body.platform > section:not(.pricing), body.platform > main { width: 100%; }
body.platform > .flashes { width: calc(100% - 32px); }   /* flex column + margin:auto would shrink-wrap */
.p-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; gap: 12px; }
.p-top nav { display: flex; gap: 8px; }
.p-foot { margin-top: auto; padding: 24px 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.hero { max-width: 860px; margin: 56px auto 40px; padding: 0 20px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 18px; }
.lead { font-size: 19px; color: #3b3b44; max-width: 640px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.features { max-width: 1060px; margin: 0 auto 30px; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature p { margin: 0; color: var(--muted); }
.pricing { max-width: 1020px; margin: 0 auto 50px; width: calc(100% - 40px); }
.price-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-compare p { margin: 2px 0; } .big { font-size: 30px; font-weight: 800; } .strike { text-decoration: line-through; color: var(--muted); }
.auth-wrap { display: grid; place-items: start center; padding: 24px 16px 60px; }
.auth-wrap .form { width: 100%; max-width: 520px; }
.auth-wrap h1 { margin-bottom: 18px; }
.door-form { max-width: 400px !important; text-align: center; }
.door-form label { text-align: left; }
.door-logo { max-height: 80px; max-width: 220px; margin: 0 auto 8px; display: block; }
.pin-input { font-size: 28px; letter-spacing: .5em; text-align: center; font-family: ui-monospace, Consolas, monospace; }
.tt-phase { display: none; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 4px 0 10px; font-size: 13px; color: var(--muted); }
.show-phases .tt-phase { display: grid; }
.tt-phase input, .tt-phase select { font-size: 13px; }
.resend-box { display: flex; gap: 8px; margin: 0 0 14px; } .resend-box input { flex: 1; }
.input-prefix select { border: 0; background: transparent; font: inherit; }
.big-fee { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.p-foot { text-align: center; padding: 24px 16px 40px; } .p-foot a { color: inherit; }
.pin-small { width: 100px; padding: 5px 8px; font-family: ui-monospace, Consolas, monospace; }
.door-share { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; }
.door-share img { width: 160px; height: 160px; background: #fff; border-radius: 8px; }
@media (max-width: 600px) { .door-share { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  body.admin { grid-template-columns: minmax(0, 1fr); }
  .side, .content { min-width: 0; }
  .side-logout .small { display: none; }   /* e-mail: saves a row on phones */
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; }
  .side nav { flex-direction: row; flex-wrap: wrap; width: 100%; } .side-club { margin: 0 0 0 auto; }
  .side-logout { margin: 0; flex-direction: row; padding: 0; } .side-site { margin: 0; }
  .content { padding: 18px 16px 50px; }
  .grid-2, .cols-2, .cols-3, .price-compare { grid-template-columns: 1fr; }
  .tt-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 6px; }
  .table { font-size: 14px; } .table th, .table td { padding: 8px 6px; }
  .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: 6px; }
  .p-top { padding: 12px 16px; }
  /* phone/tablet: menu is one row that scrolls sideways instead of 3–4 wrapped rows */
  .side nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a { white-space: nowrap; flex: none; }
  /* wide tables scroll inside their card instead of pushing the page sideways */
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page-head .btn { flex: 1 1 auto; }
}

/* ---------------- design editor: tabs + picture options ---------------- */
@font-face { font-family: "Dela"; src: url(../fonts/dela-gothic-one-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Mono"; src: url(../fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
.dtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: #ececf1; padding: 4px;
  border-radius: 14px; margin-bottom: 14px; position: sticky; top: 8px; z-index: 5; }
.dtabs button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted);
  padding: 9px 4px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, color .15s, box-shadow .15s; }
.dtabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.js-tabs .dpanel:not(.on) { display: none; }
.dpanel.on { animation: a-rise .25s cubic-bezier(.2, .7, .2, 1) both; }
.dpanel h2 { margin-bottom: 2px; } .dpanel h2.mt { margin-top: 26px; }
.dhint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.design-form h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.cols-2.tight { gap: 4px 18px; }

.vis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.vis-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vis { display: flex !important; flex-direction: column; gap: 6px; margin: 0 !important; cursor: pointer; font-weight: 500 !important; position: relative; }
.vis input { position: absolute; opacity: 0; pointer-events: none; }
.vis-pic { display: grid; place-items: center; aspect-ratio: 5 / 3; border: 2px solid var(--line); border-radius: 12px; background: #fafafc;
  overflow: hidden; position: relative; transition: border-color .15s, box-shadow .15s, transform .1s; }
.vis-pic svg { width: 100%; height: 100%; display: block; }
.vis-pic .ph, .vis-pic .ph rect { fill: #f3c8d8; } .vis-pic .dk, .vis-pic .dk rect { fill: #3a3a48; }
.vis-pic .lt, .vis-pic .lt rect { fill: #fff; } .vis-pic .ac { fill: var(--brand); }
.vis-label { font-size: 13px; text-align: center; color: var(--muted); line-height: 1.25; }
.vis:hover .vis-pic { border-color: #f5bfd2; }
.vis:active .vis-pic { transform: scale(.97); }
.vis:has(input:checked) .vis-pic { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); background: #fff3f7; }
.vis:has(input:checked) .vis-label { color: var(--ink); font-weight: 700; }
.vis:has(input:focus-visible) .vis-pic { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; }
.vis:has(input:checked) .vis-pic::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 700; }
.font-card .vis-pic { font-size: 30px; font-weight: 700; color: var(--ink); aspect-ratio: 4 / 3; }
.vis-grid.fonts { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.m-btn { display: block; width: 58%; height: 22%; background: var(--brand); }
.m-card { display: block; width: 46%; height: 64%; background: #f3c8d8; border: 2px solid #eeb0c6; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 3px #fff; transition: transform .1s, box-shadow .15s; position: relative; margin: 0 !important; }
.swatch:hover { transform: scale(1.08); }
.swatch.on { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--brand); }
.swatch-own { display: grid !important; place-items: center; background: conic-gradient(#ff3d7f, #ffd400, #18c37e, #00b3ff, #7c5cff, #ff3d7f); }
.swatch-own input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; padding: 0; border: 0; }
.swatch-own span { color: #fff; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.5); pointer-events: none; }

.segc { display: inline-flex; background: #ececf1; border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segc label { margin: 0 !important; font-weight: 600 !important; cursor: pointer; }
.segc input { position: absolute; opacity: 0; pointer-events: none; }
.segc span { display: block; padding: 7px 14px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: background .15s, color .15s; }
.segc label:has(input:checked) span { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.segc label:has(input:focus-visible) span { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); }
.segc.small span { padding: 3px 10px; }

.form input[type=file] { width: 100%; padding: 10px; border: 2px dashed var(--line); border-radius: 12px; background: #fafafc; font-size: 13px; color: var(--muted); cursor: pointer; }
.form input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 9px; margin-right: 10px; cursor: pointer; }
.form input[type=file]:hover { border-color: #f5bfd2; }
.design-form input[type=file] { width: 100%; padding: 10px; border: 2px dashed var(--line); border-radius: 12px; background: #fafafc; font-size: 13px; color: var(--muted); }
.design-form input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 9px; margin-right: 10px; cursor: pointer; }
.switch-row { display: flex !important; flex-direction: row !important; align-items: center; text-align: left; gap: 12px; cursor: pointer; margin: 0 !important; font-weight: 400 !important; padding: 4px 0; }
.switch-row > span { display: flex; flex-direction: column; min-width: 0; }
.switch-row small { color: var(--muted); font-size: 13px; }
.switch-row input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 99px; background: #d4d4dc;
  position: relative; cursor: pointer; transition: background .2s; margin: 0; border: 0; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.switch-row input:checked { background: var(--brand); } .switch-row input:checked::after { transform: translateX(18px); }
.sect { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; transition: border-color .15s, background .15s; }
.sect:has(.switch-row input:checked) { border-color: #d6cffb; background: #fffbfc; }
.sect > textarea, .sect > .sect-body { display: none; margin-top: 10px; }
.sect:has(.switch-row input:checked) > textarea, .sect:has(.switch-row input:checked) > .sect-body { display: block; }

.more { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.more > summary { cursor: pointer; font-weight: 600; color: var(--brand); list-style: none; display: flex; align-items: center; gap: 6px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "›"; display: inline-block; font-size: 20px; line-height: 1; transition: transform .2s; }
.more[open] > summary::before { transform: rotate(90deg); }
.more[open] > summary { margin-bottom: 12px; }
.more:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
details.more summary { margin-bottom: 0; } details.more[open] summary { margin-bottom: 12px; }
.own-colors { margin-top: 8px; }
.more:not(:has([name=custom_colors]:checked)) .own-colors { opacity: .45; pointer-events: none; }

.uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0; }
.upload { display: flex !important; flex-direction: row !important; gap: 12px; align-items: center; border: 2px dashed var(--line); border-radius: 12px; padding: 10px;
  cursor: pointer; margin: 0 !important; font-weight: 400 !important; position: relative; transition: border-color .15s, background .15s; }
.upload:hover { border-color: #f5bfd2; background: #fffbfc; }
.upload.picked { border-style: solid; border-color: var(--ok); background: #f3fbf6; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-pic { flex: none; width: 64px; height: 64px; border-radius: 10px; background: #ececf1; display: grid; place-items: center; overflow: hidden; font-size: 24px; color: var(--brand); }
.upload-pic img { width: 100%; height: 100%; object-fit: cover; }
.logo-pic img { object-fit: contain; background: repeating-conic-gradient(#e6e6ea 0 25%, #fff 0 50%) 50% / 12px 12px; }
.upload-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.upload-txt small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.upload-txt .btn { margin-top: 6px; pointer-events: none; }
.remove-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 6px; }
.range-row { margin-top: 14px; } .range-row input { width: 100%; accent-color: var(--brand); }
.pv-jump { display: none; }
.sticky-save { display: flex; gap: 10px; }

@media (max-width: 1100px) {
  .pv-jump { display: inline-flex; }
  .sticky-save .btn { flex: 1 1 0; }
  .preview-frame { height: 640px; max-height: 80vh; }
  .design-preview { scroll-margin-top: 12px; }
}
@media (max-width: 860px) {
  .sticky-save { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .dtabs { top: 4px; } .dtabs button { flex-direction: column; gap: 2px; font-size: 12px; padding: 7px 2px; }
  .dtabs button span { font-size: 18px; }
  .uploads { grid-template-columns: 1fr; }
  .vis-grid.three { gap: 8px; } .vis-label { font-size: 12px; }
  .preview-frame.mobile { width: 100%; }
}

/* ---------------- button / picker fixes ---------------- */
.seg label { flex-direction: row !important; margin: 0 !important; cursor: pointer; }
.seg label input { margin: 0; flex: none; }
/* sticky save bar inside a white card: fade into the card, not into the grey page */
.card .form-actions, .form.card .form-actions { background: linear-gradient(transparent, var(--card) 30%); }
.type-pick { margin: 4px 0 16px; display: inline-grid; grid-template-columns: 1fr 1fr; min-width: min(100%, 360px); }
.type-pick span { text-align: center; padding: 9px 14px; }
.change-bank > summary { cursor: pointer; font-weight: 600; color: var(--brand); list-style: none; display: flex; align-items: center; gap: 6px; }
.change-bank > summary::-webkit-details-marker { display: none; }
.change-bank > summary::before { content: "›"; font-size: 20px; line-height: 1; transition: transform .2s; }
.change-bank[open] > summary { margin-bottom: 14px; } .change-bank[open] > summary::before { transform: rotate(90deg); }
@media (max-width: 860px) {
  /* save buttons stay above the bottom tab bar and are easy to hit */
  body.admin:has(.tabbar) .form-actions { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .form-actions:not(.sticky-save) .btn-lg { width: 100%; }
  /* page buttons (Edit / Guest list / Export …): even 2-column grid instead of ragged rows */
  .page-head { flex-wrap: wrap; }
  .page-head > .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .page-head > .actions .btn { width: 100%; justify-content: center; text-align: center; padding-left: 8px; padding-right: 8px; }
  .status-card { flex-direction: column; align-items: stretch !important; }
  .status-card .copy { width: 100%; max-width: none; }
  .status-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .status-card .actions .btn, .status-card form > .btn { width: 100%; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
  .kpi { padding: 10px 12px; } .kpi b { font-size: 19px; }
  .table td.num, .table th.num { white-space: nowrap; }
  .form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
}

/* ---------------- phone: bottom tab bar instead of 8 menu items ---------------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  body.admin:has(.tabbar) .side nav, body.admin:has(.tabbar) .side-logout, body.admin:has(.tabbar) .side-site { display: none; }
  body.admin { align-content: start; }
  body.admin:has(.tabbar) .side { flex-wrap: nowrap; justify-content: space-between; padding: 12px 16px; }
  body.admin:has(.tabbar) .side-club { margin: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d6d6de; }
  body.admin:has(.tabbar) .content { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    background: #111116; border-top: 1px solid #2e1c27; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar > a, .tab-more > summary { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; border-radius: 10px; color: #9a9aa6; font-size: 11px; font-weight: 600; text-decoration: none;
    cursor: pointer; list-style: none; position: relative; -webkit-tap-highlight-color: transparent; }
  .tab-more > summary::-webkit-details-marker { display: none; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .on, .tab-more[open] > summary { color: #fff; }
  .tabbar .on svg { stroke: var(--brand); }
  .tabbar > a:active, .tab-more > summary:active { background: #1d1d25; }
  .tab-more { flex: 1 1 0; min-width: 0; display: flex; }
  .tab-more > summary .dot-warn { position: absolute; top: 4px; right: calc(50% - 18px); }
  .tab-more .sheet { position: fixed; left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom));
    background: #fff; color: var(--ink); border-radius: 18px; padding: 8px; box-shadow: 0 -10px 40px rgba(0,0,0,.25);
    animation: a-sheet .2s cubic-bezier(.2, .7, .2, 1) both; }
  .tab-more[open]::before { content: ""; position: fixed; inset: 0 0 calc(64px + env(safe-area-inset-bottom)); background: rgba(10,10,14,.45); }
  .sheet a { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 12px; color: var(--ink);
    text-decoration: none; font-weight: 600; font-size: 16px; }
  .sheet a .dot-warn { margin-left: auto; }
  .sheet a.on { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
  .sheet a:active { background: #f1f1f5; }
  .sheet-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line);
    margin-top: 6px; padding: 12px 12px 6px; }
  .sheet-foot .linklike { color: var(--danger, #c0392b); font-weight: 600; }
  /* quiet language choice: plain text, no pill */
  .sheet-foot .lang-switch { border: 0; padding: 0; gap: 0; align-self: center; }
  .sheet-foot .lang-switch a { display: inline; padding: 4px 6px; font-size: 13px; font-weight: 600; color: var(--muted);
    background: none; border-radius: 6px; }
  .sheet-foot .lang-switch a + a::before { content: "·"; margin-right: 12px; color: var(--line); }
  .sheet-foot .lang-switch a.on { background: none; color: var(--ink); }
  .page-head .btn { flex: 0 0 auto; }
}
@keyframes a-sheet { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media print { .tabbar { display: none !important; } }

/* ---------------- navigation with icons (PC sidebar + phone sheet) ---------------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side nav a { justify-content: flex-start; gap: 11px; }
.side nav a > span:first-of-type { flex: 1; }
.side nav a .ic { color: #8d8d99; } .side nav a.on .ic { color: var(--brand); }
.side-group { margin: 14px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6f6f7b; }
.side-new { margin: 2px 0 12px; }
.side-site { margin-top: 10px; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: #d6d6de;
  text-decoration: none; font-size: 14px; border: 1px dashed #33333f; }
.side-site:hover { background: #1d1d25; } .side-site .ic { color: #8d8d99; }
.sheet .ic { width: 22px; height: 22px; color: var(--muted); } .sheet a.on .ic { color: var(--brand); }
.sheet a > span:first-of-type { flex: 1; }
@media (max-width: 860px) { .side-new { display: none; } }

/* ---------------- tables become cards on phones (td data-label="…") ---------------- */
@media (max-width: 640px) {
  .table.stack { display: block; overflow: visible; }
  .table.stack thead { display: none; }
  .table.stack tbody, .table.stack tr, .table.stack td { display: block; }
  .table.stack tr { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--card); }
  .table.stack tr:last-child { margin-bottom: 0; }
  .table.stack td { border: 0; padding: 3px 0; text-align: left !important; white-space: normal !important; }
  .table.stack td[data-label] { display: flex; justify-content: space-between; gap: 12px; }
  .table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 500; }
  .table.stack td.lead { font-size: 16px; padding-bottom: 6px; }
  .table.stack tr[data-href]::after { content: "›"; position: absolute; right: 12px; top: 8px; font-size: 22px; color: var(--muted); }
  .table.stack tr[data-href] td.lead { padding-right: 20px; }
  .table.stack tr[data-href]:hover td { background: transparent; }
  .card:has(> .table.stack) { padding: 10px; background: transparent; border: 0; box-shadow: none; }
  .card:has(> .table.stack) > h2 { padding: 6px 4px 0; }
}

/* ---------------- super admin ---------------- */
.dtabs.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.more-card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.more-card > summary::-webkit-details-marker { display: none; }
.more-card > summary::before { content: "›"; font-size: 20px; line-height: 1; color: var(--muted); transition: transform .2s; }
.more-card[open] > summary { margin-bottom: 12px; } .more-card[open] > summary::before { transform: rotate(90deg); }
.step-action { margin-top: 14px; }
@media (max-width: 640px) { .step-action .btn, .step-card .btn-lg { width: 100%; } .kpis { grid-template-columns: 1fr 1fr; } .kpi b { font-size: 18px; } }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 10px; flex-wrap: wrap; }
.list-head h2 { margin: 0; } .list-head input { max-width: 320px; }
@media (max-width: 640px) { .list-head input { max-width: none; } }
.todo-card { border-color: #f3d7a6; background: #fffaf0; }
.todo-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.todo-list li::before { content: "○"; color: var(--warn); margin-right: 8px; }
.key-form { display: flex; gap: 8px; flex-wrap: wrap; } .key-form input { flex: 1 1 260px; }
.status-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.input-short { max-width: 8em; }
.club-list { display: grid; gap: 10px; }
.club-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, .7fr)) auto; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.club-row.dim { opacity: .55; }
.club-name b { font-size: 16px; } .club-name a { color: var(--ink); text-decoration: none; }
.club-name small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.club-stat span { display: block; font-size: 12px; color: var(--muted); } .club-stat b { font-variant-numeric: tabular-nums; }
.club-manage > summary { list-style: none; cursor: pointer; } .club-manage > summary::-webkit-details-marker { display: none; }
.club-manage[open] { grid-column: 1 / -1; }
.club-manage-body { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--line); }
.club-manage-body .inline-form input { width: 90px; }
.step-card h2 .step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand);
  color: #fff; font-size: 13px; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 860px) {
  .club-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .club-name { grid-column: 1 / -1; }
  .club-manage { grid-column: 1 / -1; } .club-manage > summary { width: 100%; }
  .dtabs.five button { font-size: 11px; }
}

/* ---------------- accessibility ---------------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }
.content:focus { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; }
@media (pointer: coarse) {
  .btn { min-height: 44px; } .btn-sm { min-height: 36px; }
  .side nav a { padding-top: 10px; padding-bottom: 10px; }
  input, select, textarea { font-size: 16px; }   /* iOS: no zoom-in when a field gets focus */
}

/* ---------------- motion ---------------- */
@keyframes a-rise { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card, .flash, .start-step { animation: a-rise .35s cubic-bezier(.2, .7, .2, 1) both; }
.card:nth-of-type(2) { animation-delay: .04s; } .card:nth-of-type(3) { animation-delay: .08s; } .card:nth-of-type(n+4) { animation-delay: .12s; }
.btn { transition: filter .15s, border-color .15s, transform .1s, background .15s; }
.btn:active { transform: scale(.97); }
.side nav a { transition: background .15s, color .15s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
@media print { *, *::before, *::after { animation: none !important; } .side, .skip, .form-actions { display: none !important; } }

/* ---------------- design page: "website ready" checklist ---------------- */
.ready-card { display: flex; flex-direction: column; gap: 10px; }
.ready-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ready-head .bar { width: 160px; }
.ready-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ready-chips .chip.done { color: var(--ok); border-color: #cfe9da; background: #f3fbf6; cursor: default; }
.ready-chips button.chip { color: var(--brand); border-style: dashed; font: inherit; font-weight: 600; font-size: 14px; }

/* ---------------- website statistics ---------------- */
.live-card { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; background: #111116; color: #fff; border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 16px; text-decoration: none; }
.live-card > div { display: flex; align-items: baseline; gap: 8px; }
.live-card b { font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1; }
.live-card span { color: #b4b4c0; font-size: 14px; }
.live-card .live-now b { color: #fff; }
.live-card.compact { padding: 14px 18px; gap: 22px; }
.live-card.compact b { font-size: 24px; }
.live-card .live-more { margin-left: auto; color: #ff8fb8; font-weight: 600; }
a.live-card:hover .live-more { text-decoration: underline; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #55555f; align-self: center; flex: none; }
.live-dot.on { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.18); color: #3ddc84; } }
@media (prefers-reduced-motion: reduce) { .live-dot.on, .bump { animation: none; } }

.range-seg a { display: block; padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.range-seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.kpi small { display: block; font-size: 12px; margin-top: 2px; }
.kpi small.up { color: var(--ok); } .kpi small.down { color: var(--err); }

.vchart { display: flex; align-items: stretch; gap: 6px; height: 220px; padding-top: 8px; }
.vbar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.vbar i { display: block; width: 100%; max-width: 44px; min-height: 2px; background: var(--brand); border-radius: 5px 5px 2px 2px; }
.vbar.we i { background: #ff5c93; }
.vbar-n { font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; min-height: 15px; }
.vbar-l { font-size: 11px; color: var(--muted); white-space: nowrap; min-height: 14px; }
.vchart.many { gap: 3px; }
.vchart.many .vbar-n { font-size: 10px; }
.vchart.many .vbar:nth-child(odd) .vbar-l { visibility: hidden; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-bottom: 12px; }
.hbar .bar { grid-column: 1 / -1; width: 100%; height: 8px; }
.hbar b { font-variant-numeric: tabular-nums; }
.device-line { margin-top: 16px; }
@media (max-width: 640px) {
  .live-card { gap: 14px 22px; padding: 16px; }
  .live-card .live-now { flex-basis: 100%; }
  .live-card .live-today { flex: 1 1 40%; flex-direction: column; gap: 2px; }
  .live-card .live-today b { font-size: 24px; }
  .live-card .live-more { margin-left: 0; }
  .vchart { height: 170px; gap: 3px; }
  .vchart .vbar-n { font-size: 10px; }
  .vchart.many .vbar-n { display: none; }
  .vchart.many .vbar:not(:nth-child(5n+1)) .vbar-l { visibility: hidden; }
  .vchart.many .vbar:nth-child(5n+1) .vbar-l { visibility: visible; }
}

/* ---------------- door scanner (camera) ---------------- */
.scan-head { align-items: center; }
.scan-count { background: #111116; color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 15px; font-variant-numeric: tabular-nums; }
.scan-count b { font-size: 18px; color: #3ddc84; }
.scanner { margin-bottom: 16px; }
.cam { position: relative; background: #0b0b10; border-radius: 18px; overflow: hidden; height: min(68svh, 560px); width: 100%;
  display: grid; place-items: center; color: #fff; }
.cam video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transform: none; }
.cam video[hidden], .cam [hidden] { display: none !important; }
.cam-off { text-align: center; padding: 24px; max-width: 420px; }
.cam-off .btn { font-size: 18px; padding: 16px 28px; }
.cam-off p { color: #b4b4c0; margin-top: 14px; }
.cam-frame { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(260px, 62vw, 46svh); height: min(260px, 62vw, 46svh); pointer-events: none;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); border-radius: 18px; }
.cam-frame i { position: absolute; width: 36px; height: 36px; border: 4px solid #fff; }
.cam-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.cam-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.cam-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.cam-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.cam-frame::after { content: ""; position: absolute; left: 8%; right: 8%; height: 2px; background: var(--brand);
  box-shadow: 0 0 12px var(--brand); top: 50%; animation: scanline 2s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { top: 12%; } 50% { top: 88%; } }
.cam-tools { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 12px; }
.cam-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(20,20,26,.72); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 12px 20px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; backdrop-filter: blur(6px); }
.cam-btn.on { background: #ffd35c; color: #111; border-color: #ffd35c; }
.sc-result { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 20px; z-index: 3; animation: sc-in .15s ease-out; }
.sc-result.sc-ok { background: #12a150; }
.sc-result.sc-already { background: #e07b00; }
.sc-result.sc-bad { background: #d22a2f; }
.sc-title { font-size: clamp(28px, 7vw, 44px); line-height: 1.1; }
.sc-msg { font-size: 18px; margin: 0; max-width: 460px; }
.sc-info { font-size: 15px; opacity: .9; margin: 0; }
.sc-next { margin-top: 10px; background: #fff; color: #111; border: 0; min-width: 200px; }
.sc-ok .sc-next { display: none; }
@keyframes sc-in { from { opacity: 0; transform: scale(.96); } }
@media (max-width: 640px) {
  .scanner { margin-left: -16px; margin-right: -16px; }
  .cam { border-radius: 0; height: min(64svh, 520px); }
}
@media (prefers-reduced-motion: reduce) { .cam-frame::after, .sc-result { animation: none; } }

/* ---------------- team: visible PINs ---------------- */
.pin-show { font-family: ui-monospace, monospace; font-size: 18px; font-weight: 700; letter-spacing: .15em;
  background: #f1f1f5; border-radius: 8px; padding: 3px 10px; }
.pin-reveal summary { cursor: pointer; list-style: none; display: inline-block; }
.pin-reveal summary::-webkit-details-marker { display: none; }
.pin-reveal[open] summary { display: none; }

/* ---------------- payouts: reminder + one-click flow ---------------- */
.tabbar > a .dot-warn { position: absolute; top: 4px; right: calc(50% - 18px); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(1.08); }
.payout-alert { display: flex; align-items: center; gap: 14px; background: #111116; color: #fff; border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 16px; text-decoration: none; }
.payout-alert small { display: block; color: #b4b4c0; margin-top: 2px; }
.payout-alert .pa-icon { font-size: 28px; }
.payout-alert .pa-go { margin-left: auto; background: var(--ok); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 10px; white-space: nowrap; }
.payout-hero.done h2 { color: var(--ok); }
.howto { margin: 4px 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.sched-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 12px; }
.sched-pick label { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.sched-pick label:has(input:checked) { border-color: var(--brand); background: #ffeef4; }
.sched-pick input { margin-right: 6px; }
.sched-pick small { display: block; color: var(--muted); margin-top: 4px; }
@media (max-width: 640px) {
  .payout-alert { flex-wrap: wrap; }
  .payout-alert .pa-go { margin-left: 0; width: 100%; text-align: center; }
  .sched-pick { grid-template-columns: 1fr; }
}

/* overview: three big actions once the club is set up */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.quick-btn { display: flex; flex-direction: column; gap: 8px; justify-content: center; min-height: 120px; padding: 20px;
  background: var(--card); border: 2px solid var(--line); border-radius: 16px; color: var(--ink); font-weight: 700; font-size: 18px; text-decoration: none; }
.quick-btn > span { font-size: 28px; line-height: 1; }
.quick-btn:hover { border-color: var(--brand); }
.quick-btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.quick-btn.link { font-size: 15px; }
.quick-btn .copy { width: 100%; font-weight: 400; }
a.kpi { color: inherit; text-decoration: none; } a.kpi:hover { border-color: var(--brand); }
@media (max-width: 720px) { .quick { grid-template-columns: 1fr 1fr; } .quick-btn.link { grid-column: 1 / -1; min-height: 0; } .quick-btn { min-height: 96px; } }
