/* ==========================================================================
   Xpnd Nutrition — design system
   70% Obsidian/White · 20% Chrome/Mist · 10% Electric Blue
   Every component reads the theme tokens below; [data-bs-theme="dark"]
   (on <html> via the toggle, or on any element) flips them.
   ========================================================================== */

/* ── Brand palette (fixed) ──────────────────────────────────── */
:root {
  --blue: #1652F0;
  --blue-light: #3D7BFF;
  --cobalt: #0A2E9E;
  --obsidian: #06080F;
  --panel: #0E1322;
  --white: #FFFFFF;
  --mist: #F2F4F8;
  --ink: #0B0B0D;
  --graphite: #5B6170;
  --glow: #4FB3FF;
  --cocoa: #3B2820;
  --cream: #EFE7D8;

  --chrome: linear-gradient(135deg, #8A9099, #F4F6F8 45%, #C7CCD4 60%, #8A9099);
  --chrome-soft: linear-gradient(135deg, rgba(138, 144, 153, .55), rgba(244, 246, 248, .9) 45%, rgba(199, 204, 212, .7) 60%, rgba(138, 144, 153, .55));
  --blue-grad: linear-gradient(135deg, var(--blue-light) 0%, var(--blue) 45%, var(--cobalt) 100%);

  --radius-card: 20px;
  --radius-btn: 12px;
  --shadow-glow: 0 0 40px rgba(79, 179, 255, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 240ms;

  --font-display: 'Anton', 'Barlow Condensed', Impact, sans-serif;
  --font-wide: 'Michroma', 'Syncopate', sans-serif;
  --font-stat: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --hex-mesh-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='none' stroke='%23FFFFFF' stroke-width='1' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/svg%3E");
  --hex-mesh-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='none' stroke='%230B0B0D' stroke-width='1' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/svg%3E");
}

/* ── Theme tokens: light (default) ──────────────────────────── */
:root,
[data-bs-theme="light"] {
  color-scheme: light;

  --bg: var(--white);
  --surface: var(--white);
  --surface-alt: var(--mist);
  --stage-base: #F4F6FA;
  --stage-glow: rgba(61, 123, 255, .16);
  --card-bg: var(--white);
  --card-border: var(--chrome);
  --card-shadow: 0 1px 0 rgba(11, 11, 13, .02), 0 18px 40px -24px rgba(11, 20, 40, .28);
  --spotlight: rgba(61, 123, 255, .15);
  --tub-shadow: rgba(11, 20, 40, .28);
  --floor-shadow: rgba(11, 20, 40, .22);

  --text: var(--ink);
  --text-muted: var(--graphite);
  --text-subtle: #8A90A0;
  --body-copy: #2A2E38;
  --accent: var(--blue);
  --accent-strong: var(--cobalt);
  --line: rgba(11, 11, 13, .08);
  --line-strong: rgba(11, 11, 13, .14);

  --nav-bg: rgba(255, 255, 255, .86);
  --nav-link: #3A3F4B;
  --nav-link-hover: var(--ink);
  --menu-bg: var(--white);
  --menu-shadow: 0 24px 60px -20px rgba(11, 20, 40, .25);
  --input-bg: var(--white);
  --input-soft-bg: var(--mist);
  --footer-bg: var(--mist);
  --chip-active-bg: var(--ink);
  --chip-active-text: var(--white);
  --hover-fill: var(--mist);

  --hex-mesh: var(--hex-mesh-light);
  --mesh-opacity: .05;
  --headline-hl: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 55%, var(--cobalt) 100%);
  --stat-fill: linear-gradient(180deg, var(--blue-light) 0%, var(--cobalt) 100%);
  --giant-text: linear-gradient(180deg, rgba(11, 11, 13, .08), rgba(11, 11, 13, 0));
  --slash-opacity: .9;

  /* Bootstrap bridge */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-secondary-color: var(--text-muted);
  --bs-border-color: var(--line-strong);
  --bs-link-color: var(--blue);
  --bs-link-color-rgb: 22, 82, 240;
  --bs-link-hover-color: var(--cobalt);
  --bs-link-hover-color-rgb: 10, 46, 158;
  --bs-focus-ring-color: rgba(79, 179, 255, .45);
  --bs-primary: var(--blue);
  --bs-primary-rgb: 22, 82, 240;
}

/* ── Theme tokens: dark ─────────────────────────────────────── */
[data-bs-theme="dark"] {
  color-scheme: dark;

  --bg: var(--obsidian);
  --surface: #0A0E18;
  --surface-alt: #0B1020;
  --stage-base: var(--obsidian);
  --stage-glow: rgba(61, 123, 255, .14);
  --card-bg: var(--panel);
  --card-border: var(--chrome-soft);
  --card-shadow: none;
  --spotlight: rgba(61, 123, 255, .15);
  --tub-shadow: rgba(0, 0, 0, .6);
  --floor-shadow: rgba(0, 0, 0, .7);

  --text: #E6E9F0;
  --text-muted: #9AA1B2;
  --text-subtle: #6B7388;
  --body-copy: #C9CEDA;
  --accent: var(--glow);
  --accent-strong: var(--white);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);

  --nav-bg: rgba(6, 8, 15, .82);
  --nav-link: rgba(255, 255, 255, .72);
  --nav-link-hover: var(--white);
  --menu-bg: var(--panel);
  --menu-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  --input-bg: rgba(255, 255, 255, .04);
  --input-soft-bg: rgba(255, 255, 255, .06);
  --footer-bg: var(--obsidian);
  --chip-active-bg: var(--white);
  --chip-active-text: var(--ink);
  --hover-fill: rgba(255, 255, 255, .06);

  --hex-mesh: var(--hex-mesh-dark);
  --mesh-opacity: .04;
  --headline-hl: linear-gradient(180deg, #fff 0%, #CFE0FF 30%, var(--blue-light) 100%);
  --stat-fill: linear-gradient(180deg, #fff 10%, var(--blue-light) 100%);
  --giant-text: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0));
  --slash-opacity: .9;

  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-secondary-color: var(--text-muted);
  --bs-border-color: var(--line-strong);
  --bs-link-color: var(--glow);
  --bs-link-color-rgb: 79, 179, 255;
  --bs-link-hover-color: var(--white);
  --bs-link-hover-color-rgb: 255, 255, 255;
  --bs-tertiary-bg: var(--panel);
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
.site-navbar,
.site-footer,
.section-stage,
.section-lab,
.section-white,
.page-header,
.panel-card,
.product-card,
.category-tile,
.chip,
.form-control,
.form-select {
  transition-property: background-color, color, border-color, box-shadow, transform;
  transition-duration: var(--dur);
  transition-timing-function: var(--ease);
}

h1, h2, h3, .display-hero, .section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .01em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.5rem; }

