/* ============================================================================
   Minenook. A torch burning in stone: warm near-black ground, ember accent,
   one cold diamond note used sparingly. Dark first, light theme fully designed.
   ========================================================================== */

:root {
  --bg:        #14100c;
  --surface:   #1c1712;
  --surface-2: #241d17;
  --line:      #2c241c;
  --line-2:    #3d3226;
  --text:      #f5efe6;
  --text-2:    #d3c8ba;
  --muted:     #a3968a;
  --ember:     #e9873c;
  --ember-2:   #d9702a;
  --on-ember:  #1a1008;
  --diamond:   #5ccfc0;
  --good:      #7bc47f;
  --bad:       #e07a6b;
  --star:      #e0a94a;
  --shadow:    0 24px 60px -18px rgba(0,0,0,.7);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.35);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --page: 1240px;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel:   "Press Start 2P", monospace;

  color-scheme: dark;
}

/* System light, unless the visitor explicitly chose dark */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:        #faf6f0;
    --surface:   #ffffff;
    --surface-2: #f2ece3;
    --line:      #e6dccf;
    --line-2:    #d5c7b5;
    --text:      #171208;
    --text-2:    #453a2c;
    --muted:     #7c6f60;
    --ember:     #c25f16;
    --ember-2:   #a94f0c;
    --on-ember:  #fff6ec;
    --diamond:   #10796d;
    --good:      #2f7a3f;
    --bad:       #b0402f;
    --star:      #b07a1a;
    --shadow:    0 24px 60px -22px rgba(60,40,20,.22);
    --shadow-sm: 0 1px 4px rgba(60,40,20,.10);
    color-scheme: light;
  }
}
/* Explicit light choice wins in either direction */
:root[data-theme="light"] {
  --bg:        #faf6f0;
  --surface:   #ffffff;
  --surface-2: #f2ece3;
  --line:      #e6dccf;
  --line-2:    #d5c7b5;
  --text:      #171208;
  --text-2:    #453a2c;
  --muted:     #7c6f60;
  --ember:     #c25f16;
  --ember-2:   #a94f0c;
  --on-ember:  #fff6ec;
  --diamond:   #10796d;
  --good:      #2f7a3f;
  --bad:       #b0402f;
  --star:      #b07a1a;
  --shadow:    0 24px 60px -22px rgba(60,40,20,.22);
  --shadow-sm: 0 1px 4px rgba(60,40,20,.10);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
.wrap { max-width: var(--page); margin-inline: auto; padding-inline: 32px; }
@media (max-width: 700px) { .wrap { padding-inline: 20px; } }

.eyebrow {
  font-family: var(--pixel);
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--ember);
  text-transform: uppercase;
}
.lede { color: var(--muted); font-size: 1.0625rem; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.stars { color: var(--star); letter-spacing: .06em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: .9375rem;
  padding: 13px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-fill { background: var(--ember); color: var(--on-ember); }
.btn-fill:hover { background: var(--ember-2); }
.btn-line { border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- header ---------- */
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--line);
  text-align: center; padding: 8px 16px; font-size: .8125rem; color: var(--text-2);
}
.head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.1875rem; letter-spacing: -.03em; }
.brand .mark { width: 20px; height: 20px; border-radius: 4px; background: var(--ember); box-shadow: 0 0 16px -2px var(--ember); }
.nav { display: flex; gap: 28px; margin-right: auto; font-size: .9375rem; color: var(--muted); }
.nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: var(--text); border-bottom-color: var(--ember); }
.head-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tool { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text); transition: background .15s; position: relative; }
.tool:hover { background: var(--surface-2); }
.tool .count {
  position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--ember); color: var(--on-ember);
  font-size: .6875rem; font-weight: 700; display: grid; place-items: center;
}
.burger { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 32px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .burger { display: grid; }
}

