/* ==========================================================================
   TexasBench — dark premium theme
   Palette: cold-room inks built around the logo's mint.
   Type: Newsreader (display, echoes the logo serif) + Hanken Grotesk (UI/body).
   Variable names from the previous theme are kept because inline styles and
   page scripts reference them (--mint-dark, --danger, --text, --text-light,
   --bg-darker, --grey-border).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap');

:root {
  /* core palette */
  --ink: #0f1b1d;          /* page */
  --ink-deep: #0a1416;     /* header, footer */
  --surface: #152427;      /* panels */
  --raised: #1c2e31;       /* inputs, hovered panels */
  --line: #2a3f42;         /* hairlines */
  --line-soft: #213437;
  --frost: #e6efed;        /* primary text */
  --muted: #93a8a5;        /* secondary text */
  --faint: #6c817e;        /* tertiary text */
  --mint: #5eead4;         /* brand mark, links, primary action */
  --mint-press: #3fd3bc;
  --mint-wash: rgba(94, 234, 212, 0.08);
  --alert: #f2867a;
  --alert-wash: rgba(242, 134, 122, 0.08);

  /* legacy names, remapped for the dark theme */
  --bg-dark: var(--ink-deep);
  --bg-darker: var(--frost);
  --panel-dark: var(--surface);
  --mint-dark: var(--mint);
  --cream: var(--frost);
  --grey-bg: var(--surface);
  --grey-border: var(--line);
  --text: var(--frost);
  --text-light: var(--muted);
  --warn-bg: var(--alert-wash);
  --warn-border: var(--alert);
  --danger: var(--alert);
  --white: var(--ink);

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; scroll-behavior: smooth; background: var(--ink-deep); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--frost);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; display: block; }

::selection { background: rgba(94, 234, 212, 0.25); }

/* ---------- Research-use banner ---------- */
.roa-banner {
  background: var(--ink-deep);
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Header ---------- */
header {
  background: rgba(10, 20, 22, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo-link { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-link:hover { text-decoration: none; }
.logo-icon { width: 34px; height: 34px; border-radius: 8px; }
.logo-text {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.1;
  color: var(--frost);
  letter-spacing: -0.005em;
}
.logo-text br { display: none; }
.logo-text span { display: none; }

nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
nav a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background-color 0.15s;
}
nav a:hover { color: var(--frost); background: var(--raised); text-decoration: none; }
nav a.active { color: var(--frost); }
nav .nav-primary a.active { box-shadow: inset 0 -2px 0 var(--mint); border-radius: 0; }
nav .nav-account { gap: 2px; }
nav .nav-account a { font-size: 0.86rem; }
#nav-account-link {
  color: var(--ink);
  background: var(--mint);
  font-weight: 600;
  margin-left: 8px;
}
#nav-account-link:hover { background: var(--mint-press); color: var(--ink); }

.nav-myaccount, .nav-admin { display: none; }
.nav-admin a { color: var(--faint); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--frost); border-radius: 2px; }

/* ---------- Floating cart ---------- */
.floating-cart {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: none; /* nav-auth.js shows it for signed-in users */
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(94, 234, 212, 0.3);
  transition: transform 0.15s, background-color 0.15s;
}
.floating-cart svg { width: 24px; height: 24px; }
.floating-cart:hover { background: var(--mint-press); transform: translateY(-1px); text-decoration: none; }
.floating-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--frost);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
}

/* ---------- Layout ---------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter) 96px; }
section { margin-bottom: 72px; }
section:last-child { margin-bottom: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--frost);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); margin-bottom: 16px; }
h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--frost); margin-bottom: 8px; line-height: 1.35; }
p { margin-bottom: 14px; color: var(--frost); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; line-height: 1.65; }
strong { font-weight: 600; }

/* The old 60px mint bar under every heading is retired; keep spacing only. */
.section-divider { height: 0; margin-bottom: 8px; }

.page-head { padding-bottom: 32px; border-bottom: 1px solid var(--line-soft); margin-bottom: 56px; }
.page-head h1 { margin-bottom: 16px; }
.page-head .lead { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn, .btn-outline, .btn-outline-light, .product-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.btn { background: var(--mint); color: var(--ink); border: 1px solid var(--mint); }
.btn:hover { background: var(--mint-press); border-color: var(--mint-press); text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-outline, .btn-outline-light { background: transparent; color: var(--frost); border: 1px solid var(--line); }
.btn-outline:hover, .btn-outline-light:hover { border-color: var(--muted); background: var(--raised); color: var(--frost); text-decoration: none; }
.btn + .btn-outline { margin-left: 10px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(60% 80% at 78% 40%, rgba(94, 234, 212, 0.07), transparent 70%),
    var(--ink);
}
.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 96px var(--gutter) 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 24px; max-width: 15ch; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-outline { margin-left: 0; }
.hero-mark { justify-self: center; width: 100%; max-width: 440px; }
.hero-mark svg { width: 100%; height: auto; overflow: visible; }
.hero-mark .bond { stroke: var(--mint); stroke-width: 1.4; opacity: 0.55; fill: none; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.6s ease-out 0.3s forwards; }
.hero-mark .node { fill: var(--mint); opacity: 0; animation: appear 0.6s ease-out forwards; }
.hero-mark .ring { fill: none; stroke: var(--mint); stroke-width: 2.2; opacity: 0; animation: appear 0.6s ease-out forwards; }
.hero-mark .halo { fill: var(--mint); opacity: 0.07; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

.hero-facts {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
}
.hero-facts div { padding: 22px 24px 26px 0; }
.hero-facts div + div { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.hero-facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--frost); }
.hero-facts span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Content blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.split > div > p { color: var(--muted); }

.rows { border-top: 1px solid var(--line); }
.rows .row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows .row h3 { margin: 0; }
.rows .row p { margin: 0; color: var(--muted); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 28px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--mint);
  margin-bottom: 18px;
}
.steps p { color: var(--muted); margin: 0; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 44px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--muted); margin: 0; }