h4, h5, h6 {
  font-family: var(--font-stat);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

a { transition: color var(--dur) var(--ease); }

.text-muted, .text-secondary { color: var(--text-muted) !important; }
.text-accent { color: var(--accent) !important; }

.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-wide);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before,
.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue-grad);
  transform: skewX(-30deg);
}

.section-title { margin-bottom: .75rem; }

.section-lead {
  color: var(--text-muted);
  max-width: 38rem;
  font-size: 1.05rem;
}

.text-center .section-lead { margin-inline: auto; }

.link-accent {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.link-accent:hover { color: var(--accent-strong); }

/* Chrome hairline border on a transparent element (true see-through inside). */
.chrome-ring {
  position: relative;
}

.chrome-ring::before,
.btn-ghost::before,
.btn-outline-accent::before,
.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--chrome);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Wordmark ───────────────────────────────────────────────── */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--text);
}

.wordmark-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.wordmark-text {
  font-family: var(--font-wide);
  font-size: .78rem;
  letter-spacing: .2em;
  line-height: 1.1;
  text-transform: uppercase;
}

.wordmark-text span { display: block; }

.wordmark-text span:last-child {
  font-size: .62rem;
  color: var(--text-muted);
  letter-spacing: .38em;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-navbar {
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  padding-block: .85rem;
}

.site-navbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 123, 255, .55), transparent);
  opacity: .6;
}

.site-navbar .navbar-brand { color: var(--text); }

.site-navbar .nav-link {
  font-family: var(--font-stat);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nav-link);
  padding-inline: .9rem !important;
  position: relative;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.show,
.site-navbar .nav-link.active { color: var(--nav-link-hover); }

.site-navbar .nav-link.active::after,
.site-navbar .nav-link:hover::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .2rem;
  height: 2px;
  background: var(--blue-grad);
  box-shadow: 0 0 12px rgba(79, 179, 255, .6);
}

.site-navbar .dropdown-toggle::after { display: none; }

