/* Northern Star Research — site styles */

/* Archivo (SIL Open Font License), served from this site so visitors' browsers never contact Google */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --night: #050F22;
  --deep: #0A1C3A;
  --panel: #0D2549;
  --line: rgba(150, 195, 245, 0.16);
  --line-strong: rgba(150, 195, 245, 0.32);
  --star: #4BB6FF;
  --star-deep: #1F86E0;
  --ice: #DDEFFF;
  --text: #E9F2FC;
  --muted: #93A9C6;
  --label: #F7FAFD;
  --band: #2F6FD6;
  --ok: #4FD8A0;
  --warn: #FFB547;
  --radius-sm: 6px;
  --radius: 14px;
  --wrap: 1180px;
  --font: 'Archivo', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: 'wdth' 100;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--star); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ice); }
:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-variation-settings: 'wdth' 118; font-weight: 750; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .98rem; cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--star); color: #04142B; }
.btn-primary:hover { background: var(--ice); color: #04142B; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--star); color: var(--ice); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; min-height: 32px; font-size: .85rem; margin-top: 6px; }

/* ---------- Header ---------- */
.ship-bar { background: var(--band); color: #fff; text-align: center; font-size: .88rem; padding: .45em 16px; font-weight: 550; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(5, 15, 34, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-variation-settings: 'wdth' 120; line-height: 1.05; }
.brand svg, .gate-box svg { color: var(--star); }
.brand .brand-mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 0 6px rgba(75, 182, 255, .45)); }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; font-variation-settings: 'wdth' 100; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; padding: .5em .8em; border-radius: 999px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(75, 182, 255, .12); color: var(--ice); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; padding: .45em .9em; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .95rem; }
.cart-link:hover { border-color: var(--star); color: var(--ice); }
.cart-count { background: var(--star); color: #04142B; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 750; padding: 0 6px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 999px; padding: .45em .9em; font: inherit; font-size: .95rem; cursor: pointer; }

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--deep); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: .8em .6em; border-radius: var(--radius-sm); }
  .brand small { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero { background: #030B1A; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #030B1A 0%, #030B1A 36%, rgba(3, 11, 26, 0) 54%),
    linear-gradient(0deg, var(--night) 0%, rgba(5, 15, 34, 0) 22%);
}
@media (min-width: 701px) { .hero-media { left: 34%; } }
.hero .wrap { min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: center; padding-block: 88px 72px; }
.hero h1 { max-width: 12ch; text-shadow: 0 0 40px rgba(75, 182, 255, .35); }
.hero .lede { font-size: 1.18rem; color: #C6D8EE; max-width: 46ch; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; max-width: 640px; }
.hero-proof strong { color: var(--text); font-weight: 650; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(0deg, rgba(5, 15, 34, .97) 25%, rgba(5, 15, 34, .55) 100%); }
  .hero .wrap { min-height: 0; padding-block: 140px 48px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 84px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 36px; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.page-head { padding-block: 64px 28px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--deep), rgba(10, 28, 58, .4));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.product:hover { border-color: var(--line-strong); }
.product-media { position: relative; display: block; aspect-ratio: 1 / 1.02; background: radial-gradient(60% 55% at 50% 55%, rgba(75, 182, 255, .28), rgba(75, 182, 255, 0) 70%); }
.product-media img { position: absolute; inset: 8% 0 2%; margin: auto; height: 90%; width: auto; }
.product-body { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.product-title h3 { margin: 0; font-size: 1.22rem; }
.product-title h3 a { color: var(--text); text-decoration: none; }
.product-title h3 a::after { content: ''; position: absolute; inset: 0 0 auto 0; aspect-ratio: 1 / 1.02; }
.price { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.product .summary { color: var(--muted); font-size: .92rem; margin: 0; }
.purity { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.purity b { color: var(--ok); font-weight: 650; font-variant-numeric: tabular-nums; }
.purity svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  position: relative; z-index: 1; border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  border-radius: 999px; padding: .35em .9em; font: inherit; font-size: .88rem; cursor: pointer;
}
.size[aria-pressed="true"] { background: var(--ice); color: #04142B; border-color: var(--ice); font-weight: 650; }
.product .btn { position: relative; z-index: 1; margin-top: auto; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding-block: 48px 84px; align-items: start; }
.pdp-gallery { position: sticky; top: 96px; }
.pdp-main { aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(55% 55% at 50% 55%, rgba(75, 182, 255, .3), rgba(75, 182, 255, 0) 70%), var(--deep); display: grid; place-items: center; overflow: hidden; }
.pdp-main img { height: 88%; width: auto; }
.pdp-main img.photo { height: 100%; width: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 84px; aspect-ratio: 1; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--deep); padding: 0; cursor: pointer; overflow: hidden; display: grid; place-items: center; }
.thumb img { height: 86%; width: auto; }
.thumb img.photo { height: 100%; width: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--star); box-shadow: 0 0 0 1px var(--star); }
.thumb-caption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.pdp h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: .2em; }
.pdp .formerly { color: var(--muted); font-size: .95rem; margin-bottom: 1.2em; }
.pdp .price { font-size: 2rem; display: block; margin: .2em 0 .6em; }
.field-label { display: block; font-weight: 600; margin: 1.2em 0 .5em; font-size: .95rem; }
.buy-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.qty button { background: none; border: 0; color: var(--text); width: 40px; height: 44px; font-size: 1.2rem; cursor: pointer; border-radius: 999px; }
.qty button:hover { color: var(--star); }
.qty output, .qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 650; }
.buy-row .btn-primary { flex: 1; min-width: 200px; }
.added { color: var(--ok); font-size: .92rem; min-height: 1.5em; margin-top: 10px; }
.spec { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: .95rem; }
.spec caption { text-align: left; font-weight: 700; font-size: 1.1rem; padding-bottom: 10px; font-variation-settings: 'wdth' 115; }
.spec th, .spec td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--muted); font-weight: 500; width: 42%; }
.ruo-note { margin-top: 28px; padding: 14px 16px; border-left: 3px solid var(--warn); background: rgba(255, 181, 71, .07); font-size: .9rem; color: #E9D9BE; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .pdp-gallery { position: static; }
}