/* Generic cards (used by contact, account, checkout) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card h3 { margin-bottom: 6px; }
.card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }

/* ---------- Notices ---------- */
.notice {
  background: var(--alert-wash);
  border: 1px solid rgba(242, 134, 122, 0.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 48px;
}
.notice > strong { color: var(--alert); display: block; margin-bottom: 4px; font-size: 0.95rem; }
.notice p strong { color: var(--frost); font-weight: 600; }
.notice p { margin-bottom: 6px; font-size: 0.92rem; color: var(--muted); }
.notice p:last-child { margin-bottom: 0; }
.notice a { color: var(--frost); text-decoration: underline; text-underline-offset: 3px; }
.notice-dark { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 22px; }
.notice-dark strong { color: var(--mint); }
.notice-dark p { color: var(--muted); font-size: 0.93rem; margin-bottom: 6px; }

/* ---------- Catalog ---------- */
.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  position: sticky;
  top: 68px;
  z-index: 20;
  background: var(--ink);
  padding-top: 12px;
  margin-top: -12px;
}
.category-nav-link {
  flex-shrink: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.category-nav-link:hover { color: var(--frost); border-color: var(--muted); text-decoration: none; }

section[id] { scroll-margin-top: 140px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.product-card:hover { border-color: var(--line); }
.product-card-top {
  aspect-ratio: 5 / 4;
  background: radial-gradient(circle at 50% 45%, #1a2c2f, var(--ink-deep) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0; /* hides the legacy "Research Compound" text if present */
}
.product-card-top img { max-height: 100%; width: auto; border-radius: 6px; }
.product-card-body { padding: 18px 18px 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.product-card-spec { font-size: 0.86rem; color: var(--muted); margin-bottom: 16px; }
.product-card-price { font-size: 1.15rem; font-weight: 600; color: var(--frost); margin-top: auto; margin-bottom: 0; font-variant-numeric: tabular-nums; }
/* The whole card is clickable; the link stretches over it. */
.product-card-link {
  position: static;
  padding: 0;
  font-size: 0.86rem;
  color: var(--mint);
  background: none;
  border: 0;
  justify-content: flex-start;
  margin-top: 6px;
}
.product-card-link::after { content: ''; position: absolute; inset: 0; }
.product-card-link:hover { text-decoration: underline; }
.product-card:focus-within { border-color: var(--mint); }

/* ---------- Product detail ---------- */
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 0.9rem; }
.back-link:hover { color: var(--frost); }
main > p:first-child a { color: var(--muted); font-size: 0.9rem; }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  margin-bottom: 64px;
  align-items: start;
}
.product-media {
  position: sticky;
  top: 96px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 42%, #1c3033, var(--ink-deep) 72%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media img { max-width: 72%; max-height: 86%; width: auto; border-radius: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.product-info h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 8px; }
.product-info .product-subtitle { color: var(--muted); font-size: 1rem; margin-bottom: 24px; }
.product-info .product-price { font-family: var(--serif); font-size: 2.2rem; color: var(--frost); margin-bottom: 28px; font-variant-numeric: tabular-nums; }
.product-info label { margin-bottom: 8px; }
.product-info select { margin-bottom: 28px; }
.product-info .btn { width: 100%; }
.product-info .btn-outline-light { width: 100%; }
#add-to-cart-msg { color: var(--mint) !important; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.93rem; vertical-align: top; }
.spec-table tr:first-child td { border-top: 1px solid var(--line-soft); }
.spec-table td:first-child { color: var(--muted); width: 36%; padding-right: 16px; }
.spec-table td:last-child { font-weight: 500; color: var(--frost); }

.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty-row label { margin: 0 !important; color: var(--muted); font-weight: 500; }
.qty-row input[type="number"] { width: 88px; margin: 0; text-align: center; }

.product-hero ~ section h2 { font-size: 1.6rem; }
.product-hero ~ section p { color: var(--muted); max-width: 68ch; }

/* ---------- Tables (admin, catalog tables) ---------- */
.catalog-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.catalog-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.catalog-table th, .catalog-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.catalog-table th { background: var(--surface); color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.catalog-table tr:last-child td { border-bottom: 0; }
.catalog-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.catalog-table td.price { font-weight: 600; white-space: nowrap; }
.catalog-table td.roa-tag { color: var(--alert); font-size: 0.8rem; font-weight: 600; }
.catalog-table input, .catalog-table select { margin: 0; padding: 8px 10px; max-width: 140px; }
.catalog-table .btn, .catalog-table .btn-outline-light, .catalog-table button { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- Cart & checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; table-layout: fixed; }
.cart-table th, .cart-table td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 0.94rem; font-variant-numeric: tabular-nums; }
.cart-table th { color: var(--muted); font-weight: 600; font-size: 0.82rem; border-bottom-color: var(--line); }
.cart-table td.cart-qty input { width: 72px; margin: 0; padding: 8px; text-align: center; }
.cart-table td.cart-remove a { color: var(--alert); font-size: 0.85rem; font-weight: 600; }
.cart-table tfoot td { border-bottom: 0; }
.cart-total-row { text-align: right; font-family: var(--serif); font-size: 1.6rem !important; padding: 20px 12px; color: var(--frost); }
.cart-empty { text-align: center; padding: 72px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.cart-empty p { color: var(--muted); }
.cart-empty .btn { margin-top: 12px; }

.order-summary-box {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 720px;
}
.order-summary-box + .order-summary-box { margin-top: 16px; }
.order-success {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.order-success h2 { color: var(--frost); }
.order-success p { color: var(--muted); }

/* Bac-water modal (inline-styled in cart.html; these rules restyle its panel) */
#bac-water-modal { background: rgba(5, 10, 11, 0.75) !important; backdrop-filter: blur(4px); }
#bac-water-modal > div { background: var(--surface) !important; border: 1px solid var(--line); border-radius: var(--radius-lg) !important; }

/* ---------- Auth ---------- */
.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.auth-wrap h2 { text-align: center; margin-bottom: 8px; }
.auth-wrap .lead { text-align: center; margin: 0 auto 28px; font-size: 0.95rem; }
.auth-wrap form { max-width: none; }
.auth-toggle { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 28px; background: var(--ink); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.auth-toggle button {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.auth-toggle button.active { background: var(--raised); color: var(--frost); }
.auth-error {
  display: none;
  background: var(--alert-wash);
  border: 1px solid rgba(242, 134, 122, 0.3);
  color: var(--alert);
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.auth-error.show { display: block; }
.auth-status { text-align: center; padding: 120px 20px; color: var(--muted); }

/* ---------- Forms ---------- */
form { max-width: 580px; }
label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.88rem; color: var(--frost); }
input, textarea, select {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--frost);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15); }
input:disabled { background: var(--surface) !important; color: var(--muted) !important; cursor: not-allowed; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2393a8a5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
textarea { min-height: 130px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--mint); flex-shrink: 0; margin-bottom: 0; padding: 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.checkbox-row input { margin: 2px 0 0 0 !important; }
.checkbox-row label { font-weight: 400; font-size: 0.88rem; color: var(--muted); margin: 0; }
.checkbox-row label[style*="font-weight:600"] { color: var(--frost); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.contact-details { list-style: none; border-top: 1px solid var(--line); }
.contact-details li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-details h3 { font-size: 0.88rem; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.contact-details p { margin: 0; font-size: 1.05rem; }
.contact-panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 32px; }
.contact-panel form { max-width: none; }

/* ---------- Legal / long text ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 14px; }

/* ---------- Footer ---------- */
footer { background: var(--ink-deep); border-top: 1px solid var(--line-soft); padding: 56px 0 32px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line-soft); margin-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-brand span { color: var(--frost); font-family: var(--serif); font-size: 1.1rem; }
.footer-brand-note { margin: 10px 0 0; color: var(--faint); font-size: 0.86rem; }
.footer-links { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--frost); }
.footer-disclaimer { max-width: 86ch; margin-bottom: 28px; }
.footer-disclaimer strong { color: var(--muted); font-size: 0.85rem; display: block; margin-bottom: 6px; }
.footer-disclaimer p { color: var(--faint); font-size: 0.82rem; line-height: 1.6; margin-bottom: 0; }
.footer-bottom { color: var(--faint); font-size: 0.82rem; }

/* ---------- Splash ---------- */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.8s ease;
}
#splash-screen.splash-fade-out { opacity: 0; pointer-events: none; }
#splash-screen img { width: 84px; height: 84px; border-radius: 18px; animation: splash-logo-in 0.9s ease-out both; }
#splash-screen .splash-wordmark { font-family: var(--serif); font-size: 1.5rem; color: var(--frost); letter-spacing: -0.01em; animation: splash-text-in 0.9s ease-out 0.25s both; }
@keyframes splash-logo-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes splash-text-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px var(--gutter) 56px; }
  .hero-mark { max-width: 280px; justify-self: start; order: -1; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-hero { grid-template-columns: 1fr; gap: 32px; }
  .product-media { position: static; max-width: 520px; }
}

@media (max-width: 860px) {
  .header-inner { gap: 16px; }
  .nav-toggle { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  nav.nav-open { display: flex; }
  /* Long menus (e.g. Admin expanded) scroll inside the panel. The header is
     sticky, so without this the bottom of the menu was unreachable. */
  nav {
    max-height: calc(100vh - var(--header-h, 68px));
    max-height: calc(100dvh - var(--header-h, 68px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  nav a:hover { background: none; }
  nav .nav-primary a.active { box-shadow: none; color: var(--mint); }
  nav .nav-account a { font-size: 1rem; }
  #nav-account-link { margin: 16px 0 0; text-align: center; border-radius: var(--radius-sm); border-bottom: 0; }
}

@media (max-width: 720px) {
  main { padding-top: 40px; }
  section { margin-bottom: 56px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div, .hero-facts div + div { padding: 16px 0; border-left: 0; }
  .hero-facts div + div { border-top: 1px solid var(--line-soft); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .rows .row { grid-template-columns: 1fr; gap: 6px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .btn + .btn-outline { margin-left: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card-body { padding: 14px; }
  .auth-wrap { padding: 28px 20px; }
  .contact-panel, .order-summary-box { padding: 22px 18px; }
  .floating-cart { right: 16px; bottom: 16px; }

  /* Cart/summary tables stack into rows */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tfoot, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tbody tr { border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 12px; padding: 10px 14px; background: var(--surface); }
  .cart-table td { border-bottom: none; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; }
  .cart-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.82rem; margin-right: 12px; }
  .cart-table td.cart-qty input { margin-left: auto; }
  .cart-total-row { text-align: left; padding: 12px 0; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------- Terms page ---------- */
main.legal { max-width: 820px; }
main.legal section { margin-bottom: 40px; }
main.legal section:not(.page-head):not(.notice) h2 { font-size: 1.45rem; margin-bottom: 12px; }
main.legal section:not(.page-head) p { color: var(--muted); }
.split .btn, .split .btn-outline { margin-top: 8px; }

/* ---------- Case pricing (js/case-pricing.js) ---------- */
.buy-mode { margin-bottom: 28px; }
.buy-mode-label { font-weight: 500; font-size: 0.88rem; margin-bottom: 8px; }
.buy-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-option { position: relative; display: block; margin: 0; cursor: pointer; }
.buy-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.buy-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink);
  transition: border-color 0.15s, background-color 0.15s;
}
.buy-option:hover .buy-option-body { border-color: var(--muted); }
.buy-option input:checked + .buy-option-body { border-color: var(--mint); background: var(--mint-wash); box-shadow: inset 0 0 0 1px var(--mint); }
.buy-option input:focus-visible + .buy-option-body { outline: 2px solid var(--mint); outline-offset: 3px; }
.buy-option-title { font-weight: 600; font-size: 0.95rem; color: var(--frost); }
.buy-option-price { font-size: 0.92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.buy-option-save { font-size: 0.82rem; font-weight: 600; color: var(--mint); }
.buy-mode-note { margin: 10px 0 0; font-size: 0.88rem; color: var(--muted); }

/* ---------- Orders page: tracking number ---------- */
.tracking-row { margin: 4px 0 14px; padding: 14px 16px; background: var(--ink); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.tracking-row label { margin-bottom: 6px; }
.tracking-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.tracking-controls input { flex: 1 1 220px; margin: 0; }
.tracking-controls button { padding: 10px 14px; font-size: 0.86rem; white-space: nowrap; }
.tracking-status { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.tracking-status:empty { display: none; }

/* ---------- Signed-in vs signed-out content (js/nav-auth.js toggles html.signed-in) ---------- */
.signed-in-only { display: none !important; }
html.signed-in .signed-in-only { display: inline-flex !important; }
html.signed-in .signed-out-only { display: none !important; }
main.legal ul { padding-left: 20px; margin: 0 0 18px; }
main.legal li { color: var(--muted); margin-bottom: 8px; }
main.legal li strong, main.legal section:not(.page-head) p strong { color: var(--frost); }

/* ---------- Sign-in extras ---------- */
.auth-aside { text-align: center; margin: 16px 0 0; font-size: 0.9rem; }
.auth-help { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.auth-notice { display: none; background: var(--mint-wash); border: 1px solid rgba(94, 234, 212, 0.3); color: var(--frost); font-size: 0.9rem; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.auth-notice.show { display: block; }

/* ---------- Order status (My Account) ---------- */
.order-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; font-size: 0.9rem; color: var(--muted); }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; border: 1px solid var(--line); color: var(--frost); background: var(--raised); }
.status-pill.status-shipped, .status-pill.status-delivered { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.status-pill.status-cancelled { color: var(--alert); background: var(--alert-wash); border-color: rgba(242, 134, 122, 0.35); }

/* ---------- BOGO badges (js/bogo-badges.js) ---------- */
.bogo-badge {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--mint);
}
.product-card-top { position: relative; }
.product-card-top .bogo-badge { position: absolute; top: 10px; left: 10px; font-size: 0.75rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.product-card.is-bogo { border-color: rgba(94, 234, 212, 0.35); }
.bogo-card-note { margin: 2px 0 0; font-size: 0.82rem; font-weight: 600; color: var(--mint); }
.product-info h1 .bogo-badge { margin-left: 12px; font-size: 0.8rem; position: relative; top: -6px; }
.bogo-product-note { margin: -12px 0 22px; padding: 10px 14px; font-size: 0.9rem; color: var(--muted); background: var(--mint-wash); border: 1px solid rgba(94, 234, 212, 0.3); border-radius: var(--radius-sm); }
.bogo-product-note strong { color: var(--mint); }
.bogo-filter { background: none; cursor: pointer; font-family: var(--sans); color: var(--mint); border-color: rgba(94, 234, 212, 0.45); }
.bogo-filter[aria-pressed="true"] { background: var(--mint); color: var(--ink); border-color: var(--mint); }
body.bogo-only .product-card:not(.is-bogo) { display: none; }
body.bogo-only section[id]:not(:has(.product-card.is-bogo)):not(#terms) { display: none; }

/* ---------- Admin menu (one dropdown for the admin pages) ---------- */
nav a { white-space: nowrap; }
.nav-admin-menu { position: relative; }
.nav-admin-menu details { position: relative; }
.nav-admin-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-admin-menu summary::-webkit-details-marker { display: none; }
.nav-admin-menu summary::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
}
.nav-admin-menu details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-admin-menu summary:hover, .nav-admin-menu details[open] summary { color: var(--frost); background: var(--raised); }
.nav-admin-menu ul {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--ink-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 120;
}
.nav-admin-menu ul { align-items: stretch; }
.nav-admin-menu ul a { color: var(--muted); font-size: 0.9rem; text-align: left; }
.nav-admin-menu ul a:hover, .nav-admin-menu ul a.active { color: var(--frost); background: var(--raised); }
.nav-admin a { color: inherit; }
@media (max-width: 860px) {
  .nav-admin-menu summary { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1rem; justify-content: space-between; }
  .nav-admin-menu summary:hover, .nav-admin-menu details[open] summary { background: none; }
  .nav-admin-menu ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: none; min-width: 0; }
  .nav-admin-menu ul a { font-size: 0.95rem; }
}

/* Researched compound data on product pages */
.spec-table td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; word-break: break-all; }
.compound-table { margin: 4px 0 24px; }
.research-areas, .research-sources { margin: 0 0 20px; padding-left: 20px; color: var(--frost); }
.research-areas li, .research-sources li { margin-bottom: 6px; }
.research-sources { font-size: 0.88rem; }
.research-sources a { color: var(--muted); }
.research-note { color: var(--muted); font-style: italic; }

/* Catalog search */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.catalog-search { position: relative; margin-bottom: 18px; }
.catalog-search svg { position: absolute; left: 14px; top: 14px; color: var(--muted); pointer-events: none; }
.catalog-search input[type="search"] { width: 100%; margin: 0; padding: 12px 14px 12px 42px; font-size: 1rem; background: var(--raised); border: 1px solid var(--line); border-radius: 999px; color: var(--frost); }
.catalog-search input[type="search"]:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-wash); }
.catalog-search-status { margin: 8px 0 0 16px; font-size: 0.85rem; color: var(--muted); min-height: 1em; }
.catalog-search-status:empty { display: none; }
.catalog-search-empty { margin: 32px 0; padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.product-card.search-hide, section.search-hide { display: none !important; }

/* Reorder on past orders (account.html) */
.order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.order-actions .reorder-btn { padding: 10px 22px; font-size: 0.9rem; margin: 0; }
.reorder-hint { font-size: 0.85rem; color: var(--muted); }
.reorder-msg { margin-top: 12px; padding: 14px 16px; background: var(--raised); border-radius: var(--radius-sm); font-size: 0.92rem; }
.reorder-msg ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
.reorder-msg p { margin-bottom: 8px; }

/* Account: password form, messages */
#password-form, #profile-form { max-width: 520px; }
.field-hint { margin: -10px 0 16px; font-size: 0.82rem; color: var(--faint); }
.form-message { max-width: 520px; margin-bottom: 14px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; }
.form-message.is-ok { color: var(--mint); background: var(--mint-wash); }
.form-message.is-error { color: var(--alert); background: var(--alert-wash); }

/* Orders page: the order an email linked to */
.order-highlight { border-color: var(--mint) !important; box-shadow: 0 0 0 3px var(--mint-wash); }
/* Signed-in nav before Firebase confirms (avoids a flash of the login button) */
html.signed-in .nav-login { display: none; }
html.signed-in .nav-myaccount { display: list-item; }

/* Admin: At cost and P&L */
.admin-form { max-width: 560px; }
.admin-form textarea, .import-box textarea { width: 100%; font-family: inherit; }
.field-note { color: var(--faint); font-weight: 400; font-size: 0.82rem; }
.section-note { color: var(--muted); font-size: 0.9rem; }
.import-box { margin-bottom: 8px; }
.import-box summary { cursor: pointer; font-weight: 600; color: var(--frost); }
.import-unmatched { color: var(--muted); font-size: 0.88rem; }
.cost-table .kit-input { width: 110px; margin: 0; padding: 8px 10px; }
.cost-table .save-cost { padding: 7px 14px; font-size: 0.85rem; }
.cost-warn { color: var(--alert); font-size: 0.82rem; }
.pnl-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; }
.pnl-controls label { margin: 0; }
.pnl-controls select { width: auto; margin: 0; }
.pnl-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 28px; }
.pnl-tile { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pnl-label { color: var(--muted); font-size: 0.82rem; }
.pnl-value { color: var(--frost); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pnl-sub { display: block; color: var(--faint); font-size: 0.8rem; }
.pnl-table td, .pnl-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
#pnl-body h2 { margin-top: 40px; }

/* Unpaid Venmo / Cash App order on My orders */
.order-pay-box { margin: 10px 0 14px; padding: 12px 14px; border: 1px solid var(--mint); border-radius: var(--radius-sm); background: var(--mint-wash); }
.order-pay-box p { margin: 0 0 10px; font-size: 0.92rem; }
.order-pay-box .btn-outline { padding: 8px 16px; font-size: 0.88rem; }

.fee-table input { width: 90px; margin: 0; padding: 7px 10px; display: inline-block; }

/* Customer cancel on My orders */
.order-actions .cancel-btn { margin-left: auto; padding: 9px 18px; font-size: 0.9rem; }
.cancel-request-link { margin-left: auto; font-size: 0.88rem; color: var(--muted); }
.cancel-panel { margin-top: 12px; padding: 14px 16px; border: 1px solid rgba(242, 134, 122, 0.35); background: var(--alert-wash); border-radius: var(--radius-sm); }
.cancel-panel select { max-width: 340px; }
.cancel-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cancel-panel .cancel-confirm { background: var(--alert); border-color: var(--alert); color: var(--ink); }
.cancel-error { color: var(--alert); font-size: 0.9rem; margin: 10px 0 0; }

/* Required name + shipping address (js/profile-gate.js) */
.addr-row { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 0 12px; }
.addr-row select { width: 100%; }
@media (max-width: 560px) { .addr-row { grid-template-columns: 1fr 1fr; } .addr-city { grid-column: 1 / -1; } }
.signup-section-label { margin: 6px 0 10px; font-weight: 600; color: var(--frost); }
.signup-address { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 8px 0 4px; margin: 6px 0 16px; }
body.pg-open { overflow: hidden; }
.pg-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(5, 10, 9, 0.78); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; }
.pg-dialog { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.pg-dialog h2 { margin: 0 0 8px; }
.pg-lead { color: var(--muted); font-size: 0.93rem; margin-bottom: 16px; }
.pg-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* Family pricing (js/family-pricing.js) */
html.family-pending .product-price, html.family-pending .product-card-price, html.family-pending #dose-select,
html.family-pending .buy-option-price, html.family-pending #cart-rows, html.family-pending #cart-total { visibility: hidden; }
html.family-pricing .bogo-badge, html.family-pricing .bogo-card-note, html.family-pricing .bogo-filter, html.family-pricing .bogo-product-note { display: none !important; }
.family-price-note { margin: -6px 0 14px; font-size: 0.82rem; font-weight: 600; color: var(--mint); letter-spacing: 0.02em; }
html.family-pending .bogo-badge, html.family-pending .bogo-card-note, html.family-pending .bogo-filter, html.family-pending .bogo-product-note { display: none !important; }

/* "Added to your cart" after signing in from a product page (js/cart.js) */
.added-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; background: var(--mint); color: var(--ink); font-weight: 600; padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: opacity 0.6s; max-width: calc(100% - 32px); text-align: center; }
.added-toast.is-hiding { opacity: 0; }

/* Admin Traffic page */
.range-label { color: var(--muted); font-size: 0.88rem; }
.range-buttons { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.range-btn { background: transparent; color: var(--muted); border: 0; border-right: 1px solid var(--line); padding: 8px 14px; font: inherit; font-size: 0.88rem; cursor: pointer; }
.range-btn:last-child { border-right: 0; }
.range-btn:hover { color: var(--frost); background: var(--raised); }
.range-btn.is-on { background: var(--mint-wash); color: var(--mint); }
#tr-body h2 { margin-top: 36px; font-size: 1.2rem; }
.tr-chart-wrap { position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 8px 4px; }
.tr-chart svg { display: block; max-width: 100%; }
.tr-grid-line { stroke: var(--line-soft); stroke-width: 1; }
.tr-axis { fill: var(--faint); font-size: 11px; font-family: var(--sans); }
.tr-col { fill: #0f9f8d; }
.tr-hit { fill: transparent; cursor: default; }
.tr-hit.is-hover { fill: rgba(230, 239, 237, 0.05); }
.tr-tip { position: absolute; top: 8px; width: 170px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 0.82rem; color: var(--frost); pointer-events: none; line-height: 1.45; }
.tr-table-toggle { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.tr-table-toggle summary { cursor: pointer; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 0 28px; }
.tr-grid > div { min-width: 0; }
.tr-grid .pnl-table td:first-child { white-space: normal; }
.tr-grid .catalog-wrap { overflow-x: auto; }
.tr-bar { display: inline-block; height: 8px; max-width: 60px; background: #0f9f8d; border-radius: 0 4px 4px 0; vertical-align: middle; margin-right: 4px; }
.tr-grid td:last-child { white-space: nowrap; color: var(--muted); }
@media (max-width: 760px) { .tr-grid { grid-template-columns: 1fr; } .tr-chart-wrap { padding: 8px 2px 2px; } }

/* Reconstitution calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.calc-inputs { display: flex; flex-direction: column; gap: 22px; }
.calc-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.calc-num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); color: var(--mint); display: grid; place-items: center; font-size: 0.85rem; margin-top: 2px; }
.calc-field label { margin-bottom: 8px; }
.calc-field select, .calc-field input { margin: 0; }
.calc-pair { display: flex; gap: 8px; align-items: center; }
.calc-pair input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.calc-pair select { width: auto; flex: 0 0 auto; }
.calc-unit { color: var(--muted); padding: 0 6px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.calc-chips[hidden] { display: none; }
.calc-chip { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.calc-chip:hover { color: var(--frost); border-color: var(--muted); }
.calc-chip.is-on { border-color: var(--mint); color: var(--mint); background: var(--mint-wash); }
.calc-sublabel { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.calc-results { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.calc-result { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.calc-result-label { color: var(--muted); font-size: 0.85rem; }
.calc-result-value { color: var(--frost); font-size: 1.9rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.calc-result-sub { color: var(--faint); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.calc-blend { margin-top: -8px; font-size: 0.88rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.calc-blend[hidden] { display: none; }
.calc-blend div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.calc-blend div span:last-child { color: var(--frost); }
.calc-vial { display: flex; gap: 2px; height: 12px; margin-top: 10px; background: var(--raised); border-radius: 4px; overflow: hidden; }
.calc-seg, .calc-vial-fill { display: block; height: 100%; background: #0f9f8d; flex: 0 0 auto; }
.calc-seg:first-child { border-radius: 4px 0 0 4px; }
.calc-warn { margin: 0; padding: 10px 12px; border: 1px solid var(--alert); background: var(--alert-wash); border-radius: var(--radius-sm); color: var(--frost); font-size: 0.88rem; }
.calc-warn[hidden] { display: none; }
.calc-math { margin: 0; color: var(--faint); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.calc-math:empty { display: none; }
.calc-ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-ctas .btn-outline-light { padding: 8px 14px; font-size: 0.86rem; }
.calc-link { display: block; text-align: center; margin-top: 12px; font-size: 0.9rem; }
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}

/* Referral link + copy button on Admin > Promo codes */
.ref-link-cell { white-space: nowrap; }
.ref-link { font-size: 0.82rem; color: var(--muted); margin-right: 8px; }
.ref-copy { background: transparent; border: 1px solid var(--line); color: var(--mint); border-radius: var(--radius-sm); padding: 4px 10px; font: inherit; font-size: 0.8rem; cursor: pointer; }
.ref-copy:hover { border-color: var(--mint); }
.ref-copy.is-done { color: var(--frost); border-color: var(--mint); background: var(--mint-wash); }

/* Affiliate dashboard (referrals.html) */
.ref-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.ref-card-label { color: var(--muted); font-size: 0.85rem; }
.ref-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 12px; }
.ref-card-url { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; font-size: 1.05rem; color: var(--frost); background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.ref-card-row .btn, .ref-card-row .btn-outline-light { padding: 10px 18px; }
.ref-card-row .btn.is-done { background: var(--mint-press); }
.ref-card-perk { margin: 0 0 6px; color: var(--frost); }
.ref-card-more { margin: 0; color: var(--muted); font-size: 0.88rem; }
.ref-mini { background: transparent; border: 1px solid var(--line); color: var(--mint); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 0.8rem; cursor: pointer; margin: 4px 2px 0; }
.ref-mini.is-done { border-color: var(--mint); background: var(--mint-wash); color: var(--frost); }
.ref-paused { color: var(--alert); }
.ref-stats { margin-top: 8px; }
.ref-steps { padding-left: 20px; color: var(--muted); }
.ref-steps li { margin-bottom: 8px; }
.ref-pos { color: var(--mint); }
.ref-neg { color: var(--muted); }
#ref-body h2 { margin-top: 36px; }
.ref-preview { font-size: 0.8rem; }
.ref-chart-wrap { position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 10px 6px; margin-bottom: 10px; }
.ref-chart-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; padding: 0 6px 8px; }
.ref-chart-head span:last-child { color: var(--frost); }
.ref-chart svg { display: block; max-width: 100%; }

/* Admin To-do */
.todo-section { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px 8px; margin-bottom: 16px; }
.todo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.todo-head h2 { margin: 0; font-size: 1.2rem; }
.todo-count { display: inline-block; min-width: 24px; padding: 1px 8px; margin-left: 6px; border-radius: 999px; background: var(--mint-wash); color: var(--mint); font-family: var(--sans); font-size: 0.85rem; text-align: center; vertical-align: middle; }
.todo-cta { font-size: 0.88rem; }
.todo-note { margin: 6px 0 4px; color: var(--muted); font-size: 0.88rem; }
.todo-list { list-style: none; margin: 8px 0 0; padding: 0; }
.todo-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 0.92rem; }
.todo-row.is-flag { box-shadow: inset 3px 0 0 var(--alert); padding-left: 12px; }
.todo-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; min-width: 0; }
.todo-dot { color: var(--faint); margin: 0 8px; }
.todo-age { color: var(--muted); }
.todo-warn { color: var(--alert); }
.todo-btn { padding: 6px 12px; font-size: 0.82rem; }
.todo-clear { margin-top: 24px; color: var(--muted); }
.todo-clear h2 { font-size: 1.05rem; color: var(--muted); }
.todo-clear ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.todo-clear li::before { content: '✓ '; color: var(--mint); }
.todo-inline { display: inline; font-weight: inherit; margin: 0; }
.todo-inline input { display: inline-block; width: 64px; margin: 0 4px; padding: 4px 8px; }
.todo-names { color: var(--muted); line-height: 1.6; }

/* "Pairs well with" / "You might also need" (js/pairings.js) */
.pairs h2 { font-size: 1.3rem; margin-bottom: 14px; }
.pairs[hidden] { display: none; }
.pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pair-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.pair-name { color: var(--frost); font-weight: 600; text-decoration: none; }
.pair-name:hover { color: var(--mint); }
.pair-meta { color: var(--muted); font-size: 0.85rem; }
.pair-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.pair-price { color: var(--frost); font-variant-numeric: tabular-nums; }
.pair-add { padding: 6px 16px; font-size: 0.86rem; }
.pair-add.is-done { color: var(--mint); border-color: var(--mint); }
.pairs-cart { margin-top: 36px; }
.order-pay-box .bank-mini { max-width: 420px; margin: 0 0 4px; }
.order-pay-box .btc-mini code { overflow-wrap: anywhere; font-size: 0.92rem; }

/* Admin Incoming */
.inc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 22px; }
.inc-bar .section-note { margin: 0; }
.inc-form { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 28px; }
.inc-form[hidden] { display: none; }
.inc-form h2 { margin-top: 0; font-size: 1.25rem; }
.inc-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.inc-lines select, .inc-lines input { margin: 0; }
.inc-lines .inc-kits { width: 90px; }
.inc-lines td:first-child { min-width: 240px; }
.inc-remove, .inc-cancel-link { background: none; border: 0; color: var(--alert); font: inherit; font-size: 0.85rem; cursor: pointer; padding: 4px; }
.inc-add-line { margin: 10px 0 4px; padding: 8px 14px; font-size: 0.88rem; }
.inc-total { color: var(--muted); font-size: 0.9rem; margin: 4px 0 14px; }
.inc-check { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 14px 0 2px; }
.inc-check input { width: auto; margin: 0; }
.inc-auto-note { margin-top: 0; }
.inc-form-actions { display: flex; gap: 10px; margin-top: 12px; }
.inc-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.inc-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.inc-meta { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.inc-tracking, .inc-auto-line, .inc-notes { font-size: 0.88rem; margin: 10px 0 0; }
.inc-auto-line { color: var(--muted); margin-top: 4px; }
.inc-notes { color: var(--muted); font-style: italic; }
.inc-checked, .inc-untracked { color: var(--faint); }
.inc-items { margin-top: 12px; }
.inc-items input { width: 80px; margin: 0; padding: 6px 8px; }
.inc-items-wrap { overflow-x: auto; }
.inc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.inc-actions .btn, .inc-actions .btn-outline-light { padding: 9px 16px; font-size: 0.9rem; }
.inc-msg { margin: 8px 0 0; font-size: 0.88rem; color: var(--alert); }
.inc-msg:empty { display: none; }
.status-pill.inc-status-ordered { background: var(--raised); color: var(--muted); }
.status-pill.inc-status-in-transit { background: var(--mint-wash); color: var(--mint); }
.status-pill.inc-status-delivered { background: var(--alert-wash); color: var(--alert); }
details.inc-done { border-top: 1px solid var(--line-soft); padding: 10px 0; font-size: 0.9rem; }
details.inc-done summary { cursor: pointer; color: var(--muted); }
details.inc-done summary strong { color: var(--frost); }
#inc-open-wrap h2, #inc-done-wrap h2 { font-size: 1.25rem; }

/* Free shipping progress (cart) and note (checkout) */
.free-ship-bar { margin: 16px 0 20px; max-width: 520px; }
.free-ship-bar[hidden] { display: none; }
.free-ship-bar p { margin: 0 0 8px; font-size: 0.95rem; color: var(--frost); }
.free-ship-track { height: 8px; background: var(--raised); border-radius: 999px; overflow: hidden; }
.free-ship-track span { display: block; height: 100%; width: 0; background: #0f9f8d; border-radius: 999px; transition: width 0.4s; }
.free-ship-bar.is-free .free-ship-track span { background: var(--mint); }
.free-ship-note { margin: 6px 0 12px; font-size: 0.85rem; color: var(--muted); }
.free-ship-note.is-free { color: var(--mint); }

/* Rewards (loyalty tiers) on Account details */
.loyalty-card { max-width: 520px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px; }
.loyalty-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.loyalty-badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; border: 1px solid var(--line); color: var(--muted); }
.loyalty-badge.tier-silver { color: #e6efed; border-color: #b8c4c2; background: rgba(184, 196, 194, 0.12); }
.loyalty-badge.tier-gold { color: #f3d27a; border-color: #d9b44a; background: rgba(217, 180, 74, 0.12); }
.loyalty-rate { color: var(--frost); }
.loyalty-spend { margin: 14px 0 8px; color: var(--muted); }
.loyalty-spend strong { color: var(--frost); }
.loyalty-track { height: 8px; background: var(--raised); border-radius: 999px; overflow: hidden; }
.loyalty-track span { display: block; height: 100%; width: 0; background: #0f9f8d; border-radius: 999px; }
.loyalty-next { margin: 8px 0 12px; font-size: 0.9rem; color: var(--frost); }
.loyalty-tiers { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .loyalty-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; } }
.tier-step { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px 10px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--ink); text-align: center; }
.tier-step strong { color: var(--frost); font-size: 0.95rem; }
.tier-min { color: var(--faint); font-size: 0.8rem; }
.tier-pct { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.tier-step.is-on { border-color: var(--mint); background: var(--mint-wash); padding-top: 20px; }
.tier-step.is-on .tier-pct { color: var(--mint); }
.tier-step.tier-silver strong { color: #d5dedc; }
.tier-step.tier-gold strong { color: #f3d27a; }
.tier-step.tier-platinum strong { color: #c9d6ff; }
.tier-perk { color: var(--faint); font-size: 0.75rem; line-height: 1.3; }
.tier-step.is-on .tier-perk { color: var(--mint); }
.loyalty-badge.tier-platinum { color: #c9d6ff; border-color: #9fb2f0; background: rgba(159, 178, 240, 0.14); }
.tier-here { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--mint); color: var(--ink); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; }
.loyalty-fine { margin: 0; font-size: 0.8rem; color: var(--faint); }

/* Favorites (js/favorites.js) */
.product-card-top { position: relative; }
.fav-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(10, 20, 22, 0.72); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; cursor: pointer; font: inherit; }
.fav-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.15s; }
.fav-btn:hover { color: var(--frost); border-color: var(--muted); }
.fav-btn.is-on { color: #f2867a; border-color: rgba(242, 134, 122, 0.6); }
.fav-btn.is-on svg { fill: currentColor; }
.fav-btn:active svg { transform: scale(0.85); }
.fav-card { position: absolute; z-index: 3; top: 10px; right: 10px; width: 38px; height: 38px; justify-content: center; padding: 0; }
.fav-page { padding: 6px 14px 6px 10px; margin: -4px 0 12px; font-size: 0.88rem; background: transparent; }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.fav-item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.fav-item img { width: 100%; aspect-ratio: 500 / 380; object-fit: cover; object-position: top; background: var(--raised); }
.fav-item-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fav-item-body h3 { margin: 0; font-size: 1.05rem; }
.fav-item-body h3 a { color: var(--frost); text-decoration: none; }
.fav-item-body select { margin: 0; }
.fav-item-actions { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.fav-item-actions .btn { padding: 9px 16px; font-size: 0.9rem; flex: 1; }
.fav-remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer; }
.fav-remove:hover { color: var(--alert); }
.fav-added { color: var(--mint); font-size: 0.85rem; min-height: 1.2em; margin: 0; }

/* Admin Dashboard */
.dash-needs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.dash-need { display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 14px; border-radius: 999px; background: var(--alert-wash); border: 1px solid rgba(242, 134, 122, 0.45); color: var(--frost); text-decoration: none; font-size: 0.9rem; }
.dash-need strong { color: var(--alert); }
.dash-need:hover { border-color: var(--alert); }
.dash-clear { color: var(--mint); font-size: 0.92rem; }
.dash-up { color: var(--mint); }
.dash-down { color: var(--alert); }
.inc-lines .inc-lot { width: 130px; }
.inc-lines .inc-exp, .inc-items .inc-rexp { width: 150px; }
.inc-items .inc-rlot { width: 120px; }
#dash-body h2 { margin-top: 36px; font-size: 1.25rem; }
.free-ship-more { display: inline-block; margin-top: 12px; padding: 8px 16px; font-size: 0.88rem; }

/* Entry confirmation (js/splash.js) */
html { scrollbar-gutter: stable; }
html.entry-open, html.entry-open body { overflow: hidden; }
#entry-gate { position: fixed; inset: 0; z-index: 10000; background: var(--ink-deep); display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow-y: auto; transition: background-color 0.6s ease; }
#entry-gate .entry-inner { width: 100%; max-width: 860px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; transition: opacity 0.45s ease; }
#entry-gate .entry-mark svg { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.entry-mark .bond { stroke: var(--mint); stroke-width: 1.4; opacity: 0.55; fill: none; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.6s ease-out 0.3s forwards; }
.entry-mark .node { fill: var(--mint); opacity: 0; animation: appear 0.6s ease-out forwards; }
.entry-mark .ring { fill: none; stroke: var(--mint); stroke-width: 2.2; opacity: 0; animation: appear 0.6s ease-out forwards; }
.entry-mark .halo { fill: var(--mint); opacity: 0.07; }
.entry-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 12px; color: var(--frost); }
.entry-lead { color: var(--muted); margin: 0 0 14px; }
.entry-checks { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.entry-check { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--frost); font-weight: 400; line-height: 1.5; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color 0.2s, background-color 0.2s; }
.entry-check:hover { border-color: var(--muted); }
.entry-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.entry-box { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; border: 2px solid var(--muted); border-radius: 6px; display: grid; place-items: center; transition: background-color 0.18s, border-color 0.18s, transform 0.18s; }
.entry-box::after { content: ''; width: 7px; height: 12px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform 0.18s ease; }
.entry-check.is-on { border-color: var(--mint); background: var(--mint-wash); }
.entry-check.is-on .entry-box { background: var(--mint); border-color: var(--mint); transform: scale(1.06); }
.entry-check.is-on .entry-box::after { transform: rotate(45deg) scale(1); }
.entry-check input:focus-visible + .entry-box { outline: 2px solid var(--mint); outline-offset: 3px; }
#entry-yes:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
#entry-yes { transition: opacity 0.2s; }
.entry-list { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.entry-list li { position: relative; padding-left: 28px; color: var(--frost); line-height: 1.5; }
.entry-list li::before { content: ''; position: absolute; left: 4px; top: 0.45em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--mint); }
.entry-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.entry-actions .btn { padding: 13px 24px; font-size: 1rem; }
.entry-leave { color: var(--muted); }
.entry-fine { margin: 18px 0 0; font-size: 0.82rem; color: var(--faint); }
#entry-gate.is-leaving { background-color: transparent; pointer-events: none; transition: background-color 0.75s ease 0.1s; }
#entry-gate .entry-copy { transition: opacity 0.3s ease, transform 0.3s ease; }
#entry-gate.is-leaving .entry-copy { opacity: 0; transform: translateY(6px); }
/* Confirm: the star shrinks away into where the home page star sits. */
#entry-gate .entry-mark svg.entry-shrinking { position: relative; z-index: 2; transform-origin: 50% 52%; transition: transform 0.8s cubic-bezier(0.55, 0, 0.2, 1), opacity 0.55s ease 0.25s; }
/* The home page star waits at the start of its draw-in until then. */
html.hero-paused .hero-mark .bond, html.hero-paused .hero-mark .node, html.hero-paused .hero-mark .ring { animation-play-state: paused; }
html.hero-paused .hero-mark .halo { opacity: 0; }
.hero-mark .halo { transition: opacity 0.8s ease 0.4s; }
@media (max-width: 720px) {
  #entry-gate { align-items: flex-start; }
  #entry-gate .entry-inner { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  #entry-gate .entry-mark svg { max-width: 170px; margin: 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) { #entry-gate .entry-mark svg.entry-shrinking { transition: none; } }
.attest-line .attest-text { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ---------- Reactive star (js/star-fx.js) ---------- */
.hero-mark > svg.is-poked { animation: star-poke 0.6s ease-out; }
@keyframes star-poke { 0% { filter: brightness(1); } 25% { filter: brightness(1.45); } 100% { filter: brightness(1); } }

/* ---------- Halloween (html.season-halloween, Oct 24–31; preview ?season=halloween) ---------- */
html.season-halloween { --pumpkin: #ff8a1f; --ember: #ffb04a; }
html.season-halloween .hero-mark .bond, html.season-halloween .entry-mark .bond { stroke: var(--ember); opacity: 0.6; }
html.season-halloween .hero-mark .node, html.season-halloween .entry-mark .node { fill: var(--pumpkin); }
html.season-halloween .hero-mark .ring, html.season-halloween .entry-mark .ring { stroke: var(--ember); }
html.season-halloween .hero-mark .halo, html.season-halloween .entry-mark .halo { fill: #ff7a00; }
html.season-halloween:not(.hero-paused) .hero-mark .halo { animation: jack-flicker 3.4s infinite; }
html.season-halloween .entry-mark .halo { animation: jack-flicker 3.4s infinite; }
html.season-halloween .hero-mark > svg, html.season-halloween .entry-mark svg { filter: drop-shadow(0 0 22px rgba(255, 122, 0, 0.28)); animation: jack-glow 3.4s infinite; }
html.season-halloween .hero-mark > svg.is-poked { animation: star-poke 0.6s ease-out, jack-glow 3.4s infinite 0.6s; }
@keyframes jack-flicker {
  0%, 100% { opacity: 0.1; } 8% { opacity: 0.18; } 10% { opacity: 0.07; } 14% { opacity: 0.16; }
  40% { opacity: 0.12; } 62% { opacity: 0.2; } 64% { opacity: 0.08; } 70% { opacity: 0.15; }
}
@keyframes jack-glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 122, 0, 0.25)); } 9% { filter: drop-shadow(0 0 30px rgba(255, 140, 20, 0.42)); }
  11% { filter: drop-shadow(0 0 16px rgba(255, 110, 0, 0.2)); } 62% { filter: drop-shadow(0 0 32px rgba(255, 150, 40, 0.45)); }
  65% { filter: drop-shadow(0 0 18px rgba(255, 110, 0, 0.22)); }
}
/* The header logo turns pumpkin too. */
html.season-halloween header .logo-icon { filter: hue-rotate(-140deg) saturate(1.5) brightness(1.05); }
/* Bats */
.hero-mark.has-bats { position: relative; }
.bat { position: absolute; width: 46px; height: 23px; pointer-events: none; opacity: 0; z-index: 1; }
.bat svg { width: 100%; height: 100%; overflow: visible; }
.bat svg path, .bat svg ellipse { fill: #24160d; stroke: rgba(255, 160, 60, 0.75); stroke-width: 1; }
.bat .wing { transform-origin: 32px 15px; animation: bat-flap 0.32s ease-in-out infinite alternate; }
@keyframes bat-flap { from { transform: scaleY(1); } to { transform: scaleY(0.35); } }
/* Negative delays: bats are already mid-flight when they fade in. */
.bat-1 { animation: bat-fly-1 11s linear -4s infinite; }
.bat-2 { width: 32px; height: 16px; animation: bat-fly-2 14s linear 1.2s infinite; }
.bat-3 { width: 24px; height: 12px; animation: bat-fly-3 17s linear -7s infinite; }
.bat > svg { animation: bat-in 0.9s ease-out both; }
@keyframes bat-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bat-fly-1 {
  0% { left: -12%; top: 18%; opacity: 0; transform: rotate(-8deg); } 6% { opacity: 0.9; }
  30% { left: 30%; top: 4%; transform: rotate(6deg); } 55% { left: 62%; top: 22%; transform: rotate(-6deg); }
  80% { left: 96%; top: 6%; opacity: 0.9; transform: rotate(8deg); } 88%, 100% { left: 112%; top: 0%; opacity: 0; }
}
@keyframes bat-fly-2 {
  0% { left: 110%; top: 70%; opacity: 0; transform: scaleX(-1); } 8% { opacity: 0.75; }
  35% { left: 70%; top: 58%; } 60% { left: 34%; top: 78%; } 82% { left: -4%; top: 60%; opacity: 0.75; }
  90%, 100% { left: -16%; top: 56%; opacity: 0; transform: scaleX(-1); }
}
@keyframes bat-fly-3 {
  0% { left: 40%; top: -14%; opacity: 0; } 10% { opacity: 0.6; } 40% { left: 18%; top: 30%; }
  70% { left: 78%; top: 44%; opacity: 0.6; } 84%, 100% { left: 104%; top: 26%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .bat { display: none; } html.season-halloween .hero-mark > svg { animation: none; } }

/* Halloween easter egg (js/star-fx.js) */
.egg-hint { position: relative; margin: 14px 0 0; text-align: center; font-size: 0.86rem; color: #ffb04a; opacity: 0.85; animation: egg-hint-in 1s ease 3s both; }
.egg-hint em { color: var(--frost); font-style: italic; }
@keyframes egg-hint-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 0.85; transform: none; } }
.hero-mark > svg.egg-spin { animation: egg-spin 0.9s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes egg-spin { 0% { transform: rotate(0) scale(1); filter: brightness(1); } 40% { transform: rotate(200deg) scale(1.12); filter: brightness(1.6) drop-shadow(0 0 40px rgba(255, 140, 20, 0.7)); } 100% { transform: rotate(360deg) scale(1); filter: brightness(1); } }
.bat-swarm { left: 50%; top: 45%; width: 30px; height: 15px; animation: bat-swarm 1.6s ease-out forwards; }
@keyframes bat-swarm { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateX(0) scale(0.4); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateX(260px) scale(1.1); } }
#egg-prize { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 9, 0); transition: background-color 0.3s ease; }
#egg-prize.is-open { background: rgba(5, 8, 9, 0.72); }
.egg-card { width: 100%; max-width: 420px; text-align: center; background: linear-gradient(180deg, #1d1410, var(--surface)); border: 1px solid rgba(255, 140, 30, 0.55); border-radius: var(--radius); padding: 28px 24px 22px; box-shadow: 0 0 60px rgba(255, 120, 0, 0.25); transform: scale(0.85) translateY(12px); opacity: 0; transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.25s ease; }
#egg-prize.is-open .egg-card { transform: none; opacity: 1; }
.egg-pumpkin { font-size: 3rem; line-height: 1; animation: egg-bob 1.8s ease-in-out infinite; }
@keyframes egg-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
.egg-card h2 { margin: 10px 0 6px; font-size: 1.6rem; }
.egg-card p { color: var(--muted); margin: 0 0 14px; }
.egg-card p strong { color: #ffb04a; }
.egg-code { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 18px; }
.egg-code span { font-family: ui-monospace, Menlo, monospace; font-size: 1.5rem; letter-spacing: 0.12em; color: #ffb04a; border: 2px dashed rgba(255, 150, 50, 0.7); border-radius: var(--radius-sm); padding: 8px 16px; }
.egg-code .btn-outline-light { padding: 9px 14px; }
.egg-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.egg-actions .btn { background: #ff8a1f; border-color: #ff8a1f; color: #1a0f06; width: 100%; }
.egg-close { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 6px; }
.egg-fine { font-size: 0.78rem !important; color: var(--faint) !important; margin: 12px 0 0 !important; }
@media (max-width: 860px) { .egg-hint { font-size: 0.82rem; text-align: left; margin-top: 10px; } }

/* Admin → Roles */
.role-add-row { display: flex; gap: 10px; align-items: stretch; }
.role-add-row input { flex: 1; margin-bottom: 0; min-width: 0; }
.role-add-row .btn { white-space: nowrap; }
.role-type { border: 0; padding: 0; margin: 0 0 14px; }
.role-type legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.role-type .checkbox-row { margin: 6px 0; }

/* Admin → Carts */
.carts-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.carts-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; min-width: 130px; }
.carts-stat-v { display: block; font-size: 1.4rem; font-weight: 600; }
.carts-stat-l { display: block; color: var(--muted); font-size: 0.85rem; }
.carts-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.carts-bar input { flex: 1; min-width: 200px; margin-bottom: 0; }
.carts-bar select { margin-bottom: 0; width: auto; }
.carts-table .cart-sub, .carts-table .cart-pack { color: var(--muted); font-size: 0.85rem; }
.carts-table tr.cart-idle td:first-child { box-shadow: inset 3px 0 0 rgba(255, 170, 60, 0.7); }

/* Quotes (Admin → New order) */
.quote-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; color: var(--mint); background: var(--mint-wash); border: 1px solid rgba(94, 234, 212, 0.35); vertical-align: middle; white-space: nowrap; }
.quote-tag.is-ended { color: var(--alert); background: var(--alert-wash); border-color: rgba(242, 134, 122, 0.4); }
#quote-problems p { margin: 4px 0; }
.no-card { max-width: 720px; }
.no-customer-info { margin: 8px 0 0; font-size: 0.9rem; color: var(--muted); }
.no-table select, .no-table input { margin-bottom: 0; }
.no-table .no-qty { width: 72px; }
.no-table .no-price { width: 110px; }
.no-table .no-case { margin: 6px 0 0; font-size: 0.85rem; }
.no-loss { color: var(--alert); }
.no-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.no-row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.no-summary { margin: 16px 0; }
@media (max-width: 560px) { .no-row2, .no-row3 { grid-template-columns: 1fr; } }
#no-body .catalog-wrap { max-width: 980px; }
.no-table .no-prod { min-width: 230px; }
.no-table td { vertical-align: top; }
@media (max-width: 700px) { .no-table .no-prod { min-width: 0; width: 100%; } }
#no-form { max-width: none; }
/* Fixed quantity (quoted case): same box width as the editable ones, so numbers line up. */
.cart-table td.cart-qty .quote-qty { display: inline-block; width: 72px; padding: 8px; text-align: center; border: 1px solid transparent; }
@media (max-width: 720px) { .cart-table td.cart-qty .quote-qty { margin-left: auto; } }

/* Gift cards */
.gc-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.gc-share { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.gc-canvas { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.gc-share-tools textarea { margin-bottom: 8px; }
.gc-code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--mint); font-size: 0.92rem; }
.gc-status { font-weight: 600; color: var(--mint); }
.gc-status.is-used { color: var(--muted); }
.gc-status.is-void { color: var(--alert); }
.gc-actions { white-space: nowrap; }
.gift-redeem { max-width: 560px; }
.gift-redeem #gift-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.gift-done { max-width: 560px; text-align: left; }
.gift-done-amt { font-family: var(--serif); font-size: 2.4rem; color: var(--mint); margin: 0 0 6px; }
@media (max-width: 860px) { .gc-share { grid-template-columns: 1fr; } }
.gift-box { margin: 10px 0 14px; }
.gift-box summary { cursor: pointer; color: var(--mint); font-size: 0.92rem; font-weight: 600; }
.gift-box #gift-code-input { font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; margin-bottom: 0; }
.gc-buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.gc-buy-preview { position: sticky; top: 96px; }
.gc-amounts .is-on { border-color: var(--mint); color: var(--mint); background: var(--mint-wash); }
@media (max-width: 860px) { .gc-buy { grid-template-columns: 1fr; } .gc-buy-preview { position: static; order: -1; } }
.gift-panel { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; background: var(--mint-wash); }
.gift-panel ul { margin: 0; padding-left: 18px; }
.gift-panel li { margin: 4px 0; }
.order-gift-note { color: var(--muted); font-size: 0.85rem; }

/* Research panels */
.panel-ruo { color: var(--muted); font-size: 0.9rem; max-width: 70ch; border-left: 3px solid var(--line); padding-left: 12px; margin-top: 14px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.panel-card h2 { margin: 0 0 6px; font-size: 1.35rem; }
.panel-desc { color: var(--muted); margin: 0 0 14px; }
.panel-items { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--line-soft); }
.panel-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.panel-price { margin-bottom: 14px; font-size: 1.25rem; }
.panel-was { color: var(--faint); text-decoration: line-through; font-size: 1rem; }
.panel-save { color: var(--mint); font-size: 0.9rem; font-weight: 600; }
.panel-msg { margin-top: 10px; }
.bd-form { max-width: 760px; }

/* ---------- Autumn: Thanksgiving Nov 1–26, Black Friday–Cyber Monday Nov 27–30
   (html.season-autumn; preview ?season=thanksgiving or ?season=blackfriday) ---------- */
html.season-autumn { --amber: #e8a23a; --rust: #c4512a; --cranberry: #b8391f; }
html.season-autumn .hero-mark .bond, html.season-autumn .entry-mark .bond { stroke: #f2c14e; opacity: 0.55; }
html.season-autumn .hero-mark .node, html.season-autumn .entry-mark .node { fill: var(--amber); }
html.season-autumn .hero-mark .node:nth-of-type(3n), html.season-autumn .entry-mark .node:nth-of-type(3n) { fill: var(--rust); }
html.season-autumn .hero-mark .node:nth-of-type(3n+1), html.season-autumn .entry-mark .node:nth-of-type(3n+1) { fill: var(--cranberry); }
html.season-autumn .hero-mark .ring, html.season-autumn .entry-mark .ring { stroke: var(--amber); }
html.season-autumn .hero-mark .halo, html.season-autumn .entry-mark .halo { fill: #e8892a; }
html.season-autumn .hero-mark > svg, html.season-autumn .entry-mark svg { filter: drop-shadow(0 0 24px rgba(232, 150, 50, 0.3)); }
html.season-autumn header .logo-icon { filter: hue-rotate(-150deg) saturate(1.3) brightness(1.02); }
html.season-blackfriday .hero-mark .halo { fill: #f2c14e; }
.hero-mark.has-leaves { position: relative; }
.leaf { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; will-change: transform; opacity: 0; }
.leaf svg { width: 100%; height: 100%; overflow: visible; }
.leaf svg path { fill: currentColor; }
.leaf svg .leaf-stem { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.leaf-gold { z-index: 2; filter: drop-shadow(0 0 10px rgba(246, 197, 68, 0.8)); }
.hero-mark > svg.egg-shake { animation: egg-shake 0.7s ease-in-out; }
@keyframes egg-shake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-9deg); } 30% { transform: rotate(8deg); } 45% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } }
html.season-autumn .egg-hint { color: #f2c14e; }
#egg-prize.egg-autumn .egg-card { background: linear-gradient(180deg, #221710, var(--surface)); border-color: rgba(232, 162, 58, 0.6); box-shadow: 0 0 60px rgba(232, 140, 40, 0.25); }
#egg-prize.egg-autumn .egg-card p strong, #egg-prize.egg-autumn .egg-code span { color: #f2c14e; }
#egg-prize.egg-autumn .egg-code span { border-color: rgba(242, 193, 78, 0.7); }
#egg-prize.egg-autumn .egg-actions .btn { background: #e8a23a; border-color: #e8a23a; color: #1a1006; }
@media (prefers-reduced-motion: reduce) { .leaf { display: none; } }
/* Affiliate partner tiers (referrals.html, js/affiliate-tiers.js) */
.aff-card { margin-bottom: 28px; }
.aff-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .aff-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.loyalty-badge.aff-pro-partner { color: #d5dedc; border-color: #b8c4c2; background: rgba(184, 196, 194, 0.12); }
.loyalty-badge.aff-elite-partner { color: #f3d27a; border-color: #d9b44a; background: rgba(217, 180, 74, 0.12); }
.tier-step.aff-pro-partner strong { color: #d5dedc; }
.tier-step.aff-elite-partner strong { color: #f3d27a; }

/* Admin → Customers: tab of fronted product */
.tab-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 6px 0 22px; background: var(--surface); }
.tab-box .catalog-wrap { margin-top: 8px; }

/* Admin → Orders: latest carrier update */
.track-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; margin: 0 0 10px; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 0.86rem; }
.track-strip .track-pill { font-weight: 700; color: var(--text); }
.track-strip .track-detail { color: var(--text); flex: 1 1 200px; }
.track-strip .track-meta { color: var(--text-light); font-size: 0.8rem; flex-basis: 100%; }
.track-strip.track-good { border-left-color: var(--mint); background: var(--mint-wash); }
.track-strip.track-warn { border-left-color: #fbbf24; }
.track-strip.track-bad { border-left-color: var(--danger); background: var(--alert-wash); }
.track-strip.track-bad .track-pill { color: var(--danger); }
.track-strip .track-eta { font-weight: 600; color: var(--mint); white-space: nowrap; }
.order-eta strong { color: var(--mint); }

/* "Order within 3h 12m to ship today" (js/ship-cutoff.js) */
.ship-cutoff { margin: 4px 0 12px; font-size: 0.9rem; color: var(--text-light); }
.ship-cutoff strong { color: var(--mint); font-weight: 700; }
.ship-cutoff-icon { margin-right: 2px; }

/* Private customer notes */
.note-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 6px 0 18px; background: var(--surface); }
.note-box textarea { width: 100%; margin: 6px 0 8px; }
.order-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(251, 191, 36, 0.10); border: 1px solid rgba(251, 191, 36, 0.35); font-size: 0.88rem; color: var(--text); }

/* Affiliate leaderboard (referrals.html) */
.lb-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); margin-bottom: 24px; }
.lb-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--text-light); font-size: 0.9rem; margin-bottom: 10px; }
.lb-prizes { color: var(--text); font-weight: 600; }
.lb-list { list-style: none; margin: 0 0 10px; padding: 0; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.lb-row + .lb-row { margin-top: 4px; }
.lb-top { background: var(--mint-wash); }
.lb-me { outline: 1px solid var(--mint); }
.lb-rank { width: 34px; text-align: center; font-weight: 700; color: var(--text-light); }
.lb-name { flex: 1; color: var(--text); }
.lb-name em { color: var(--mint); font-style: normal; font-size: 0.85rem; }
.lb-amt { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.lb-empty { color: var(--text-light); }
.lb-you { font-size: 0.92rem; color: var(--text-light); margin: 6px 0 12px; }
.lb-you strong { color: var(--text); }
.lb-nick label { font-size: 0.85rem; color: var(--text-light); }
.lb-admin-list { margin: 6px 0 12px; padding-left: 18px; color: var(--text); }
.lb-rules { display: block; font-weight: 400; color: var(--text-light); font-size: 0.82rem; margin-top: 2px; }

/* Out-of-stock pop-up (js/stock-notice.js) */
.sn-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(5, 10, 9, 0.78); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sn-box { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.sn-box h3 { margin: 0 0 10px; font-size: 1.1rem; }
.sn-box .sn-pack { color: var(--text-light); font-weight: 400; font-size: 0.9rem; }
.sn-box p { margin: 0 0 10px; color: var(--text); line-height: 1.5; }
.sn-box .sn-fine { font-size: 0.85rem; color: var(--text-light); }
.sn-actions { display: flex; gap: 10px; margin-top: 14px; }
.sn-actions .btn { flex: 1; }

/* Admin → Promo codes: profit check */
.profit-check { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: -6px 0 18px; background: var(--surface); }
.profit-check .pc-title { font-weight: 700; margin-bottom: 4px; }
.profit-check p { margin: 0 0 8px; font-size: 0.9rem; }
.profit-check .pc-bad { color: var(--danger); }
.profit-check .pc-ok { color: var(--mint); }
.profit-check .pc-note { color: var(--text-light); font-size: 0.82rem; }
.pc-table td, .pc-table th { font-size: 0.85rem; }
.pc-row-bad td { color: var(--danger); }
.pc-row-thin td { color: #fbbf24; }
.pc-tag { font-size: 0.72rem; border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; color: var(--text-light); }
.pc-more { background: none; border: none; color: var(--mint); cursor: pointer; padding: 0; margin: 4px 0 8px; font-size: 0.85rem; }

/* Admin → Inventory: paste counts by supplier code */
.paste-counts { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; background: var(--surface); }
.paste-counts textarea { width: 100%; font-family: Menlo, Consolas, monospace; margin: 6px 0 10px; }
.paste-counts .pc-diff { color: var(--text-light); font-size: 0.85rem; }
.paste-counts .pc-unknown { color: #fbbf24; font-size: 0.88rem; margin-top: 10px; }
.code-input.code-saved { border-color: var(--mint); }

/* Paused products (js/paused.js) */
.paused-note { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-light); font-size: 0.92rem; }

/* ---------- Admin → Pricing ---------- */
.pr-help { color: var(--muted); font-size: 0.9rem; margin: -4px 0 14px; }
.pr-table td { vertical-align: middle; padding: 8px 12px; }
.pr-table th { padding: 10px 12px; }
.pr-input { margin: 0; padding: 8px 10px; min-width: 0; }
.pr-name { width: 100%; min-width: 160px; }
.pr-money { display: inline-flex; align-items: center; gap: 4px; }
.pr-money > span { color: var(--muted); }
.pr-money input { width: 96px; margin: 0; }
.pr-check { margin: 0; }
.pr-remove { background: none; border: 0; color: var(--alert); cursor: pointer; font: inherit; font-size: 0.85rem; padding: 6px 0; }
#ship-add { margin-top: 12px; }
.pr-free { margin-top: 22px; display: grid; gap: 8px; max-width: 640px; }
.pr-free label { margin: 8px 0 0; }
.pr-free select { margin: 0; max-width: 320px; }
.pr-free-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); }
.pr-free-row select { width: auto; }
.pr-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.pr-tools #pr-search { flex: 1; min-width: 200px; margin: 0; }
.pr-tools .checkbox-row { margin: 0; }
.pr-pct { display: inline-flex; align-items: center; gap: 6px; }
.pr-pct input { width: 76px; margin: 0; }
.pr-pct .btn-outline-light { white-space: nowrap; padding: 9px 14px; }
.pr-def, .pr-muted { color: var(--muted); }
.pr-changed td { background: var(--mint-wash) !important; }
.pr-changed .pr-def { text-decoration: line-through; }
.pr-loss { color: var(--alert); font-weight: 600; }
.pr-thin { color: #f2c46d; }
.pr-links { margin: 0 0 10px; padding-left: 18px; line-height: 1.9; }
.pr-savebar { position: sticky; bottom: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: 24px 0 0; padding: 12px 16px; background: var(--ink-deep); border: 1px solid var(--line); border-radius: 10px; }
.pr-savebar #pr-status { flex: 1; min-width: 180px; color: var(--muted); font-size: 0.9rem; }
.pr-savebar.is-dirty { border-color: var(--mint); }
.pr-savebar.is-dirty #pr-status { color: var(--frost); }
.pr-savebar .btn, .pr-savebar .btn-outline-light { margin: 0; white-space: nowrap; }
@media (max-width: 640px) {
  .pr-table thead { display: none; }
  .pr-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .pr-table td { border: 0; padding: 2px 4px; }
  #price-rows td:first-child { grid-column: 1 / -1; font-weight: 600; }
  #ship-rows td:first-child { grid-column: 1 / -1; }
  .pr-table tr:nth-child(even) td, .pr-table td { background: none !important; }
  .pr-changed { background: var(--mint-wash); }
  .pr-table td[data-label]::before { content: attr(data-label) ": "; color: var(--faint); font-size: 0.8rem; }
  .pr-savebar { padding: 10px 12px; gap: 8px; }
  .pr-savebar #pr-status { flex-basis: 100%; }
  .pr-savebar .btn, .pr-savebar .btn-outline-light { flex: 1; padding: 10px 12px; }
}

/* Budget-store orders on Admin → Orders (js/sites.js) */
.site-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #dbeafe; color: #1e3a8a; font-size: 0.72rem; font-weight: 700; vertical-align: 2px; }
#budget-pct { width: 72px; margin: 0; }
.pr-bchanged .pr-budget-cell input { border-color: var(--mint); }

/* Admin → Customers: TexasBench / Budget tabs */
.store-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.store-tab { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.store-tab:hover { color: var(--frost); }
.store-tab.is-on { background: var(--mint); color: var(--ink); }
.store-tab-n { opacity: 0.7; font-weight: 500; margin-left: 2px; }
.site-badge-both { background: #ede9fe; color: #4c1d95; }