.site-navbar .dropdown-menu,
.dropdown-menu {
  background: var(--menu-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .5rem;
  box-shadow: var(--menu-shadow);
}

.site-navbar .dropdown-menu { margin-top: .6rem !important; }

.dropdown-item {
  color: var(--text);
  border-radius: 8px;
  font-size: .92rem;
  padding: .55rem .8rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(22, 82, 240, .12);
  color: var(--text);
}

.dropdown-divider { border-color: var(--line); }

.site-navbar .navbar-toggler {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: .4rem .55rem;
}

.site-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(79, 179, 255, .35); }

.search-form { position: relative; }

.search-form .bi {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-form .form-control {
  width: 210px;
  padding-left: 2.3rem;
  border-radius: 999px;
  background: var(--input-soft-bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .9rem;
  transition: width var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.search-form .form-control::placeholder { color: var(--text-subtle); }

.search-form .form-control:focus {
  width: 250px;
  background: var(--input-bg);
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(79, 179, 255, .2);
  color: var(--text);
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse { padding-block: 1rem; }
  .search-form .form-control,
  .search-form .form-control:focus { width: 100%; }
}

/* ── Theme toggle ───────────────────────────────────────────── */
.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--nav-link-hover);
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--accent);
  background: var(--hover-fill);
  box-shadow: var(--shadow-glow);
}

.theme-toggle .bi {
  position: absolute;
  font-size: 1.05rem;
  transition: transform 300ms var(--ease), opacity 200ms var(--ease);
}

/* Shows the icon of the mode you will switch to. */
.theme-toggle .bi-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle .bi-moon-stars { opacity: 1; transform: none; }
html[data-bs-theme="dark"] .theme-toggle .bi-sun { opacity: 1; transform: none; }
html[data-bs-theme="dark"] .theme-toggle .bi-moon-stars { opacity: 0; transform: rotate(90deg) scale(.6); }

.theme-toggle-label {
  font-family: var(--font-stat);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nav-link);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-stat);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: var(--radius-btn);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }

/* Primary: Electric → Cobalt, cyan glow on hover */
.btn-accent,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cobalt) 100%);
  border: 1px solid rgba(61, 123, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn-accent:hover,
.btn-accent:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue) 100%);
  border-color: var(--glow);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, .22);
  transform: translateY(-1px);
}

.btn-accent:active,
.btn-primary:active {
  color: #fff !important;
  background: var(--cobalt) !important;
  transform: translateY(0);
}

.btn-accent:disabled,
.btn-accent.disabled {
  color: rgba(255, 255, 255, .7);
  background: linear-gradient(135deg, var(--blue) 0%, var(--cobalt) 100%);
  opacity: .45;
}

/* Secondary: transparent with chrome border, fills Mist on hover */
.btn-ghost,
.btn-outline-accent {
  position: relative;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible,
.btn-outline-accent:hover,
.btn-outline-accent:focus-visible {
  color: var(--ink);
  background: var(--mist);
  transform: translateY(-1px);
}

.btn-ghost:active,
.btn-outline-accent:active {
  color: var(--ink) !important;
  background: #E3E7EE !important;
}

.btn-outline-danger { border-radius: var(--radius-btn); }

.btn-link {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

/* ── Pills & badges ─────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-wide);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
  padding: .5rem .8rem .45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px -6px rgba(22, 82, 240, .8);
}

.pill-chrome {
  color: var(--ink);
  background: var(--chrome);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.pill-flavor {
  color: var(--cream);
  background: var(--cocoa);
}

.hex-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hex-badge-shape {
  position: relative;
  width: 56px;
  height: 62px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.hex-badge-shape svg.hex-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hex-badge-shape .bi { font-size: 1.35rem; position: relative; }

.hex-badge-title {
  font-family: var(--font-stat);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.05;
}

.hex-badge-sub {
  font-size: .85rem;
  color: var(--text-muted);
}

/* ── Sections ───────────────────────────────────────────────── */
.section-block { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }

/* "Product stage": spotlight sections (hero, featured, series). */
.section-stage {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--stage-glow), transparent 70%),
    var(--stage-base);
  color: var(--text);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* "Lab" sections: Mist with hex mesh. */
.section-lab {
  background: var(--surface-alt);
  position: relative;
  isolation: isolate;
}

.section-white { background: var(--surface); }

.section-lab::before,
.section-stage.has-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--hex-mesh);
  background-size: 28px 49px;
  opacity: var(--mesh-opacity);
  pointer-events: none;
}

