* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #f6f3ed; background: #0b0d11; --muted: #c4c3c9; --surface: #13151b; --line: #38363d; --gold: #efc258; }
body { margin: 0; }
body.checkout { min-height: 100svh; display: grid; place-items: center; padding: clamp(1rem, 5vw, 5rem); background: var(--page); }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); letter-spacing: -.06em; line-height: 1.05; overflow-wrap: anywhere; }
h2 { font-size: 1.125rem; }
p { line-height: 1.55; }
.checkout-card { width: min(64rem, 100%); display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); border-radius: 1.5rem; overflow: hidden; background: var(--surface); box-shadow: 0 24px 75px #08080a42; border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.product, .payment { display: flex; flex-direction: column; gap: 1.5rem; padding: clamp(1.5rem, 5vw, 3.5rem); }
.product { justify-content: center; min-height: 24rem; }
.brand { min-width: 0; display: flex; align-items: center; gap: .625rem; overflow-wrap: anywhere; }
.brand img { object-fit: contain; border-radius: .5rem; }
.cover { display: block; width: 100%; height: auto; max-height: 18rem; aspect-ratio: 2 / 1; object-fit: cover; border-radius: .75rem; }
.description { white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); }
.payment { justify-content: center; background: #191b22; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-block: 1px solid var(--line); padding: 1.125rem 0; }
.total dd { font-size: clamp(1.375rem, 3vw, 2rem); font-weight: 750; letter-spacing: -.04em; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1rem; border-radius: .625rem; border: 0; background: var(--accent, var(--gold)); color: var(--accent-ink, #171006); text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; text-align: center; }
.payment .button { width: 100%; }
button:disabled { opacity: .62; cursor: default; }
.preview-note { font-size: .875rem; color: var(--muted); }
.access-page { min-height: 100svh; padding: 1rem; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 10%, #251e13, #0b0d11 60%); }
.access-card { width: min(100%, 30rem); padding: clamp(1.5rem, 5vw, 3rem); display: grid; gap: 1.25rem; background: var(--surface); border: 1px solid #594723; border-radius: 1.5rem; }
.access-card h1 { font-size: clamp(1.75rem, 4vw, 2.35rem); letter-spacing: -.04em; }
.access-card p { color: var(--muted); }
.pay-logo { display: block; height: auto; width: min(100%, 21rem); border-radius: .5rem; }
.admin { width: min(46rem, calc(100% - 2rem)); margin: clamp(1rem, 5vw, 3rem) auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-header .pay-logo { width: min(65%, 16rem); }
.admin h1 { margin-block: 1rem 1.5rem; }
.admin #editor { display: grid; gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 4vw, 2rem); }
.admin .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin label { display: grid; gap: .375rem; font-weight: 650; }
.admin input, .admin textarea { font: inherit; font-weight: 400; padding: .625rem; min-width: 0; width: 100%; border: 1px solid #555661; border-radius: .5rem; min-height: 2.75rem; background: #0c0e13; }
.admin input[type=color] { padding: .25rem; }
.admin .wide { grid-column: 1 / -1; }
.admin .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.admin .secondary { color: var(--gold); background: #242219; border: 1px solid #594723; }
.admin .status { min-height: 1.5rem; color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 43rem) {
  .checkout-card, .admin .fields { grid-template-columns: minmax(0, 1fr); }
  .product { min-height: auto; }
}
