/* ===== BodyHack – futuristic, mobile-first stylesheet =====
   The whole site, admin included, uses one dark "lab" theme.
   All colours come from the variables below. */
:root {
  --bg: #060912;
  --bg-2: #0a1020;
  --surface: rgba(16, 24, 42, .78);
  --surface-solid: #0f1729;
  --surface-2: #16203a;
  --line: rgba(148, 163, 184, .16);
  --line-strong: rgba(34, 211, 238, .35);
  --ink: #e8eef9;
  --ink-2: #c4cee0;
  --muted: #8a97ad;
  --primary: #22d3ee;
  --primary-hover: #67e8f9;
  --primary-ink: #03121a;
  --primary-soft: rgba(34, 211, 238, .12);
  --violet: #8b5cf6;
  --link: #67e8f9;
  --link-hover: #a5f3fc;
  --sale: #f472b6;
  --red: #f87171;
  --warn: #fbbf24;
  --ok: #34d399;
  --img-well: radial-gradient(circle at 50% 38%, #ffffff 0%, #e6ecf5 70%, #d5deeb 100%);
  --radius: 16px;
  --shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .35);
  --glow: 0 0 0 1px var(--line-strong), 0 0 28px rgba(34, 211, 238, .18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(34, 211, 238, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3, .logo, .price, .stat strong { font-family: var(--font-display); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2, .h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h3 { font-size: 1.1rem; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
[hidden] { display: none !important; }
/* Honeypot form field: invisible to people, but bots fill it in */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: rgba(34, 211, 238, .35); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 920px; }
.section { padding-top: 32px; padding-bottom: 32px; }
.section-sm { margin-top: 28px; }
.section-tint { background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .05) 20%, rgba(139, 92, 246, .05) 80%, transparent); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head a { font-weight: 500; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { text-align: right; flex-shrink: 0; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.error-text { color: var(--red); }
.warn-text { color: var(--warn); }
.empty { text-align: center; padding: 40px 16px; }
.stack > * + * { margin-top: 10px; }
.gradient-text { background: linear-gradient(90deg, #22d3ee, #a78bfa 60%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: var(--primary-ink); border: 1.5px solid var(--primary);
  font: inherit; font-weight: 700; font-size: .95rem; padding: 10px 20px; border-radius: 12px;
  cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .2s, transform .05s; min-height: 44px;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.btn:not(.btn-ghost):not(.btn-danger):not(:disabled):hover { box-shadow: 0 0 24px rgba(34, 211, 238, .45); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--surface-2); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--link); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--link-hover); border-color: var(--primary); }
.btn-light { background: #fff; color: #03121a; border-color: #fff; }
.btn-light:hover { background: #e0fbff; color: #03121a; border-color: #e0fbff; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(248, 113, 113, .45); }
.btn-danger:hover { background: rgba(248, 113, 113, .1); color: var(--red); border-color: var(--red); }
.btn-sm { padding: 6px 14px; font-size: .85rem; min-height: 36px; border-radius: 10px; }
.btn-lg { padding: 13px 26px; font-size: 1.02rem; min-height: 52px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; }

/* ----- Header ----- */
.announce { background: linear-gradient(90deg, #0b1a2e, #1b1240); color: #a5f3fc; text-align: center; font-size: .78rem; letter-spacing: .04em; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.site-header { background: rgba(6, 9, 18, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo actions" "search search"; align-items: center; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--primary); font-weight: 700; }
.search { grid-area: search; display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search input[type=search] { flex: 1; border: 0; background: transparent; padding: 10px 16px; font: inherit; min-width: 0; outline: none; color: var(--ink); box-shadow: none; }
.search button { border: 0; background: transparent; padding: 0 14px; color: var(--muted); cursor: pointer; }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: 2px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--primary); }
.icon-label { display: none; font-size: .9rem; font-weight: 500; }
.badge { background: linear-gradient(135deg, #22d3ee, #8b5cf6); color: #fff; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; padding: 0 5px; text-align: center; }
.icon-btn .badge { position: absolute; top: 2px; right: 0; }
.badge.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.4); } }

.cat-nav { border-top: 1px solid var(--line); }
.cat-nav-inner { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a { flex-shrink: 0; padding: 6px 14px; border-radius: 10px; font-size: .86rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); white-space: nowrap; }
.cat-nav a:hover { border-color: var(--line-strong); color: var(--ink); }
.cat-nav a.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

@media (min-width: 760px) {
  .header-row { grid-template-columns: auto 1fr auto; grid-template-areas: "logo search actions"; gap: 24px; }
  .search { max-width: 560px; width: 100%; justify-self: center; }
  .icon-label { display: inline; }
}

/* ----- Flash / toast ----- */
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; font-size: .95rem; border: 1px solid; }
.flash-success { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); color: #a7f3d0; }
.flash-error { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.flash-info { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .35); color: #a5f3fc; }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 100; background: #0f1729; color: #fff; border: 1px solid var(--line-strong); padding: 12px 18px; border-radius: 12px; box-shadow: 0 0 30px rgba(34, 211, 238, .25); font-size: .95rem; max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; }
.toast a { color: #67e8f9; font-weight: 600; white-space: nowrap; }
@media (min-width: 760px) { .toast { bottom: 24px; } }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { /* faint tech grid */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; gap: 8px; padding-top: 36px; padding-bottom: 28px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 600; color: var(--primary); margin: 0 0 14px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--primary-soft); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); max-width: 15ch; letter-spacing: -.035em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-stats { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); letter-spacing: 0; text-transform: none; }
.hero-art { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; padding-top: 64px; padding-bottom: 64px; }
}

/* Interactive 3D hero (public/js/hero3d.js) */
.hero-3d { max-width: 620px; }
.hero-3d canvas { display: block; width: 100%; aspect-ratio: 560 / 480; touch-action: pan-y; cursor: default; user-select: none; -webkit-user-select: none; }
.hero-3d canvas.grabbing { cursor: grabbing !important; }
.hero-art-caption { margin: 4px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
.hero-art-caption strong { color: #fbbf24; }
.drag-hint { color: var(--primary); font-weight: 600; }

/* Hero artwork animation: rotating DNA helix + floating molecule */
.helix .rung { transform-box: fill-box; transform-origin: center; animation: helix 3.6s ease-in-out infinite; }
@keyframes helix { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
.molecule { animation: float 7s ease-in-out infinite; }
.molecule-2 { animation: float 9s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-12px); } }
.orbit { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.atom-glow { animation: pulse 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .helix .rung, .molecule, .molecule-2, .orbit, .atom-glow, .eyebrow::before { animation: none; }
}

/* ----- Trust strip ----- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.trust-item { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.trust-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; color: var(--primary); }
.trust-item strong { display: block; font-size: .88rem; }
.trust-item small { color: var(--muted); font-size: .78rem; }
@media (max-width: 559px) { .trust-item { flex-direction: column; align-items: flex-start; gap: 8px; } }
@media (min-width: 860px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* ----- Category tiles ----- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; text-align: center; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .2s, border-color .2s; }
.cat-tile:hover { transform: translateY(-3px); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--glow); }
.cat-img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, rgba(34, 211, 238, .25), rgba(139, 92, 246, .15) 60%, transparent 75%); border: 1px solid var(--line-strong); display: grid; place-items: center; margin: 0 auto 12px; max-width: 104px; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-img span { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--primary); text-shadow: 0 0 18px rgba(34, 211, 238, .6); }
.cat-tile strong { display: block; font-size: .95rem; }
.cat-tile small { color: var(--muted); }

/* ----- Product grid & cards ----- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--glow); }
.card-img { position: relative; display: block; text-decoration: none; aspect-ratio: 1; background: var(--img-well); margin: 8px 8px 0; border-radius: 12px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.tags { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; letter-spacing: .02em; }
.tag-sale { background: var(--sale); color: #fff; }
.tag-video { background: rgba(6, 9, 18, .85); color: #67e8f9; border: 1px solid rgba(34, 211, 238, .4); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); text-decoration: none; opacity: .85; }
.card-title { font-family: var(--font); font-size: .95rem; font-weight: 600; margin: 0; flex: 1; letter-spacing: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--primary); }
.price { font-weight: 700; font-size: 1.08rem; margin: 2px 0 8px; }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 6px; }
.price-lg { font-size: 1.8rem; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.price-lg .tag { font-size: .8rem; font-family: var(--font); }

.img-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(34, 211, 238, .18), transparent 65%), linear-gradient(160deg, #101a30, #0a0f1d); color: var(--primary); }
.img-placeholder svg { filter: drop-shadow(0 0 8px rgba(34, 211, 238, .5)); }
.img-placeholder span { font-size: .8rem; font-weight: 600; color: var(--ink-2); }

/* ----- Shop page ----- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-head h1 { margin-bottom: 4px; }
.shop-head p { margin: 0; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }

/* ----- Product page ----- */
.product { display: grid; gap: 24px; }
@media (min-width: 860px) { .product { grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; } .gallery { position: sticky; top: 140px; } }
.gallery-main { background: var(--img-well); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; box-shadow: var(--glow); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { width: 68px; height: 68px; flex-shrink: 0; border: 2px solid transparent; border-radius: 12px; background: var(--img-well); padding: 2px; cursor: pointer; }
.thumb.active { border-color: var(--primary); box-shadow: 0 0 12px rgba(34, 211, 238, .4); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { margin-top: 4px; }
.product-info > * + * { margin-top: 14px; }
.stock { font-weight: 600; font-size: .9rem; margin: 0; }
.stock.in { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--red); }
.buy-box { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.qty button { border: 0; background: transparent; width: 42px; height: 50px; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--primary-soft); color: var(--primary); }
.qty input[type=number] { width: 42px; border: 0; padding: 0; text-align: center; font: inherit; font-weight: 600; background: transparent; color: var(--ink); box-shadow: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 34px; height: 36px; }
.qty-sm input[type=number] { width: 34px; }
.video-link { display: inline-block; font-weight: 600; text-decoration: none; }
.perks { list-style: none; padding: 14px 16px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: .9rem; display: grid; gap: 8px; color: var(--ink-2); }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--primary); box-shadow: 0 0 8px var(--primary); flex-shrink: 0; }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(10, 15, 29, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .2s; }
.sticky-buy.show { transform: none; }
.sticky-buy div { min-width: 0; }
.sticky-buy strong { font-family: var(--font-display); }
.sticky-buy small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 860px) { .sticky-buy { display: none; } }

.prose { max-width: 72ch; color: var(--ink-2); }
.prose h1, .prose h2, .prose h3, .prose strong { color: var(--ink); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--primary); }

/* ----- Videos ----- */
.video-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-grid-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.video { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.video:hover { border-color: var(--line-strong); box-shadow: var(--glow); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; width: 100%; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .15s; }
.video-thumb:hover .play { transform: scale(1.08); }
.video figcaption { padding: 12px 14px; display: grid; gap: 2px; font-size: .92rem; }
.video figcaption a { font-size: .85rem; font-weight: 600; text-decoration: none; }

.video-thumb video { width: 100%; height: 100%; object-fit: cover; opacity: .85; pointer-events: none; }

/* "Watch the explainer video" button on the product page */
.video-cta { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(34, 211, 238, .12), rgba(139, 92, 246, .14)); transition: box-shadow .2s, border-color .2s; }
.video-cta:hover { border-color: var(--primary); box-shadow: var(--glow); }
.video-cta strong { display: block; }
.video-cta small { color: var(--muted); font-size: .82rem; }
.video-cta-icon { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); box-shadow: 0 0 18px rgba(34, 211, 238, .5); }
.gallery-main { position: relative; }
.gallery-video-btn { position: absolute; left: 14px; bottom: 14px; border: 1px solid rgba(34, 211, 238, .5); background: rgba(6, 9, 18, .82); color: #67e8f9; font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 10px; cursor: pointer; backdrop-filter: blur(6px); }
.gallery-video-btn:hover { background: rgba(6, 9, 18, .95); color: #fff; }

/* Pop-up video player */
.video-modal { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line-strong); border-radius: 18px;
  background: #0b1222; color: #e8eef9; box-shadow: 0 0 60px rgba(34, 211, 238, .25); overflow: auto; }
.video-modal::backdrop { background: rgba(2, 4, 10, .82); backdrop-filter: blur(6px); }
.video-modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.video-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; }
.video-modal-head strong { font-family: var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(148, 163, 184, .3); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.video-close:hover { background: rgba(248, 113, 113, .2); border-color: #f87171; }
.video-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-stage iframe, .video-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-playlist { display: flex; gap: 10px; overflow-x: auto; padding: 12px; }
.video-playlist button { flex: 0 0 160px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 10px; background: rgba(255, 255, 255, .04); color: #c4cee0; padding: 0; cursor: pointer; overflow: hidden; text-align: left; font: inherit; font-size: .8rem; }
.video-playlist button.active { border-color: #22d3ee; color: #fff; box-shadow: 0 0 14px rgba(34, 211, 238, .35); }
.video-playlist img, .video-playlist video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; pointer-events: none; }
.video-playlist span { display: block; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.modal-open { overflow: hidden; }
@media (max-width: 600px) { .video-modal { width: 100vw; max-width: 100vw; border-radius: 0; border-left: 0; border-right: 0; } }

/* ----- Batch lab results ("Lab tested" badge + pop-up) ----- */
.card { position: relative; }
.chip-stack { position: absolute; z-index: 2; right: 16px; top: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.chip-stack-lg { right: 14px; top: 14px; }
.coa-chip { display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font: inherit; font-size: .72rem; font-weight: 700; color: #a7f3d0; padding: 5px 9px; border-radius: 9px;
  background: rgba(6, 9, 18, .85); border: 1px solid rgba(52, 211, 153, .6); box-shadow: 0 0 14px rgba(52, 211, 153, .3); backdrop-filter: blur(6px); transition: transform .15s, box-shadow .2s; }
.coa-chip:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(52, 211, 153, .5); color: #fff; }
@media (max-width: 480px) { .card .coa-chip span { display: none; } .card .coa-chip { font-size: .85rem; padding: 5px 7px; } }
.chip-stack-lg .coa-chip { font-size: .85rem; padding: 7px 12px; }
.mix-chip { color: #a5f3fc; border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 14px rgba(34, 211, 238, .3); }
.mix-chip:hover { box-shadow: 0 0 20px rgba(34, 211, 238, .5); }
.mix-admin { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.mix-admin h3 { margin-bottom: 4px; }
.mix-cta { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(34, 211, 238, .45); background: linear-gradient(120deg, rgba(34, 211, 238, .1), rgba(52, 211, 153, .08)); transition: box-shadow .2s; }
.mix-cta:hover { box-shadow: var(--glow); }
.mix-cta strong { display: block; }
.mix-cta small { color: var(--muted); font-size: .82rem; }
.mix-cta > span:last-child { margin-left: auto; color: #67e8f9; }
.mix-cta-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(34, 211, 238, .15); font-size: 1.3rem; }
.coa-modal { width: min(760px, calc(100vw - 24px)); }
.coa-body { padding: 0 20px 20px; }
.coa-badge-lg { display: inline-block; font-size: .78rem; font-weight: 700; color: #a7f3d0; border: 1px solid rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .1); border-radius: 999px; padding: 4px 12px; }
.coa h2 { margin: 10px 0 12px; }
.coa-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.coa-meta div { border: 1px solid rgba(148, 163, 184, .2); border-radius: 10px; padding: 7px 12px; background: rgba(255, 255, 255, .03); }
.coa-meta dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #8a97ad; }
.coa-meta dd { margin: 0; font-weight: 600; }
.coa-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .93rem; }
.coa-table th, .coa-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid rgba(148, 163, 184, .16); }
.coa-table th { color: #c4cee0; font-weight: 500; width: 45%; }
.coa-table td { color: #6ee7b7; font-weight: 600; }
.coa-pdf { width: 100%; height: 60vh; border: 1px solid rgba(148, 163, 184, .2); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.coa-img { width: 100%; border-radius: 12px; margin-bottom: 10px; background: #fff; }
.coa-current { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid rgba(52, 211, 153, .45); border-radius: 12px; background: rgba(52, 211, 153, .08); }

/* ----- Trial results simulator ----- */
.sim-cta { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(52, 211, 153, .45); background: linear-gradient(120deg, rgba(52, 211, 153, .12), rgba(34, 211, 238, .08)); transition: box-shadow .2s; }
.sim-cta:hover { color: var(--ink); box-shadow: 0 0 26px rgba(52, 211, 153, .25); }
.sim-cta strong { display: block; }
.sim-cta small { color: var(--muted); font-size: .82rem; }
.sim-cta > span:last-child { margin-left: auto; color: #6ee7b7; font-size: 1.2rem; }
.sim-cta-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(52, 211, 153, .15); font-size: 1.3rem; }
.sim-card { text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.sim-card:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: var(--glow); }
.sim-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sim-head h1 { margin-bottom: 6px; }
.sim-warning { margin: 16px 0 20px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); color: #fde68a; font-size: .92rem; }
.sim-warning a { color: #fde68a; }
.sim-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .sim-grid { grid-template-columns: 280px 1fr 300px; align-items: start; } }
.sim-controls, .sim-stage, .sim-chart-wrap, .sim-disclaimer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sim-stage { border-color: var(--line-strong); position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(34, 211, 238, .12), transparent 60%), var(--surface); }
.sim-controls .h3 { font-size: 1rem; margin-top: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { font: inherit; font-size: .9rem; padding: 8px 16px; background: var(--surface-2); color: var(--ink-2); border: 0; cursor: pointer; }
.seg button.active { background: var(--primary); color: var(--primary-ink); font-weight: 600; }
#sim-body { width: 100%; max-height: 460px; display: block; }
#sim-body .sim-grid-lines line { stroke: rgba(148, 163, 184, .08); }
#sim-body .sim-before path, #sim-body .sim-before circle { fill: rgba(167, 139, 250, .06); stroke: #a78bfa; stroke-width: 1.4; stroke-dasharray: 5 4; opacity: .8; }
#sim-body .sim-after path, #sim-body .sim-after circle { fill: url(#simFill); stroke: #22d3ee; stroke-width: 1.8; }
#sim-body .sim-scan-fill { fill: url(#simScan); pointer-events: none; }
#sim-body .sim-scanline { stroke: #67e8f9; stroke-width: 1.5; opacity: .7; animation: sim-scan 4s ease-in-out infinite; }
@keyframes sim-scan { 0%, 100% { transform: translateY(0); opacity: 0; } 10%, 90% { opacity: .7; } 50% { transform: translateY(395px); } }
@media (prefers-reduced-motion: reduce) { #sim-body .sim-scanline { animation: none; opacity: 0; } }
#sim-body .sim-label { fill: var(--muted); font: 600 11px Inter, sans-serif; letter-spacing: .14em; }
#sim-body .sim-value { fill: #67e8f9; font: 700 22px 'Space Grotesk', sans-serif; }
#sim-body .sim-value-before { fill: #c4b5fd; }
.sim-key { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); margin-top: -6px; }
.sim-key span { display: inline-block; width: 18px; height: 10px; border-radius: 3px; margin-left: 8px; }
.k-before { border: 1.5px dashed #a78bfa; }
.k-after { background: linear-gradient(90deg, #22d3ee, #8b5cf6); }
.sim-timeline { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.sim-timeline .btn { white-space: nowrap; flex-shrink: 0; }
.sim-timeline input[type=range] { flex: 1; accent-color: var(--primary); }
.sim-timeline output { min-width: 96px; text-align: right; color: var(--ink-2); }
.sim-stats { display: grid; gap: 10px; }
.sim-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.sim-stat small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sim-stat strong { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.sim-stat span { font-size: .82rem; color: var(--ink-2); }
.sim-stat-main { border-color: var(--line-strong); background: linear-gradient(135deg, rgba(34, 211, 238, .14), transparent 70%), var(--surface); }
.sim-stat-main strong { font-size: 2rem; color: #67e8f9; }
.sim-stat.good strong { color: #6ee7b7; }
.sim-basis { font-size: .85rem; color: var(--ink-2); margin: 4px 0 0; }
.sim-track { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 16px; }
#sim-chart { width: 100%; height: auto; display: block; }
#sim-chart .sim-axes line { stroke: rgba(148, 163, 184, .12); }
#sim-chart .sim-axes text { fill: var(--muted); font: 11px Inter, sans-serif; }
#sim-chart .sim-now { stroke: rgba(103, 232, 249, .35); stroke-dasharray: 3 4; }
#sim-chart .sim-line { fill: none; stroke: rgba(167, 139, 250, .5); stroke-width: 1.8; cursor: pointer; }
#sim-chart .sim-line.placebo { stroke: #94a3b8; stroke-dasharray: 6 5; }
#sim-chart .sim-line.sel { stroke: #22d3ee; stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .7)); }
#sim-chart .sim-marker { fill: #fff; stroke: #22d3ee; stroke-width: 3; }
#sim-chart .sim-actual { fill: none; stroke: #f0abfc; stroke-width: 2; }
#sim-chart .sim-actual-dot { fill: #f0abfc; stroke: #0b1222; stroke-width: 1.5; }
.sim-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.sim-legend-item { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .82rem; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.sim-legend-item .swatch { width: 14px; height: 3px; border-radius: 2px; background: #a78bfa; }
.sim-legend-item.placebo .swatch { background: #94a3b8; }
.sim-legend-item.actual .swatch { background: #f0abfc; }
.sim-legend-item.actual { cursor: default; }
.sim-legend-item.sel { border-color: var(--primary); color: var(--ink); }
.sim-legend-item.sel .swatch { background: #22d3ee; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.sim-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.sim-table th, .sim-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.sim-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface); }
.sim-table tbody tr { cursor: pointer; }
.sim-table tbody tr:hover { background: var(--surface-2); }
.sim-table tr.sel { background: var(--primary-soft); }
.sim-table tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--primary); font-weight: 600; }
.sim-table tr.placebo td { color: var(--muted); }
.sim-disclaimer { border-color: rgba(251, 191, 36, .35); }
.sim-disclaimer p { color: var(--ink-2); margin: 0; }
.study-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--surface-2); }

/* ----- Category animation banner ----- */
.cat-hero { display: grid; gap: 22px; align-items: center; margin-bottom: 26px; padding: 22px; border-radius: 22px; border: 1px solid var(--line-strong);
  background: radial-gradient(600px 260px at 100% 0%, rgba(139, 92, 246, .22), transparent 70%), radial-gradient(500px 240px at 0% 100%, rgba(34, 211, 238, .14), transparent 70%), var(--surface); }
@media (min-width: 860px) { .cat-hero { grid-template-columns: 1fr 1.25fr; padding: 30px; } }
.cat-hero h1 { margin-bottom: 8px; }
.cat-hero-caption { color: var(--primary); font-weight: 600; font-size: .92rem; }
.cat-hero-media { display: grid; gap: 12px; }
.cat-hero-loop { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #000; box-shadow: var(--glow); }
.cat-video-fields { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.cat-video-current video { width: 100%; max-width: 360px; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; display: block; }
.cat-badge { display: inline-block; margin-top: 6px; font-size: .7rem; font-weight: 700; color: #c4b5fd; border: 1px solid rgba(139, 92, 246, .5); border-radius: 8px; padding: 2px 7px; }

/* ----- Product details, how-to & research ----- */
.card-meta { font-size: .78rem; color: var(--muted); margin-top: -2px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.spec { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: var(--surface); }
.spec small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.spec strong { font-size: .92rem; font-weight: 600; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-link { font: inherit; font-size: .88rem; font-weight: 600; color: var(--link); text-decoration: none; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--primary-soft); cursor: pointer; }
.quick-link:hover { color: var(--link-hover); border-color: var(--primary); }
.howto { display: grid; gap: 20px; align-items: start; }
@media (min-width: 860px) { .howto-split { grid-template-columns: 1fr 1fr; } }
.howto-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px; }
.video-grid-1 { grid-template-columns: 1fr !important; }
.research { display: grid; gap: 20px; }
@media (min-width: 860px) { .research { grid-template-columns: 1fr 1fr; } }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.link-list a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.link-list a:hover { border-color: var(--line-strong); box-shadow: var(--glow); color: var(--ink); }
.link-list strong { display: block; font-weight: 600; font-size: .93rem; }
.link-list small { color: var(--muted); font-size: .8rem; }
.link-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-soft); border: 1px solid var(--line-strong); }

/* ----- Lab testing ----- */
.cat-nav a.nav-lab { border-color: rgba(139, 92, 246, .5); color: #c4b5fd; }
.cat-nav a.nav-lab.active, .cat-nav a.nav-lab:hover { background: rgba(139, 92, 246, .15); border-color: #a78bfa; color: #ede9fe; }
.lab-band { display: grid; gap: 18px; align-items: center; text-decoration: none; color: var(--ink); padding: 26px 24px; border-radius: 20px; border: 1px solid rgba(139, 92, 246, .45);
  background: radial-gradient(600px 220px at 100% 0%, rgba(139, 92, 246, .3), transparent 70%), radial-gradient(500px 200px at 0% 100%, rgba(34, 211, 238, .18), transparent 70%), #0d1426; transition: box-shadow .2s; }
.lab-band:hover { color: var(--ink); box-shadow: 0 0 40px rgba(139, 92, 246, .3); }
.lab-band h2 { margin: 10px 0 6px; }
.lab-band p { margin: 0; color: var(--ink-2); }
.lab-band-icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; color: #c4b5fd; background: rgba(139, 92, 246, .15); border: 1px solid rgba(139, 92, 246, .5); box-shadow: 0 0 24px rgba(139, 92, 246, .35); }
@media (min-width: 860px) { .lab-band { grid-template-columns: auto 1fr auto; padding: 30px 34px; } }
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step h3 { margin: 10px 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; background: linear-gradient(90deg, #22d3ee, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.test-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.test-list li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.test-list span { color: var(--muted); font-size: .88rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 8px; background: var(--surface); }
.faq summary { margin: 0; }
.faq p { margin: 8px 0 0; color: var(--ink-2); font-size: .93rem; }
.panel-dark { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 16px 18px; }
.test-options { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .test-options { grid-template-columns: 1fr 1fr; } }
.test-options.has-error .test-option { border-color: rgba(248, 113, 113, .5); }
.test-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .15s; }
.test-option:hover { border-color: var(--line-strong); }
.test-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.test-option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.test-option strong { display: block; font-size: .93rem; }
.test-option small { color: var(--muted); font-size: .8rem; }
.lab-form .check span { font-weight: 400; }
.prewrap { white-space: pre-wrap; word-wrap: break-word; }
.ref-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--primary); }
.ref-big { font: 700 1.8rem/1 ui-monospace, Consolas, monospace; letter-spacing: .14em; color: var(--primary); text-shadow: 0 0 18px rgba(34, 211, 238, .45); margin: 6px 0 12px; }
.ship-box { border-color: var(--line-strong); margin-bottom: 18px; }
.ship-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .ship-grid { grid-template-columns: 1fr 1fr; } }
.ship-address { font-size: 1.05rem; color: var(--ink); margin: 4px 0 14px; }
.lab-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.progress-5 { grid-template-columns: repeat(5, 1fr); }
.verdict { border-radius: 18px; padding: 22px; margin-bottom: 18px; border: 1px solid var(--line-strong); background: var(--surface); }
.verdict h2 { margin: 4px 0 10px; }
.verdict-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.verdict-pass { border-color: rgba(52, 211, 153, .6); background: linear-gradient(135deg, rgba(52, 211, 153, .14), transparent 60%), var(--surface); }
.verdict-pass h2 { color: #6ee7b7; }
.verdict-partial { border-color: rgba(251, 191, 36, .6); background: linear-gradient(135deg, rgba(251, 191, 36, .12), transparent 60%), var(--surface); }
.verdict-partial h2 { color: #fcd34d; }
.verdict-fail { border-color: rgba(248, 113, 113, .6); background: linear-gradient(135deg, rgba(248, 113, 113, .14), transparent 60%), var(--surface); }
.verdict-fail h2 { color: #fca5a5; }

/* ----- CTA ----- */
.cta-band { position: relative; overflow: hidden; border-radius: 20px; padding: 30px 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  background: radial-gradient(600px 200px at 0% 0%, rgba(34, 211, 238, .25), transparent 70%), radial-gradient(500px 220px at 100% 100%, rgba(139, 92, 246, .35), transparent 70%), #0d1426;
  border: 1px solid var(--line-strong); }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; color: var(--ink-2); }

/* ----- Cart & checkout ----- */
.cart-layout { display: grid; gap: 20px; }
@media (min-width: 860px) { .cart-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.cart-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; align-items: start; }
.cart-item.unavailable { border-color: rgba(248, 113, 113, .6); }
.cart-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--img-well); display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-thumb .img-placeholder svg { width: 30px; }
.cart-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.cart-line { font-weight: 700; font-family: var(--font-display); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.summary > * + * { margin-top: 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 1.15rem; }
.mini-items { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; font-size: .92rem; }
.mini-items li { display: flex; justify-content: space-between; gap: 12px; }
.test-note { display: inline-block; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .4); color: var(--warn); padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: .8rem; }
address { font-style: normal; line-height: 1.6; }

/* ----- Forms ----- */
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }
.fields { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } .field.wide { grid-column: 1 / -1; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:disabled { opacity: .6; }
textarea { resize: vertical; }
.has-error input, .has-error select { border-color: var(--red); }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; color: var(--ink-2); }
details { margin: 8px 0 14px; }
summary { cursor: pointer; font-weight: 600; color: var(--link); margin-bottom: 10px; }

.auth { display: flex; justify-content: center; }
.auth-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 30px 24px; box-shadow: var(--glow); width: 100%; max-width: 420px; }

/* ----- Order status ----- */
.order-hero { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 18px; margin-bottom: 18px; }
.order-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 1.8rem; background: var(--surface-2); border: 1px solid var(--line); }
.order-hero.success .order-icon { background: var(--primary); color: var(--primary-ink); box-shadow: 0 0 30px rgba(34, 211, 238, .5); border: 0; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 18px; text-align: center; font-size: .82rem; color: var(--muted); }
.progress li { position: relative; padding-top: 26px; }
.progress li span { position: absolute; top: 0; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); z-index: 1; }
.progress li::before { content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress li.done { color: var(--primary); font-weight: 600; }
.progress li.done span { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 12px var(--primary); }
.progress li.done::before { background: var(--primary); }

/* ----- Lists & status pills ----- */
.list { list-style: none; padding: 0; margin: 0; }
.list > li + li { border-top: 1px solid var(--line); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; color: var(--ink); text-decoration: none; }
a.list-row:hover { background: var(--surface-2); color: var(--ink); }
.list-row.unread strong, .list-row.unread > span:first-child { font-weight: 700; }
.list-row.unread { box-shadow: inset 3px 0 0 var(--primary); padding-left: 12px; }
.status { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.status-pending { background: rgba(148, 163, 184, .12); color: #a3afc2; }
.status-paid { background: rgba(251, 191, 36, .12); color: #fcd34d; border-color: rgba(251, 191, 36, .3); }
.status-packed { background: rgba(96, 165, 250, .12); color: #93c5fd; border-color: rgba(96, 165, 250, .3); }
.status-shipped { background: rgba(34, 211, 238, .12); color: #67e8f9; border-color: rgba(34, 211, 238, .3); }
.status-delivered { background: rgba(52, 211, 153, .15); color: #6ee7b7; border-color: rgba(52, 211, 153, .35); }
.status-cancelled { background: rgba(248, 113, 113, .12); color: #fca5a5; border-color: rgba(248, 113, 113, .3); }
.chip { display: inline-block; background: var(--primary-soft); border: 1px solid var(--line-strong); padding: 4px 12px; border-radius: 999px; font-size: .88rem; margin: 0 0 12px; }

/* ----- Messaging ----- */
.chat { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.bubble.mine { align-self: flex-end; background: linear-gradient(135deg, #0891b2, #6d28d9); color: #fff; border: 0; border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-meta { font-size: .75rem; opacity: .75; margin-bottom: 3px; }
.bubble-body { white-space: pre-wrap; word-wrap: break-word; }
.bubble .attachment { display: inline-block; margin-top: 8px; color: inherit; font-weight: 600; }
.attachment-img { margin-top: 8px; max-height: 240px; border-radius: 10px; }
.reply-form { background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px; position: sticky; bottom: 8px; }
.reply-form textarea { border: 0; padding: 6px; box-shadow: none; background: transparent; }
.reply-form textarea:focus { box-shadow: none; }
.reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.file-label { cursor: pointer; color: var(--link); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 4px; align-items: center; max-width: 60%; }
.file-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-label input { display: none; }
.message-form { margin-bottom: 20px; }

/* ----- Footer ----- */
.site-footer { background: #04060c; border-top: 1px solid var(--line); color: var(--muted); margin-top: 56px; padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: 6px; }
.site-footer h4 { color: #fff; margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a, .site-footer .link-btn { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.site-footer a:hover, .site-footer .link-btn:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; font-size: .8rem; }
.disclaimer { color: #6b778c; }
body:has(.sticky-buy) .site-footer { padding-bottom: 90px; }

/* ===== Admin ===== */
.admin-bar { background: rgba(6, 9, 18, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 16px; position: sticky; top: 0; z-index: 50; }
.admin-bar .logo { color: #fff; font-size: 1.1rem; }
.admin-bar .logo small { color: #67e8f9; font-weight: 500; font-size: .8rem; }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; align-items: center; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a, .admin-nav .link-btn { color: #c3cbd8; text-decoration: none; padding: 7px 12px; border-radius: 8px; white-space: nowrap; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.admin-nav a:hover { background: var(--surface-2); color: #fff; }
.admin-nav a.active { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px var(--line-strong); }
.admin-nav form { margin-left: auto; }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.panel h2 { font-size: 1.15rem; }
.narrow-panel { max-width: 560px; }
.admin-cols { display: grid; gap: 0 18px; }
@media (min-width: 900px) { .admin-cols { grid-template-columns: 1fr 1fr; align-items: start; } .admin-cols.wide-left { grid-template-columns: 1.7fr 1fr; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .2s, box-shadow .2s; text-decoration: none; color: var(--ink); }
.stat strong { display: block; font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .85rem; }
a.stat:hover { border-color: var(--line-strong); box-shadow: var(--glow); color: var(--ink); }
.stat-alert { border-color: rgba(251, 191, 36, .55); background: linear-gradient(135deg, rgba(251, 191, 36, .14), transparent 70%), var(--surface); }
.stat-alert strong { color: var(--warn); }
.checklist { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 0; }
.checklist li::before { content: '○ '; color: var(--muted); font-weight: 700; }
.checklist li.done { color: var(--muted); text-decoration: line-through; }
.checklist li.done::before { content: '✓ '; color: var(--ok); }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.tabs a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; white-space: nowrap; font-size: .9rem; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.tabs a.active { background: var(--primary); color: var(--primary-ink); }
.filter-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-bar input[type=search] { flex: 1; min-width: 200px; }
.filter-bar select { width: auto; }
.row-with-thumb { display: flex; gap: 12px; align-items: center; min-width: 0; }
.thumb-sm { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--primary-soft); display: grid; place-items: center; flex-shrink: 0; color: var(--primary); font-weight: 700; }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.photo-grid, .preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.preview-grid { margin: 10px 0; }
.preview-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.photo { position: relative; background: var(--bg); border-radius: 12px; overflow: hidden; }
.photo img { aspect-ratio: 1; object-fit: contain; width: 100%; background: var(--img-well); }
.photo .tag { position: absolute; top: 6px; left: 6px; }
.photo-actions { display: flex; gap: 6px; padding: 6px; flex-wrap: wrap; justify-content: center; }
.danger-zone { border-color: rgba(248, 113, 113, .45); }
.address { font: inherit; background: var(--bg); padding: 12px 14px; border-radius: 10px; white-space: pre-wrap; margin: 0 0 10px; font-size: 1.02rem; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; word-break: break-all; }
.pack-list li { font-size: 1rem; padding: 4px 0; }
.list-row.is-hidden .thumb-sm, .list-row.is-hidden strong { opacity: .55; }
.list-row .row-actions { justify-content: flex-end; }
.list > li.list-row { flex-wrap: wrap; }
.product-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-row .list-row { flex: 1; min-width: 240px; }
.product-row .status { margin-top: 4px; }
.stock-form { display: flex; align-items: center; gap: 6px; padding: 8px 4px; }
.stock-form input[type=number] { width: 84px; padding: 7px 10px; }

/* ----- Lab certificate pop-up details & terms ----- */
.coa-spec { display: block; font-size: .75rem; color: #8a97ad; font-weight: 400; }
.coa-table td.coa-fail { color: #fca5a5; }
.lab-details { border: 1px solid var(--line-strong); border-radius: 12px; padding: 4px 16px; background: var(--surface); }
.test-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.test-row { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr auto auto; gap: 6px; align-items: center; }
.test-row input, .test-row select { padding: 8px 10px; font-size: .9rem; }
@media (max-width: 700px) { .test-row { grid-template-columns: 1fr 1fr; } .test-row input:first-child { grid-column: 1 / -1; } }
.new-product-box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px 14px 0; margin-bottom: 14px; }
.cert-logo-preview { background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 12px; min-height: 60px; display: flex; align-items: center; }
.cert-logo-preview img { max-height: 60px; }
/* Batch records: BodyHack certificate + the lab's own certificate, side by side */
.record { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.record-old { opacity: .6; }
.record-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.record-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
@media (max-width: 560px) { .record-docs { grid-template-columns: 1fr; } }
.record-doc { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); text-decoration: none; }
a.record-doc:hover { border-color: var(--primary); color: var(--ink); }
.record-doc strong { display: block; font-size: .88rem; }
.record-doc small { color: var(--muted); font-size: .76rem; word-break: break-all; }
.record-icon { font-size: 1.3rem; }
.record-missing { border-style: dashed; border-color: rgba(251, 191, 36, .5); }


/* Lab test prices */
.test-price { float: right; color: var(--accent, #3ee0c5); font-weight: 600; }
.test-total { margin-top: 12px; font-size: 1.05rem; }
.pay-box { margin: 18px 0; }
.pay-box .num { text-align: right; white-space: nowrap; }

/* Testable compounds */
.compound-verdict { margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line, rgba(255,255,255,.12)); }
.compound-verdict.is-yes { border-color: rgba(62, 224, 197, .5); background: rgba(62, 224, 197, .08); }
.compound-verdict.is-no { border-color: rgba(255, 99, 99, .5); background: rgba(255, 99, 99, .08); }
.compound-verdict.is-pending { border-color: rgba(255, 196, 0, .5); background: rgba(255, 196, 0, .08); }
.test-option.is-disabled { opacity: .45; }
.compound-list { display: grid; gap: 10px; }
.compound-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; padding: 14px; border-radius: 12px; border: 1px solid var(--line, rgba(127,127,127,.25)); }
.compound-row.unanswered { border-left: 4px solid #f5b400; }
.compound-row.answered-yes { border-left: 4px solid #2bb58f; }
.compound-row.answered-no { border-left: 4px solid #e05555; }
.compound-row.has-error { border-color: #e05555; }
.compound-row .status { margin-left: 6px; }
.compound-note { margin-top: 6px; opacity: .85; }
.compound-answer { display: grid; gap: 8px; align-content: start; }
.compound-answer .yn { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; }
.compound-answer .yn-tests { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.compound-answer input[type="text"], .compound-answer input:not([type]) { width: 100%; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg, #0b0f17) 40%); z-index: 2; }
.explain ul { margin: 10px 0; }
.compound-table td, .compound-table th { vertical-align: top; }
.compound-table .yes { color: #2bb58f; font-weight: 600; white-space: nowrap; }
.compound-table .no { color: #e05555; font-weight: 600; white-space: nowrap; }
.compound-table .pending { opacity: .7; white-space: nowrap; }
@media (max-width: 720px) { .compound-row { grid-template-columns: 1fr; } }
.compound-group { margin-bottom: 10px; }
.compound-group summary { cursor: pointer; padding: 4px 0; }
.compound-group .table-wrap { margin-top: 10px; }
.compound-suggest { margin-top: 10px; padding: 14px; border-radius: 12px; border: 1px dashed rgba(62, 224, 197, .5); background: rgba(62, 224, 197, .05); }
.compound-suggest .fields { margin: 10px 0; }
.asked-note { margin-top: 6px; padding: 6px 10px; border-left: 3px solid #f5b400; background: rgba(245, 180, 0, .08); }

/* Our guarantee */
.guarantee { position: relative; }
.guarantee-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.guarantee-head h2 { margin: 2px 0 0; max-width: 760px; }
.guarantee-seal { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(62, 224, 197, .6); color: #3ee0c5; box-shadow: 0 0 24px rgba(62, 224, 197, .25); }
.guarantee-seal svg { width: 30px; height: 30px; }
.guarantee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guarantee-item { padding: 20px; border-radius: 16px; border: 1px solid rgba(127, 127, 127, .22); background: rgba(255, 255, 255, .03); }
.guarantee-item h3 { margin: 6px 0 8px; }
.guarantee-item p { margin: 0; opacity: .85; line-height: 1.6; }
.guarantee-num { font: 700 .85rem/1 'Space Grotesk', sans-serif; letter-spacing: .1em; color: #3ee0c5; }
.guarantee-foot { margin-top: 16px; }
.coa-chip-inline { position: static; display: inline-flex; vertical-align: middle; transform: none; }
.untested-chip { background: rgba(245, 180, 0, .15) !important; border-color: rgba(245, 180, 0, .6) !important; color: #f5b400 !important; text-decoration: none; }
.lab-status { margin: 14px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid; }
.lab-status p { margin: 4px 0 0; }
.lab-status-yes { border-color: rgba(43, 181, 143, .5); background: rgba(43, 181, 143, .08); }
.lab-status-yes strong { color: #2bb58f; }
.lab-status-no { border-color: rgba(245, 180, 0, .6); background: rgba(245, 180, 0, .08); }
.lab-status-no strong { color: #f5b400; }
@media (max-width: 820px) { .guarantee-grid { grid-template-columns: 1fr; } .guarantee-head { align-items: flex-start; } }