.section-stage.has-mesh::before {
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent);
}

.section-divider { border-top: 1px solid var(--line); }

.chrome-rule {
  height: 1px;
  border: 0;
  background: var(--chrome);
  opacity: .8;
}

/* ── X-chevron slashes ──────────────────────────────────────── */
.slashes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.slash {
  position: absolute;
  width: 34%;
  height: 160%;
  top: -30%;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 40%, var(--cobalt) 100%);
  transform: skewX(-28deg);
  opacity: var(--slash-opacity);
  will-change: transform;
}

.slash::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(79, 179, 255, .95) 35%, transparent 75%);
  box-shadow: 0 0 24px 4px rgba(79, 179, 255, .5);
}

.slash--a { right: -14%; width: 22%; }
.slash--b { right: 4%; width: 7%; opacity: .55; }
.slash--c {
  right: -6%;
  width: 22%;
  transform: skewX(28deg);
  background: linear-gradient(0deg, var(--blue) 0%, var(--cobalt) 70%, transparent 100%);
  opacity: .5;
}

.slash--edge { left: -26%; width: 30%; opacity: .14; }

.slashes--subtle .slash { opacity: .35; }
.slashes--subtle .slash--b { opacity: .2; }

@media (max-width: 767.98px) {
  .slash--a { right: -40%; width: 40%; }
  .slash--b { right: -6%; }
  .slash--c { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 10vw, 8rem);
}

.display-hero {
  font-size: clamp(3rem, 8.5vw, 72px);
  line-height: .95;
  margin-bottom: 1.5rem;
}

.display-hero .is-blue {
  background: var(--headline-hl);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(61, 123, 255, .35), rgba(22, 82, 240, .08) 45%, transparent 70%);
  filter: blur(6px);
}

.hero-stage::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 9%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--floor-shadow), transparent 70%);
  filter: blur(8px);
}

.hero-stage-ring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--chrome-soft) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .45;
}

.hero-tub {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px var(--tub-shadow));
  transition: transform 600ms var(--ease);
}

.hero-tub--main { width: 58%; z-index: 3; bottom: 13%; }
.hero-tub--left { width: 38%; left: 4%; bottom: 17%; z-index: 2; opacity: .9; transform: rotate(-6deg); }
.hero-tub--right { width: 38%; right: 4%; bottom: 17%; z-index: 2; opacity: .9; transform: rotate(6deg); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}

/* ── Stat strip ─────────────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  color: var(--text);
}

.stat {
  padding: .25rem 1rem;
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--line-strong);
}

.stat-value {
  font-family: var(--font-stat);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -.01em;
  background: var(--stat-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-family: var(--font-wide);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .5rem;
}

@media (max-width: 575.98px) {
  .stat-strip--wrap { grid-auto-flow: row; grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .stat-strip--wrap .stat:nth-child(odd)::before { display: none; }
}

/* ── Stats band (panel overlapping the hero) ────────────────── */
.stats-band {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(to bottom, transparent 3.5rem, var(--stage-base) 3.5rem);
}

.stats-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 20px;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--card-bg), var(--card-bg)), var(--card-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--card-shadow), 0 30px 60px -30px rgba(22, 82, 240, .35);
  overflow: hidden;
}

.stats-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
  box-shadow: 0 0 14px rgba(79, 179, 255, .6);
}

.stats-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  transition: background var(--dur) var(--ease);
}

.stats-item:hover { background: rgba(22, 82, 240, .05); }

.stats-item + .stats-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--line-strong);
}

.stats-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.4rem;
  color: var(--accent);
  background: rgba(22, 82, 240, .1);
  border: 1px solid rgba(61, 123, 255, .25);
  box-shadow: inset 0 0 18px rgba(79, 179, 255, .12);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.stats-item:hover .stats-icon {
  transform: translateY(-2px);
  box-shadow: inset 0 0 18px rgba(79, 179, 255, .2), 0 0 20px rgba(79, 179, 255, .3);
}

