/* ============================================
   Prime Peptide Solutions — design system
   Aesthetic: clinical refinement. Deep navy + cool
   electric mint accent. Editorial Fraunces serif
   for display, Inter for body, JetBrains Mono for
   data. Lots of whitespace, hairline borders.
============================================ */

:root {
  --ink: #0a1628;          /* deep navy near-black */
  --ink-soft: #1a2940;
  --ink-mute: #4a5a72;
  --paper: #fafaf7;        /* warm off-white */
  --paper-2: #f3f1ea;
  --line: #e3e0d6;
  --accent: #00ffa3;       /* electric mint */
  --accent-deep: #00cc82;
  --warning: #ff6b35;
  --gold: #d4a84b;

  --shadow-1: 0 1px 2px rgba(10,22,40,0.04), 0 4px 12px rgba(10,22,40,0.04);
  --shadow-2: 0 2px 6px rgba(10,22,40,0.06), 0 12px 32px rgba(10,22,40,0.08);

  --radius: 4px;
  --radius-lg: 10px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink-soft); }
img, svg { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ----- Top utility bar ----- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.topbar-inner {
  display: flex; gap: 32px; align-items: center;
  justify-content: center; padding: 10px 24px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-sep { padding-left: 32px; border-left: 1px solid rgba(255,255,255,0.15); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

@media (max-width: 760px) {
  .topbar-sep { display: none; }
}

/* ----- Header ----- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 18px 24px;
}

.logo { display: inline-flex; align-items: center; gap: 14px; line-height: 1; flex-shrink: 0; }
.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 240px;
  max-height: 72px;
  object-fit: contain;
}

/* Header logo */
.site-header .logo { max-width: 280px; }
.site-header .logo-img { height: 48px; max-height: 48px; }

/* Footer logo — slightly larger so "PEPTIDE SOLUTIONS" stays readable */
.site-footer .logo-img { height: 64px; max-height: 64px; margin-bottom: 8px; }

/* Admin sidebar logo */
.logo-sidebar { flex-direction: column; align-items: flex-start; gap: 8px; max-width: 100%; }
.logo-sidebar .logo-img { height: 56px; max-height: 56px; max-width: 180px; }
.admin-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0, 255, 163, 0.3);
  padding: 3px 8px;
  border-radius: 2px;
  margin-left: 4px;
}

/* Login screen logo */
.login-card .logo-img { height: 72px; max-height: 72px; margin: 0 auto 8px; }

@media (max-width: 720px) {
  .site-header .logo-img { height: 40px; max-height: 40px; }
  .site-footer .logo-img { height: 52px; max-height: 52px; }
}

.primary-nav {
  display: flex; gap: 36px; justify-content: center;
  font-size: 14.5px; font-weight: 500;
  letter-spacing: 0.01em;
}
.primary-nav a { position: relative; padding: 6px 0; }
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 24px; }
.phone-link {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.cart-link {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: border-color 0.2s, color 0.2s;
}
.cart-link:hover { border-color: var(--ink); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--ink); color: var(--accent);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; gap: 16px; }
  .phone-link { display: none; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--ink-soft); color: var(--accent); border-color: var(--ink-soft); }
.btn-secondary {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-deep); color: var(--ink); border-color: var(--accent-deep); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-danger { background: #c92a2a; border-color: #c92a2a; color: white; }
.btn-danger:hover { background: #a51111; border-color: #a51111; color: white; }

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 40px 0 60px;
  background:
    radial-gradient(ellipse at top right, rgba(0, 255, 163, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(212, 168, 75, 0.06), transparent 50%),
    var(--paper);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.hero-text-col { min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: "";
  width: 32px; height: 1px; background: var(--ink-mute);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
}
.hero h1 em {
  font-style: italic;
  color: var(--ink-mute);
  font-weight: 400;
}
.hero-stats {
  display: flex; gap: 40px; margin: 0 0 32px; padding: 24px 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stats li {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.hero p.lead {
  font-size: 17px; line-height: 1.6;
  color: var(--ink-mute);
  max-width: 540px;
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Hero image column — simple block layout, no absolute positioning ===== */
.hero-image-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.hero-feature {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.12);
  position: relative;
}
.hero-feature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-feature-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0 4px;
}
.hero-feature-caption .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); margin-right: 8px; vertical-align: middle; }
.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hero-thumb {
  aspect-ratio: 1;
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
  display: block;
}
.hero-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.hero-thumb:hover img { transform: scale(1.06); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 24px; }
}

/* ----- Section primitives ----- */
section { padding: 60px 0; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 12px;
  display: inline-flex; align-items: center; gap: 12px;
}
.section-eyebrow::before {
  content: "//"; color: var(--accent-deep); font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 48px;
  max-width: 860px;
  font-variation-settings: "opsz" 96;
}
.section-title em { font-style: italic; color: var(--ink-mute); font-weight: 400; }

/* ----- Product grid ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
/* On narrow viewports, force 2-up so phones don't fall to single column */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Tighten card padding so content actually fits in narrow cells */
  .product-card {
    padding: 16px;
    gap: 10px;
  }
  .product-card h3 {
    font-size: 16px;
    letter-spacing: -0.005em;
  }
  .product-card .price {
    font-size: 16px;
  }
  .product-card .price-range {
    font-size: 12px;
    margin-left: 4px;
  }
  .product-card .meta {
    font-size: 10px;
    gap: 6px;
  }
  .product-card .badge {
    font-size: 9px;
    padding: 3px 6px;
    top: 8px;
    left: 8px;
  }
}
.product-card {
  background: var(--paper);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.25s ease;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.product-card:hover { background: var(--paper-2); }
.product-card .image {
  aspect-ratio: 1;
  background: var(--ink);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card .image img,
.product-card .image svg {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .image img,
.product-card:hover .image svg { transform: scale(1.04); }
.product-card .badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ink); color: var(--accent);
  padding: 4px 8px; border-radius: 2px;
}
.product-card .badge.sale { background: var(--warning); color: white; }
.product-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0;
}
.product-card .meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
}
.product-card .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  background: var(--accent); color: var(--ink);
  border-radius: 50%;
  font-size: 9px; font-weight: 700;
}
.product-card .price {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: auto;
}
.product-card .price-range { color: var(--ink-mute); font-size: 14px; font-weight: 400; margin-left: 6px; }
.product-card .price-original { color: var(--ink-mute); text-decoration: line-through; margin-right: 8px; font-weight: 400; }

/* ----- Quality grid ----- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.quality-cell {
  background: var(--paper);
  padding: 40px 32px;
  position: relative;
}
.quality-cell::before {
  content: counter(quality);
  counter-increment: quality;
  position: absolute; top: 24px; right: 32px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.quality-grid { counter-reset: quality; }
.quality-cell h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
}
.quality-cell p { color: var(--ink-mute); margin: 0; line-height: 1.6; }
.quality-icon {
  width: 32px; height: 32px;
  color: var(--accent-deep);
}
@media (max-width: 720px) {
  .quality-grid { grid-template-columns: 1fr; }
}

/* ----- About ----- */
.about-section {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(0, 255, 163, 0.1), transparent 60%);
  pointer-events: none;
}
.about-inner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-inner .section-eyebrow { color: var(--accent); }
.about-inner .section-eyebrow::before { color: var(--accent); }
.about-inner h2 { color: var(--paper); margin-bottom: 28px; }
.about-inner p { color: rgba(250, 250, 247, 0.7); font-size: 17px; line-height: 1.65; max-width: 520px; }
.about-visual {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  position: relative;
  background: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.about-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(0,255,163,0.06), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.about-visual img {
  position: relative; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
}

/* ----- FAQ ----- */
.faq {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-mono);
  font-size: 24px; font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--ink-mute);
  line-height: 1.65;
  padding: 0 0 28px;
  margin: 0;
  max-width: 760px;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 24px;
  margin-top: 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .logo { display: inline-flex; }
.footer-brand p {
  color: rgba(250,250,247,0.6);
  margin-top: 24px;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.65;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { color: rgba(250,250,247,0.7); font-size: 14px; transition: color 0.15s; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer ul li { color: rgba(250,250,247,0.7); font-size: 14px; }

.footer-bottom {
  padding: 24px 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(250,250,247,0.4);
  flex-wrap: wrap; gap: 12px;
}
.research-only { color: var(--accent-deep); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ----- Product detail ----- */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0;
}
.product-gallery-wrap { display: flex; flex-direction: column; gap: 16px; }
.product-gallery {
  background: var(--ink);
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-gallery img,
.product-gallery svg { width: 100%; height: 100%; object-fit: cover; }

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.thumb {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, transform 0.1s;
  overflow: hidden;
}
.thumb:hover { border-color: var(--ink-mute); }
.thumb.active { border-color: var(--accent-deep); border-width: 2px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Rich-text content (Quill output) — make headings, lists, tables look right */
.rich-content { line-height: 1.65; color: var(--ink-mute); }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 1.6em 0 0.6em;
  line-height: 1.2;
}
.rich-content h1 { font-size: 1.8em; }
.rich-content h2 { font-size: 1.5em; }
.rich-content h3 { font-size: 1.25em; }
.rich-content h4 { font-size: 1.1em; }
.rich-content p { margin: 0 0 1em; }
.rich-content ul, .rich-content ol { margin: 0 0 1em; padding-left: 1.5em; }
.rich-content li { margin-bottom: 0.4em; }
.rich-content strong { color: var(--ink); font-weight: 600; }
.rich-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-deep); text-underline-offset: 3px; }
.rich-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 20px;
  margin: 1.2em 0;
  color: var(--ink);
  font-style: italic;
}
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 14px;
}
.rich-content th, .rich-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.rich-content th {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
  background: var(--paper-2);
}
.rich-content img {
  max-width: 100%;
  border-radius: 2px;
  margin: 1.2em 0;
}
.rich-content pre, .rich-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 2px;
}
.rich-content pre { padding: 16px; overflow-x: auto; margin: 1.2em 0; }

/* ===== Product page: Description section ===== */
.product-description-block {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.product-description-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.product-description-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
}
.product-description-body {
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-mute);
}
.product-description-body p { margin: 0 0 1.1em; }
.product-description-body p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .product-description-block {
    margin-top: 40px;
    padding-top: 36px;
  }
  .product-description-eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
  }
  .product-description-title {
    margin: 0 0 20px;
  }
  .product-description-body {
    font-size: 15px;
    line-height: 1.65;
  }
}

/* Quill editor in the admin */
.ql-toolbar {
  border-color: var(--line) !important;
  border-radius: 2px 2px 0 0;
  background: var(--paper-2);
}
.ql-container {
  border-color: var(--line) !important;
  border-radius: 0 0 2px 2px;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  min-height: 240px;
}
.ql-editor { min-height: 240px; }