/* ---------- sections ---------- */
.section { padding-block: 96px; }
.section--tight { padding-top: 0; }
@media (max-width: 700px) { .section { padding-block: 60px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 88px 96px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% 30%; height: 70vh;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ember) 20%, transparent), transparent);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 800; margin: 20px 0 22px; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero .cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero .proof { display: flex; gap: 28px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero .proof div { display: flex; flex-direction: column; gap: 2px; }
.hero .proof b { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.hero .proof span { font-size: .8125rem; color: var(--muted); }
.hero-art { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--surface); box-shadow: var(--shadow); display: block; }
.hero-art img, .hero-art video { width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption {
  position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px);
  padding: 9px 14px; border-radius: 999px; font-size: .8125rem;
}
.hero-art figcaption b { font-weight: 600; }
@media (max-width: 900px) {
  .hero { padding-block: 44px 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { aspect-ratio: 4 / 3; }
}

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 28px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; } }

.card { display: flex; flex-direction: column; height: 100%; }
.card__media {
  position: relative; display: block; border-radius: var(--r); overflow: hidden;
  background: var(--surface); aspect-ratio: 1;
}
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; }
.card__media video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.card:hover .card__media video.ready { opacity: 1; }
.card__media img { transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.card:hover .card__media img { transform: scale(1.04); }
.card__flag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--pixel); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 9px; border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(6px); color: var(--text);
}
.card__flag--hot { background: var(--ember); color: var(--on-ember); }
.card__flag--soon { background: var(--diamond); color: var(--on-ember); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; flex: 1; }
.card__name { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.015em; }
.card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.price { display: flex; align-items: baseline; gap: 9px; font-variant-numeric: tabular-nums; }
.price .now { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: .875rem; }
.price .off { color: var(--good); font-size: .8125rem; font-weight: 600; }
.card__rate { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.card__low { font-size: .8125rem; color: var(--ember); font-weight: 600; }
.card .btn { margin-top: auto; }

/* ---------- feature band ---------- */
.band { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.band__art { position: relative; min-height: 420px; }
.band__art img, .band__art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__text { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.band__text h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.band__text p { color: var(--text-2); }
.band__text .price { margin-top: 4px; font-size: 1.375rem; }
.band__text .btn { align-self: flex-start; margin-top: 10px; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .band__art { min-height: 300px; } .band__text { padding: 36px 28px; } }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trust div { display: flex; flex-direction: column; gap: 6px; }
.trust b { font-family: var(--display); font-size: 1.0625rem; font-weight: 600; }
.trust span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.review { border-left: 2px solid var(--line-2); padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.review p { color: var(--text-2); }
.review .who { color: var(--muted); font-size: .8125rem; }

/* ---------- faq ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; flex: 0 0 auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq p { color: var(--muted); padding-bottom: 22px; max-width: 68ch; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding-block: 48px 32px; align-items: start; }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; } }
.stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); aspect-ratio: 1; }
.stage img, .stage video { width: 100%; height: 100%; object-fit: cover; }
.filmstrip { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.filmstrip button { position: relative; flex: 0 0 auto; width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; opacity: .55; transition: opacity .2s, border-color .2s; }
.filmstrip button img { width: 100%; height: 100%; object-fit: cover; }
.filmstrip button.on, .filmstrip button:hover { opacity: 1; border-color: var(--ember); }
.filmstrip .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.32); }
.filmstrip .play::after { content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; margin-left: 3px; }

.buy h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 12px; }
.buy .rate { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 18px; }
.buy .price { font-size: 1.75rem; margin-bottom: 16px; }
.buy .lede { margin-bottom: 22px; }
.stockline { display: flex; align-items: center; gap: 9px; font-size: .9rem; margin-bottom: 24px; color: var(--text-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: 0 0 auto; }
.dot--low { background: var(--ember); }
.opt { margin-bottom: 24px; }
.opt > span { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); padding: 10px 16px; border-radius: var(--r-sm); font-size: .875rem; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--text-2); }
.chip.on { border-color: var(--ember); background: color-mix(in srgb, var(--ember) 12%, transparent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.qty button { width: 44px; height: 50px; font-size: 1.125rem; color: var(--text); }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 44px; text-align: center; background: none; border: 0; font-variant-numeric: tabular-nums; }
.buyrow { display: flex; gap: 10px; margin-bottom: 12px; }
.buyrow .btn { flex: 1; }
.assure { display: grid; gap: 9px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--text-2); }
.assure span { display: flex; gap: 10px; }
.assure span::before { content: "✓"; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; display: grid; place-items: center; font-size: .6875rem; font-weight: 700; color: var(--good); background: color-mix(in srgb, var(--good) 18%, transparent); }
.pair { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.pair h3 { font-size: .8125rem; color: var(--muted); font-weight: 500; font-family: var(--body); margin-bottom: 14px; }
.pair__row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pair__row img { width: 58px; height: 58px; border-radius: var(--r-sm); object-fit: cover; }
.pair__row .plus { color: var(--muted); }
.pair__row div { margin-left: auto; text-align: right; }

.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 26px; } }
.story figure { margin: 0; }
.story img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); margin-bottom: 16px; }
.story h3 { font-size: 1.125rem; margin-bottom: 6px; }
.story p { color: var(--muted); font-size: .9375rem; }

.spec { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec td:first-child { color: var(--muted); width: 44%; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; gap: 44px; } }
.cols h2 { font-size: 1.375rem; margin-bottom: 18px; }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: flex; align-items: center; gap: 16px; padding: 12px 32px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.sticky-buy.on { transform: none; }
.sticky-buy img { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; }
.sticky-buy .info { display: flex; flex-direction: column; font-size: .875rem; line-height: 1.3; }
.sticky-buy .btn { margin-left: auto; }
body.drawer-on .sticky-buy { transform: translateY(105%); }
@media (max-width: 600px) { .sticky-buy { padding: 10px 20px; } .sticky-buy .info { display: none; } .sticky-buy .btn { flex: 1; } }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10,7,4,.55); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); background: var(--bg); border-left: 1px solid var(--line); z-index: 100; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.3,1); display: flex; flex-direction: column; }
body.drawer-on .drawer { transform: none; }
body.drawer-on .scrim { opacity: 1; pointer-events: auto; }
.drawer > header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer > header h3 { font-size: 1.125rem; }
.drawer .items { flex: 1; overflow-y: auto; padding: 0 24px; }
.drawer > footer { padding: 22px 24px; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 68px; height: 68px; border-radius: var(--r-sm); object-fit: cover; }
.line .nm { font-weight: 600; font-size: .9375rem; }
.line .vr { color: var(--muted); font-size: .8125rem; margin-bottom: 10px; }
.line .amt { font-weight: 600; font-size: .9375rem; text-align: right; font-variant-numeric: tabular-nums; }
.line .amt .was { display: block; font-weight: 400; color: var(--muted); text-decoration: line-through; font-size: .8125rem; }
.line .rm { color: var(--muted); font-size: .8125rem; text-decoration: underline; margin-left: 10px; }
.line--gift .amt { color: var(--good); }
.line--add { border-bottom: 0; }
.qty--sm button { width: 32px; height: 34px; font-size: 1rem; }
.qty--sm input { width: 32px; font-size: .875rem; }
.empty { text-align: center; color: var(--muted); padding: 72px 0; }
.progress { height: 3px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 12px 0 18px; }
.progress i { display: block; height: 100%; background: var(--ember); transition: width .4s; }
.totals { display: grid; gap: 8px; font-size: .9375rem; }
.totals > div { display: flex; justify-content: space-between; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; font-family: var(--display); font-size: 1.125rem; font-weight: 700; }

/* ---------- forms ---------- */
.form h2 { font-size: 1.125rem; margin: 32px 0 16px; }
.form h2:first-child { margin-top: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 13px 14px; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); }
.field .err { display: none; color: var(--bad); font-size: .8125rem; margin-top: 6px; }
.field.bad input, .field.bad select { border-color: var(--bad); }
.field.bad .err { display: block; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 6px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: .875rem; color: var(--text-2); cursor: pointer; }
.agree:hover { border-color: var(--muted); }
.agree input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--ember); }
.agree b { color: var(--text); }
.agree a { text-decoration: underline; }
.agree.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.checkout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; padding-block: 44px 72px; align-items: start; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; gap: 32px; } .checkout .summary { order: -1; } }
.summary { background: var(--surface); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 92px; }
.summary h2 { font-size: 1.125rem; margin-bottom: 6px; }
.summary .line { grid-template-columns: 56px 1fr auto; padding: 14px 0; }
.summary .line img { width: 56px; height: 56px; }
.note { padding: 14px 16px; border-radius: var(--r-sm); font-size: .875rem; margin: 14px 0; border: 1px solid var(--line-2); }
.note--bad { border-color: var(--bad); color: var(--bad); }
.note--good { border-color: var(--good); color: var(--good); }
.fineprint { font-size: .8125rem; color: var(--muted); margin-top: 16px; }
.paymarks { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.paymarks span { border: 1px solid var(--line); border-radius: 5px; padding: 4px 9px; font-size: .6875rem; color: var(--muted); font-weight: 600; }

/* ---------- status and content pages ---------- */
.status { max-width: 620px; margin: 96px auto; text-align: center; padding-inline: 24px; }
.status .mark { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); font-size: 1.5rem; }
.status h1 { font-size: 2rem; margin-bottom: 12px; }
.receipt { text-align: left; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-top: 28px; }
.page { max-width: 720px; margin: 64px auto 96px; padding-inline: 32px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 24px; }
.page h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.page p, .page li { color: var(--text-2); margin-bottom: 12px; }
.page ul, .page ol { padding-left: 22px; }
.page a { color: var(--ember); text-decoration: underline; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; border: 1px solid var(--line-2); }
.pill.paid { color: var(--good); border-color: var(--good); }
.pill.shipped { color: var(--diamond); border-color: var(--diamond); }
.pill.pending { color: var(--ember); border-color: var(--ember); }
.pill.cancelled, .pill.failed { color: var(--bad); border-color: var(--bad); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 64px 32px; margin-top: 32px; }
.foot__cols { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .foot__cols { grid-template-columns: 1fr 1fr; gap: 32px; } .foot__cols > div:first-child { grid-column: 1 / -1; } }
.foot h5 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.foot a { display: block; color: var(--text-2); font-size: .9375rem; padding: 5px 0; }
.foot a:hover { color: var(--ember); }
.signup { display: flex; gap: 8px; margin-top: 16px; max-width: 360px; }
.signup input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.legal p { margin-bottom: 10px; max-width: 92ch; }