.stats-value {
  font-family: var(--font-stat);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -.01em;
  background: var(--stat-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-label {
  font-family: var(--font-wide);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .45rem;
}

@media (max-width: 991.98px) {
  .stats-panel { grid-template-columns: repeat(2, 1fr); }
  .stats-item:nth-child(odd)::before { display: none; }
  .stats-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 575.98px) {
  .stats-band { margin-top: -2rem; background: linear-gradient(to bottom, transparent 2rem, var(--stage-base) 2rem); }
  .stats-item { flex-direction: column; text-align: center; gap: .75rem; padding: 1.4rem .75rem; }
  .stats-icon { width: 44px; height: 44px; font-size: 1.2rem; }
}

/* ── Feature icon row (Enhance | Improve | Support) ─────────── */
.icon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.icon-row-item {
  padding: 2.25rem 1.75rem;
  position: relative;
}

.icon-row-item + .icon-row-item { border-left: 1px solid var(--line-strong); }

.icon-row-item .line-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.icon-row-item h3 {
  font-family: var(--font-stat);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}

.icon-row-item p {
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 767.98px) {
  .icon-row { grid-template-columns: 1fr; }
  .icon-row-item + .icon-row-item { border-left: 0; border-top: 1px solid var(--line-strong); }
}

/* ── Category tiles ─────────────────────────────────────────── */
.category-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.category-tile {
  position: relative;
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 90px;
  height: 180px;
  background: var(--blue-grad);
  transform: skewX(-28deg) translateX(40px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform 400ms var(--ease);
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 82, 240, .45);
  box-shadow: 0 20px 50px -20px rgba(22, 82, 240, .35);
}

.category-tile:hover::after { opacity: 1; transform: skewX(-28deg) translateX(0); }

.category-tile-index {
  font-family: var(--font-stat);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: .95rem;
  letter-spacing: .1em;
}

.category-tile-icon {
  font-size: 1.75rem;
  color: var(--accent);
  margin: 1.5rem 0 1rem;
  display: block;
}

.category-tile h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: .4rem;
}

.category-tile p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: .95rem;
}

.category-tile-cta {
  font-family: var(--font-wide);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.category-tile-cta .bi { transition: transform var(--dur) var(--ease); }
.category-tile:hover .category-tile-cta .bi,
.product-card:hover .category-tile-cta .bi { transform: translateX(4px); }

/* ── Product cards ──────────────────────────────────────────── */
.product-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  color: var(--text);
  border: 1px solid transparent;
  background-image: linear-gradient(var(--card-bg), var(--card-bg)), var(--card-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  background-image: linear-gradient(var(--card-bg), var(--card-bg)), linear-gradient(var(--blue), var(--blue));
  box-shadow: var(--shadow-glow);
}

.product-card-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  z-index: 2;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 3.25rem 1.5rem 1rem;
  background: radial-gradient(circle at 50% 55%, var(--spotlight) 0%, transparent 62%);
}

.product-image-wrap::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 8%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--floor-shadow), transparent 70%);
  z-index: 0;
}

.product-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px var(--tub-shadow));
  transition: transform 300ms var(--ease);
}

.product-card:hover .product-image-wrap img { transform: scale(1.04) rotate(-2deg); }

.product-thumb {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 2rem;
  text-align: center;
}

.product-card-body {
  padding: 0 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: .95;
  color: var(--text);
  margin: 0 0 .5rem;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.product-card-summary {
  color: var(--text-muted);
  font-size: .875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.product-card .stat-strip {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.product-card .stat { padding-inline: .5rem; }

.product-card .stat-value {
  font-size: 1.35rem;
  background: none;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .stat-label { font-size: 8.5px; margin-top: .3rem; }

.product-card dd a { color: var(--accent); }

/* ── Page header (inner pages) ──────────────────────────────── */
.page-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 50% 80% at 85% 50%, var(--stage-glow), transparent 70%),
    var(--stage-base);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 64px);
  margin-bottom: .75rem;
  max-width: 18ch;
}

.page-header p {
  color: var(--text-muted) !important;
  max-width: 40rem;
  font-size: 1.05rem;
}

.breadcrumb-lite {
  font-family: var(--font-wide);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--text-subtle);
}

.breadcrumb-lite a { color: var(--text-subtle); text-decoration: none; }
.breadcrumb-lite a:hover { color: var(--accent); }
.breadcrumb-lite span { color: var(--accent); }

/* ── Filter chips ───────────────────────────────────────────── */
.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}

.chip {
  font-family: var(--font-stat);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.chip:hover { border-color: var(--blue); color: var(--accent); }

.chip.is-active {
  background: var(--chip-active-bg);
  border-color: var(--chip-active-bg);
  color: var(--chip-active-text);
}

/* ── Load more ──────────────────────────────────────────────── */
.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  margin-top: 3rem;
  position: relative;
}