/* Admin image gallery grid */
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.image-gallery-item {
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: white;
  position: relative;
  display: flex; flex-direction: column;
}
.image-gallery-item.is-primary {
  border-color: var(--accent-deep);
  border-width: 2px;
}
.image-gallery-item .img-wrap {
  aspect-ratio: 1;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.image-gallery-item .img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.image-gallery-item .actions-row {
  padding: 8px;
  display: flex; gap: 4px; flex-wrap: wrap; justify-content: center;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.image-gallery-item .primary-flag {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 2px;
  font-weight: 600;
}
.image-gallery-item form { display: inline-block; margin: 0; }
.icon-btn {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  font-family: var(--font-mono);
}
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn.danger:hover { background: #c92a2a; color: white; border-color: #c92a2a; }

.product-info h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600; letter-spacing: -0.025em;
  margin: 16px 0 16px;
  line-height: 1.05;
}
.product-info .product-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.product-info .product-price {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 24px 0;
}
.product-info .product-desc { color: var(--ink-mute); line-height: 1.65; margin-bottom: 32px; }

.variant-picker { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.variant-picker-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-mute);
}
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-option {
  flex: 1; min-width: 120px;
  position: relative; cursor: pointer;
}
.variant-option input { position: absolute; opacity: 0; pointer-events: none; }
.variant-option .variant-card {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 2px;
  transition: all 0.2s;
}
.variant-option input:checked + .variant-card {
  border-color: var(--ink);
  background: var(--ink); color: var(--paper);
}
.variant-option input:disabled + .variant-card {
  opacity: 0.4; cursor: not-allowed;
}
.variant-card .label {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
}
.variant-card .price {
  font-family: var(--font-mono); font-size: 13px; margin-top: 4px;
}
.variant-card .stock {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-deep); margin-top: 6px;
}
.variant-option input:checked + .variant-card .stock { color: var(--accent); }

.qty-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 16px; }
.qty-input {
  width: 80px; padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  text-align: center;
}

@media (max-width: 900px) {
  .product-page { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
}

@media (max-width: 600px) {
  /* Tighter product header on small screens */
  .product-info h1 { font-size: 32px; margin: 12px 0 14px; }
  .product-info .product-meta { font-size: 10px; gap: 12px; margin-bottom: 18px; }
  .product-info .product-desc { font-size: 15px; line-height: 1.6; margin-bottom: 26px; }

  /* Eyebrow above title - reduce on mobile */
  .product-info .hero-eyebrow { font-size: 11px; margin-bottom: 4px; }
  .product-info .hero-eyebrow::before { width: 24px; }

  /* Variant cards - tighter padding so they fit comfortably on narrow screens */
  .variant-option .variant-card { padding: 14px 12px; }
  .variant-card .label { font-size: 17px; }
}

/* ----- Cart ----- */
.cart-page { padding: 60px 0; }
.cart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.cart-items { display: flex; flex-direction: column; }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px; align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-image {
  width: 100px; height: 100px;
  background: var(--ink); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cart-item-image img, .cart-item-image svg { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  margin: 0 0 4px;
}
.cart-item-info .variant {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
}
.cart-item-info form { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.cart-item-info form input[type="number"] {
  width: 60px; padding: 6px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-mono); text-align: center;
}
.cart-item-info button.remove {
  background: none; border: none; color: var(--ink-mute);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; padding: 0; text-decoration: underline;
}
.cart-item-info button.remove:hover { color: var(--warning); }
.cart-item-price {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
}

.cart-summary {
  background: var(--paper-2);
  padding: 32px;
  border-radius: 4px;
  position: sticky; top: 100px;
}
.cart-summary h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  font-family: var(--font-mono); font-size: 14px;
}
.cart-summary-row.total {
  border-top: 1px solid var(--line); margin-top: 12px;
  padding-top: 20px;
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
}
.shipping-progress {
  margin: 16px 0 24px;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.05em;
}
.shipping-progress.met { background: var(--ink); color: var(--accent); }

@media (max-width: 800px) {
  .cart-grid { grid-template-columns: 1fr; gap: 32px; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-image { width: 80px; height: 80px; }
  .cart-item-price { grid-column: 2; }
}

.empty-state {
  text-align: center; padding: 80px 24px;
  color: var(--ink-mute);
}
.empty-state h2 {
  font-family: var(--font-display); font-size: 32px; font-weight: 600;
  color: var(--ink); margin: 0 0 12px;
}

/* ----- Forms ----- */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.form-row input, .form-row textarea, .form-row select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: white;
  transition: border-color 0.15s;
  width: 100%;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--ink);
}
.form-row textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 12px;
  font-size: 14px;
}

/* Page header (small) */
.page-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600; letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.05;
}
.page-header p { color: var(--ink-mute); margin: 16px 0 0; max-width: 640px; line-height: 1.6; }

/* COA list */
.coa-table {
  width: 100%;
  border-collapse: collapse;
}
.coa-table th, .coa-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.coa-table th {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ============================================
   ADMIN PANEL
============================================ */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--paper-2); }
.admin-sidebar {
  background: var(--ink); color: var(--paper);
  padding: 32px 24px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-sidebar .logo { margin-bottom: 40px; }
.admin-sidebar .logo { display: inline-flex; }
.admin-nav {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}
.admin-nav a {
  padding: 12px 14px;
  border-radius: 2px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  display: flex; align-items: center; gap: 12px;
  transition: all 0.15s;
}
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: var(--paper); }
.admin-nav a.active { background: var(--accent); color: var(--ink); font-weight: 600; }
.admin-sidebar form button {
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: var(--paper); padding: 10px 16px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
}
.admin-sidebar form button:hover { background: rgba(255,255,255,0.05); border-color: var(--paper); }

.admin-main { padding: 40px 48px; min-width: 0; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.admin-header h1 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 600;
  letter-spacing: -0.02em; margin: 0;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stat-card {
  background: var(--paper);
  padding: 24px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.stat-card .label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.stat-card .value {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-card {
  background: var(--paper);
  padding: 28px;
  border-radius: 4px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.admin-card h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.admin-card h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  margin: 0 0 16px;
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  text-align: left; padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  border-bottom: 2px solid var(--ink);
}
.data-table tbody tr:hover { background: var(--paper-2); }
.data-table .actions { display: flex; gap: 6px; }

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 100px;
  font-weight: 500;
}
.status-pending { background: #fff3e0; color: #b76e00; }
.status-processing { background: #e3f2fd; color: #1565c0; }
.status-packed { background: #ede7f6; color: #5e35b1; }
.status-shipped { background: #e8f5e9; color: #2e7d32; }
.status-delivered { background: var(--ink); color: var(--accent); }
.status-cancelled { background: #ffebee; color: #c62828; }
.status-paid { background: var(--accent); color: var(--ink); }
.status-failed { background: #ffebee; color: #c62828; }

.alert {
  padding: 16px 20px;
  border-radius: 2px;
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-error { background: #ffebee; color: #c62828; border-left: 3px solid #c62828; }
.alert-info { background: #e3f2fd; color: #1565c0; border-left: 3px solid #1565c0; }

/* Login screen */
.login-shell {
  min-height: 100vh; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,255,163,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,255,163,0.05), transparent 40%);
}
.login-card {
  background: var(--paper);
  padding: 48px;
  border-radius: 4px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-2);
}
.login-card .logo { margin-bottom: 32px; }
.login-card h1 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  margin: 0 0 24px;
}

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-main { padding: 24px; padding-top: 64px; }
  /* Sidebar is now a slide-in overlay on mobile - DO NOT set position: static */
}

/* ============================================
   Age verification modal
============================================ */
.age-gate[hidden] { display: none !important; }
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.age-gate-card {
  position: relative;
  background: var(--paper);
  border-radius: 6px;
  padding: 48px 40px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: ageGateIn 0.35s ease;
}
@keyframes ageGateIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.age-gate-card h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}
.age-gate-card p {
  margin: 0 0 16px;
  color: var(--ink-mute);
  line-height: 1.55;
  font-size: 15px;
}
.age-gate-card p strong { color: var(--ink); }
.age-gate-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep) !important;
  padding: 12px 16px;
  background: var(--paper-2);
  border-radius: 2px;
  margin: 24px 0 !important;
}
.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 28px 0 24px;
}
.age-gate-actions .btn { width: 100%; }
.age-gate-fineprint {
  font-size: 12px !important;
  color: var(--ink-mute) !important;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 0 !important;
}

@media (max-width: 500px) {
  .age-gate-card { padding: 36px 24px 28px; }
  .age-gate-card h2 { font-size: 26px; }
}

/* ============================================
   Customer Accounts
============================================ */

/* Header account link */
.account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: all 0.15s;
}
.account-link:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.account-link svg { flex-shrink: 0; }

@media (max-width: 760px) {
  .account-link span { display: none; }
  .account-link { padding: 8px; }
}

/* Account card (login/register/edit) */
.account-card {
  background: var(--paper);
  padding: 40px 36px;
  border-radius: 6px;
  box-shadow: var(--shadow-1);
}
.account-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.account-sub {
  color: var(--ink-mute);
  font-size: 14px;
  margin: 0 0 28px;
}
.account-alt {
  text-align: center;
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--ink-mute);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.account-alt a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-deep);
  text-underline-offset: 3px;
}

/* Page header for account pages */
.account-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

/* Account dashboard layout */
.account-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 100px;
}
.account-nav-item {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink-mute);
  transition: all 0.15s;
}
.account-nav-item:hover { background: var(--paper-2); color: var(--ink); }
.account-nav-item.active { background: var(--ink); color: var(--accent); font-weight: 500; }

.account-main { min-width: 0; }

.account-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}
.account-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
}
.account-stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.account-stat .value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.account-section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

/* Order list cards */
.orders-list { display: flex; flex-direction: column; gap: 8px; }
.order-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.15s;
}
.order-card:hover {
  border-color: var(--ink);
  transform: translateX(4px);
}
.order-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.order-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}
.order-card-total {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

/* Order detail status bar */
.account-order-status-bar {
  display: flex;
  gap: 48px;
  padding: 24px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .account-grid { grid-template-columns: 1fr; gap: 24px; }
  .account-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
  }
  .account-sidebar .account-nav-item {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid var(--line);
    background: white;
    min-width: 0;
  }
  .account-sidebar .account-nav-item.active {
    border-color: var(--ink);
  }
  .account-nav-item { white-space: nowrap; flex-shrink: 0; }
  .account-stat-row { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: 1fr; gap: 8px; }
  .order-card-total { text-align: left; }
}

/* ============================================
   Sold-out states
============================================ */
.sold-out-banner {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: #fff5f0;
  border: 1px solid #c0392b;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sold-out-banner .sold-out-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: #c0392b;
  padding: 6px 10px;
  border-radius: 2px;
  font-weight: 600;
  white-space: nowrap;
}
.sold-out-banner p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.variant-option.sold-out .variant-card {
  opacity: 0.45;
  cursor: not-allowed;
  position: relative;
}
.variant-option.sold-out .variant-card::after {
  content: "";
  position: absolute;
  top: 50%; left: 8px; right: 8px;
  height: 1px;
  background: #c0392b;
  transform: rotate(-8deg);
  transform-origin: center;
  pointer-events: none;
}