/* ---------- Product information tabs ---------- */
.pinfo { padding-bottom: 84px; }
.pinfo-tabs { max-width: 460px; margin-bottom: 0; }
.pinfo-panel { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 8px; max-width: 860px; }
.pinfo-panel h2 { font-size: 1.15rem; margin: 1.6em 0 .4em; font-variation-settings: 'wdth' 112; }
.pinfo-panel p { color: #C6D8EE; }
.pinfo-class { margin-top: 1.2em; font-weight: 650; color: var(--text) !important; }
.refs { padding-left: 1.2em; margin: 0 0 1em; font-size: .92rem; color: #C6D8EE; }
.refs li { margin-bottom: .7em; max-width: 80ch; }
.info-table { margin-top: 12px; }
.info-table th { width: 32%; }
.info-table td { overflow-wrap: anywhere; }

/* ---------- Research library ---------- */
.research { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-block: 40px 84px; align-items: start; }
.research-toc { position: sticky; top: 96px; font-size: .95rem; }
.research-toc ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 4px; }
.research-toc a { color: var(--muted); text-decoration: none; display: block; padding: .3em 0; }
.research-toc a:hover { color: var(--ice); }
.small-heading { font-size: .95rem; margin: 0 0 8px; color: var(--text); font-variation-settings: 'wdth' 110; }
.research-entry { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; max-width: 860px; }
.research-entry h2 { font-size: 1.6rem; margin-bottom: .2em; }
.research-entry h3 { font-size: 1.05rem; margin: 1.6em 0 .5em; }
.research-entry p { color: #C6D8EE; }
.research-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.glossary dt { font-weight: 650; margin-top: 1em; }
.glossary dd { margin: .2em 0 0; color: #C6D8EE; max-width: 70ch; }
@media (max-width: 860px) {
  .research { grid-template-columns: 1fr; gap: 24px; }
  .research-toc { position: static; }
  .research-toc ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
}

/* ---------- Proof / COA ---------- */
.proof { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.proof-labs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proof-labs div { background: var(--night); padding: 22px; }
.proof-labs b { display: block; font-size: 1.05rem; }
.proof-labs span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; gap: 32px; } }

.coa-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.coa-table th, .coa-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.coa-table thead th { color: var(--muted); font-weight: 500; font-size: .88rem; border-bottom-color: var(--line-strong); }
.coa-table td.result { font-variant-numeric: tabular-nums; color: var(--ok); font-weight: 600; }
.coa-table tbody tr:hover { background: rgba(75, 182, 255, .05); }
.coa-list { list-style: none; padding: 0; margin: 12px 0 0; }
.coa-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
@media (max-width: 700px) {
  .coa-table thead { display: none; }
  .coa-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .coa-table td { border: 0; padding: 2px 0; }
}

/* ---------- Cart & checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-block: 40px 84px; align-items: start; }
@media (max-width: 920px) { .checkout { grid-template-columns: 1fr; } }
.panel { background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.summary-panel { position: sticky; top: 96px; }
@media (max-width: 920px) { .summary-panel { position: static; order: -1; } }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 64px; height: 64px; object-fit: contain; background: radial-gradient(circle, rgba(75, 182, 255, .22), transparent 70%); border-radius: var(--radius-sm); }
.line-item .name { font-weight: 650; }
.line-item .meta { color: var(--muted); font-size: .88rem; }
.line-item .right { text-align: right; display: grid; justify-items: end; gap: 6px; }
.line-item .qty button { width: 32px; height: 32px; font-size: 1rem; }
.remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; text-decoration: underline; padding: 0; }
.remove:hover { color: var(--ice); }
.totals { margin-top: 16px; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.25rem; font-weight: 750; padding-top: 12px; border-top: 1px solid var(--line-strong); margin-top: 6px; }
.ship-meter { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.ship-meter .bar { height: 6px; border-radius: 999px; background: rgba(150, 195, 245, .15); margin-top: 8px; overflow: hidden; }
.ship-meter .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--star-deep), var(--star)); border-radius: inherit; transition: width .3s; }
[hidden] { display: none !important; }
.empty { text-align: center; padding: 48px 16px; }
.empty p { margin-inline: auto; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form .row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form .row, form .row-3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .9rem; font-weight: 550; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--night);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .7em .8em; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--star); outline: none; box-shadow: 0 0 0 3px rgba(75, 182, 255, .25); }
.field input:user-invalid { border-color: #FF7A7A; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; font-variation-settings: 'wdth' 115; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--star); background: rgba(75, 182, 255, .08); }
.pay-option input { accent-color: var(--star); width: 18px; height: 18px; }
.pay-option span { color: var(--muted); font-size: .88rem; margin-left: auto; }
.ruo-disclaimer { margin: 18px 0 16px; padding: 14px 16px; border-left: 3px solid var(--warn); background: rgba(255, 181, 71, .07); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .92rem; color: #E9D9BE; }
.certify { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 16px 18px 4px; margin-bottom: 14px; background: rgba(5, 15, 34, .5); }
.certify p { margin: 0 0 8px; font-size: .95rem; }
.cert-list { margin: 0 0 14px; padding-left: 1.3em; font-size: .9rem; color: #C6D8EE; }
.cert-list li { margin-bottom: .45em; }
.cert-agree { font-weight: 650; margin: 0 0 12px !important; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; margin: 8px 0 20px; }
.agree input { accent-color: var(--star); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form-error { color: #FF9C9C; font-size: .92rem; min-height: 1.4em; }

.code-row { display: flex; gap: 10px; align-items: end; }
.code-row input { text-transform: uppercase; }
.code-row .btn { padding-block: .72em; }
.msg-ok { color: var(--ok); }
.msg-err { color: #FF9C9C; }
.reward-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); margin-top: 8px; cursor: pointer; font-size: .95rem; }
.reward-option:has(input:checked) { border-color: var(--star); background: rgba(75, 182, 255, .08); }
.reward-option input { accent-color: var(--star); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.reward-option.locked { opacity: .5; cursor: not-allowed; }
.reward-option b { font-variant-numeric: tabular-nums; }
.points-bar { height: 8px; border-radius: 999px; background: rgba(150, 195, 245, .15); overflow: hidden; margin: 10px 0 6px; }
.points-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--star-deep), var(--star)); border-radius: inherit; }
.free-tag { color: var(--ok); font-weight: 650; }

/* ---------- Order confirmation ---------- */
.confirm { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: 48px 84px; align-items: start; }
@media (max-width: 860px) { .confirm { grid-template-columns: 1fr; } }
.order-no { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 750; font-variation-settings: 'wdth' 120; color: var(--star); letter-spacing: .02em; }
.pay-card { text-align: center; }
.pay-card img { width: min(320px, 100%); margin: 16px auto; border-radius: var(--radius-sm); background: #fff; }
.pay-amount { font-size: 2.2rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.steps { padding-left: 1.2em; margin: 0; }
.steps li { margin-bottom: .6em; }

/* ---------- Prose pages ---------- */
.prose { padding-block: 48px 84px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose li { margin-bottom: .4em; max-width: 68ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--ice); color: #04142B; padding: .7em 1.1em; border-radius: var(--radius-sm); font-weight: 650; text-decoration: none; }
.skip-link:focus { top: 12px; color: #04142B; }
main:focus { outline: none; }
.video-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 5; background: rgba(5, 15, 34, .78); color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: .5em 1em; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.video-toggle:hover { border-color: var(--star); color: var(--ice); }
.footer-grid h3 { color: var(--text); font-size: .98rem; margin-bottom: .8em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ice); }
.disclaimer { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Age / research-use gate ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(3, 9, 22, .88); backdrop-filter: blur(6px); }
.gate-box { max-width: 460px; background: var(--deep); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 32px; text-align: center; }
.gate-box svg { width: 52px; height: 52px; margin: 0 auto 12px; filter: drop-shadow(0 0 12px rgba(75, 182, 255, .8)); }
.gate-box h2 { font-size: 1.5rem; }
.gate-box p { color: var(--muted); font-size: .95rem; margin-inline: auto; }
.gate-actions { display: grid; gap: 10px; margin-top: 20px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ice); color: #04142B; padding: .8em 1.2em; border-radius: 999px; font-weight: 600; font-size: .95rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); display: flex; gap: 14px; align-items: center; }
.toast a { color: #04142B; font-weight: 750; }

/* ---------- Login gate ---------- */
.auth-pending body { visibility: hidden; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.auth-brand { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; background: #030B1A; }
.auth-brand video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-brand::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 11, 26, .95) 0%, rgba(3, 11, 26, .2) 55%, rgba(3, 11, 26, .6) 100%); }
.auth-brand-inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 32px clamp(24px, 4vw, 56px) 48px; }
.auth-brand h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); max-width: 12ch; text-shadow: 0 0 40px rgba(75, 182, 255, .35); }
.auth-brand p { color: #C6D8EE; max-width: 44ch; margin: 0; }
.auth-main { padding: 48px clamp(16px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; background: var(--night); border-left: 1px solid var(--line); }
.auth-card { width: 100%; max-width: 480px; margin-inline: auto; }
.auth-foot { text-align: center; margin: 20px auto 0; }
.auth-single { grid-template-columns: 1fr; }
.auth-single .auth-main { border: 0; min-height: 100vh; }
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { position: relative; height: 300px; }
  .auth-brand-inner { padding: 20px 16px 24px; }
  .auth-brand h1 { font-size: 1.9rem; margin-bottom: .3em; }
  .auth-brand p { font-size: .95rem; }
  .auth-main { border-left: 0; padding-top: 28px; }
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; margin-bottom: 24px; }
.tabs button { font: inherit; font-weight: 650; padding: .7em 1em; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-pressed="true"], .tabs button[aria-selected="true"] { background: var(--ice); color: #04142B; }
.terms-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px 4px; margin: 4px 0 16px; background: rgba(10, 28, 58, .55); }
.terms-title { font-weight: 700; font-size: 1rem; margin: 0 0 10px; padding: 0; font-variation-settings: 'wdth' 110; }
.terms-list { margin: 0 0 12px; padding-left: 1.1em; font-size: .9rem; color: #C6D8EE; }
.terms-list li { margin-bottom: .35em; }
.terms-box .agree { margin: 0 0 12px; font-size: .9rem; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .92rem; border: 1px solid var(--line-strong); background: rgba(75, 182, 255, .08); }
.notice.ok { border-color: rgba(79, 216, 160, .5); background: rgba(79, 216, 160, .08); }
.notice.warn { border-color: rgba(255, 181, 71, .5); background: rgba(255, 181, 71, .08); color: #F1E2C6; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--star); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--ice); }

/* ---------- Account & admin ---------- */
.status { display: inline-block; padding: .15em .7em; border-radius: 999px; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.status-awaiting_payment { background: rgba(255, 181, 71, .15); color: var(--warn); }
.status-paid { background: rgba(75, 182, 255, .15); color: var(--star); }
.status-shipped { background: rgba(79, 216, 160, .15); color: var(--ok); }
.status-cancelled { background: rgba(150, 165, 190, .15); color: var(--muted); }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; background: var(--deep); }
.order-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; margin-bottom: 10px; }
.order-card .no { font-weight: 750; font-variation-settings: 'wdth' 115; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; font-size: .92rem; }
.order-grid h4 { margin: 0 0 4px; color: var(--muted); font-weight: 500; font-size: .85rem; }
.order-grid p { margin: 0; }
@media (max-width: 760px) { .order-grid { grid-template-columns: 1fr; } }
.admin-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-controls .field { margin: 0; }
.admin-controls select, .admin-controls input { padding: .5em .7em; }
.mismatch { color: #FF9C9C; font-size: .85rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 28px; color: var(--muted); font-size: .95rem; }
.stat-row b { color: var(--text); font-size: 1.3rem; display: block; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