.load-more[hidden] { display: none; }

.load-more-sentinel {
  position: absolute;
  top: -1px;
  left: 0;
  width: 1px;
  height: 1px;
}

.load-more-count {
  font-family: var(--font-wide);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.load-more-bar {
  width: min(220px, 60vw);
  height: 2px;
  background: var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}

.load-more-bar span {
  display: block;
  height: 100%;
  background: var(--blue-grad);
  transition: width 400ms var(--ease);
}

/* ── Panels / surfaces ──────────────────────────────────────── */
.panel-card,
.surface-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  color: var(--text);
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-label {
  font-family: var(--font-wide);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.form-control,
.form-select {
  border-radius: var(--radius-btn);
  border: 1px solid var(--line-strong);
  background-color: var(--input-bg);
  color: var(--text);
  padding: .7rem 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-control::placeholder { color: var(--text-subtle); }

/* Neutralise the browser's yellow autofill background (email/password fields). */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--input-bg) inset;
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.form-control-lg { padding: .95rem 1.2rem; }

.form-control:focus,
.form-select:focus {
  background-color: var(--input-bg);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(79, 179, 255, .22);
  color: var(--text);
}

.input-group-text {
  background: var(--input-bg);
  border-color: var(--line-strong);
  color: var(--text-muted);
}

.form-check-input:checked {
  background-color: var(--blue);
  border-color: var(--blue);
}

.form-check-input:focus { box-shadow: 0 0 0 4px rgba(79, 179, 255, .22); }

.form-text { color: var(--text-muted); }

.alert { border-radius: 14px; }

.alert-secondary {
  background: var(--surface-alt);
  border-color: var(--line);
  color: var(--text-muted);
}

.modal-content {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--line);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  --bs-table-hover-bg: var(--hover-fill);
  --bs-table-hover-color: var(--text);
}

/* ── Product detail ─────────────────────────────────────────── */
.product-hero { padding-block: clamp(3rem, 6vw, 5rem); }

.product-stage {
  position: relative;
  border-radius: 28px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(61, 123, 255, .2), transparent 60%),
    linear-gradient(var(--card-bg), var(--card-bg)),
    var(--card-border);
  background-origin: border-box;
  background-clip: padding-box, padding-box, border-box;
  box-shadow: var(--card-shadow);
}

.product-stage::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 10%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--floor-shadow), transparent 70%);
}

.product-image-zoom { cursor: zoom-in; }

.product-detail-image {
  position: absolute;
  inset: 6%;
  z-index: 1;
}

.product-detail-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px var(--tub-shadow));
  transition: transform 300ms var(--ease);
}

.product-detail-image:hover .product-detail-main-img { transform: scale(1.03); }

.product-gallery-thumbs { margin-top: .75rem; }

.product-gallery-btn {
  border-radius: 14px;
  background: var(--card-bg) !important;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line) !important;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.product-gallery-btn:hover,
.product-gallery-btn:focus-visible {
  border-color: var(--blue) !important;
  box-shadow: 0 0 20px rgba(79, 179, 255, .25);
}

.product-gallery-btn img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.product-title {
  font-size: clamp(3rem, 7vw, 72px);
  margin-bottom: 1rem;
}

.product-summary {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

.product-spec .stat { text-align: left; padding-inline: 1.25rem; }
.product-spec .stat:first-child { padding-left: 0; }
.product-spec .stat-value { font-size: clamp(1.6rem, 3vw, 2.25rem); }

.product-accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-color: var(--text);
  --bs-accordion-border-color: var(--line);
}

.product-accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

.product-accordion .accordion-item:first-of-type { border-top: 1px solid var(--line-strong); }