.btn:disabled, .btn[disabled] {
  background: var(--ink-mute) !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

/* Product card sold out */
.product-card.is-sold-out .image img { filter: grayscale(60%); opacity: 0.7; }
.product-card.is-sold-out h3 { color: var(--ink-mute); }
.badge.sold-out-badge {
  background: #c0392b !important;
  color: #fff !important;
  font-weight: 700 !important;
}


/* ============================================
   Hamburger button + Mobile menu drawer
============================================ */
.hamburger-btn {
  display: none;  /* hidden on desktop */
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.hamburger-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 960px) {
  .hamburger-btn { display: inline-flex; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9990;
}
.mobile-menu[hidden] { display: none; }

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.6);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86%, 360px);
  background: var(--paper);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.25s ease;
  overflow-y: auto;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-nav {
  display: flex !important;
  flex-direction: column !important;
  padding: 16px 0;
  width: 100%;
}
.mobile-menu-nav a {
  display: block !important;
  width: 100%;
  padding: 14px 24px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.1s;
  text-align: left;
}
.mobile-menu-nav a:last-child {
  border-bottom: none;
}
.mobile-menu-nav a:hover {
  background: var(--paper-2);
}
.mobile-menu-nav hr {
  border: none;
  border-top: 2px solid var(--line);
  margin: 8px 0;
  width: 100%;
}

/* ============================================
   MOBILE FIXES (2-column page grids that stack on mobile)
============================================ */
.two-col-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.two-col-page-grid.contact-variant {
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}
@media (max-width: 900px) {
  .two-col-page-grid,
  .two-col-page-grid.contact-variant {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Better mobile spacing for affiliate hero CTA buttons */
@media (max-width: 600px) {
  .affiliate-cta-buttons { gap: 10px; }
  .affiliate-cta-buttons .btn { font-size: 14px; padding: 12px 16px; }
}

/* Account header row — stack on small screens so sign-out button doesn't overflow */
@media (max-width: 600px) {
  .account-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-header-row form { width: 100%; }
  .account-header-row .btn { width: auto; }
}

/* Account sidebar tabs — wrap on mobile, no horizontal scroll */
@media (max-width: 800px) {
  .account-sidebar {
    padding-bottom: 4px;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 8px;
  }
  .account-sidebar .account-nav-item {
    flex: 1 1 calc(50% - 4px) !important;
    text-align: center;
    font-size: 13px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: white;
    min-width: 0;
  }
  .account-sidebar .account-nav-item.active {
    border-color: var(--ink);
  }
}

/* Form grid (contact page name/email pair) — stack on small screens */
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* Prevent any inputs / textareas from blowing out the viewport */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], textarea, select {
  max-width: 100%;
  box-sizing: border-box;
}

/* === BULK PRICING NOTICE === */
.bulk-pricing-notice {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff5d6 100%);
  border: 1px solid #d4a84b;
  border-radius: 4px;
  padding: 10px 14px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
}
.bpn-icon { font-size: 18px; flex-shrink: 0; }
.bpn-text strong { color: #7a5d20; }
@media (max-width: 500px) {
  .bulk-pricing-notice { font-size: 12px; padding: 8px 12px; }
}

/* === CART BULK DISPLAY === */
.cart-bulk-badge {
  display: inline-block;
  background: #fff5d6;
  border: 1px solid #d4a84b;
  border-radius: 3px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #7a5d20;
  margin-top: 4px;
  font-weight: 600;
}
.cart-bulk-savings-row { color: #7a5d20; font-weight: 500; }

/* === ADMIN SIDEBAR MOBILE === */
.admin-mobile-toggle { display: none; }
.admin-sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .admin-mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 12px; left: 12px;
    z-index: 1001;
    background: #0a1628;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 260px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 1000 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.25s ease !important;
    box-shadow: 2px 0 16px rgba(0,0,0,0.15);
  }
  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0) !important;
  }
  body.admin-sidebar-open .admin-sidebar-backdrop {
    display: block !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }
}

/* === REORDER BUTTON === */
.order-card-actions {
  display: flex; gap: 8px;
  flex-wrap: wrap; margin-top: 8px;
}
.btn-reorder {
  display: inline-block;
  background: var(--ink); color: var(--accent);
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border: none; cursor: pointer;
}
.btn-reorder:hover { background: #000; color: var(--accent); }


/* ============================================
   BACK-IN-STOCK NOTIFICATION FORM
============================================ */
.notify-back-in-stock { margin: 16px 0 24px; }
.notify-card {
  background: linear-gradient(135deg, #f5faff 0%, #eaf3ff 100%);
  border: 1px solid #b8d4f0;
  border-radius: 6px;
  padding: 16px 18px;
}
.notify-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.notify-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.notify-form-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.notify-form-row input[type="email"] {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}
.notify-form-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 500px) {
  .notify-form-row { flex-direction: column; }
  .notify-form-row .btn { width: 100%; }
}


/* ===== Research category pill bar (/products) ===== */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

/* PPS_STICKY_PILLS — pills follow on scroll, parked below the sticky header */
.cat-pills.is-sticky {
  position: sticky;
  top: var(--pills-top, 64px);
  z-index: 40;
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1;
}
.cat-pill:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}
.cat-pill.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Per-category color dot */
.cat-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ink-mute);
  flex-shrink: 0;
}
.cat-pill[data-cat="all"]       .cat-dot { background: #9d9d9d; }
.cat-pill[data-cat="metabolic"] .cat-dot { background: #d97757; }
.cat-pill[data-cat="repair"]    .cat-dot { background: #5a9b8e; }
.cat-pill[data-cat="growth"]    .cat-dot { background: #8b7cb0; }
.cat-pill[data-cat="longevity"] .cat-dot { background: #6b8e5f; }
.cat-pill[data-cat="neuro"]     .cat-dot { background: #7a9bc4; }
.cat-pill[data-cat="supplies"]  .cat-dot { background: #b08968; }
.cat-pill[data-cat="bundles"]   .cat-dot { background: #c4a04a; }

.cat-pill.is-active .cat-dot {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}

.cat-pill-count {
  display: inline-block;
  font-size: 10px;
  padding: 1px 7px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.04em;
  min-width: 18px;
  text-align: center;
}
.cat-pill.is-active .cat-pill-count {
  background: rgba(255,255,255,0.16);
  color: var(--paper);
}

@media (max-width: 600px) {
  .cat-pills { gap: 5px; }
  .cat-pill { padding: 7px 13px; font-size: 10px; gap: 6px; }
  .cat-pill-count { font-size: 9px; padding: 1px 5px; min-width: 16px; }
  .cat-dot { width: 6px; height: 6px; }
}


/* ============================================================
   Sectioned products view — overrides the default grey-gap grid
   so incomplete rows don't show grey fill. Softer card style and
   tighter spacing between category sections.
   ============================================================ */
.product-section {
  margin-bottom: 20px !important;
}

.product-section > div:first-child {
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
}

.product-section .product-grid {
  background: transparent;
  border: none;
  gap: 10px;
}

.product-section .product-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.25s ease;
}

.product-section .product-card:hover {
  background: var(--paper);
  border-color: var(--ink-mute);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

/* On phones, keep 2-up but tighten gap */
@media (max-width: 600px) {
  .product-section .product-grid {
    gap: 10px;
  }
  .product-section .product-card {
    padding: 14px;
    border-radius: 4px;
  }
}

/* Cards inside sectioned view shrink to content height — no stretch */
.product-section .product-card {
  height: auto !important;
  align-self: start;
}

/* Kill the global section padding inside category sections — that 60px
   was the real source of the huge between-category gap */
section.product-section {
  padding: 0 !important;
}


/* Category section header styling — colored dot matches pill bar */
.section-cat-header {
  font-size: 30px !important;
  letter-spacing: -0.01em;
}
.section-cat-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--ink-mute);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
}
.product-section[data-cat="metabolic"] .section-cat-dot { background: #d97757; }
.product-section[data-cat="repair"]    .section-cat-dot { background: #5a9b8e; }
.product-section[data-cat="growth"]    .section-cat-dot { background: #8b7cb0; }
.product-section[data-cat="longevity"] .section-cat-dot { background: #6b8e5f; }
.product-section[data-cat="neuro"]     .section-cat-dot { background: #7a9bc4; }
.product-section[data-cat="supplies"]  .section-cat-dot { background: #b08968; }
.product-section[data-cat="bundles"]   .section-cat-dot { background: #c4a04a; }

/* Slightly tighter on phones */
@media (max-width: 600px) {
  .section-cat-header { font-size: 22px !important; }
  .section-cat-dot { width: 10px; height: 10px; }
}

/* Subtle depth on product cards inside category sections */
.product-section .product-card {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.04);
}
.product-section .product-card:hover {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

/* Category-colored top border accent on each card */
.product-section .product-card {
  border-top: 3px solid var(--ink-mute);
}
.product-section[data-cat="metabolic"] .product-card { border-top-color: #d97757; }
.product-section[data-cat="repair"]    .product-card { border-top-color: #5a9b8e; }
.product-section[data-cat="growth"]    .product-card { border-top-color: #8b7cb0; }
.product-section[data-cat="longevity"] .product-card { border-top-color: #6b8e5f; }
.product-section[data-cat="neuro"]     .product-card { border-top-color: #7a9bc4; }
.product-section[data-cat="supplies"]  .product-card { border-top-color: #b08968; }
.product-section[data-cat="bundles"]   .product-card { border-top-color: #c4a04a; }

/* Layered hover effect: lift + shadow + image zoom + accent grows */
.product-section .product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-width 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.product-section .product-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.08) !important;
  /* border-top-width removed — caused layout shift */
  background: #fff !important;
}
.product-section .product-card .image img,
.product-section .product-card .image svg {
  transition: transform 0.35s ease;
}
.product-section .product-card:hover .image img,
.product-section .product-card:hover .image svg {
  transform: scale(1.05) !important;
}


/* ============================================================
   Products page search bar — pill shape, icon, focus glow
   ============================================================ */
.products-search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.products-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-mute);
  pointer-events: none;
  transition: color 0.2s ease;
}
.products-search-input {
  width: 100%;
  padding: 16px 110px 16px 50px;
  font-size: 15px;
  font-family: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.products-search-input::placeholder {
  color: var(--ink-mute);
}
.products-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04),
              0 0 0 4px rgba(78, 205, 196, 0.18);
}
.products-search-bar:focus-within .products-search-icon {
  color: var(--ink);
}
.products-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease;
}
.products-search-btn:hover {
  background: #000;
  transform: translateY(-50%) scale(1.03);
}
.products-search-btn:active {
  transform: translateY(-50%) scale(0.98);
}
@media (max-width: 600px) {
  .products-search-input {
    padding: 14px 90px 14px 44px;
    font-size: 14px;
  }
  .products-search-icon {
    left: 16px;
    width: 16px;
    height: 16px;
  }
  .products-search-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}


/* ============================================================
   Products page polish — VIEW pill, sort select, product count
   ============================================================ */
.products-search-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.products-search-row .products-search-bar {
  flex: 1;
}
.products-sort-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 36px 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  cursor: pointer;
  color: var(--ink);
  min-width: 180px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.products-sort-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04), 0 0 0 4px rgba(78, 205, 196, 0.18);
}
.products-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  margin: 8px 0 16px;
}

/* VIEW pill on each card */
.product-card .products-view-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  margin-top: 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}
.product-card:hover .products-view-pill {
  background: var(--accent);
  color: var(--ink);
}
.product-card.is-sold-out .products-view-pill {
  background: var(--ink-mute);
  opacity: 0.7;
}

/* On phones, slightly tighter */
@media (max-width: 600px) {
  .products-search-row {
    flex-direction: column;
    gap: 10px;
  }
  .products-sort-select {
    width: 100%;
    min-width: 0;
  }
  .product-card .products-view-pill {
    padding: 10px 16px;
    font-size: 11px;
  }
}

/* ============================================================
   PARTNER / AFFILIATE PROGRAM  (self-serve rebuild)
   Tokens: --ink navy, --accent mint, --paper cream, --gold
   ============================================================ */

.partner-anchor { position: relative; top: -90px; visibility: hidden; }

/* flash messages */
.partner-flash {
  margin: 24px 0 0; padding: 14px 18px; border-radius: 6px;
  font-size: 14px; line-height: 1.45;
}
.partner-flash-ok  { background: rgba(0,255,163,0.12); border-left: 3px solid var(--accent-deep); color: var(--ink); }
.partner-flash-err { background: #fdecea; border-left: 3px solid #c92a2a; color: #7a1010; }
.partner-flash .mono, .partner-linkbox .mono, .partner-table .mono { font-family: var(--font-mono); }

/* shared eyebrow */
.partner-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-deep); font-weight: 600;
  display: inline-block;
}

/* ---------- CLAIM BOX (not yet affiliate) ---------- */
.partner-claim {
  margin-top: 36px; padding: 36px;
  background: var(--ink); color: var(--paper);
  border-radius: 14px; position: relative; overflow: hidden;
}
.partner-claim::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,163,0.18), transparent 70%);
  pointer-events: none;
}
.partner-claim-head h2 {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08; margin: 10px 0 0; color: var(--paper);
}
.partner-claim-head p { color: rgba(250,250,247,0.72); margin: 12px 0 0; max-width: 560px; font-size: 15px; }

.partner-perks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 28px 0 4px;
}
.partner-perk {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px; padding: 18px 16px; text-align: center;
}
.partner-perk-figure {
  font-family: var(--font-display); font-size: 34px; font-weight: 600;
  color: var(--accent); line-height: 1;
}
.partner-perk-figure span { font-size: 18px; opacity: 0.8; }
.partner-perk-label { font-size: 12px; color: rgba(250,250,247,0.66); margin-top: 8px; line-height: 1.35; }

.partner-claim-form { margin-top: 28px; }
.partner-claim-form > label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,250,247,0.7);
  margin-bottom: 8px;
}
.partner-code-row { display: flex; gap: 10px; }
.partner-code-row input {
  flex: 1; font-family: var(--font-mono); font-size: 16px; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 13px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.96); color: var(--ink);
}
.partner-code-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.partner-code-hint { font-size: 12px; color: rgba(250,250,247,0.55); margin-top: 8px; }
.partner-link-preview { margin-top: 14px; font-size: 13px; color: rgba(250,250,247,0.8); }
.partner-link-preview .mono { font-family: var(--font-mono); color: var(--accent); word-break: break-all; }

/* ---------- LIVE DASHBOARD ---------- */
.partner-live { margin-top: 36px; }
.partner-live-head h2 {
  font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 32px);
  margin: 8px 0 0;
}
.partner-tier-pill {
  display: inline-block; margin-top: 12px; padding: 7px 14px;
  background: var(--ink); color: var(--accent); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; font-weight: 500;
}

.partner-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px;
}
.partner-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px;
}
.partner-card-accent {
  background: var(--ink); border-color: var(--ink);
}
.partner-card-accent .partner-card-label { color: rgba(250,250,247,0.6); }
.partner-card-accent .partner-card-value { color: var(--accent); }
.partner-card-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
}
.partner-card-value {
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  margin-top: 8px; color: var(--ink); line-height: 1;
}

