/* ==========================================================================
   LinguaCertified – site styles. No build step; system fonts only (no external
   font requests, which keeps the site GDPR-friendly).
   ========================================================================== */

:root {
  --navy: #12325b;
  --navy-700: #0d2646;
  --navy-50: #eef3fa;
  --gold: #c49b2c;
  --gold-600: #a8842c;
  --gold-50: #fbf6e8;
  --ink: #142033;
  --ink-2: #33415c;
  --muted: #5f6b7d;
  --line: #e2e7ef;
  --line-strong: #cfd7e3;
  --bg: #f5f7fb;
  --card: #ffffff;
  --ok: #18794e;
  --ok-50: #e9f7ef;
  --warn: #8a5a00;
  --warn-50: #fff5da;
  --err: #b42318;
  --err-50: #fdeceb;
  --info: #1f4f8a;
  --info-50: #eaf1fb;
  --level-a: #1f8a70;
  --level-a-50: #e7f5f1;
  --level-b: #2459c7;
  --level-b-50: #eaf0fd;
  --level-c: #6d3fd1;
  --level-c-50: #f1ecfc;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:lang(de) :is(h1, h2, h3, h4, .list-row .title) { hyphens: auto; } /* German compounds are too long for narrow columns */
code, .mono { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: 3px solid rgba(196, 155, 44, .6); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
.container-form { max-width: 560px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.section-tight { padding-top: 32px; padding-bottom: 32px; }
.nowrap { white-space: nowrap; }
.align-start { align-items: start; }
.page-head { padding: 36px 0 8px; }
.page-head p.lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--gold-600); margin-bottom: .4rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; } .mt-1 { margin-top: 1rem; }

/* Demo bar ------------------------------------------------------------------ */
.demo-bar { background: var(--ink); color: #dfe6f1; font-size: .82rem; text-align: center; padding: 6px 12px; }
.demo-bar a { color: #ffd875; }

/* Header -------------------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; min-height: 68px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; flex: none; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { background: var(--navy-50); color: var(--navy); }
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 10px; margin-left: auto; }
.header-actions form { margin: 0; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch button { background: none; border: 0; border-radius: 6px; padding: 4px 6px; font: 600 .78rem/1.2 var(--sans); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.lang-switch button:hover { background: var(--navy-50); color: var(--navy); }
.lang-switch button.active { background: var(--navy-50); color: var(--navy); }
.nav-link { text-decoration: none; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.pill { font-size: .82rem; text-decoration: none; padding: 5px 10px; border-radius: 999px; background: var(--gold-50); color: var(--gold-600); border: 1px solid #efe1b5; font-weight: 600; white-space: nowrap; }
.pill-staff { background: var(--navy-50); color: var(--navy); border-color: #d5e0f0; }
.link-button { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.link-button:hover { color: var(--navy); text-decoration: underline; }

@media (max-width: 480px) {
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 1.1rem; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: .4rem .6rem; font-size: .82rem; }
  .pill { padding: 4px 8px; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 920px) {
  .header-inner { flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; padding-bottom: 6px; }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 6px; }
  .header-actions { margin-left: auto; }
  .brand-sub { display: none; }
}

/* Buttons ------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .68rem 1.15rem; border-radius: 10px; font: 600 .97rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-accent { background: var(--gold); color: #1c1606; }
.btn-accent:hover { background: #b38a1f; color: #1c1606; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy-50); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #115c3a; color: #fff; }
.btn-sm { padding: .45rem .8rem; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; } }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

/* Cards & grids -------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card-tight { padding: 18px; }
.card h2, .card h3 { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-levels { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 900px) { .grid-sidebar { grid-template-columns: minmax(0, 1fr); } }

/* Hero ---------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(1100px 420px at 85% -10%, rgba(196,155,44,.35), transparent 60%),
  radial-gradient(800px 500px at -10% 120%, rgba(36,89,199,.45), transparent 60%),
  linear-gradient(160deg, #0e2747 0%, #12325b 55%, #183f70 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 72px 20px 80px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.3rem); }
.hero p.lead { color: #d6e0ee; font-size: 1.15rem; max-width: 56ch; }
.hero .eyebrow { color: #f1cf6b; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.16); }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: #c8d4e6; font-size: .9rem; }
.hero-trust span::before { content: "✓"; color: #f1cf6b; margin-right: 6px; font-weight: 700; }
.hero-card { background: #fffdf7; color: var(--ink); border-radius: 16px; padding: 22px 22px 18px; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); border: 1px solid #eadfbf; }
.hero-card .mini-cert-title { font-family: var(--serif); font-weight: 700; letter-spacing: .3em; color: var(--navy); text-align: center; font-size: 1.3rem; }
.hero-card .mini-cert-sub { text-align: center; color: var(--gold-600); font-size: .72rem; letter-spacing: .25em; font-weight: 700; }
.hero-card .mini-cert-name { text-align: center; font-family: var(--serif); font-size: 1.35rem; margin: 14px 0 4px; color: var(--navy); }
.hero-card .mini-cert-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; gap: 12px; }
.hero-card .mini-lines span { display: block; height: 7px; border-radius: 4px; background: #eee6d1; margin: 7px 0; }
.mini-qr { width: 64px; height: 64px; flex: none; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding: 48px 20px 56px; } .hero-card { transform: none; max-width: 420px; } }

/* Steps ---------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Levels --------------------------------------------------------------------- */
.level-badge { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; font: 700 1.05rem/1 var(--sans); color: #fff; background: var(--level-b); letter-spacing: .02em; }
.level-badge.sm { min-width: 34px; height: 30px; font-size: .85rem; border-radius: 8px; }
.level-badge.lg { min-width: 64px; height: 64px; font-size: 1.5rem; border-radius: 16px; }
.level-a { background: var(--level-a); } .level-b { background: var(--level-b); } .level-c { background: var(--level-c); }
.level-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; border-top: 4px solid var(--level-b); transition: transform .15s, box-shadow .15s; }
.level-card.group-a { border-top-color: var(--level-a); } .level-card.group-b { border-top-color: var(--level-b); } .level-card.group-c { border-top-color: var(--level-c); }
.level-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.level-card .level-top { display: flex; align-items: center; gap: 12px; }
.level-card h3 { margin: 0; }
.level-card .de { color: var(--muted); font-size: .85rem; }
.level-card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.level-card .level-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .9rem; }
.level-card .level-foot > span { white-space: nowrap; }
.price { font-weight: 700; color: var(--ink); }
.price-lg { font-size: 1.6rem; font-family: var(--serif); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.6rem; position: relative; margin: .45rem 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Tables --------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafbfd; font-weight: 700; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions.wrap { white-space: normal; min-width: 170px; }
.table tfoot td { font-weight: 700; background: #fafbfd; }

/* Badges --------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .01em; background: #eef1f5; color: var(--ink-2); white-space: nowrap; }
.badge-success { background: var(--ok-50); color: var(--ok); }
.badge-warning { background: var(--warn-50); color: var(--warn); }
.badge-danger { background: var(--err-50); color: var(--err); }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-gold { background: var(--gold-50); color: var(--gold-600); }

/* Alerts --------------------------------------------------------------------- */
.messages { margin-top: 18px; }
.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; border: 1px solid transparent; background: var(--info-50); color: #133a69; border-color: #d4e2f6; }
.alert-success { background: var(--ok-50); color: #0f5132; border-color: #c9ead8; }
.alert-warning { background: var(--warn-50); color: #6b4700; border-color: #f2df9f; }
.alert-error, .alert-danger { background: var(--err-50); color: #8c1d14; border-color: #f5c9c4; }
.alert .btn { margin-left: 8px; }
.alert ul { margin: 0; padding-left: 1.2rem; }

/* Forms ---------------------------------------------------------------------- */
.form-card { max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .optional { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .input {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18, 50, 91, .15); }
.field .help { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.field .help ul { margin: 4px 0 0; padding-left: 1.1rem; }
.field .error { color: var(--err); font-size: .87rem; margin: 6px 0 0; font-weight: 500; }
.field.has-error input, .field.has-error select { border-color: var(--err); }
.field-checkbox label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.field-checkbox input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.inline-form { display: inline; margin: 0; }

/* Definition lists ------------------------------------------------------------ */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

/* Session/slot rows ----------------------------------------------------------- */
.date-tile { width: 62px; flex: none; border-radius: 12px; border: 1px solid var(--line); text-align: center; overflow: hidden; background: #fff; }
.date-tile .m { background: var(--navy); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 0; }
.date-tile .d { font: 700 1.45rem/1.3 var(--serif); }
.date-tile .w { font-size: .7rem; color: var(--muted); padding-bottom: 4px; }
.list-rows { display: flex; flex-direction: column; gap: 12px; }
.list-row { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 700; }
.list-row .meta { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .list-row { flex-wrap: wrap; } .list-row .row-action { width: 100%; } .list-row .row-action .btn { width: 100%; } }
.seats { font-size: .85rem; font-weight: 600; }
.seats.low { color: var(--warn); }
.seats.full { color: var(--err); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 22px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 600; background: #fff; }
.chip.active, .chip:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; }

/* Dashboard --------------------------------------------------------------------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 34px 0 18px; }
.dash-head h1 { margin: 0; }
.cert-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cert-item:last-child { border-bottom: 0; }
.cert-item .grow { flex: 1; min-width: 0; }
@media (max-width: 640px) { .cert-item { flex-wrap: wrap; } .cert-item .grow { flex-basis: 60%; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .value { font: 700 1.8rem/1.1 var(--serif); color: var(--navy); }
.stat .label { color: var(--muted); font-size: .85rem; }

/* Verification -------------------------------------------------------------- */
.verify-banner { border-radius: 18px; padding: 26px; display: flex; gap: 20px; align-items: center; color: #fff; box-shadow: var(--shadow-lg); }
.verify-banner h1 { color: #fff; margin: 0 0 4px; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.verify-banner p { margin: 0; opacity: .92; }
.verify-banner .icon { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 2rem; font-weight: 700; }
.verify-valid { background: linear-gradient(135deg, #116b44, #18894f); }
.verify-revoked { background: linear-gradient(135deg, #8e1b12, #c0362b); }
.verify-warning { background: linear-gradient(135deg, #7a5300, #b07a06); }
.verify-unknown { background: linear-gradient(135deg, #3d4a5c, #5f6b7d); }
.verify-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.verify-checks li { display: flex; gap: 10px; align-items: flex-start; }
.verify-checks .ok { color: var(--ok); font-weight: 700; }
.verify-checks .bad { color: var(--err); font-weight: 700; }
.verify-checks .warn { color: var(--warn); font-weight: 700; }
.holder-name { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); margin: 0; }
.code-input { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-size: 1.15rem !important; text-align: center; }
.score-bar { height: 8px; background: #eef1f5; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.score-bar span { display: block; height: 100%; background: var(--navy); border-radius: 99px; }

/* Checkout (simulated provider) --------------------------------------------- */
.checkout-page { background: #eef1f6; }
.checkout { max-width: 920px; margin: 36px auto; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.checkout-summary { background: #f8fafc; padding: 32px; border-right: 1px solid var(--line); }
.checkout-pay { padding: 32px; position: relative; }
.test-ribbon { display: inline-block; background: #fff2c6; color: #7a5300; border: 1px solid #f0d77d; font-size: .75rem; font-weight: 800; letter-spacing: .12em; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; }
.checkout .amount { font: 700 2.2rem/1.1 var(--serif); margin: 10px 0 4px; }
.checkout .merchant { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 24px; }
.checkout .line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sim-box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 16px; background: #fbfcfe; margin: 18px 0; color: var(--muted); font-size: .9rem; }
.checkout-pay form + form { margin-top: 10px; }
@media (max-width: 760px) { .checkout { grid-template-columns: 1fr; margin: 16px; } .checkout-summary { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Mailbox ------------------------------------------------------------------- */
.mail-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mail-list li + li { border-top: 1px solid var(--line); }
.mail-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 18px; text-decoration: none; color: var(--ink); }
.mail-list a:hover { background: #fafbfd; }
.mail-list .subject { font-weight: 700; }
.mail-list .to, .mail-list .time { color: var(--muted); font-size: .85rem; }
.mail-list .att { font-size: .8rem; color: var(--gold-600); font-weight: 600; }
.mail-frame { width: 100%; height: 720px; min-height: 320px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.attachment { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }

/* Staff portal --------------------------------------------------------------- */
.staff-head { background: var(--ink); color: #fff; }
.staff-head .container { display: flex; gap: 18px; align-items: center; min-height: 48px; flex-wrap: wrap; }
.staff-head a { color: #cdd6e4; text-decoration: none; font-size: .92rem; font-weight: 600; }
.staff-head a:hover, .staff-head a.active { color: #fff; }
.staff-head .label { color: #f1cf6b; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.results-table input.score-input { width: 74px; padding: .45rem .5rem; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; text-align: right; }
.results-table select { padding: .42rem .5rem; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; background: #fff; }
.results-table tr.row-error td { background: var(--err-50); }
.results-table .row-errors { color: var(--err); font-size: .82rem; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(245, 247, 251, .94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 20px; }

/* FAQ ---------------------------------------------------------------------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* Footer --------------------------------------------------------------------- */
.site-footer { background: #0f1c30; color: #b9c4d6; margin-top: 64px; font-size: .92rem; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.site-footer a { color: #dbe3ef; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 20px; text-align: center; font-size: .82rem; color: #8ea0b9; }
@media (max-width: 720px) { .site-footer .container { grid-template-columns: 1fr; } }

/* Legal pages ---------------------------------------------------------------- */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.placeholder { background: var(--warn-50); border: 1px dashed #e7c96b; padding: 2px 6px; border-radius: 6px; }

/* Print -------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .demo-bar, .sticky-actions, .btn { display: none !important; }
  body { background: #fff; }
}