.product-accordion .accordion-button {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  padding: 1.4rem 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.product-accordion .accordion-button::after { filter: var(--accordion-icon-filter, none); }
[data-bs-theme="dark"] .product-accordion { --accordion-icon-filter: invert(1) brightness(1.4); }

.product-accordion .accordion-button:not(.collapsed) {
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.product-accordion .accordion-button:focus { box-shadow: none; }
.product-accordion .accordion-button:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }

.product-accordion .accordion-body { padding: 0 0 1.75rem; color: var(--body-copy); }

.product-tab-content { overflow-x: auto; }

.product-tab-content .yikes-custom-woo-tab-title,
.product-tab-content h2 { display: none; }

.product-tab-content table {
  width: 100%;
  margin: 1rem 0;
  font-size: .9rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.product-tab-content table td,
.product-tab-content table th {
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--line);
  background: transparent !important;
  color: inherit !important;
}

.product-tab-content tr[style*="808080"] td,
.product-tab-content tr[style*="808080"] th {
  background: var(--chip-active-bg) !important;
  color: var(--chip-active-text) !important;
  font-family: var(--font-stat);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
}

.product-tab-content tr#element:hover td { background: var(--hover-fill) !important; }

.product-highlights table,
.product-highlights tbody,
.product-highlights tr,
.product-highlights td {
  display: block;
  width: 100%;
  padding: 0 !important;
  margin: 0;
}

.product-highlights div,
.product-highlights section,
.product-highlights table,
.product-highlights td,
.product-highlights tr,
.product-highlights .elementor-column,
.product-highlights .elementor-widget-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.product-highlights div:empty { display: none !important; }

.product-highlights h6 {
  display: inline-flex;
  font-family: var(--font-wide);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .2em;
  color: #fff !important;
  background: var(--blue) !important;
  border-radius: 999px;
  padding: .5rem .85rem .45rem;
  margin: 1.5rem 0 .75rem;
}

.product-highlights h6:first-child { margin-top: 0; }

.product-highlights ul,
.benefit-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem;
}

.product-highlights ul:last-child { margin-bottom: 0; }

.product-highlights ul li,
.benefit-list li {
  position: relative;
  padding: .6rem 0 .6rem 1.75rem;
  border-bottom: 1px solid var(--line);
}

.product-highlights ul li:last-child,
.benefit-list li:last-child { border-bottom: 0; }

.product-highlights ul li::before,
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.product-highlights .yikes-custom-woo-tab-title,
.product-highlights h2 { display: none !important; }

.product-barcodes p {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}

/* Lightbox stays dark in both modes. */
.product-modal-image {
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-card);
  background: radial-gradient(circle, rgba(61, 123, 255, .2), transparent 65%), var(--panel);
  padding: 2rem;
}

#productImageModal .modal-content { background: transparent; }
.modal-backdrop.show { opacity: .85; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(4rem, 7vw, 6rem);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--chrome);
  opacity: .5;
}

