/* Battle Line Peptides: mobile-first, dark. One file for site and admin. */

:root {
  --bg: #000;
  --bg-2: #0b0b0b;
  --panel: #121212;
  --panel-2: #181818;
  --line: #262626;
  --fg: #e8e8e8;
  --muted: #8f9398;
  --red: #c8102e;
  --red-2: #e3203f;
  --silver: #bfc3c7;
  --ok: #3ddc84;
  --warn: #f2b63d;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --gutter: 16px;
  --tap: 44px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(200,16,46,.16), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,255,255,.03), transparent 70%);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* ---- type ------------------------------------------------------------ */
.h1, .h2, .h3, .h4, .hero__title, .gate__title, .card__name {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: uppercase;
}
.h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); margin-bottom: 14px; }
.h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: 12px; }
.h3 { font-size: 1.35rem; margin-bottom: 10px; letter-spacing: .03em; }
.h4 { font-size: 1.05rem; margin: 14px 0 6px; letter-spacing: .04em; color: var(--silver); }
.split span { color: #fff; }
.split em { color: var(--red-2); font-style: normal; }
.kicker { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red-2); font-weight: 700; margin-bottom: 10px; }
.lead { font-size: 1.08rem; color: var(--silver); margin-bottom: 18px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.right { text-align: right; }
.link { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: #fff; }
.linklike { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; min-height: var(--tap); }
.ruo { color: var(--red-2); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.prose p { margin-bottom: 14px; }
.prose .h3 { margin-top: 26px; }
.prose ol.numbered { padding-left: 1.3em; margin-bottom: 18px; }
.prose ol.numbered li { margin-bottom: 12px; }
.plain { list-style: none; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }

/* ---- layout ---------------------------------------------------------- */
.site { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.main { flex: 1; padding-bottom: 72px; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 28px; padding-bottom: 28px; }
.section--narrow { max-width: 720px; }
.section--notice { border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section__head .h1, .section__head .h2 { margin-bottom: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.cols { display: grid; gap: 16px; }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; } }

/* ---- top bar --------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px var(--gutter);
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__logo img { width: 54px; height: auto; }
.topbar__nav { display: none; gap: 20px; font-weight: 600; font-size: .92rem; letter-spacing: .02em; }
.topbar__nav a { padding: 10px 0; color: var(--silver); border-bottom: 2px solid transparent; }
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  background: var(--red); color: #fff; font-weight: 700; font-size: .9rem; border-radius: 999px;
}
.pill--muted { background: var(--panel-2); border: 1px solid var(--line); color: var(--silver); }
.pill__count { background: #000; color: #fff; min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center; font-size: .8rem; padding: 0 6px; }
.nav-toggle { width: var(--tap); height: var(--tap); display: grid; place-items: center; gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--fg); margin: 2px auto; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { position: fixed; inset: 61px 0 0 0; z-index: 39; background: rgba(0,0,0,.96); padding: 12px var(--gutter) 40px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 14px 4px; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.menu hr { margin: 8px 0; }
@media (min-width: 900px) {
  .topbar { padding: 10px 28px; }
  .topbar__logo img { width: 64px; }
  .topbar__nav { display: flex; }
  .nav-toggle { display: none; }
  .menu { display: none !important; }
}

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: 8px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-align: center;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(200,16,46,.28); }
.btn--primary:hover { background: var(--red-2); }
.btn--ghost { background: transparent; border-color: #3a3a3a; color: var(--silver); }
.btn--ghost:hover { border-color: var(--silver); color: #fff; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.btn--big { min-height: 54px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.actions--stack { flex-direction: column; }
.actions--stack form { width: 100%; }

/* ---- forms ----------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form .btn { margin-top: 4px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.fieldset legend { padding: 0 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: .85rem; font-weight: 600; color: var(--silver); }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field--grow { flex: 1 1 160px; }
.field--state { flex: 0 0 90px; }
.field--zip { flex: 0 0 120px; }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px;
  background: var(--panel); border: 1px solid #333; border-radius: 8px; color: #fff;
}
.input:focus, .select:focus, .textarea:focus, .check input:focus-visible { outline: 2px solid var(--red-2); outline-offset: 1px; border-color: var(--red-2); }
.input::placeholder, .textarea::placeholder { color: #666; }
.input--code { font-size: 1.6rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.textarea { resize: vertical; }
.check, .radio { display: flex; gap: 12px; align-items: flex-start; min-height: var(--tap); padding: 6px 0; cursor: pointer; }
.check input, .radio input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--red); }
.subfields { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-left: 2px solid var(--red); margin-left: 10px; }
.subfields[hidden] { display: none; }
.inline { display: inline; }
.errors { padding-left: 1.2em; }
input[type="file"].input { padding: 8px; }

/* ---- flash and toast ------------------------------------------------- */
.flashes { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-size: .95rem; }
.flash--success { border-color: rgba(61,220,132,.4); }
.flash--error { border-color: var(--red); background: rgba(200,16,46,.12); }
.flash--warn { border-color: rgba(242,182,61,.5); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; background: #fff; color: #000; padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }

/* ---- gate ------------------------------------------------------------ */
.gate { display: none; position: fixed; inset: 0; z-index: 100; background: #000; overflow-y: auto; padding: 24px var(--gutter) 40px; }
.gate::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(200,16,46,.2), transparent 70%); pointer-events: none; }
html.gate-locked .gate { display: block; }
html.gate-locked body { overflow: hidden; }
html.gate-locked .site { visibility: hidden; }
.gate__panel { position: relative; max-width: 520px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.gate__logo { width: min(300px, 70vw); filter: drop-shadow(0 0 30px rgba(200,16,46,.3)); }
.gate__title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
.gate__text { color: var(--silver); }
.gate__form { width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.gate__form .btn { margin-top: 10px; }
.gate__decline { align-self: center; color: var(--muted); }
.gate__denied { color: var(--warn); padding: 12px; border: 1px solid rgba(242,182,61,.4); border-radius: 8px; }

/* ---- hero ------------------------------------------------------------ */
.hero { padding: 36px 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(200,16,46,.08), transparent 60%); }
.hero__title { font-size: clamp(3rem, 14vw, 6.5rem); line-height: .92; margin-bottom: 16px; }
.hero__lead { font-size: 1.1rem; color: var(--silver); max-width: 560px; margin-bottom: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero__ruo { font-size: .82rem; color: var(--muted); }
.steps { display: grid; gap: 12px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.step__n { grid-row: span 2; font-family: var(--display); font-size: 2rem; color: var(--red-2); line-height: 1; }
.step p { grid-column: 2; color: var(--muted); font-size: .92rem; }
.trust { display: grid; gap: 10px; }
.trust__item { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-left: 3px solid var(--red); background: var(--bg-2); }
.trust__item span { color: var(--muted); font-size: .9rem; }
@media (min-width: 700px) { .steps, .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } .trust { grid-template-columns: repeat(4, 1fr); } }

/* ---- catalog --------------------------------------------------------- */
.searchbar { display: flex; gap: 8px; margin-bottom: 12px; }
.searchbar .input { flex: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin: 0 calc(-1 * var(--gutter)) 16px; padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid #3a3a3a; color: var(--silver); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 4 / 3; background: radial-gradient(ellipse at 50% 60%, #1c1c1c, #070707); display: grid; place-items: center; padding: 14px; }
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.vial { height: 100%; max-height: 180px; width: auto; }
.card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card__name { font-size: 1.7rem; }
.card__form { font-size: .85rem; color: var(--muted); }
.card__overview summary { cursor: pointer; color: var(--silver); font-size: .9rem; min-height: 32px; display: flex; align-items: center; }
.card__overview p { font-size: .9rem; color: var(--silver); padding: 6px 0; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.card__price { font-family: var(--display); font-size: 1.6rem; color: #fff; }
.card__coa { font-size: .85rem; color: var(--silver); text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #1f1f1f; color: var(--silver); border: 1px solid var(--line); }
.badge--off { color: var(--warn); border-color: rgba(242,182,61,.4); }
.badge--big { font-size: .9rem; min-height: 30px; padding: 0 12px; }
.empty { color: var(--muted); padding: 24px 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.panel--soft { background: var(--bg-2); }
.panel--pay { border-color: var(--red); box-shadow: 0 0 0 1px rgba(200,16,46,.25), 0 12px 40px rgba(200,16,46,.12); }
.panel__title { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; margin-bottom: 8px; }
.panel p { margin-bottom: 10px; }
.notice { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }

/* ---- product page ---------------------------------------------------- */
.product__layout { display: grid; gap: 18px; margin-bottom: 20px; }
@media (min-width: 760px) { .product__layout { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.product__media { aspect-ratio: 1; background: radial-gradient(ellipse at 50% 60%, #1c1c1c, #070707); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 20px; }
.product__media .vial { max-height: 320px; }
.product__form { color: var(--muted); margin-bottom: 8px; }
.product__price { font-family: var(--display); font-size: 2.4rem; margin-bottom: 14px; }
.add-form { display: flex; align-items: center; gap: 10px; }
.add-form--big { margin-bottom: 18px; flex-wrap: wrap; }
.specs { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 16px; }
.specs > div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--muted); }
.product__text { max-width: 720px; }
.product__text p { margin-bottom: 12px; }

/* ---- quantity stepper ------------------------------------------------ */
.qty { display: inline-flex; align-items: stretch; border: 1px solid #3a3a3a; border-radius: 8px; overflow: hidden; }
.qty__btn { width: var(--tap); min-height: var(--tap); font-size: 1.3rem; background: var(--panel-2); color: #fff; }
.qty__btn:active { background: #2a2a2a; }
.qty__input { width: 54px; text-align: center; background: var(--panel); border: 0; border-left: 1px solid #3a3a3a; border-right: 1px solid #3a3a3a; color: #fff; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---- invoice --------------------------------------------------------- */
.lines { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.line { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line--problem { background: rgba(242,182,61,.06); }
.line__main { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.line__main .split { font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; font-weight: 400; }
.line__controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.line__total { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.line__remove { font-size: .85rem; }
.lines--static .line { flex-direction: row; justify-content: space-between; align-items: center; }
.totals { margin: 16px 0; border-top: 1px solid var(--line); }
.totals > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.totals dt { color: var(--muted); }
.totals__total { font-size: 1.15rem; font-weight: 700; }
.totals__total dt { color: #fff; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; border: 1px solid var(--line); background: #1a1a1a; color: var(--silver); white-space: nowrap; }
.status.is-pending { color: var(--warn); border-color: rgba(242,182,61,.5); }
.status.is-active { color: #fff; border-color: var(--red); background: rgba(200,16,46,.2); }
.status.is-done { color: var(--ok); border-color: rgba(61,220,132,.4); }
.status.is-off { color: var(--muted); }
.status--big { font-size: .95rem; min-height: 34px; padding: 0 14px; }
.list { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.list__item { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list__main { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-height: 28px; }
.list__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .list__item { flex-direction: row; justify-content: space-between; align-items: center; } }
.pay-methods { display: grid; gap: 12px; margin: 12px 0; }
@media (min-width: 560px) { .pay-methods { grid-template-columns: 1fr 1fr; } }
.pay-method { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.pay-method strong { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; }
.pay-method__handle { font-size: 1.1rem; word-break: break-all; user-select: all; }
.pay-method img { width: 160px; border-radius: 6px; background: #fff; padding: 6px; }
.memo { font-family: var(--display); font-size: 1.25em; letter-spacing: .04em; color: #fff; }
.copy-btn { margin-bottom: 8px; }
.timeline { list-style: none; display: flex; flex-direction: column; margin: 8px 0 12px; }
.timeline__item { position: relative; display: flex; gap: 14px; padding: 0 0 18px 0; color: var(--muted); }
.timeline__item::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); margin-top: 2px; }
.timeline__item.is-done { color: var(--fg); }
.timeline__item.is-done .timeline__dot { border-color: var(--ok); background: var(--ok); }
.timeline__item.is-current strong { color: #fff; }
.timeline__item.is-current .timeline__dot { border-color: var(--red-2); background: var(--red-2); box-shadow: 0 0 0 5px rgba(200,16,46,.25); }
.timeline__item.is-off .timeline__dot { border-color: var(--muted); background: var(--muted); }
.timeline__when, .timeline__detail { display: block; font-size: .85rem; color: var(--muted); }
.timeline__detail a { text-decoration: underline; color: var(--silver); }
.sticky-bar {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 14px; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  min-height: 52px; padding: 0 18px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.sticky-bar__meta { font-weight: 500; opacity: .9; }
@media (min-width: 900px) { .sticky-bar { left: auto; right: 28px; min-width: 260px; } }
.table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .95rem; }
.table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--red-2); font-family: var(--display); font-size: 1.3rem; }
.faq[open] summary::after { content: "\2013"; }
.faq p { padding: 0 0 14px; color: var(--silver); }
.reports { list-style: none; border-top: 1px solid var(--line); }
.reports__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.reports__item strong { display: block; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; font-weight: 400; }

/* ---- footer ---------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 24px 0 110px; font-size: .88rem; color: var(--muted); }
.footer__ruo { margin-bottom: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }

/* ---- admin ----------------------------------------------------------- */
.admin { background: var(--bg-2); }
.admin::before { display: none; }
.admin__bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 8px var(--gutter); background: #000; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.admin__bar::-webkit-scrollbar { display: none; }
.admin__brand { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; white-space: nowrap; padding-right: 10px; }
.admin__nav { display: flex; gap: 2px; flex: 1; }
.admin__nav a { white-space: nowrap; padding: 8px 10px; border-radius: 6px; font-size: .9rem; font-weight: 600; color: var(--silver); min-height: 38px; display: inline-flex; align-items: center; }
.admin__nav a[aria-current="page"] { background: var(--red); color: #fff; }
.admin__logout { margin-left: auto; white-space: nowrap; }
.admin__main { max-width: 1100px; margin: 0 auto; padding: 16px var(--gutter) 60px; }
.admin__main--narrow { max-width: 440px; padding-top: 40px; }
.auth-logo img { width: 160px; margin: 0 auto 20px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 10px 0 18px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: .82rem; color: var(--muted); }
.stat__n { font-family: var(--display); font-size: 2.2rem; color: #fff; line-height: 1; }
.stat--hot { border-color: var(--red); }
.stat--hot .stat__n { color: var(--red-2); }

/* ---- bare error pages ------------------------------------------------ */
.bare__main { min-height: 100vh; display: grid; place-items: center; padding: var(--gutter); }
.bare__box { max-width: 480px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.bare__box h1 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 2rem; }
.bare__box a { color: var(--silver); text-decoration: underline; }

/* ---- misc ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }
