/* ---------- tokens ---------- */
:root {
  --brand: #d6336c;
  --ink: #1b1d3a;
  --ink-2: #4a4e6d;
  --muted: #6b6f8a;
  --bg: #f7f5fb;
  --panel: #ffffff;
  --line: #e6e3ef;
  --ok: #1f8a5b;
  --warn: #b26a00;
  --bad: #c62839;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(27, 29, 58, .06), 0 8px 24px rgba(27, 29, 58, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  display: flex; flex-direction: column; min-height: 100vh;
}
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 56px; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 0 0 14px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
a { color: var(--brand); }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
code { background: #efecf6; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub { display: block; font-size: .85rem; color: var(--muted); }

/* ---------- header / footer ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; white-space: nowrap; }
.logo-mark { width: 28px; height: 20px; border-radius: 5px; background: linear-gradient(135deg, var(--brand), #ffb547); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.main-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.main-nav a { color: #d9d9ef; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }
.basket-link { position: relative; color: #fff; display: inline-flex; padding: 8px; border-radius: 999px; }
.basket-link:hover { background: rgba(255,255,255,.1); }
.basket-count { position: absolute; top: 0; right: -2px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.basket-count[hidden] { display: none; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .875rem; background: #fff; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.test-flag { color: var(--warn); font-weight: 600; }

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 6px 12px; padding: 8px 16px 0; }
  .main-nav { order: 3; width: 100%; margin: 0 -16px; padding: 0 12px 8px; }
  .basket-link { margin-left: auto; }
}

/* ---------- buttons / forms ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 11px 18px; font: inherit; font-weight: 700;
  background: var(--brand); color: #fff; text-decoration: none; cursor: pointer;
  transition: transform .06s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:focus-visible, input:focus-visible, .link-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.btn-secondary { background: #efeaf8; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 1.05rem; }
.btn-sm { padding: 7px 12px; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.center-block { display: block; margin: 10px auto 0; }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input:not([type]) {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-weight: 400;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus { border-color: var(--brand); outline: none; }
input[readonly] { background: #f3f1f8; color: var(--ink-2); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field-error { display: block; color: var(--bad); font-weight: 500; font-size: .85rem; margin-top: 4px; }
.input-btn { display: flex; gap: 8px; margin-top: 6px; }
.input-btn input { margin-top: 0; text-transform: uppercase; letter-spacing: .06em; }
.code-input { font-size: 1.5rem !important; letter-spacing: .4em; text-align: center; }

/* ---------- panels / notices ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel.narrow, .narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.notice { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; background: #eef0ff; color: #273079; font-weight: 500; }
.notice-error { background: #fdecee; color: #8c1525; }
.notice-success { background: #e6f6ee; color: #135c3c; }
.notice-warning { background: #fff4e0; color: #7a4800; }
.panel .notice { margin-top: 14px; margin-bottom: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #efeaf8; font-size: .8rem; font-weight: 700; }
.pill-ok, .status-closed { background: #e2f4ea; color: var(--ok); }
.pill-bad, .status-needs_attention { background: #fdecee; color: var(--bad); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1 { margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.empty { text-align: center; padding: 20px 0; }
.empty .btn { margin: 4px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center;
  background: radial-gradient(1200px 400px at 90% -20%, rgba(255,181,71,.35), transparent 60%),
              linear-gradient(135deg, var(--ink) 0%, #2d2463 60%, color-mix(in srgb, var(--brand) 70%, #2d2463) 100%);
  color: #fff; border-radius: 24px; padding: clamp(24px, 5vw, 48px); margin-bottom: 36px; overflow: hidden;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 10px; }
.hero p { color: #e4e2f5; font-size: 1.1rem; max-width: 34ch; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-card { display: flex; justify-content: center; }
.hero-card .playcard { transform: rotate(-7deg); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-card { display: none; } }

/* ---------- play card visual ---------- */
.playcard {
  position: relative; width: 280px; max-width: 100%; aspect-ratio: 1.586; border-radius: 16px; padding: 18px;
  background: linear-gradient(135deg, var(--brand) 0%, #ff8a5b 55%, #ffc24d 100%);
  color: #fff; box-shadow: 0 18px 40px rgba(20, 10, 60, .35); display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.playcard::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.14); }
.playcard .chip { position: absolute; top: 18px; left: 18px; width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #fff6d8, #e8c66b); }
.playcard-num { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.3rem; letter-spacing: .12em; font-weight: 700; position: relative; z-index: 1; }
.playcard-name { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; position: relative; z-index: 1; }
.playcard-label { position: absolute; top: 20px; right: 18px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.playcard-lg { width: 340px; margin: 18px auto; }

/* ---------- products ---------- */
.product-section { margin-bottom: 36px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.product-top { height: 92px; display: flex; align-items: flex-end; padding: 14px 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, #fff), #fff3e2); }
.product-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.product-body { padding: 14px 16px 6px; flex: 1; }
.product-body p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.product .btn { margin: 12px 16px 16px; width: auto; }

.card-found { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 8px 0 24px; }
.card-found .playcard { width: 220px; }
.card-found .playcard-num { font-size: 1.05rem; }

/* ---------- basket / checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.basket-lines { list-style: none; margin: 0; padding: 0; }
.basket-line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.basket-name { font-weight: 600; }
.basket-price { font-weight: 700; min-width: 72px; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); border-radius: 999px; }
.qty button:hover { background: #f1eef8; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.basket-total { display: flex; justify-content: space-between; padding: 16px 0 4px; font-size: 1.1rem; }
@media (max-width: 520px) {
  .basket-line { grid-template-columns: 1fr auto; }
  .basket-line .link-btn { justify-self: start; }
}
table.lines { width: 100%; border-collapse: collapse; }
.lines th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.lines td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines .num { text-align: right; padding-right: 0; white-space: nowrap; }
.panel-table { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.panel-table th, .panel-table td { padding-left: 14px; padding-right: 14px; }
.panel-table .num { padding-right: 14px; }
.row-alert td { background: #fff4f5; }
.coupon { margin-top: 18px; }
.coupon-form { display: flex; gap: 8px; max-width: 380px; }
.coupon-form input { margin: 0; text-transform: uppercase; }
form.inline { display: flex; align-items: center; gap: 10px; }
.totals { margin: 0 0 18px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 600; }
.totals .discount dd { color: var(--ok); }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.25rem; }
.totals .grand dt { color: var(--ink); font-weight: 700; }
.totals .grand dd { font-weight: 800; }
@media (min-width: 861px) { .summary { position: sticky; top: 84px; } }

/* ---------- confirmation ---------- */
.confirm { text-align: center; }
.tick { width: 64px; height: 64px; border-radius: 50%; background: #e2f4ea; color: var(--ok); display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 0 auto 12px; }
.confirm .playcard { text-align: left; }
.facts { display: grid; gap: 8px; text-align: left; background: #f8f6fc; border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.otp { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.3rem; letter-spacing: .15em; }
.confirm .actions { justify-content: center; }

/* ---------- balances / cards ---------- */
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }
.balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0 0 14px; }
.balances div { background: #f8f6fc; border-radius: 12px; padding: 10px 12px; }
.balances dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.balances dd { margin: 0; font-size: 1.4rem; font-weight: 800; }
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card-item { margin: 0; }
.link-card { margin-top: 20px; }
.link-card .card-form { max-width: 460px; }
details.raw { margin: 12px 0; }
details.raw summary { cursor: pointer; font-weight: 600; }
details.raw pre { white-space: pre-wrap; word-break: break-word; background: #f8f6fc; border-radius: 10px; padding: 12px; font-size: .82rem; max-height: 320px; overflow: auto; }
.history { padding-left: 20px; font-size: .92rem; }
.history time { color: var(--muted); margin-right: 6px; }

/* ---------- test gateway ---------- */
.gateway-page main { display: flex; justify-content: center; }
.gateway { align-self: flex-start; width: 100%; max-width: 420px; background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(20,20,60,.18); overflow: hidden; border: 1px solid var(--line); }
.gateway-banner { background: repeating-linear-gradient(-45deg, #ffe08a, #ffe08a 12px, #ffd25c 12px, #ffd25c 24px); color: #5c4200; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-align: center; padding: 8px; }
.gateway-body { padding: 24px; }
.gateway-merchant { margin: 0; color: var(--muted); font-weight: 600; }
.gateway-amount { font-size: 2.4rem; font-weight: 800; margin: 2px 0 0; letter-spacing: -.02em; }
.gateway-pay { background: #2f3fd6; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow);
  transition: transform .25s ease; max-width: calc(100% - 32px); font-size: .95rem;
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: #ffc2d6; margin-left: 8px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .toast, .btn { transition: none; } }

/* ================================================================
   One-page checkout: 1 Choose · 2 Your details · 3 Payment
   ================================================================ */
.shop-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas: "products summary" "forms summary";
  gap: 8px 32px; align-items: start;
}
.shop-products { grid-area: products; }
.order-summary { grid-area: summary; }
.checkout-forms { grid-area: forms; }
.shop-products .product-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.step-title, .step h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 0 0 16px; }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .95rem; font-weight: 800; flex: none;
}
.group-title { font-size: 1rem; color: var(--ink-2); margin: 0 0 12px; }
.product-section { margin-bottom: 28px; }
.product .btn.added { background: var(--ok); }

/* Order summary */
.order-summary {
  position: sticky; top: 84px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; max-height: calc(100vh - 100px); overflow: auto;
}
.order-summary h2 { margin-bottom: 12px; }
.panel-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.panel-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.panel-line-name { font-weight: 600; font-size: .93rem; line-height: 1.3; }
.panel-line-price { font-weight: 700; min-width: 64px; text-align: right; font-size: .95rem; }
.qty-sm button { width: 28px; height: 28px; font-size: 1rem; }
.qty-sm span { min-width: 18px; font-size: .9rem; }
.panel-coupon { margin: 4px 0 6px; max-width: none; }
.panel-coupon input { margin: 0; min-width: 0; }
.coupon-status { font-size: .9rem; min-height: 4px; margin-bottom: 4px; }
.coupon-status .field-error { margin: 0; }
.order-summary .totals { margin: 8px 0 14px; }
.updating { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.summary-next { display: none; }

/* Steps 2 and 3 */
.checkout-forms .step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.signed-in p { margin-top: 0; }
.account-password { background: #f8f6fc; border-radius: 12px; padding: 12px 14px 2px; margin: -4px 0 14px; }
.account-password p { margin: -6px 0 12px; }
input[aria-invalid="true"] { border-color: var(--bad); }
label.check + .field-error { margin: -10px 0 12px; }
.express { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .express { grid-template-columns: 1fr; } }
.wallet {
  height: 48px; border-radius: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #000; color: #fff;
}
.wallet:hover:not(:disabled) { filter: brightness(1.25); }
.wallet:disabled { opacity: .45; cursor: not-allowed; }
.wallet:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.wallet-google { background: #202124; }
.wallet-test { font-size: .62rem; letter-spacing: .08em; background: #ffd25c; color: #3d2c00; padding: 2px 5px; border-radius: 4px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.test-note { background: #fff7e0; color: #6b4b00; border-radius: 10px; padding: 8px 12px; font-size: .85rem; margin: 0 0 14px; }
.field-row-tight { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .field-row-tight { grid-template-columns: 1fr 1fr; gap: 12px; } }
[data-checkout-error] { margin: 4px 0 14px; }
.secure-note { margin: 10px 0 0; }

/* Confirmation page: account activation */
.account-offer { text-align: left; background: #f3f0fb; border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.account-offer h2 { font-size: 1.05rem; margin-bottom: 6px; }
.account-offer p { margin: 0 0 12px; }

/* Bottom bar on phones */
.basket-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; text-decoration: none; padding: 12px 16px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 20, 60, .35);
}
.basket-bar[hidden] { display: none; }
.basket-bar strong { margin-left: auto; font-size: 1.05rem; }
.basket-bar-cta { background: var(--brand); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.toast a { color: #ffc2d6; }

@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; grid-template-areas: "products" "summary" "forms"; gap: 8px; }
  .order-summary { position: static; max-height: none; margin-bottom: 20px; }
  .summary-next { display: flex; }
  body.has-basket-bar .site-footer { padding-bottom: 84px; }
}
@media (min-width: 961px) { .basket-bar { display: none !important; } }

/* Wallet sheet (test) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 15, 35, .55); z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.sheet-backdrop[hidden] { display: none; }
.sheet { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: sheet-up .2s ease-out; }
@media (min-width: 600px) { .sheet-backdrop { align-items: center; } }
@keyframes sheet-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-banner { background: repeating-linear-gradient(-45deg, #ffe08a, #ffe08a 12px, #ffd25c 12px, #ffd25c 24px); color: #5c4200; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-align: center; padding: 7px; }
.sheet-body { padding: 20px 22px 22px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; }
.sheet-merchant { color: var(--muted); margin: 4px 0 12px; font-weight: 600; }
.sheet-lines { list-style: none; padding: 0; margin: 0 0 8px; font-size: .93rem; }
.sheet-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sheet-lines .discount span:last-child { color: var(--ok); }
.sheet-total { display: flex; justify-content: space-between; font-size: 1.25rem; padding: 10px 0 16px; }
.sheet-pay { background: #000; }
.sheet-google .sheet-pay { background: #202124; }
body.sheet-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .sheet, .spinner { animation: none; } }
body.has-basket-bar .toast { bottom: 84px; }

/* ---------- collapsing steps (only when JavaScript is running) ---------- */
[data-step] { scroll-margin-top: 84px; }
.step-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.step-head .step-title { margin: 0; }
.step-summary { color: var(--ink-2); font-size: .95rem; min-width: 0; overflow-wrap: anywhere; }
.step-summary:empty { display: none; }
.step-edit { margin-left: auto; }
.step-body { margin-top: 16px; }
.step-actions { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 8px; }
.step-actions-1 { margin: 0 0 28px; }

.js-steps [data-step].is-done .step-num { background: var(--ok); font-size: 0; }
.js-steps [data-step].is-done .step-num::after { content: "\2713"; font-size: .95rem; }
.js-steps [data-step].is-locked .step-num { background: #b9b6c8; }
.js-steps [data-step].is-locked .step-title { color: var(--muted); }
.js-steps [data-step]:not(.is-open) .step-title { font-size: 1.15rem; }

/* Step 1 sits on the page background while open; collapsed it becomes a card like steps 2 and 3. */
.js-steps .step-one:not(.is-open) {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 22px; margin-bottom: 20px;
}
.js-steps .checkout-forms .step:not(.is-open) { padding: 16px 22px; }
.js-steps .checkout-forms .step.is-locked { box-shadow: none; background: #fbfafd; }
@media (max-width: 960px) {
  .step-actions-1 .btn { width: 100%; }
}

/* ---------- visit-date calendar ---------- */
.hero-compact { padding-top: clamp(20px, 3.5vw, 34px); padding-bottom: clamp(20px, 3.5vw, 34px); margin-bottom: 28px; }
.hero-compact h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero-compact .hero-card .playcard { width: 230px; }
.visit-calendar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 22px; max-width: 520px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-month { margin: 0; font-size: 1.15rem; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.cal-nav:hover:not(:disabled) { background: #f1eef8; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-dow span { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-day {
  --day: #ced4da;
  position: relative; width: 100%; aspect-ratio: 1; min-height: 38px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--day) 45%, transparent);
  background: color-mix(in srgb, var(--day) 14%, #fff); color: var(--ink);
  font: inherit; font-weight: 700; font-size: .95rem;
}
.cal-day::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--day); }
.cal-day:hover:not(.is-off) { background: color-mix(in srgb, var(--day) 26%, #fff); }
.cal-day:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.cal-day.is-selected { background: var(--day); border-color: var(--day); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--day) 45%, transparent); }
.cal-day.is-selected::after { background: #fff; }
.cal-day.has-note::before { content: "\2605"; position: absolute; top: 2px; right: 5px; font-size: .62rem; color: var(--day); }
.cal-day.is-selected.has-note::before { color: #fff; }
.cal-day.is-off { cursor: not-allowed; background: #f4f3f7; border-color: transparent; color: #b8b5c6; text-decoration: line-through; text-decoration-color: #cfcbdc; }
.cal-day.is-off::after { opacity: .35; }
.cal-day.cal-out { --day: #e9ecef; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 12px 0 0; font-size: .85rem; color: var(--ink-2); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--day); display: inline-block; }
.cal-note { margin: 8px 0 0; }
@media (max-width: 420px) { .visit-calendar { padding: 12px; } .cal-row { gap: 4px; } .cal-day { border-radius: 8px; font-size: .9rem; } }

.day-products { margin-bottom: 8px; }
.day-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.day-head h3 { margin: 0; font-size: 1.2rem; }
.day-pill { --day: #868e96; background: var(--day); color: #fff; font-weight: 700; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.day-note { font-weight: 600; color: var(--ink-2); }
.day-loading { display: flex; align-items: center; gap: 10px; }
.day-products .group-title { font-size: 1rem; margin: 0 0 10px; color: var(--ink-2); }
.summary-date { margin: 0 0 6px; font-size: .95rem; background: #f8f6fc; border-radius: 10px; padding: 8px 10px; }
.summary-date .muted { display: block; font-size: .78rem; }

/* product images */
.product.has-image .product-top { height: 150px; background-size: cover; background-position: center; position: relative; }
.product.has-image .product-top::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 30, .65)); }
.product.has-image .product-price { position: relative; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 6px 0 20px; overflow-x: auto; }
.admin-tabs a { padding: 10px 16px; text-decoration: none; color: var(--ink-2); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.admin-tabs a:hover { color: var(--ink); }
.admin-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.admin-table input:not([type=checkbox]):not([type=file]), .admin-table select { margin: 0; padding: 8px 10px; }
.admin-table select { font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; min-width: 150px; }
.admin-table td { vertical-align: middle; }
.admin-table .center { text-align: center; }
.num-input { width: 80px !important; text-align: right; display: inline-block !important; }
.id-input { width: 120px !important; display: inline-block !important; }
.inline-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.inline-label input, .inline-label select { margin: 0; width: auto; display: inline-block; }
.inline-label select { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.new-row td { background: #faf9fd; }
.new-row input:not([type=checkbox]):not([type=color]) { min-width: 240px; }
.cat-form .btn { margin-top: 4px; }
.date-pick { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; margin: 0 -4px 14px; padding: 0 4px; }
.products-table { min-width: 720px; }
.img-cell { width: 190px; }
.thumb { display: block; width: 120px; height: 75px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; background: #f1eef8; }
.thumb.is-new { outline: 3px solid var(--ok); }
.thumb-empty { background: repeating-linear-gradient(45deg, #f4f2f9, #f4f2f9 8px, #ece9f4 8px, #ece9f4 16px); }
.file-label { display: block; margin: 0; font-weight: 500; }
.file-label input { font-size: .8rem; max-width: 180px; }
.img-cell label.check { margin: 0 0 4px; }
.is-hidden-product td { color: var(--muted); }
.is-hidden-product .thumb { opacity: .5; }
.warn-text { color: var(--warn) !important; }
.add-product { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.field-row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .field-row-4 { grid-template-columns: 1fr 1fr; } }
.field-row-4 select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
input[type=date], input[type=time] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.inline-label input[type=date] { width: auto; margin: 0; display: inline-block; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.type-row { display: flex; align-items: center; gap: 10px; }
.type-row input[type=color] { width: 48px; height: 42px; padding: 3px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; flex: none; cursor: pointer; }
.type-row input:not([type=color]) { margin: 0; }
.brush-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; }
.brush { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; background: #fff; }
.brush input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.brush:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.brush:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.brush-clear { background: repeating-linear-gradient(45deg, #fff, #fff 3px, #ced4da 3px, #ced4da 5px) !important; border: 1px solid #ced4da; }
.brush-note input { min-width: 200px; }
.bulk { margin: 0 0 16px; background: #f8f6fc; border-radius: 12px; padding: 10px 14px; }
.bulk summary { cursor: pointer; font-weight: 700; }
.bulk-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.weekday-picks { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.weekday-picks label.check { margin: 0; align-items: center; }
.weekday-picks label.check input { margin-top: 0; }
.admin-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 22px; user-select: none; -webkit-user-select: none; touch-action: none; }
.adm-month h3 { font-size: 1rem; margin: 0 0 8px; }
.adm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.adm-dow { text-align: center; font-size: .7rem; font-weight: 700; color: var(--muted); }
.adm-out { text-align: center; font-size: .8rem; color: #cfcbdc; padding: 6px 0; }
.adm-day { aspect-ratio: auto; min-height: 30px; height: 30px; border-radius: 6px; font-size: .8rem; background: var(--day); border-color: var(--day); color: #fff; }
.adm-day::after { display: none; }
.adm-day:hover { filter: brightness(1.08); background: var(--day) !important; }
.adm-day.is-default { background: color-mix(in srgb, var(--day) 18%, #fff); border-color: color-mix(in srgb, var(--day) 35%, transparent); color: var(--ink); }
.adm-day.is-default:hover { background: color-mix(in srgb, var(--day) 30%, #fff) !important; }
.adm-day.has-note::before { color: #fff; top: 0; right: 3px; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 0; background: linear-gradient(180deg, transparent, var(--bg) 35%); }
.sticky-save [data-dirty] { color: var(--warn); font-weight: 700; }

.admin-table th.num, .admin-table td.num { padding-right: 18px; }
.admin-table th { white-space: nowrap; }
.sticky-save { background: var(--panel); border-top: 1px solid var(--line); margin: 0 -16px; padding: 12px 16px; box-shadow: 0 -6px 18px rgba(27, 29, 58, .06); }
.adm-day.has-note::before { top: -1px; right: 2px; font-size: .5rem; }

/* ---------- Season Passes / Day Tickets picker ---------- */
.path-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.path-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  text-align: left; padding: 22px; border-radius: var(--radius); cursor: pointer; font: inherit; color: var(--ink);
  background: var(--panel); border: 2px solid var(--line); box-shadow: var(--shadow); transition: border-color .15s, transform .1s;
}
.path-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.path-card:active { transform: translateY(1px); }
.path-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.path-icon { grid-row: 1 / 3; width: 52px; height: 52px; padding: 10px; border-radius: 14px; }
.path-passes .path-icon { color: #b26a00; background: #fff1d6; }
.path-day .path-icon { color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, #fff); }
.path-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.path-text { color: var(--ink-2); font-size: .95rem; }
.path-card.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.path-card.is-selected .path-title::after { content: " \2713"; color: var(--ok); }
/* After a choice the cards shrink so the products come into view. */
.path-picker.is-chosen .path-card { padding: 12px 16px; }
.path-picker.is-chosen .path-icon { width: 38px; height: 38px; padding: 7px; border-radius: 10px; }
.path-picker.is-chosen .path-title { font-size: 1.05rem; }
.path-picker.is-chosen .path-text { font-size: .85rem; }
.path-picker.is-chosen .path-card:not(.is-selected) { box-shadow: none; background: #fbfafd; }
@media (max-width: 560px) {
  .path-picker { grid-template-columns: 1fr; gap: 10px; }
  .path-picker.is-chosen { grid-template-columns: 1fr 1fr; }
  .path-picker.is-chosen .path-text { display: none; }
  .path-picker.is-chosen .path-card { column-gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .path-card { transition: none; } }
.inline-check { display: inline-flex; margin: 0 0 0 16px; vertical-align: middle; }
.inline-check input { margin-top: 0; }

/* category images: they scale with the card instead of being squeezed into a small square */
.path-card.has-image { grid-template-columns: 1fr; grid-template-rows: auto; padding: 0; overflow: hidden; align-content: start; }
.path-card.has-image .path-title, .path-card.has-image .path-text { padding: 0 20px; }
.path-card.has-image .path-title { padding-top: 14px; }
.path-card.has-image .path-text { padding-bottom: 18px; }
.path-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #f1eef8; }
/* once chosen, the card shrinks and the image becomes a small landscape thumbnail on the left */
.path-picker.is-chosen .path-card.has-image { grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 10px 14px; }
.path-picker.is-chosen .path-card.has-image .path-image { grid-row: 1 / 3; width: 64px; aspect-ratio: 16 / 10; border-radius: 8px; }
.path-picker.is-chosen .path-card.has-image .path-title,
.path-picker.is-chosen .path-card.has-image .path-text { padding: 0; }
@media (max-width: 560px) {
  .path-picker.is-chosen .path-card.has-image .path-image { width: 48px; }
}
.group-title { display: flex; align-items: center; gap: 10px; }

/* admin: catalogue explanation, season check, bulk tools, day types */
.explain { background: #f3f0fb; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.explain h2 { font-size: 1.05rem; margin-bottom: 8px; }
.explain ol { margin: 0 0 8px; padding-left: 20px; }
.explain li { margin-bottom: 6px; }
.explain p { margin: 0; }
.view-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 14px; }
.view-switch a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .9rem; }
.view-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.scan-box { background: #f8f6fc; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.scan-box p { margin: 0 0 10px; }
.scan-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.scan-progress .bar { flex: 1; min-width: 180px; height: 10px; background: #e6e3ef; border-radius: 999px; overflow: hidden; }
.scan-progress .bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.bulk-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.bulk-cat label.check { margin: 0; align-items: center; }
.bulk-cat label.check input { margin-top: 0; }
.bulk-cat select { font: inherit; padding: 6px 10px; }
.img-cell-sm { width: 150px; }
.thumb-sm { width: 72px; height: 48px; }
.types-table { max-width: 640px; }
.types-table input[type=color] { width: 48px; height: 40px; padding: 3px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.brush-note { margin: 0 0 14px; flex-wrap: wrap; }
/* the chosen day keeps its solid colour while hovered */
.cal-day.is-selected:hover:not(.is-off) { background: var(--day); }

/* ---------- calendar extras: symbols in the corner and split colours ---------- */
.cal-syms { position: absolute; top: 3px; left: 5px; display: flex; gap: 2px; font-size: .8rem; line-height: 1; font-weight: 400; pointer-events: none; }
.x-sym { color: var(--x, currentColor); }
.cal-day.is-selected .x-sym { color: #fff; }
.cal-day.is-off .cal-syms { opacity: .45; }
/* split: the lower-right half of the day takes the extra's colour */
.cal-day.has-split:not(.is-off) { background: linear-gradient(135deg, color-mix(in srgb, var(--day) 14%, #fff) 50%, color-mix(in srgb, var(--split) 34%, #fff) 50%); }
.cal-day.has-split:hover:not(.is-off) { background: linear-gradient(135deg, color-mix(in srgb, var(--day) 26%, #fff) 50%, color-mix(in srgb, var(--split) 48%, #fff) 50%); }
.cal-day.has-split.is-selected, .cal-day.has-split.is-selected:hover:not(.is-off) { background: linear-gradient(135deg, var(--day) 50%, var(--split) 50%); }
/* admin grid */
.adm-day .cal-syms { top: 1px; left: 2px; font-size: .55rem; }
.adm-day:not(.is-default) .x-sym { color: #fff; }
.adm-day.has-split, .adm-day.has-split:hover { background: linear-gradient(135deg, var(--day) 50%, var(--split) 50%) !important; }
.adm-day.is-default.has-split, .adm-day.is-default.has-split:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--day) 18%, #fff) 50%, var(--split) 50%) !important; }
/* legend and brush samples */
.x-swatch { display: inline-flex; align-items: center; gap: 3px; min-width: 14px; }
.x-swatch.is-split::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #e9e7f0 50%, var(--x) 50%); }
.x-swatch .x-sym { font-size: .85rem; line-height: 1; }
/* chosen-day heading */
.day-extra { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  border: 1.5px solid var(--x); background: color-mix(in srgb, var(--x) 12%, #fff); color: var(--ink); }
.brush-bar-extras { margin-top: 8px; }
.extras-table input.symbol-input, .extras-table .new-row input.symbol-input { width: 4.5em; min-width: 0; text-align: center; font-size: 1.05rem; }
.extras-table th:first-child, .extras-table td:first-child { width: 6em; }
@media (max-width: 420px) { .cal-syms { font-size: .66rem; top: 2px; left: 3px; } }

/* closed days: greyed out, but can be clicked to see that the park is closed */
.cal-day.is-closed { cursor: pointer; text-decoration: none; }
.cal-day.is-closed:hover { background: #ebe9f0; color: var(--ink-2); }
.cal-day.is-closed.is-selected, .cal-day.is-closed.is-selected:hover { background: var(--day); border-color: var(--day); color: #fff; }
.notice-info { background: #eef1fb; color: #23306b; }

/* ---------- order confirmation: collection QR code, wallet passes, PDF ---------- */
.collect { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 20px 0 14px;
  padding: 18px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.collect-qr svg { display: block; width: 220px; height: 220px; max-width: 70vw; max-height: 70vw; }
.collect-info { display: grid; gap: 6px; text-align: left; max-width: 240px; }
.collect-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.collect-info .otp { font-size: 2rem; font-weight: 800; letter-spacing: .12em; color: var(--ink); word-break: break-all; }
.collect-info p { margin: 0; }
@media (max-width: 520px) { .collect-info { text-align: center; justify-items: center; } }
.pass-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; }
.btn-wallet { background: #000; color: #fff; border-color: #000; }
.btn-wallet:hover { background: #222; color: #fff; }
.confirm-sub { font-size: 1.05rem; text-align: left; margin: 20px 0 6px; }
.confirm-lines { width: 100%; text-align: left; }
.confirm-lines td, .confirm-lines th { padding: 8px 0; border-bottom: 1px solid var(--line); }
.confirm-lines .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.confirm-lines tfoot th { border-bottom: 0; font-size: 1.05rem; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 800; }
.staff-note { background: #fff8e1; border: 1px dashed #e0b84a; border-radius: 10px; padding: 8px 12px; text-align: left; color: #6b5310; }
@media print {
  .site-header, .site-footer, .pass-actions, .actions, .account-offer, .staff-note { display: none !important; }
}
.btn-wallet.is-demo { position: relative; }
.btn-wallet.is-demo::after { content: "Demo"; position: absolute; top: -8px; right: -6px; background: #f08c00; color: #fff; font-size: .62rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; }

/* ---------- pass holders ---------- */
.holders { text-align: left; }
.holder-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.holder-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.holder-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); }
.holder-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.holder-status-ready { color: #2b8a3e; font-weight: 700; }
.holder-status-failed { color: #c92a2a; font-weight: 700; }
.holder-status-waiting { color: #8a5a00; }
.holder-page h1 { margin-bottom: 2px; }
.holder-form { display: grid; gap: 14px; margin-top: 18px; text-align: left; }
.holder-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .holder-form .field-row { grid-template-columns: 1fr; } }
.holder-form .field { display: grid; gap: 4px; }
.holder-form .field span, .field-label { font-weight: 700; font-size: .9rem; }
.photo-picker { display: grid; gap: 8px; justify-items: start; }
.photo-picker p { margin: 0; }
.cropper { display: grid; gap: 8px; justify-items: center; width: 100%; }
.cropper canvas { width: 300px; height: 300px; max-width: 80vw; max-height: 80vw; border-radius: 12px; border: 1.5px solid var(--line); cursor: grab; touch-action: none; background: #fff; }
.cropper canvas:active { cursor: grabbing; }
.cropper canvas:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.cropper .zoom { display: flex; align-items: center; gap: 10px; width: min(300px, 80vw); }
.cropper .zoom input { flex: 1; }
.consent { align-items: flex-start; }
.field-error { color: #c92a2a; font-size: .88rem; font-weight: 600; margin: 0; }
.back-link { display: inline-block; margin-bottom: 10px; font-size: .9rem; }
.holder-status { font-weight: 700; }
.address-fields { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; min-width: 0; }
.address-fields legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