/* referral link box */
.partner-linkbox {
  margin-top: 22px; padding: 22px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--paper);
}
.partner-linkbox-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px;
}
.partner-linkbox-row { display: flex; gap: 10px; }
.partner-linkbox-row input {
  flex: 1; font-family: var(--font-mono); font-size: 14px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper-2); color: var(--ink);
}
.partner-linkbox-meta { font-size: 13px; color: var(--ink-mute); margin-top: 12px; }
.partner-linkbox-meta .mono { font-family: var(--font-mono); color: var(--ink); }
.partner-textbtn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent-deep); font: inherit; text-decoration: underline;
}
.partner-edit-form { margin-top: 16px; }
.partner-edit-form .partner-code-row input { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.partner-edit-form .partner-code-hint { color: var(--ink-mute); }

/* terms gate */
.partner-gate {
  margin-top: 22px; padding: 22px; border-radius: 12px;
  background: rgba(212,168,75,0.10); border: 1px solid rgba(212,168,75,0.4);
  display: flex; gap: 16px; align-items: flex-start;
}
.partner-gate-icon { font-size: 26px; line-height: 1; }
.partner-gate-body h3 { margin: 0; font-size: 18px; }
.partner-gate-body p { margin: 6px 0 14px; color: var(--ink-mute); font-size: 14px; }

/* subtitle */
.partner-subtitle {
  font-family: var(--font-display); font-size: 22px; margin: 34px 0 14px;
  padding-top: 22px; border-top: 1px solid var(--line);
}

/* referral table */
.partner-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.partner-table-head, .partner-table-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 8px;
  padding: 13px 18px; align-items: center;
}
.partner-table-head {
  background: var(--paper-2); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute);
}
.partner-table-row { border-top: 1px solid var(--line); font-size: 14px; }
.partner-table-row .muted { color: var(--ink-mute); }
.partner-table-row .mono { font-family: var(--font-mono); }
.partner-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; font-family: var(--font-mono);
}
.partner-pill-paid { background: rgba(0,255,163,0.16); color: var(--accent-deep); }
.partner-pill-pending { background: rgba(212,168,75,0.18); color: #8a6d22; }

.partner-empty {
  padding: 22px; border: 1px dashed var(--line); border-radius: 12px;
  color: var(--ink-mute); font-size: 14px; background: var(--paper);
}

/* payout form */
.partner-payout-form {
  margin-top: 4px; padding: 22px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--paper);
}
.partner-payout-avail { margin: 0 0 16px; font-size: 15px; }
.partner-field { margin-bottom: 14px; }
.partner-field label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px;
}
.partner-field select, .partner-field input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper-2); color: var(--ink); font-size: 14px;
}
.partner-payout-fine { font-size: 12px; color: var(--ink-mute); margin: 12px 0 0; }

/* ---------- TERMS PAGE ---------- */
.partner-terms-wrap { max-width: 760px; }
.partner-terms-intro p { color: var(--ink-mute); margin-top: 12px; font-size: 15px; }
.partner-terms-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.partner-term {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); cursor: pointer;
}
.partner-term input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--accent-deep); flex-shrink: 0; }
.partner-term strong { display: block; font-size: 15px; }
.partner-term p { margin: 5px 0 0; color: var(--ink-mute); font-size: 14px; line-height: 1.5; }
.partner-term-final {
  background: var(--paper-2); align-items: center; border-color: var(--ink-soft);
}
.partner-term-final span { font-weight: 500; }
.partner-terms-final { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.partner-terms-audit { font-size: 12px; color: var(--ink-mute); margin: 8px 0 16px; }

/* ---------- PUBLIC PITCH PAGE ---------- */
.partner-pitch-hero {
  background: var(--ink); color: var(--paper);
  padding: 88px 0 72px; position: relative; overflow: hidden;
}
.partner-pitch-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,163,0.16), transparent 70%);
}
.partner-pitch-hero h1 {
  font-family: var(--font-display); font-size: clamp(38px, 6.5vw, 76px);
  line-height: 1.04; margin: 18px 0 0; color: var(--paper);
}
.partner-pitch-sub {
  font-size: 18px; color: rgba(250,250,247,0.74); margin: 22px 0 0; max-width: 600px;
}
.partner-pitch-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

.partner-pitch-stats { padding: 56px 0; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.partner-pitch-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner-pitch-stat { text-align: center; }
.partner-pitch-fig {
  font-family: var(--font-display); font-size: clamp(40px, 6vw, 58px);
  font-weight: 600; color: var(--ink); line-height: 1;
}
.partner-pitch-fig span { font-size: 0.5em; color: var(--accent-deep); }
.partner-pitch-lbl {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 10px;
}

.partner-pitch-how { padding: 72px 0; }
.partner-pitch-how h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); margin: 0 0 36px; }
.partner-pitch-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.partner-pitch-num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--accent-deep); letter-spacing: 0.1em;
}
.partner-pitch-step h3 { font-family: var(--font-display); font-size: 21px; margin: 10px 0 0; }
.partner-pitch-step p { color: var(--ink-mute); font-size: 15px; margin: 8px 0 0; line-height: 1.55; }

.partner-pitch-foot {
  padding: 72px 0; background: var(--paper-2); border-top: 1px solid var(--line); text-align: center;
}
.partner-pitch-foot h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); margin: 0; }
.partner-pitch-foot > .container > p { color: var(--ink-mute); margin: 10px 0 0; }
.partner-pitch-foot .partner-pitch-cta { justify-content: center; }
.partner-pitch-fine { font-size: 13px; color: var(--ink-mute); margin: 28px auto 0; max-width: 560px; line-height: 1.55; }
.partner-pitch-fine a { text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .partner-perks, .partner-cards, .partner-pitch-statgrid { grid-template-columns: repeat(2, 1fr); }
  .partner-pitch-steps { grid-template-columns: 1fr; }
  .partner-code-row { flex-direction: column; }
  .partner-table-head { display: none; }
  .partner-table-row {
    grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 16px;
  }
  .partner-table-row span:nth-child(1) { grid-column: 1 / -1; font-weight: 600; }
  .partner-claim, .partner-payout-form, .partner-linkbox { padding: 20px; }
}

/* ---- FIX: hero/foot glow overlays must not block taps ---- */
.partner-pitch-hero::after,
.partner-claim::after { pointer-events: none; }
.partner-pitch-hero > .container,
.partner-pitch-foot > .container { position: relative; z-index: 1; }


/* ==== pgx-dark v1: dark kinetic page headers (products, coas, calculator, contact, track, blog, compare) ==== */
.page-header, .page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 12% -10%, rgba(0,255,163,.13), transparent 70%),
    radial-gradient(620px 320px at 96% 118%, rgba(0,255,163,.06), transparent 70%),
    linear-gradient(160deg, #0a1628 0%, #0d1d33 55%, #081221 100%);
  border-bottom: 1px solid rgba(0,255,163,.16);
}
.page-header::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55; z-index: 0;
  background-image:
    linear-gradient(rgba(0,255,163,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,163,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(700px 380px at 30% 30%, #000, transparent 75%);
          mask-image: radial-gradient(700px 380px at 30% 30%, #000, transparent 75%);
}
.page-header > *, .page-hero > * { position: relative; z-index: 1; }
.page-header h1, .page-hero h1 { color: var(--paper); }
.page-header h1 em, .page-hero h1 em {
  background: linear-gradient(92deg, #00ffa3, #b8ffe3 50%, #00cc82);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.page-header p, .page-hero p { color: rgba(250,250,247,.72); }
.page-header .section-eyebrow, .page-hero .section-eyebrow { color: var(--accent); }
.page-header a, .page-hero a { color: var(--accent); }
.page-header input, .page-hero input,
.page-header select, .page-hero select {
  background: rgba(250,250,247,.06); border: 1px solid rgba(250,250,247,.2);
  color: var(--paper); border-radius: 10px;
}
.page-header input::placeholder, .page-hero input::placeholder { color: rgba(250,250,247,.45); }
.page-header input:focus, .page-hero input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(0,255,163,.15); }

/* ==== PPS-DARKHEADER-BTN ====
   Buttons were missed when the dark treatment was applied to .page-header /
   .page-hero. .btn-secondary uses color/border of var(--ink) = #0a1628, which
   is the exact first stop of the header gradient — so it rendered invisible.
   Affects the Sign Out button on /account and the affiliate dashboard. */
.page-header .btn-secondary, .page-hero .btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 250, 247, 0.45);
}
.page-header .btn-secondary:hover, .page-hero .btn-secondary:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.page-header .btn-secondary:focus-visible, .page-hero .btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.35);
}
/* ==== end PPS-DARKHEADER-BTN ==== */


