/* Shared design system. Each site sets the variables below (site.php theme.colors / fonts) and may add site.css. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --text: #121826;
  --muted: #5b6474;
  --border: #e3e7ee;
  --primary: #1f6feb;
  --primary-ink: #ffffff;
  --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);
  --accent: #f59e0b;
  --ok: #16794a;
  --ok-soft: #e7f6ee;
  --warn: #9a6200;
  --warn-soft: #fff4dc;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --info: #175cd3;
  --info-soft: #e8f0fe;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -12px rgba(16, 24, 40, .14);
  --shadow-lg: 0 24px 60px -24px rgba(16, 24, 40, .35);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
code, kbd { font-family: var(--font-mono); font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: var(--primary-soft); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.wrap-mid { max-width: 960px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .5rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }

/* ------------------------------------------------------------------ header */
.test-banner { background: #fff4dc; color: #6b4500; text-align: center; font-size: .86rem; padding: 6px 12px; border-bottom: 1px solid #f1d9a1; }
.test-banner .icon { vertical-align: -.25em; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; display: block; }
.main-nav { display: flex; gap: 4px; align-items: center; margin-right: auto; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.nav-mobile-only { display: none; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 8px; color: var(--text); cursor: pointer; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 650; font-size: .97rem; line-height: 1.2;
  padding: .78em 1.25em; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, black); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--border)); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-accent { background: var(--accent); color: #1a1205; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { font-size: .88rem; padding: .55em .95em; }
.btn-lg { font-size: 1.05rem; padding: .95em 1.6em; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; text-decoration: underline; }

/* ------------------------------------------------------------------ sections & hero */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); margin-bottom: .7rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { max-width: 40ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 1.4rem; padding: 0; list-style: none; color: var(--muted); font-size: .93rem; }
.hero-points li { display: flex; gap: 6px; align-items: center; }
.hero-points .icon { color: var(--ok); }
.hero-art { position: relative; }
.hero-art img, .hero-art svg { width: 100%; height: auto; display: block; }
.page-head { padding: 44px 0 20px; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: .6rem; }
.breadcrumbs a { color: inherit; }

/* ------------------------------------------------------------------ cards & grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; }
.card-pad-lg { padding: 32px; }
.card h3 { margin-bottom: .35em; }
.card > :last-child { margin-bottom: 0; }
a.card { color: inherit; text-decoration: none; display: block; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: var(--shadow-lg); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.card-icon .icon { width: 24px; height: 24px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.feature-list .icon { color: var(--ok); margin-top: .2em; }
.feature-list li.no .icon { color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* Pricing / packages */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.price-card .badge-top { position: absolute; top: -12px; left: 24px; background: var(--primary); color: var(--primary-ink); font-size: .74rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price-card h3 { font-size: 1.15rem; }
.price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; margin: .3rem 0 .15rem; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .feature-list { flex: 1; margin: 16px 0 20px; }
.price-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.price-meta span { display: inline-flex; gap: 5px; align-items: center; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 750; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--primary); color: var(--primary-ink); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 52px); display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3em; color: inherit; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn-secondary { border-color: transparent; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item .icon { color: var(--primary); width: 24px; height: 24px; margin-top: 2px; }
.trust-item strong { display: block; }
.trust-item span { color: var(--muted); font-size: .92rem; }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: .93rem; }
.field .help, .help { color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=search], input[type=date], input[type=file], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 18%, var(--border)); border-radius: var(--radius-sm); padding: .7em .85em;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
input[type=file] { padding: .55em; background: var(--surface-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: .22em; accent-color: var(--primary); flex: none; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.radio-card input { accent-color: var(--primary); width: 18px; height: 18px; }
.radio-card .rc-body { flex: 1; }
.radio-card .rc-body strong { display: block; }
.radio-card .rc-body span { color: var(--muted); font-size: .88rem; }
.hp { position: absolute; left: -5000px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin: 0; }
legend { font-weight: 650; padding: 0 6px; }

/* ------------------------------------------------------------------ alerts, badges */
.flash-stack { padding-top: 18px; display: grid; gap: 8px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: .95rem; }
.alert-success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: #0d4f30; }
.alert-error { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: #7a1a12; }
.alert-warning { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: #5c3b00; }
.alert-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); color: #123e86; }
.callout { background: var(--surface-2); border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.2rem; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; letter-spacing: .01em; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-neutral { background: var(--surface-2); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); text-decoration: none; }
a.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ------------------------------------------------------------------ tables */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty .icon { width: 36px; height: 36px; color: var(--border); }

/* ------------------------------------------------------------------ timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 16px 18px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.timeline time { display: block; color: var(--muted); font-size: .8rem; }

/* ------------------------------------------------------------------ account / layouts with sidebar */
.with-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 32px 0 64px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 2px; }
.side-nav a { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; padding: 9px 12px; border-radius: 10px; font-weight: 550; font-size: .95rem; }
.side-nav a:hover { background: var(--surface-2); }
.side-nav a.active { background: var(--primary-soft); color: var(--primary); }
.side-nav .side-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 12px 4px; font-weight: 700; }
.auth-box { max-width: 460px; margin: 48px auto 72px; }
.auth-box .card { padding: 32px; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: inherit; display: block; }
.stat .stat-label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat .stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat.tone-warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); background: var(--warn-soft); }
.stat.tone-bad { border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); background: var(--bad-soft); }