/* ---------- overlays ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(14px); background: var(--surface-2); border: 1px solid var(--line-2); padding: 13px 20px; border-radius: var(--r-sm); font-size: .9375rem; opacity: 0; transition: .25s; z-index: 200; box-shadow: var(--shadow); }
.toast.on { opacity: 1; transform: translateX(-50%); }
.livefeed { position: fixed; left: 24px; bottom: 24px; z-index: 58; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); max-width: 320px; font-size: .8125rem; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .35s; }
.livefeed.on { opacity: 1; transform: none; pointer-events: auto; }
.livefeed img { width: 42px; height: 42px; border-radius: var(--r-sm); object-fit: cover; }
.livefeed a { color: var(--ember); }
.livefeed .x { color: var(--muted); padding-left: 6px; }
@media (max-width: 640px) { .livefeed { display: none; } }
.modal-scrim { position: fixed; inset: 0; background: rgba(10,7,4,.66); backdrop-filter: blur(3px); z-index: 120; display: none; place-items: center; padding: 20px; }
body.modal-on .modal-scrim { display: grid; }
.modal { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 36px; max-width: 440px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.modal h3 { font-size: 1.625rem; margin: 12px 0 10px; }
.modal p { color: var(--muted); font-size: .9375rem; }
.modal .signup { margin: 22px auto 0; }
.modal__x { position: absolute; top: 14px; right: 16px; color: var(--muted); }

/* payment overlay */
.paywrap { position: fixed; inset: 0; z-index: 130; background: rgba(10,7,4,.7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 12px; }
.paybox { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); width: min(760px, 96vw); height: min(1000px, 96vh); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
.paybox > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .875rem; font-weight: 600; }
.paybox .acts { display: flex; align-items: center; gap: 14px; }
.paybox .acts a { text-decoration: underline; color: var(--muted); font-size: .8125rem; }
.paybox iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.paybox > footer { padding: 9px 16px; border-top: 1px solid var(--line); text-align: center; font-size: .8125rem; color: var(--muted); }
@media (max-width: 600px) { .paywrap { padding: 0; } .paybox { width: 100%; height: 100vh; border: 0; border-radius: 0; } }

/* ---------- admin ---------- */
.admin table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin th, .admin td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin th { color: var(--muted); font-weight: 600; }
.admin input.inline { background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 8px; width: 150px; }
.admin .btn { padding: 8px 14px; font-size: .8125rem; }