/* ==== pgx2-cards v1: conversion-focused product cards, pills, search ==== */
.product-grid { gap: 18px; background: transparent; }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 14px 18px; overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.product-card:hover {
  background: var(--paper); transform: translateY(-6px);
  border-color: rgba(0,204,130,.45);
  box-shadow: 0 28px 56px -28px rgba(10,22,40,.35), 0 12px 30px -18px rgba(0,255,163,.25);
}
.product-card .image { background: #0a1628; border-radius: 12px; }
.product-card:hover .image img, .product-card:hover .image svg { transform: scale(1.06); }
.product-card .badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 12px;
}
.product-card .meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-deep); background: rgba(0,204,130,.08);
  border: 1px solid rgba(0,204,130,.25); border-radius: 999px; padding: 4px 11px;
}
.product-card .check { color: var(--accent-deep); }
.product-card .price { font-size: 21px; font-weight: 700; color: var(--ink); }
.product-card .price-original { font-size: 15px; font-weight: 500; }
.product-card .price-range { font-size: 14px; font-weight: 500; color: var(--ink-mute); }
.products-view-pill {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 999px; padding: 13px 16px; margin-top: 14px;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.products-view-pill span { transition: transform .25s ease; }
.product-card:hover .products-view-pill {
  background: var(--accent); color: #04140d;
  box-shadow: 0 12px 30px -10px rgba(0,255,163,.55);
}
.product-card:hover .products-view-pill span { transform: translateX(4px); }
.product-card.is-sold-out .image img { filter: grayscale(.65); opacity: .75; }
.product-card.is-sold-out:hover .products-view-pill { background: var(--ink-mute); color: var(--paper); box-shadow: none; }

.cat-pill {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; background: var(--paper);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.cat-pill:hover { border-color: var(--accent-deep); color: var(--accent-deep); transform: translateY(-1px); }
.cat-pill.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cat-pill.is-active .cat-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.cat-pill-count { opacity: .65; }
.cat-pills.is-sticky { backdrop-filter: blur(8px); }

.products-search-bar {
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.products-search-bar:focus-within { border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(0,255,163,.14); }
.products-search-btn {
  background: var(--ink); color: var(--paper); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.products-search-btn:hover { background: var(--accent); color: #04140d; }
.products-sort-select { border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.products-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }






/* ==== PPS-DC-UI-V1: admin discount codes page ==== */
.dc-header-actions { display: flex; gap: 8px; align-items: center; }
.dc-header-actions form { margin: 0; }
.dc-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--ink-mute);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 9px 14px; border-radius: var(--radius);
  cursor: pointer; transition: all .15s;
}
.dc-ghost:hover { border-color: var(--warning); color: var(--warning); background: #fff6f2; }

.dc-stats { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.dc-stat {
  flex: 1; min-width: 96px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.dc-stat-n { font-family: var(--font-display); font-size: 26px; line-height: 1; font-weight: 600; }
.dc-stat-l {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
}

.dc-toolbar {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap;
}
.dc-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.dc-pill {
  background: transparent; border: 1px solid var(--line); color: var(--ink-mute);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 7px 14px; border-radius: 100px;
  cursor: pointer; transition: all .15s;
}
.dc-pill:hover { border-color: var(--ink); color: var(--ink); }
.dc-pill.is-on { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.dc-search {
  flex: 0 1 320px; min-width: 200px; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 100px;
  font-family: var(--font-body); font-size: 13px; background: var(--paper);
}
.dc-search:focus { outline: none; border-color: var(--ink); }

.dc-tablewrap { padding: 0; overflow: hidden; }
.dc-table td { vertical-align: middle; }
.dc-row.dc-dim .dc-code,
.dc-row.dc-dim .dc-amount { opacity: 0.55; }
.dc-code {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  background: var(--paper-2); padding: 4px 9px; border-radius: var(--radius);
  display: inline-block;
}
.dc-note {
  font-size: 12px; color: var(--ink-mute); margin-top: 5px;
  max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dc-amount { font-weight: 600; font-size: 14px; }
.dc-sub {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 3px;
}
.dc-uses { font-family: var(--font-mono); font-size: 13px; }
.dc-inf { color: var(--ink-mute); }
.dc-exp { color: #b3531a; }
.dc-s-exp { background: #fce4e4; color: #b3531a; }
.dc-s-off { background: #f0f0f0; color: var(--ink-mute); }

.dc-actions { text-align: right; white-space: nowrap; }
.dc-actions form { display: inline-block; margin: 0; vertical-align: middle; }
.dc-actions .dc-edit { display: inline-block; vertical-align: middle; margin-right: 4px; }
.dc-edit {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: var(--radius); transition: all .15s;
}
.dc-edit:hover { border-color: var(--ink); background: var(--ink); color: var(--accent); }
.dc-del {
  background: transparent; border: 1px solid transparent; color: #c9c4b6;
  font-size: 13px; line-height: 1; padding: 6px 9px; border-radius: var(--radius);
  cursor: pointer; transition: all .15s;
}
.dc-del:hover { color: #c62828; border-color: #f3c6c6; background: #fff5f5; }

.dc-empty { padding: 44px; text-align: center; color: var(--ink-mute); font-size: 14px; }

@media (max-width: 900px) {
  .dc-toolbar { flex-direction: column; align-items: stretch; }
  .dc-search { flex: 1 1 auto; }
  .dc-note { max-width: 180px; }
}
/* ==== end PPS-DC-UI-V1 ==== */


/* ==== PPS-AC-UI-V1: admin abandoned carts page ==== */
.ac-ghost {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute);
  border: 1px solid var(--line); padding: 9px 16px; border-radius: var(--radius);
  transition: all .15s;
}
.ac-ghost:hover { border-color: var(--ink); color: var(--ink); }

.ac-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.ac-chip {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 100px; font-weight: 500;
}
.ac-chip.is-on  { background: var(--accent); color: var(--ink); }
.ac-chip.is-off { background: #fce4e4; color: #b3531a; }
.ac-meta { font-size: 12px; color: var(--ink-mute); }
.ac-meta strong { color: var(--ink); }

.ac-tabs { margin-bottom: 16px; }
.ac-ct {
  font-size: 10px; opacity: .65; margin-left: 6px;
  padding-left: 6px; border-left: 1px solid currentColor;
}

.ac-block { margin-bottom: 18px; }
.ac-head { padding: 20px 22px 4px; }
.ac-head h2 { margin: 0; font-size: 17px; }
.ac-head p { margin: 4px 0 14px; font-size: 12.5px; color: var(--ink-mute); }
.ac-name { font-weight: 600; font-size: 14px; }
.ac-money { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; }
.ac-age {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  background: var(--paper-2); padding: 3px 9px; border-radius: 100px; color: var(--ink-mute);
}
.ac-s-no { background: #f0f0f0; color: var(--ink-mute); }
/* ==== end PPS-AC-UI-V1 ==== */


/* ==== PPS-INV-UI-V1: admin inventory page ==== */
.inv-ghost {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute);
  border: 1px solid var(--line); padding: 9px 16px; border-radius: var(--radius);
  transition: all .15s;
}
.inv-ghost:hover { border-color: var(--ink); color: var(--ink); }

.inv-alert {
  background: #fff5f5; border-left: 3px solid #c44d4d;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13.5px; margin-bottom: 16px;
}
.inv-alert a { text-decoration: underline; margin-left: 6px; }

.inv-sort { color: inherit; }
.inv-sort:hover { color: var(--ink); }
.inv-sort.on { color: var(--ink); font-weight: 600; }

.inv-table td { vertical-align: middle; }
.inv-name { font-weight: 600; font-size: 14px; }
.inv-hidden {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; background: var(--paper-2); color: var(--ink-mute);
  padding: 2px 7px; border-radius: 100px; margin-left: 7px; vertical-align: middle;
}
.inv-sku { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-mute); }
.inv-qty { font-family: var(--font-mono); font-size: 17px; font-weight: 500; }
.inv-val { font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); }
.inv-s-out { background: #fde7e7; color: #c44d4d; }
.inv-s-low { background: #fff8e1; color: #8a6d20; }

tr.inv-out td { background: #fffafa; }
tr.inv-low td { background: #fffdf5; }

.inv-adjust { display: flex; gap: 0; margin: 0; justify-content: flex-end; align-items: stretch; }
.inv-step {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  width: 32px; font-size: 15px; line-height: 1; cursor: pointer; transition: all .12s;
}
.inv-step:first-child  { border-radius: var(--radius) 0 0 var(--radius); }
.inv-step:last-child   { border-radius: 0 var(--radius) var(--radius) 0; }
.inv-step:hover:not(:disabled) { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.inv-step:disabled { opacity: .35; cursor: not-allowed; }
.inv-input {
  width: 62px; text-align: center; border: 1px solid var(--line);
  border-left: none; border-right: none; padding: 7px 4px;
  font-family: var(--font-mono); font-size: 14px; background: var(--paper);
}
.inv-input:focus { outline: none; background: #fffbe6; }
.inv-adjust.is-dirty .inv-input { background: #fffbe6; border-color: var(--gold); font-weight: 600; }

@media (max-width: 900px) {
  .inv-table .dc-note { max-width: 150px; }
  .inv-input { width: 50px; }
}
/* ==== end PPS-INV-UI-V1 ==== */


/* ==== PPS-INV-V2 velocity columns ==== */
.inv-alert-warn { background: #fff8e6; border-left-color: #b3531a; }
.inv-alert-flat { background: var(--paper-2); border-left-color: var(--ink-mute); }
.inv-sold { font-family: var(--font-mono); font-size: 13px; }
.inv-none { color: #c9c4b6; font-family: var(--font-mono); font-size: 13px; }
.inv-days {
  font-family: var(--font-mono); font-size: 12px; padding: 3px 9px;
  border-radius: 100px; background: var(--paper-2); color: var(--ink-mute);
}
.inv-days.is-urgent { background: #fde7e7; color: #c44d4d; font-weight: 600; }
/* ==== end PPS-INV-V2 ==== */


/* ==== PPS-DASH-V2: admin dashboard ==== */
.dsh-who { font-size: 12px; color: var(--ink-mute); font-family: var(--font-mono); }
.dsh-top { display: grid; grid-template-columns: 1fr 260px; gap: 14px; margin-bottom: 16px; }
.dsh-hero {
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
  padding: 22px 24px 16px; position: relative; overflow: hidden;
}
.dsh-hero-l {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(250,250,247,.55);
}
.dsh-hero-n {
  font-family: var(--font-display); font-size: 46px; line-height: 1.05;
  font-weight: 600; margin: 6px 0 4px;
}
.dsh-hero-sub { font-size: 13px; color: rgba(250,250,247,.7); }
.dsh-delta {
  font-family: var(--font-mono); font-size: 11px; padding: 2px 8px;
  border-radius: 100px; margin-left: 8px;
}
.dsh-delta.up { background: rgba(0,255,163,.16); color: var(--accent); }
.dsh-delta.down { background: rgba(255,107,53,.18); color: #ff9b6b; }
.dsh-side .dsh-delta.up { background: #e7f7ec; color: #0f7a3a; }
.dsh-side .dsh-delta.down { background: #fdecec; color: #c44d4d; }

.dsh-chart {
  display: flex; align-items: flex-end; gap: 4px; height: 62px; margin-top: 18px;
}
.dsh-bar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.dsh-bar {
  width: 100%; min-height: 2px; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(0,255,163,.35));
  transition: opacity .15s;
}
.dsh-bar-wrap:hover .dsh-bar { opacity: .7; }
.dsh-chart-axis {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-family: var(--font-mono); font-size: 9.5px; color: rgba(250,250,247,.4);
}

.dsh-side { display: flex; flex-direction: column; gap: 10px; }
.dsh-mini {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 13px 16px; flex: 1;
}
.dsh-mini-l {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
}
.dsh-mini-n { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin: 3px 0 1px; }
.dsh-mini-s { font-size: 11.5px; color: var(--ink-mute); }

.dsh-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.dsh-act {
  display: flex; align-items: baseline; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 100px; padding: 9px 18px; transition: all .15s;
}
.dsh-act:hover { border-color: var(--ink); transform: translateY(-1px); }
.dsh-act-n { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.dsh-act-l {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
}
.dsh-act.urgent { background: #fff8e6; border-color: #e8cf9a; }
.dsh-act.bad { background: #fdecec; border-color: #f0c4c4; }
.dsh-act.bad .dsh-act-n { color: #c44d4d; }
.dsh-act.warn { background: #fffaf0; border-color: #ecd9b0; }

.dsh-cust { font-weight: 600; font-size: 13.5px; }
.dsh-foot { font-size: 12px; color: var(--ink-mute); text-align: center; padding: 6px 0 20px; }
.dsh-foot a { text-decoration: underline; }

@media (max-width: 900px) {
  .dsh-top { grid-template-columns: 1fr; }
  .dsh-side { flex-direction: row; }
  .dsh-hero-n { font-size: 36px; }
}
/* ==== end PPS-DASH-V2 ==== */


/* ==== PPS-DASH-V3: instrument-readout dashboard ==== */
.rd {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(760px 300px at 8% -20%, rgba(0,255,163,.14), transparent 68%),
    radial-gradient(520px 260px at 98% 120%, rgba(0,255,163,.07), transparent 70%),
    linear-gradient(158deg, #0a1628 0%, #0d1d33 52%, #070f1c 100%);
  border: 1px solid rgba(0,255,163,.14);
  padding: 20px 24px 14px;
  margin-bottom: 16px;
}
.rd::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0,255,163,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,163,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(620px 300px at 20% 10%, #000, transparent 72%);
          mask-image: radial-gradient(620px 300px at 20% 10%, #000, transparent 72%);
}
.rd > * { position: relative; z-index: 1; }

.rd-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rd-tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
}
.rd-rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(0,255,163,.35), rgba(0,255,163,.04)); }
.rd-meta { font-family: var(--font-mono); font-size: 10px; color: rgba(250,250,247,.34); }

.rd-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: flex-start; }
.rd-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(250,250,247,.5);
}
.rd-dim { color: rgba(250,250,247,.28); margin-left: 6px; }
.rd-figure {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 4.6vw, 62px); line-height: 1;
  letter-spacing: -.025em; margin: 8px 0 12px;
  background: linear-gradient(96deg, #fafaf7 12%, #b8ffe3 62%, #00ffa3 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rd-under { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-chip {
  font-family: var(--font-mono); font-size: 11px; color: rgba(250,250,247,.62);
  border: 1px solid rgba(250,250,247,.14); padding: 4px 11px; border-radius: 100px;
}
.rd-trend {
  font-family: var(--font-mono); font-size: 11px; font-style: normal;
  padding: 4px 11px; border-radius: 100px; letter-spacing: .04em;
}
.rd-trend.up { background: rgba(0,255,163,.14); color: var(--accent); }
.rd-trend.down { background: rgba(255,107,53,.16); color: #ff9b6b; }
.rd-trend.sm { font-size: 10px; padding: 2px 7px; margin-left: 5px; }

.rd-stack { display: flex; gap: 0; }
.rd-cell {
  display: flex; flex-direction: column; gap: 3px;
  padding: 0 20px; border-left: 1px solid rgba(250,250,247,.1);
}
.rd-cell:first-child { border-left: none; padding-left: 0; }
.rd-cell:last-child { padding-right: 0; }
.rd-cell-l {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(250,250,247,.38);
}
.rd-cell-n {
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  color: var(--paper); line-height: 1.1;
}
.rd-cell-s { font-family: var(--font-mono); font-size: 10.5px; color: rgba(250,250,247,.44); }

.rd-trace { position: relative; margin-top: 22px; height: 150px; }
.rd-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rd-grat line { stroke: rgba(250,250,247,.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rd-line { filter: drop-shadow(0 0 6px rgba(0,255,163,.45)); }
.rd-leader { stroke: rgba(0,255,163,.3); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.rd-peak { fill: #0a1628; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rd-peaklab {
  position: absolute; top: -6px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--accent);
  white-space: nowrap; pointer-events: none;
}
.rd-peaklab em { display: block; font-style: normal; font-size: 9px; color: rgba(250,250,247,.34); text-align: center; }

.rd-axis {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; font-family: var(--font-mono); font-size: 9.5px;
  color: rgba(250,250,247,.32); letter-spacing: .08em;
}
.rd-axis-mid { color: rgba(250,250,247,.24); }

/* draw-on: the trace paints left to right on load */
@keyframes rdDraw { to { stroke-dashoffset: 0; } }
.rd-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: rdDraw 1.1s cubic-bezier(.4,0,.2,1) .15s forwards; }
@keyframes rdFade { from { opacity: 0; } to { opacity: 1; } }
.rd-peak, .rd-leader, .rd-peaklab { opacity: 0; animation: rdFade .45s ease 1.15s forwards; }

/* worklist */
.wl { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.wl-tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-mute);
}
.wl-items { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-item {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 100px; padding: 8px 16px; transition: transform .14s, border-color .14s;
}
.wl-item:hover { transform: translateY(-1px); border-color: var(--ink); }
.wl-item b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.wl-item span {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute);
}
.wl-item.hot { background: #fff8e6; border-color: #e6cd97; }
.wl-item.bad { background: #fdecec; border-color: #f0c4c4; }
.wl-item.bad b { color: #c44d4d; }
.wl-item.warn { background: #fffaf0; border-color: #ecd9b0; }

/* orders */
.ord-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 22px 2px; }
.ord-head h2 { margin: 0; font-size: 17px; }
.ord-name { font-weight: 600; font-size: 13.5px; }
.ord-total { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; }
.ord-date { font-size: 12.5px; white-space: nowrap; color: var(--ink-mute); }

@media (max-width: 980px) {
  .rd-grid { grid-template-columns: 1fr; gap: 20px; }
  .rd-stack { width: 100%; }
  .rd-cell { flex: 1; padding: 0 12px; }
  .rd-trace { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .rd-peak, .rd-leader, .rd-peaklab { opacity: 1; animation: none; }
  .wl-item:hover { transform: none; }
}
/* ==== end PPS-DASH-V3 ==== */


/* ==== PPS-DASH-V4: top sellers + order rows ==== */
.rd-meta-top { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); }
.rd-grid { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 40px; align-items: stretch; }
.rd-splitrow { display: flex; gap: 0; margin-top: 26px; }
.rd-splitrow .rd-cell { flex: 1; padding: 0 18px; border-left: 1px solid rgba(250,250,247,.1); }
.rd-splitrow .rd-cell:first-child { border-left: none; padding-left: 0; }

/* top sellers */
.mv { display: flex; flex-direction: column; }
.mv-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(250,250,247,.5);
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(250,250,247,.1);
}
.mv-head span { color: rgba(250,250,247,.26); letter-spacing: .1em; }
.mv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.mv-row { display: grid; grid-template-columns: 16px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.mv-rank {
  font-family: var(--font-mono); font-size: 10px; color: rgba(250,250,247,.28); text-align: right;
}
.mv-body { min-width: 0; }
.mv-name {
  display: block; font-size: 13px; color: var(--paper); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px;
}
.mv-name em { font-style: normal; color: rgba(250,250,247,.4); font-size: 11.5px; }
.mv-track { display: block; height: 3px; background: rgba(250,250,247,.09); border-radius: 2px; overflow: hidden; }
.mv-fill {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, rgba(0,255,163,.55), var(--accent));
  box-shadow: 0 0 8px rgba(0,255,163,.35);
  animation: mvGrow .8s cubic-bezier(.4,0,.2,1) both;
}
@keyframes mvGrow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); } }
.mv-num { text-align: right; white-space: nowrap; }
.mv-cash { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--paper); }
.mv-units { display: block; font-family: var(--font-mono); font-size: 9.5px; color: rgba(250,250,247,.34); }
.mv-empty { font-size: 13px; color: rgba(250,250,247,.4); padding: 20px 0; }

/* order rows */
.ord2 { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.ord2-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 22px 14px; }
.ord2-head h2 { margin: 0; font-size: 17px; }
.ord2-all { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-mute); }
.ord2-all:hover { color: var(--ink); }
.ord2-list { display: flex; flex-direction: column; }
.ord2-row {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 34px minmax(0,1fr) 108px 100px 92px 92px 16px;
  padding: 13px 22px; border-top: 1px solid var(--line);
  transition: background .13s;
}
.ord2-row:hover { background: var(--paper-2); }
.ord2-av {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  background: var(--paper-2); color: var(--ink-mute); border: 1px solid var(--line);
}
.ord2-av.wait { background: #fff5df; border-color: #e8cf9a; color: #8a6d20; }
.ord2-av.done { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.ord2-who { min-width: 0; }
.ord2-name { display: block; font-weight: 600; font-size: 13.5px; }
.ord2-mail {
  display: block; font-size: 11.5px; color: var(--ink-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ord2-ref { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); }
.ord2-state {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 100px; text-align: center;
}
.ord2-state.s-processing { background: #e8f1fb; color: #2d5f96; }
.ord2-state.s-shipped { background: #e8f5e9; color: #2e7d32; }
.ord2-state.s-delivered { background: var(--ink); color: var(--accent); }
.ord2-state.s-pending { background: #fff3e0; color: #b76e00; }
.ord2-state.s-cancelled { background: #ffebee; color: #c62828; }
.ord2-when { font-size: 12px; color: var(--ink-mute); white-space: nowrap; }
.ord2-amt { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; text-align: right; }
.ord2-go { color: var(--line); text-align: right; transition: color .13s, transform .13s; }
.ord2-row:hover .ord2-go { color: var(--ink); transform: translateX(2px); }
.ord2-empty { padding: 44px; text-align: center; color: var(--ink-mute); font-size: 14px; }

@media (max-width: 1100px) {
  .ord2-row { grid-template-columns: 34px minmax(0,1fr) 92px 88px 16px; }
  .ord2-ref, .ord2-when { display: none; }
}
@media (max-width: 980px) {
  .rd-grid { grid-template-columns: 1fr; gap: 26px; }
  .rd-splitrow { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .mv-fill { animation: none; } }
/* ==== end PPS-DASH-V4 ==== */


/* ==== PPS-CALC-SHOP-V1: turn the calculator into a shopfront ==== */
.calc-span { grid-column: 1 / -1; }
.calc-shop {
  max-width: 800px; margin: 18px auto 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.calc-shop-h {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-mute);
  padding: 16px 20px 12px; border-bottom: 1px solid var(--line);
}
.calc-shop-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.calc-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 20px; border-right: 1px solid var(--line);
  transition: background .14s;
}
.calc-item:last-child { border-right: none; }
.calc-item:hover { background: var(--paper-2); }
.calc-item-k {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute);
}
.calc-item-n { font-weight: 600; font-size: 14px; color: var(--ink); }
.calc-item-p { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-mute); }
.calc-item-go {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); margin-top: 4px;
}
.calc-item:hover .calc-item-go { color: var(--accent-deep); }
.calc-shop-f {
  padding: 12px 20px; border-top: 1px solid var(--line);
  background: var(--paper-2); font-size: 12px; color: var(--ink-mute);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.calc-shop-f a { text-decoration: underline; color: var(--ink); white-space: nowrap; }
@media (max-width: 700px) {
  .calc-shop-row { grid-template-columns: 1fr; }
  .calc-item { border-right: none; border-bottom: 1px solid var(--line); }
  .calc-item:last-child { border-bottom: none; }
}
/* ==== end PPS-CALC-SHOP-V1 ==== */


/* ==== PPS-CALC-RAIL-V1: shop panel as a sticky right rail ==== */
.calc-shop {
  max-width: none; margin: 0; position: sticky; top: 20px;
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,255,163,.18);
  background:
    radial-gradient(420px 200px at 20% -10%, rgba(0,255,163,.13), transparent 70%),
    linear-gradient(160deg, #0a1628 0%, #0d1d33 60%, #081221 100%);
  box-shadow: 0 18px 40px -22px rgba(10,22,40,.55);
}
.calc-shop-h {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
  padding: 16px 18px 12px; border-bottom: 1px solid rgba(250,250,247,.1);
}
.calc-shop-row { display: block; }
.calc-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 4px 10px; padding: 14px 18px;
  border-right: none; border-bottom: 1px solid rgba(250,250,247,.08);
  transition: background .14s;
}
.calc-item:last-child { border-bottom: none; }
.calc-item:hover { background: rgba(0,255,163,.06); }
.calc-item-k {
  grid-column: 1 / -1;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(250,250,247,.4);
}
.calc-item-n { font-weight: 600; font-size: 14.5px; color: var(--paper); }
.calc-item-p {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--accent);
  text-align: right; white-space: nowrap;
}
.calc-item-go {
  grid-column: 1 / -1; margin-top: 2px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(250,250,247,.45);
}
.calc-item:hover .calc-item-go { color: var(--accent); }
.calc-shop-f {
  display: block; padding: 14px 18px; border-top: 1px solid rgba(250,250,247,.1);
  background: rgba(0,0,0,.18); font-size: 11.5px; line-height: 1.55;
  color: rgba(250,250,247,.5);
}
.calc-shop-f a {
  display: inline-block; margin-top: 8px; color: var(--accent);
  text-decoration: none; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
}
.calc-shop-f a:hover { text-decoration: underline; }
@media (max-width: 980px) {
  .calc-shop { position: static; }
}
/* ==== end PPS-CALC-RAIL-V1 ==== */


/* ==== PPS-CALC-CART-V1: add-to-cart + cost per dose in the rail ==== */
.calc-item-dose {
  grid-column: 1 / -1;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .02em;
  color: rgba(0,255,163,.7); margin-top: 1px;
}
.calc-add-form { grid-column: 1 / -1; margin: 8px 0 0; }
.calc-add {
  width: 100%; cursor: pointer;
  background: var(--accent); color: var(--ink); border: 0;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600;
  padding: 9px 12px; border-radius: 8px; transition: all .14s;
}
.calc-add:hover:not(:disabled) { background: var(--accent-deep); transform: translateY(-1px); }
.calc-add:disabled { background: rgba(250,250,247,.14); color: rgba(250,250,247,.4); cursor: not-allowed; }
.calc-item .calc-item-n { text-decoration: none; }
.calc-item .calc-item-n:hover { color: var(--accent); }
/* ==== end PPS-CALC-CART-V1 ====  ==== */


/* ==== PPS-CALC-VARIANT-V1: size pickers in the rail ==== */
.calc-size {
  width: 100%; margin-bottom: 8px; cursor: pointer;
  background: rgba(250,250,247,.07); color: var(--paper);
  border: 1px solid rgba(250,250,247,.18); border-radius: 8px;
  padding: 8px 10px; font-family: var(--font-mono); font-size: 11.5px;
}
.calc-size:focus { outline: none; border-color: var(--accent); }
.calc-size option { background: #0d1d33; color: var(--paper); }
.calc-size option:disabled { color: rgba(250,250,247,.35); }
/* ==== end PPS-CALC-VARIANT-V1 ==== */


/* ==== PPS-CALC-SHARE-V1 ==== */
.calc-copy {
  display: block; width: 100%; margin-top: 10px; cursor: pointer;
  background: transparent; color: rgba(250,250,247,.75);
  border: 1px solid rgba(250,250,247,.22); border-radius: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; padding: 9px 10px; transition: all .14s;
}
.calc-copy:hover { border-color: var(--accent); color: var(--accent); }
.calc-bundle { display: block; }
.calc-bundle-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 7px 0; font-size: 13px; color: var(--paper); text-decoration: none;
}
.calc-bundle-row:hover { color: var(--accent); }
.calc-bundle-p { font-family: var(--font-mono); font-size: 11.5px; color: rgba(0,255,163,.75); white-space: nowrap; }
.pd-calc-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-mute);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px;
  transition: all .14s;
}
.pd-calc-link:hover { border-color: var(--ink); color: var(--ink); }
/* ==== end PPS-CALC-SHARE-V1 ==== */


/* ==== PPS-CALC-READ-V1: make the rail easier to read ==== */
.calc-shop-h {
  font-size: 10px; letter-spacing: .22em; padding: 18px 20px 14px;
  color: rgba(0,255,163,.85);
}
.calc-item { padding: 18px 20px; gap: 6px 12px; }
.calc-item + .calc-item { border-top: 1px solid rgba(250,250,247,.12); }
.calc-item-k {
  font-size: 9px; letter-spacing: .2em; color: rgba(250,250,247,.45);
  margin-bottom: 2px;
}
.calc-item-n { font-size: 15.5px; letter-spacing: -.01em; line-height: 1.25; }
.calc-item-p { font-size: 14px; font-weight: 500; }
.calc-item-dose {
  font-size: 11px; color: rgba(250,250,247,.55); margin-top: 3px;
  padding: 5px 9px; border-radius: 6px; background: rgba(0,255,163,.08);
  display: inline-block; justify-self: start; grid-column: 1 / -1;
}
.calc-size { margin: 10px 0 0; padding: 10px 12px; font-size: 12px; }
.calc-add-form { margin-top: 10px; }
.calc-add { padding: 11px 12px; font-size: 11px; letter-spacing: .14em; }

/* honest, readable out-of-stock rather than a ghosted button */
.calc-add:disabled {
  background: transparent; color: #ff9b6b;
  border: 1px dashed rgba(255,155,107,.5);
}

/* bundles read as links, and sit apart from the buy actions */
.calc-bundle { padding-top: 16px; padding-bottom: 16px; }
.calc-bundle-row {
  padding: 9px 12px; margin-top: 6px; border-radius: 8px;
  background: rgba(250,250,247,.04); border: 1px solid rgba(250,250,247,.08);
  font-size: 13.5px; transition: all .14s;
}
.calc-bundle-row:hover {
  background: rgba(0,255,163,.08); border-color: rgba(0,255,163,.35);
}
.calc-bundle-p { font-size: 12.5px; }

.calc-shop-f { padding: 16px 20px; font-size: 11.5px; line-height: 1.6; }
.calc-copy { margin-top: 12px; padding: 10px; font-size: 10px; }
.calc-shop-f a { margin-top: 12px; font-size: 11px; }
/* ==== end PPS-CALC-READ-V1 ==== */


/* ==== PPS-CALC-MOBILE-V1 ==== */
@media (max-width: 700px) {
  /* the page frame wastes width on a phone */
  .calc-wrapper { padding: 20px 12px 36px; gap: 14px; }
  .calc-card { padding: 18px 16px; border-radius: 12px; }
  .calc-grid { gap: 18px 14px; }

  /* 16px inputs stop iOS zooming on focus — keep them, just roomier */
  .calc-input-box input,
  .calc-input-box select { padding: 14px; min-height: 50px; font-size: 16px; }
  .calc-input-box label { font-size: 12px; letter-spacing: .6px; }

  /* rail: bigger type, real tap targets */
  .calc-shop { border-radius: 12px; }
  .calc-shop-h { font-size: 11px; padding: 16px 16px 12px; }
  .calc-item { padding: 16px; }
  .calc-item-k { font-size: 10px; letter-spacing: .16em; }
  .calc-item-n { font-size: 17px; }
  .calc-item-p { font-size: 15px; }
  .calc-item-dose { font-size: 12px; padding: 6px 10px; }

  .calc-size { min-height: 48px; font-size: 15px; padding: 12px; }
  .calc-add { min-height: 48px; font-size: 12px; letter-spacing: .1em; }
  .calc-copy { min-height: 46px; font-size: 11px; }

  .calc-bundle-row { padding: 13px 12px; font-size: 15px; min-height: 48px; align-items: center; }
  .calc-bundle-p { font-size: 13.5px; }

  .calc-shop-f { padding: 16px; font-size: 12.5px; }
  .calc-shop-f a { font-size: 12px; }

  /* result block reads too large on a narrow screen */
  .calc-result h2 { font-size: 30px; }
  .calc-details { font-size: 13px; }
  .calc-disclaimer { font-size: 11.5px; padding: 0 14px 30px; }
}

@media (max-width: 380px) {
  .calc-item-n { font-size: 16px; }
  .calc-result h2 { font-size: 26px; }
}
/* ==== end PPS-CALC-MOBILE-V1 ==== */


/* ==== PPS-CALC-SYNC-V1 ==== */
.calc-size-note {
  display: block; margin: -2px 0 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em;
  color: #ffb38a;
}
@media (max-width: 700px) { .calc-size-note { font-size: 11px; } }
/* ==== end PPS-CALC-SYNC-V1 ==== */


/* ==== PPS-CALC-REC-V1: relevant, quick-addable suggestions ==== */
.calc-rec-row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  padding: 11px 12px; margin-top: 8px; border-radius: 8px;
  background: rgba(250,250,247,.04); border: 1px solid rgba(250,250,247,.08);
  transition: all .14s;
}
.calc-rec-row:hover { background: rgba(0,255,163,.07); border-color: rgba(0,255,163,.3); }
.calc-rec-name { font-size: 13.5px; color: var(--paper); text-decoration: none; }
.calc-rec-name:hover { color: var(--accent); }
.calc-rec-why {
  grid-column: 1 / -1;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(250,250,247,.38); margin-top: 1px;
}
.calc-rec-form { grid-column: 1 / -1; margin: 8px 0 0; }
.calc-rec-add {
  width: 100%; cursor: pointer; background: transparent; color: var(--accent);
  border: 1px solid rgba(0,255,163,.4); border-radius: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; padding: 8px; transition: all .14s;
}
.calc-rec-add:hover:not(:disabled) { background: var(--accent); color: var(--ink); }
.calc-rec-add:disabled {
  color: #ff9b6b; border-color: rgba(255,155,107,.4); cursor: not-allowed;
}
@media (max-width: 700px) {
  .calc-rec-name { font-size: 15px; }
  .calc-rec-add { min-height: 44px; font-size: 11px; }
  .calc-rec-why { font-size: 10px; }
}
/* ==== end PPS-CALC-REC-V1 ==== */


/* ==== PPS-CALC-TUNE-V1 ==== */
.calc-hint {
  margin-top: 10px; font-size: 13px; line-height: 1.5;
  color: rgba(250,250,247,.75);
  background: rgba(0,255,163,.09); border: 1px solid rgba(0,255,163,.25);
  border-radius: 8px; padding: 9px 14px; display: inline-block;
}
.calc-hint b { color: var(--accent); }

.pd-complete {
  margin-top: 18px; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: var(--paper);
}
.pd-complete-h {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-mute);
  padding: 13px 16px 11px; border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.pd-complete-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px;
  align-items: center; padding: 13px 16px;
  border-top: 1px solid var(--line);
}
.pd-complete-row:first-of-type { border-top: none; }
.pd-complete-n { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.pd-complete-n:hover { text-decoration: underline; }
.pd-complete-w {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 3px;
}
.pd-complete-p { font-family: var(--font-mono); font-size: 13.5px; white-space: nowrap; }
.pd-complete-f { margin: 0; }
.pd-complete-add {
  cursor: pointer; background: var(--ink); color: var(--accent); border: 0;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; padding: 9px 16px; border-radius: 7px;
  transition: all .14s; white-space: nowrap;
}
.pd-complete-add:hover:not(:disabled) { background: var(--ink-soft); }
.pd-complete-add:disabled { background: var(--paper-2); color: var(--ink-mute); cursor: not-allowed; }
@media (max-width: 600px) {
  .pd-complete-row { grid-template-columns: 1fr auto; }
  .pd-complete-f { grid-column: 1 / -1; }
  .pd-complete-add { width: 100%; min-height: 44px; }
}
/* ==== end PPS-CALC-TUNE-V1 ==== */


/* ==== PPS-CALC-FOOT-V1: the footer should sell, not mumble ==== */
.calc-shop-f {
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,255,163,.05));
  padding: 16px 18px 18px;
}
.calc-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 14px;
}
.calc-trust-i {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center; padding: 10px 4px; border-radius: 8px;
  background: rgba(250,250,247,.05); border: 1px solid rgba(250,250,247,.09);
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(250,250,247,.5); line-height: 1.3;
}
.calc-trust-i b {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--accent);
}
.calc-copy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(0,255,163,.1); border: 1px solid rgba(0,255,163,.4);
  color: var(--accent); font-weight: 600;
}
.calc-copy:hover {
  background: var(--accent); color: var(--ink); border-color: var(--accent);
  box-shadow: 0 0 18px -4px rgba(0,255,163,.5);
}
.calc-copy-ico { font-size: 12px; filter: grayscale(1) brightness(2); }
.calc-browse {
  display: flex !important; align-items: center; justify-content: space-between;
  margin-top: 10px !important; padding: 11px 14px; border-radius: 8px;
  background: rgba(250,250,247,.05); border: 1px solid rgba(250,250,247,.12);
  color: var(--paper) !important; text-decoration: none !important;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; transition: all .14s;
}
.calc-browse span { color: var(--accent); transition: transform .14s; }
.calc-browse:hover { border-color: var(--accent); background: rgba(0,255,163,.08); }
.calc-browse:hover span { transform: translateX(3px); }
@media (max-width: 700px) {
  .calc-trust-i { font-size: 9.5px; padding: 12px 4px; }
  .calc-trust-i b { font-size: 16px; }
  .calc-browse { min-height: 46px; font-size: 11.5px; }
}
/* ==== end PPS-CALC-FOOT-V1 ==== */


/* ==== PPS-REFUND-FACEID-V1 ==== */
.rf-face {
  background: var(--ink); color: var(--accent); border: 1px solid var(--ink);
  padding: 9px 16px; border-radius: 4px; cursor: pointer;
  font-size: 12px; font-weight: 600; transition: all .14s;
}
.rf-face:hover:not(:disabled) { background: var(--ink-soft); }
.rf-face:disabled { opacity: .6; cursor: wait; }
/* ==== end PPS-REFUND-FACEID-V1 ==== */


/* ==== PPS-BROADCAST-V2 ==== */
.bc-warn { background:#fff8e6; border-left:3px solid #b3531a; padding:13px 16px;
  border-radius:var(--radius); font-size:13.5px; margin-bottom:14px; line-height:1.55; }
.bc-offer { display:flex; align-items:center; gap:14px; background:var(--ink);
  color:var(--paper); border-radius:var(--radius-lg); padding:14px 18px; margin-bottom:14px; }
.bc-offer strong { display:block; font-family:var(--font-display); font-size:19px; }
.bc-offer-k { font-family:var(--font-mono); font-size:9px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--accent); }
.bc-use { margin-left:auto; background:var(--accent); color:var(--ink); border:0;
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase;
  font-weight:600; padding:10px 18px; border-radius:8px; cursor:pointer; white-space:nowrap; }
.bc-use:hover { background:var(--accent-deep); }
.bc-live-panel { background:var(--ink); color:var(--paper); border-radius:var(--radius-lg);
  padding:16px 18px; margin-bottom:14px; }
.bc-live-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.bc-dot { width:8px; height:8px; border-radius:50%; background:var(--accent);
  animation:bcPulse 1.4s ease-in-out infinite; }
.is-done .bc-dot { animation:none; background:rgba(250,250,247,.35); }
@keyframes bcPulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.bc-bar { height:5px; background:rgba(250,250,247,.14); border-radius:3px; overflow:hidden; }
.bc-bar-fill { height:100%; width:0; background:var(--accent); transition:width .6s ease; }
.bc-live-sub { margin-top:8px; font-family:var(--font-mono); font-size:11px;
  color:rgba(250,250,247,.55); }
.bc-stop { background:transparent; border:1px solid rgba(255,155,107,.5); color:#ff9b6b;
  font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase;
  padding:6px 14px; border-radius:6px; cursor:pointer; }
.bc-stop:hover { background:rgba(255,155,107,.12); }
.bc-form .form-row { margin-bottom:18px; }
.bc-form small { display:block; margin-top:5px; font-size:12px; color:var(--ink-mute); }
.bc-two { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.bc-send { border-top:1px solid var(--line); margin-top:6px; padding-top:18px;
  display:flex; flex-direction:column; gap:14px; }
.bc-test { display:flex; align-items:center; gap:10px; font-weight:normal; }
.bc-test input { width:auto; }
.bc-liveblock { padding:14px 16px; background:var(--paper-2); border-radius:var(--radius); }
.bc-go { align-self:flex-start; }
.bc-go.bc-danger { background:#b3531a; }
.bc-go.bc-danger:hover { background:#963f0f; }
@media (max-width:700px){ .bc-two{grid-template-columns:1fr} .bc-go{width:100%;min-height:48px}
  .bc-offer{flex-wrap:wrap} .bc-use{width:100%;min-height:44px;margin-left:0} }

.bc-mail { background:transparent; border:1px solid var(--line); color:var(--ink-mute);
  padding:9px 14px; border-radius:4px; cursor:pointer; font-size:12px; transition:all .14s; }
.bc-mail:hover { border-color:var(--ink); color:var(--ink); }

/* ==== end PPS-BROADCAST-V2 ==== */


/* ==== PPS-INV-SETCOUNT-FIX ==== */
.inv-save {
  margin-left: 6px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-mute);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; padding: 7px 12px; border-radius: var(--radius);
  transition: all .14s;
}
.inv-save:hover { border-color: var(--ink); color: var(--ink); }
.inv-adjust.is-dirty .inv-save {
  background: var(--gold, #b3531a); border-color: var(--gold, #b3531a);
  color: #fff; font-weight: 600;
}
@media (max-width: 900px) { .inv-save { min-height: 40px; padding: 7px 10px; } }
/* ==== end PPS-INV-SETCOUNT-FIX ==== */


/* ==== PPS-INV-MOBILE-V1: inventory rows become cards on a phone ==== */
@media (max-width: 900px) {
  .inv-table thead { display: none; }
  .inv-table, .inv-table tbody, .inv-table tr, .inv-table td { display: block; width: 100%; }
  .inv-table tr {
    border: 1px solid var(--line); border-radius: 12px;
    margin: 0 0 12px; padding: 14px 16px; background: var(--paper);
  }
  .inv-table tr.inv-out { background: #fffafa; border-color: #f0c4c4; }
  .inv-table tr.inv-low { background: #fffdf5; border-color: #ecd9b0; }
  .inv-table td {
    border: none; padding: 7px 0; text-align: left !important;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
  }
  .inv-table td[data-l]::before {
    content: attr(data-l);
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-mute); flex: 0 0 auto;
  }
  /* product name sits on its own line, no caption */
  .inv-table td:first-child { display: block; padding-top: 0; padding-bottom: 10px;
    border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .inv-name { font-size: 16px; }
  .inv-qty { font-size: 19px; }
  .inv-sku { font-size: 12px; }

  /* the adjust control gets a full row and real tap targets */
  .inv-table td[data-l="Set exact count"] { display: block; padding-top: 12px; }
  .inv-table td[data-l="Set exact count"]::before { display: block; margin-bottom: 8px; }
  .inv-adjust { justify-content: stretch; }
  .inv-step { width: 52px; min-height: 48px; font-size: 20px; }
  .inv-input { flex: 1; min-height: 48px; font-size: 17px; width: auto; }
  .inv-save { min-height: 48px; padding: 0 18px; font-size: 11px; margin-left: 8px; }

  /* Edit button: full width under everything */
  .inv-table td:last-child { padding-top: 12px; }
  .inv-table td:last-child .dc-edit {
    display: block; text-align: center; min-height: 44px; line-height: 44px; padding: 0;
  }
  .dc-tablewrap { padding: 12px; background: transparent; border: none; box-shadow: none; }
}
/* ==== end PPS-INV-MOBILE-V1 ==== */