/* ------------------------------------------------------------------ checkout & pay */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; padding: 32px 0 72px; align-items: start; }
.summary-lines { display: grid; gap: 8px; }
.summary-lines div { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines .total { font-weight: 750; font-size: 1.15rem; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.pay-box { max-width: 520px; margin: 36px auto 72px; text-align: center; }
.qr-frame { background: #fff; border-radius: 18px; padding: 18px; display: inline-block; border: 1px solid var(--border); box-shadow: var(--shadow); }
.qr-frame canvas, .qr-frame img { display: block; width: 260px; height: 260px; image-rendering: pixelated; }
.countdown { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; }
.pay-status { display: flex; gap: 10px; justify-content: center; align-items: center; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-chip { display: inline-block; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--surface); }

/* ------------------------------------------------------------------ legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal li { margin: .3em 0; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal-list { columns: 2; gap: 24px; list-style: none; padding: 0; }
.legal-list li { break-inside: avoid; padding: 6px 0; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 28px; }
.footer-grid:has(> div:nth-child(5)) { grid-template-columns: 1.6fr repeat(4, 1fr); }
.footer-brand img { height: 32px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); max-width: 36ch; }
.site-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .8rem; font-family: var(--font-body); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.contact-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.contact-list .icon { margin-top: .25em; }
.footer-pay { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 28px; color: var(--muted); font-size: .82rem; }
.footer-legal p { margin: 0; }
.cookie-note { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto; display: flex; gap: 14px; align-items: center; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .9rem; }
.cookie-note p { margin: 0; }
.cookie-note a { color: inherit; }

/* ------------------------------------------------------------------ receipt (printable) */
.receipt { max-width: 760px; margin: 32px auto; background: #fff; color: #111; padding: 40px; border: 1px solid #ddd; border-radius: 10px; }
.receipt h1 { font-size: 1.6rem; }
.receipt .table th { background: #f4f4f4; }
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .no-print, .cookie-note, .test-banner { display: none !important; }
  .receipt { border: 0; margin: 0; padding: 0; }
}

/* ------------------------------------------------------------------ admin */
.admin-body { background: var(--surface-2); }
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: #0f1420; color: #c9d1e1; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brandline { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 750; padding: 6px 10px 16px; text-decoration: none; }
.admin-side a.nav { display: flex; gap: 10px; align-items: center; color: #c9d1e1; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .92rem; }
.admin-side a.nav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-side a.nav.active { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-side .count { margin-left: auto; background: #f59e0b; color: #1a1205; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.admin-side .group { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #7d879b; padding: 14px 10px 4px; }
.admin-main { padding: 24px 28px 64px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.55rem; margin: 0; }
.admin-main .card { box-shadow: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 180px; padding: .5em .7em; font-size: .92rem; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.check-row:last-child { border-bottom: 0; }
.check-row .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.check-row .tick.ok { background: var(--ok-soft); color: var(--ok); }
.check-row .tick.no { background: var(--warn-soft); color: var(--warn); }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); }
.actions-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; }
.pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: .82rem; background: var(--surface-2); padding: 10px; border-radius: 8px; max-height: 260px; overflow: auto; }
.thread { display: grid; gap: 12px; }
.msg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.msg.mine { background: var(--primary-soft); border-color: transparent; }
.msg .msg-meta { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.msg p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero-grid, .checkout-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid, .footer-grid:has(> div:nth-child(5)) { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .with-side { grid-template-columns: 1fr; gap: 16px; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .side-nav .side-title { display: none; }
  .side-nav a { white-space: nowrap; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 2px; }
  .admin-side .group { display: none; }
  .admin-main { padding: 18px 16px 48px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; border-radius: 10px; }
  .nav-mobile-only { display: block; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .hide-sm { display: none !important; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .legal-list { columns: 1; }
  .footer-grid, .footer-grid:has(> div:nth-child(5)) { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .qr-frame canvas, .qr-frame img { width: 220px; height: 220px; }
  .header-actions .btn-primary { display: none; }
  .receipt { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