.footer-heading {
  font-family: var(--font-wide);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.footer-links li + li { margin-top: .6rem; }

.footer-links a,
.footer-link-plain {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-link-plain:hover { color: var(--text); }

.footer-social {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  border: 1px solid var(--line-strong);
  transition: all var(--dur) var(--ease);
}

.footer-social:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding-block: 1.5rem;
  font-size: .85rem;
  color: var(--text-subtle);
}

.footer-giant {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: .8;
  text-transform: uppercase;
  letter-spacing: -.01em;
  background: var(--giant-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 3rem;
  white-space: nowrap;
  user-select: none;
}

/* ── Validation result ──────────────────────────────────────── */
.validation-result-icon .bi { font-size: 3.25rem; line-height: 1; }
.validation-result--success { box-shadow: 0 0 0 1px rgba(25, 135, 84, .25), 0 20px 50px -20px rgba(25, 135, 84, .35); }
.validation-result--danger { box-shadow: 0 0 0 1px rgba(220, 53, 69, .25), 0 20px 50px -20px rgba(220, 53, 69, .35); }

/* ── Reveal motion ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-shell {
  background: var(--surface-alt);
  min-height: 100%;
}

.admin-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: .25rem;
}

.admin-toolbar-search { position: relative; }

.admin-toolbar-search .bi {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 1;
}

.admin-toolbar-search .form-control { padding-left: 2.6rem; }

.admin-product-card {
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.admin-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 82, 240, .35);
  box-shadow: 0 18px 40px -20px rgba(22, 82, 240, .4);
}

.admin-product-card-img,
.admin-edit-image-preview {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 55%, var(--spotlight), transparent 62%), var(--surface-alt);
}

.admin-product-card-img {
  aspect-ratio: 4 / 3;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.admin-product-card-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px var(--tub-shadow));
}

.admin-product-card .card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.admin-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.admin-card-actions .btn {
  font-size: .85rem;
  padding: .45rem .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-meta {
  font-family: var(--font-stat);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--text-muted);
}

.admin-edit-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}

.admin-edit-image-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.admin-edit-image-card.is-primary {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 179, 255, .25);
}

.admin-edit-image-remove-form {
  position: absolute;
  top: .4rem;
  right: .4rem;
  z-index: 3;
  margin: 0;
}

.admin-edit-image-remove {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(6, 8, 15, .75);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.admin-edit-image-remove:hover { background: #dc3545; transform: scale(1.06); }
.admin-edit-image-remove .bi { font-size: .8rem; }

.admin-edit-image-preview {
  height: 130px;
  padding: .75rem;
}

.admin-edit-image-preview img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.admin-edit-image-actions {
  padding: .55rem .75rem;
  display: flex;
  align-items: center;
  min-height: 2.6rem;
}

.admin-dropzone {
  border: 1.5px dashed rgba(22, 82, 240, .35);
  border-radius: 14px;
  background: rgba(22, 82, 240, .04);
  padding: 1rem;
}

.admin-image-tile { width: 120px; }
.admin-image-tile img { max-height: 80px; object-fit: contain; }

.admin-sticky-actions {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
  padding: .85rem;
  border-radius: 16px;
  background: var(--nav-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -16px rgba(6, 8, 15, .35);
}

.admin-back-link {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}

.admin-back-link:hover { color: var(--accent); }

.admin-codes-header-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--blue-grad);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px -8px rgba(22, 82, 240, .8);
}

.admin-codes-stat-label {
  font-family: var(--font-wide);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.admin-codes-stat-value {
  font-family: var(--font-stat);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 2.5rem;
  line-height: 1;
}

.admin-codes-import-toggle { cursor: pointer; color: var(--text); transition: background var(--dur) var(--ease); }
.admin-codes-import-toggle:hover { background: rgba(22, 82, 240, .05) !important; }
.admin-codes-import-toggle .text-accent { color: var(--accent); }

.admin-codes-chevron { transition: transform var(--dur) var(--ease); color: var(--text-muted); }
.admin-codes-chevron--open { transform: rotate(180deg); }

.admin-codes-table thead th {
  font-family: var(--font-wide);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-block: 1rem .75rem;
  background: var(--surface-alt);
}

.admin-codes-table tbody td { padding-block: .85rem; vertical-align: middle; }
.admin-codes-row-inactive { opacity: .62; }

.admin-code-pill {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: .8125rem;
}

.admin-codes-progress { height: .35rem; min-width: 5rem; background: var(--surface-alt); }
.admin-codes-usage-cell { min-width: 7rem; }

.admin-codes-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem;
  justify-content: flex-end;
  padding: .2rem;
  border-radius: 12px;
  background: var(--surface-alt);
}

.admin-codes-action-form { display: inline-flex; margin: 0; }

.admin-codes-action-btn {
  display: inline-grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.admin-codes-action-btn--edit:hover,
.admin-codes-action-btn--edit:focus-visible { color: var(--accent); background: rgba(22, 82, 240, .12); }
.admin-codes-action-btn--reset:hover,
.admin-codes-action-btn--reset:focus-visible { color: var(--text); background: var(--hover-fill); }
.admin-codes-action-btn--pause:hover,
.admin-codes-action-btn--pause:focus-visible { color: #b58105; background: rgba(255, 193, 7, .18); }
.admin-codes-action-btn--play:hover,
.admin-codes-action-btn--play:focus-visible { color: #20a464; background: rgba(25, 135, 84, .14); }
.admin-codes-action-btn--delete:hover,
.admin-codes-action-btn--delete:focus-visible { color: #dc3545; background: rgba(220, 53, 69, .12); }

.admin-codes-empty-icon { font-size: 2.5rem; opacity: .45; }

.admin-form-section-title {
  font-family: var(--font-wide);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

.admin-code-input { letter-spacing: .04em; }
.admin-codes-sidebar { position: sticky; top: 6rem; }
.admin-codes-tips { padding-left: 1.1rem; margin-bottom: 0; }
.admin-codes-tips li + li { margin-top: .5rem; }

.admin-validate-url-box {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* Login (page is always rendered in dark mode) */
.auth-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.auth-back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.auth-back-link:hover { color: var(--text); }

.auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--card-bg), var(--card-bg)), var(--card-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}

.auth-lead {
  color: var(--text-muted);
  font-size: .95rem;
}

.auth-footnote {
  font-family: var(--font-wide);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-group .bi {
  position: absolute;
  left: 1rem;
  color: var(--text-subtle);
  pointer-events: none;
}

.auth-input-group .form-control { padding-left: 2.6rem; }
