/* HeliosForged marketing site — matches desktop app palette */
:root {
  --bg: #12151a;
  --bg-elevated: #1a1f26;
  --panel: #232a30;
  --panel-alt: #2b333a;
  --border: #3e4a54;
  --text: #e8ecef;
  --muted: #9aa8b5;
  --accent: #4a7a96;
  --accent-bright: #5d9ab8;
  --accent-glow: rgba(74, 122, 150, 0.35);
  --danger: #c45c5c;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --nav-h: 80px;
  --brand-logo-h: 48px;
  --topbar-h: 36px;
  --page-gutter: clamp(20px, 2.5vw, 56px);
  --catalog-rail-max: 1180px;
}

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

[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
  scroll-padding-top: calc(var(--nav-h) + var(--topbar-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(18, 21, 26, 0.90) 0%, rgba(18, 21, 26, 0.78) 46%, rgba(18, 21, 26, 0.52) 100%),
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(74, 122, 150, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(62, 98, 122, 0.12), transparent 50%),
    radial-gradient(circle at 8% 4%, rgba(93, 154, 184, 0.14), transparent 26rem),
    radial-gradient(circle at 90% 8%, rgba(212, 168, 83, 0.08), transparent 24rem),
    image-set(
      url("/assets/images/products/mars/heliopshub-hero-bg_800w.avif") type("image/avif") 1x,
      url("/assets/images/products/mars/heliopshub-hero-bg_800w.webp") type("image/webp") 1x,
      url("/assets/images/products/mars/heliopshub-hero-bg_1200w.avif") type("image/avif") 1.5x,
      url("/assets/images/products/mars/heliopshub-hero-bg_1200w.webp") type("image/webp") 1.5x,
      url("/assets/images/products/mars/heliopshub-hero-bg_1600w.avif") type("image/avif") 2x,
      url("/assets/images/products/mars/heliopshub-hero-bg_1600w.webp") type("image/webp") 2x
    ) right center / cover no-repeat;
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

@supports not (background-image: image-set(url("data:,") 1x)) {
  body::before {
    background-image:
      linear-gradient(90deg, rgba(18, 21, 26, 0.90) 0%, rgba(18, 21, 26, 0.78) 46%, rgba(18, 21, 26, 0.52) 100%),
      radial-gradient(ellipse 80% 50% at 20% -10%, rgba(74, 122, 150, 0.18), transparent 55%),
      radial-gradient(ellipse 60% 40% at 90% 10%, rgba(62, 98, 122, 0.12), transparent 50%),
      radial-gradient(circle at 8% 4%, rgba(93, 154, 184, 0.14), transparent 26rem),
      radial-gradient(circle at 90% 8%, rgba(212, 168, 83, 0.08), transparent 24rem),
      url("/assets/images/products/mars/heliopshub-hero-bg_1200w.webp");
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--accent-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: #7eb8d4; }

#main-content {
  position: relative;
  z-index: 1;
}

.wrap {
  position: relative;
  z-index: 1;
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: none;
  margin-inline: auto;
}

/* Header, topbar, footer — align with interior/catalog content width */
.nav > .wrap,
.site-topbar-inner,
.site-promo-banner__inner,
footer > .wrap {
  max-width: var(--catalog-rail-max);
  width: 100%;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 21, 26, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(62, 74, 84, 0.55);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(18, 21, 26, 0.96);
  border-color: rgba(62, 74, 84, 0.75);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.brand img {
  height: var(--brand-logo-h);
  width: auto;
  max-width: min(260px, 52vw);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.nav-item-has-menu {
  position: relative;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  z-index: 130;
}

.nav-submenu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-submenu a:hover {
  background: rgba(74, 122, 150, 0.12);
  color: var(--text);
}

.nav-item-has-menu:hover .nav-submenu,
.nav-item-has-menu:focus-within .nav-submenu {
  display: block;
}

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-cta [data-auth-guest]:not([hidden]),
.nav-cta [data-auth-user]:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 9px 14px;
  font-size: 0.84rem;
  line-height: 1.2;
  min-height: 38px;
}

.nav-cta .btn-primary {
  box-shadow: 0 4px 18px var(--accent-glow);
}

.nav-cta .shop-cart-link {
  position: relative;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-bright);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.cart-badge[hidden] {
  display: none !important;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop {
  display: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 40px rgba(74, 122, 150, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 999px;
}

a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

/* ── Hero ── */
.hero {
  padding: calc(var(--nav-h) + 64px) 0 96px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(74, 122, 150, 0.12);
  border: 1px solid rgba(74, 122, 150, 0.3);
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ecf8a;
  box-shadow: 0 0 8px #5ecf8a;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

h1 .accent {
  background: linear-gradient(120deg, #fff 30%, var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-meta strong { color: var(--text); display: block; font-size: 1.1rem; }

.hero-visual {
  position: relative;
  overflow: hidden;
}

/* ── HeliosForged app preview (matches Windows UI palette) ── */
.app-preview {
  --app-bg: #171a1d;
  --app-panel: #232a30;
  --app-panel-alt: #2b333a;
  --app-raised: #313a42;
  --app-inset: #1b2025;
  --app-border: #3e4a54;
  --app-text: #e5e8eb;
  --app-muted: #b8c0c7;
  --app-accent: #3e627a;
  --app-live: #57d66f;

  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.72rem;
  color: var(--app-text);
}

.app-preview--large {
  font-size: 0.82rem;
  max-width: 960px;
  margin-inline: auto;
}

.app-win-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 10px;
  background: var(--app-bg);
  border-bottom: 1px solid var(--app-border);
  min-height: 52px;
}

.app-win-logo {
  height: 28px;
  width: auto;
  opacity: 0.95;
}

.app-preview--large .app-win-logo { height: 36px; }

.app-win-controls {
  display: flex;
  gap: 0;
}

.app-win-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  color: var(--app-muted);
  font-size: 0.85rem;
  border-left: 1px solid transparent;
}

.app-win-btn--close:hover { color: #fff; background: #a83a3a; }

.app-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--app-border);
}

.app-badge {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--app-panel);
  border: 1px solid var(--app-border);
  font-weight: 600;
  font-size: 0.92em;
}

.app-badge--live {
  border-color: rgba(87, 214, 111, 0.45);
  color: var(--app-live);
}

.app-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 220px;
}

.app-preview--large .app-body {
  grid-template-columns: 170px 1fr;
  min-height: 280px;
}

.app-sidebar {
  padding: 10px 8px;
  background: var(--app-panel);
  border-right: 1px solid var(--app-border);
}

.app-nav-label {
  font-size: 0.78em;
  font-weight: 600;
  color: var(--app-muted);
  margin: 6px 0 4px;
  padding-left: 6px;
}

.app-nav-item {
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: var(--app-raised);
  border: 1px solid var(--app-border);
  color: var(--app-text);
}

.app-nav-item--active {
  background: var(--app-accent);
  border-color: #4a7a96;
  color: #fff;
}

.app-main {
  padding: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  background: var(--app-inset);
}

.app-main--wizard {
  grid-template-columns: 1fr;
}

.app-panel {
  padding: 10px;
  border-radius: 6px;
  background: var(--app-panel);
  border: 1px solid var(--app-border);
}

.app-panel--wide { grid-column: 1 / -1; }

.app-panel-title {
  font-weight: 600;
  font-size: 0.88em;
  color: var(--app-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-coords {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.app-coords div {
  padding: 6px;
  background: var(--app-inset);
  border-radius: 4px;
  border: 1px solid var(--app-border);
}

.coord-label {
  display: block;
  font-size: 0.78em;
  color: var(--app-muted);
  margin-bottom: 2px;
}

.coord-live {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  color: var(--app-live);
  font-size: 1.05em;
}

.app-jog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: 220px;
}

.app-jog-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 4px;
  background: var(--app-raised);
  border: 1px solid var(--app-border);
  font-weight: 600;
  font-size: 0.88em;
}

.app-jog-btn--home { grid-column: 2; }

.app-jog-btn--accent {
  background: var(--app-accent);
  border-color: #4a7a96;
  color: #fff;
}

.app-stream-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--app-inset);
  overflow: hidden;
  margin-bottom: 6px;
}

.app-stream-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--app-accent), #5d9ab8);
  border-radius: 999px;
}

.app-stream-meta {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  color: var(--app-muted);
}

.app-wizard-step {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(62, 98, 122, 0.25);
  border: 1px solid rgba(74, 122, 150, 0.4);
  font-weight: 600;
}

.app-wizard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.app-wizard-field {
  padding: 8px;
  background: var(--app-inset);
  border-radius: 4px;
  border: 1px solid var(--app-border);
}

.app-wizard-field span {
  display: block;
  font-size: 0.82em;
  color: var(--app-muted);
  margin-bottom: 2px;
}

.app-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-file-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--app-muted);
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

.app-file-pending { opacity: 0.55; }

.app-status-footer {
  padding: 6px 12px;
  background: var(--app-panel);
  border-top: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 0.88em;
}

.software-showcase {
  margin-top: 32px;
}

.platform-downloads--single {
  justify-content: center;
}

.platform-downloads--single .btn {
  min-width: 240px;
}

.visual-frame {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(74, 122, 150, 0.15), transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.visual-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.chrome-dot:nth-child(1) { background: #e06b6b; }
.chrome-dot:nth-child(2) { background: #e0b76b; }
.chrome-dot:nth-child(3) { background: #6be09a; }

.chrome-title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

.visual-body {
  padding: 0;
  aspect-ratio: 4/3;
  background: #1b2025;
}

.visual-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.floating-card {
  position: absolute;
  bottom: -20px;
  left: -24px;
  padding: 16px 20px;
  background: rgba(35, 42, 48, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 2;
  min-width: 200px;
}

.floating-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.floating-card .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent-bright);
}

/* ── Stats strip ── */
.stats {
  padding: 48px 0;
  border-block: 1px solid rgba(62, 74, 84, 0.5);
  background: rgba(26, 31, 38, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Sections ── */
section { padding: 96px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.08rem;
}

/* ── Problem / solution ── */
.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel-card {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

.panel-card.problem {
  border-color: rgba(196, 92, 92, 0.25);
  background: linear-gradient(145deg, rgba(196, 92, 92, 0.06), var(--panel));
}

.panel-card.solution {
  border-color: rgba(74, 122, 150, 0.35);
  background: linear-gradient(145deg, rgba(74, 122, 150, 0.08), var(--panel));
}

.panel-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 14px;
}

.panel-card p { color: var(--muted); margin: 0 0 16px; }

.panel-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.panel-card li { margin-bottom: 8px; }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 122, 150, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 122, 150, 0.15);
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.28);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--accent-bright);
}

/* ── Workflow ── */
.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.workflow::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), var(--accent), var(--border), transparent);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--panel);
  border: 2px solid var(--accent);
  color: var(--accent-bright);
  box-shadow: 0 0 24px var(--accent-glow);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── M.A.R.S. band ── */
.mars-band {
  background: linear-gradient(135deg, rgba(74, 122, 150, 0.12), rgba(18, 21, 26, 0.9));
  border-block: 1px solid var(--border);
}

.mars-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.mars-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pricing-grid--enterprise {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(74, 122, 150, 0.12), var(--panel));
  box-shadow: 0 0 40px var(--accent-glow);
  transform: scale(1.02);
}

.price-card h3 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.price-card .tier-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.price-card .period {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  font-size: 0.88rem;
  color: var(--muted);
}

.price-card li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 700;
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 20px 36px 20px 0;
  cursor: pointer;
  position: relative;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent-bright);
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 20px;
}

/* ── Download CTA ── */
.download-band {
  padding: 80px 0;
}

.download-card {
  text-align: center;
  padding: 56px 40px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(74, 122, 150, 0.4);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(74, 122, 150, 0.2), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.download-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 12px;
}

.download-card .sub {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 50ch;
  margin-inline: auto;
}

.req-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 32px;
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--muted);
}

.platform-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
  margin-bottom: 8px;
}

.platform-download-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 220px;
  max-width: 280px;
}

.platform-download-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.platform-downloads .btn {
  min-width: 180px;
  width: 100%;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Services ── */
.services-band {
  background: rgba(26, 31, 38, 0.5);
  border-block: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Services page — 2×2 grid, equal-height cards, aligned sections */
.services-grid--page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  align-items: stretch;
}

.services-audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.services-audience span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(93, 154, 184, 0.28);
  border-radius: 999px;
  background: rgba(93, 154, 184, 0.09);
  color: #c7d8e2;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 8px 14px;
}

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  align-items: stretch;
}

.services-detail-grid .page-section {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services-detail-grid .page-section p:last-of-type:not(.page-section__action) {
  flex: 1;
}

.page-section__action {
  margin: 20px 0 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(74, 122, 150, 0.5);
  transform: translateY(-2px);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(74, 122, 150, 0.15);
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.service-card h2,
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.service-card p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ── M.A.R.S. detail ── */
.mars-detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.mars-list {
  margin: 0 0 20px;
  padding-left: 1.2rem;
  color: var(--muted);
}

.mars-list li { margin-bottom: 8px; }

.mars-ops {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.mars-ops h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.mars-aside h3 {
  font-family: var(--font-display);
  margin: 0 0 16px;
}

.mars-note {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Products ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  max-width: var(--catalog-rail-max);
  margin-inline: auto;
}

.products-grid.shop-grid:not(.products-grid--storefront) {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card {
  position: relative;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(93, 154, 184, 0.28);
  background: rgba(26, 31, 38, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}

.product-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  width: fit-content;
}

.product-status.in-stock {
  background: rgba(94, 207, 138, 0.15);
  color: #5ecf8a;
  border: 1px solid rgba(94, 207, 138, 0.3);
}

.product-status.back-order {
  background: rgba(196, 92, 92, 0.12);
  color: var(--danger);
  border: 1px solid rgba(196, 92, 92, 0.3);
}

.product-status.pre-order {
  background: rgba(74, 122, 150, 0.15);
  color: var(--accent-bright);
  border: 1px solid rgba(74, 122, 150, 0.3);
}

.product-status.out-of-stock {
  background: rgba(196, 92, 92, 0.12);
  color: var(--danger);
  border: 1px solid rgba(196, 92, 92, 0.3);
}

.cart-checkout-btn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 6px;
  line-height: 1.25;
}

.product-desc {
  flex: 1;
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-meta {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card .shop-card-footer {
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.product-card .shop-card-footer .product-price {
  font-size: 1.32rem;
  margin: 0;
  line-height: 1.1;
}

.product-card .product-actions .btn {
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.product-card .product-actions .btn-primary {
  box-shadow: 0 4px 14px rgba(74, 122, 150, 0.22);
}

.product-card .product-actions .btn-primary:hover {
  box-shadow: 0 6px 18px rgba(74, 122, 150, 0.3);
}

.shop-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Product band ── */
.product-band {
  padding-bottom: 0;
}

/* ── Contact ── */
.contact-band {
  background: rgba(26, 31, 38, 0.5);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
}

.contact-actions {
  grid-column: 1 / -1;
}

.contact-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

.contact-card h3 {
  font-family: var(--font-display);
  margin: 0 0 16px;
}

.contact-card address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.contact-list li {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.contact-list strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
}

.contact-link:first-of-type { padding-top: 0; }
.contact-link:hover { color: var(--accent-bright); }

.contact-note {
  margin: 20px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Careers ── */
.careers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

.careers-listing {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

.job-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.job-card__head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.job-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(93, 154, 184, 0.12);
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.job-pill--open {
  border-color: rgba(93, 184, 132, 0.45);
  background: rgba(93, 184, 132, 0.14);
  color: #8fd4ae;
}

.job-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 20px 0 8px;
}

.job-card p,
.job-card li {
  color: var(--muted);
}

.job-card ul {
  margin: 0 0 8px 1.1rem;
  padding: 0;
}

.job-card li { margin-bottom: 6px; }

.careers-empty {
  padding: 24px 28px;
}

.careers-empty h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.careers-empty p {
  color: var(--muted);
  margin: 0;
}

.careers-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 4px;
}

.careers-track {
  padding: 16px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--border);
  background: rgba(18, 21, 26, 0.35);
}

.careers-track strong {
  display: block;
  margin-bottom: 4px;
}

.careers-track span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.careers-form-card .auth-hint {
  margin-bottom: 16px;
}

/* ── Legal page ── */
.legal-page {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 48px) 0 80px;
}

body.has-topbar .legal-page {
  padding-top: calc(var(--nav-h) + var(--topbar-h) + 48px);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 12px;
}

.legal-page .legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-content {
  max-width: 72ch;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 24px 0 8px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-content a { color: var(--accent-bright); }

/* ── Patch notes ── */
.patch-notes-status {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.patch-notes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.patch-notes-entry {
  padding: 28px 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.patch-notes-entry--latest {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.patch-notes-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.patch-notes-entry-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.patch-notes-version {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.patch-notes-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.patch-notes-date {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.patch-notes-summary {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}

.patch-notes-section {
  margin-top: 16px;
}

.patch-notes-section-label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.patch-notes-section-label--features { color: #6ee7b7; }
.patch-notes-section-label--improvements { color: #93c5fd; }
.patch-notes-section-label--fixes { color: #fcd34d; }

.patch-notes-section ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.patch-notes-section li + li {
  margin-top: 6px;
}

.patch-notes-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.patch-notes-platforms span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

.patch-notes-empty {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .patch-notes-entry {
    padding: 22px 18px 18px;
  }

  .patch-notes-entry-head {
    flex-direction: column;
    gap: 6px;
  }
}

/* ── Auth pages ── */
.auth-page {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.auth-shell {
  max-width: 520px;
  margin-inline: auto;
}

.auth-card {
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-card--wide { max-width: 640px; }

.auth-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 10px;
}

.auth-lead {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 0.98rem;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(93, 154, 184, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.auth-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(93, 154, 184, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input::placeholder {
  color: #7f8d9a;
}

.auth-input:hover {
  border-color: rgba(93, 154, 184, 0.5);
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

select.auth-input {
  appearance: none;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235d9ab8' d='M1 1.2 6 6.2 11 1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-color: var(--bg);
  padding-right: 36px;
}

.auth-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  color: var(--muted) !important;
  font-size: 0.88rem !important;
}

.auth-check input { width: auto; margin-top: 3px; }

.auth-hint {
  margin: -8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-submit { width: 100%; margin-top: 4px; }

.auth-message {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.auth-message--error {
  background: rgba(196, 92, 92, 0.12);
  border: 1px solid rgba(196, 92, 92, 0.35);
  color: #efb0b0;
}

.auth-message--success {
  background: rgba(94, 207, 138, 0.12);
  border: 1px solid rgba(94, 207, 138, 0.35);
  color: #9ee8bc;
}

.auth-message--info {
  background: rgba(74, 122, 150, 0.12);
  border: 1px solid rgba(74, 122, 150, 0.35);
  color: #b8d4e4;
}

.session-expired-banner {
  position: fixed;
  inset: 0 auto auto 0;
  right: 0;
  z-index: 1200;
  padding: 12px 16px;
  background: rgba(18, 21, 26, 0.96);
  border-bottom: 1px solid rgba(196, 92, 92, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.session-expired-banner-inner {
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.session-expired-banner p {
  margin: 0;
  color: #efb0b0;
  font-size: 0.92rem;
}

.session-expired-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.auth-subtitle {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.auth-mfa-step {
  margin-bottom: 8px;
}

.mfa-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 16px auto;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px;
}

.mfa-manual-key {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  word-break: break-all;
  color: var(--text);
  margin: 0 0 12px;
}

.mfa-backup-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(94, 207, 138, 0.35);
  background: rgba(94, 207, 138, 0.08);
}

.mfa-backup-list {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.mfa-backup-list code {
  font-size: 0.95rem;
}

.auth-details {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-details summary {
  cursor: pointer;
  color: var(--accent-bright);
}

.auth-form--compact { margin-top: 12px; }

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.auth-actions .btn {
  width: 100%;
}

.auth-gate {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(74, 122, 150, 0.45);
  background: rgba(74, 122, 150, 0.08);
  margin-bottom: 20px;
}

.auth-gate p {
  margin: 0 0 16px;
  color: var(--muted);
}

.account-details {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
}

.account-details div {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.account-details dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.account-details dd {
  margin: 0;
  font-size: 1rem;
}

.account-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.account-downloads { margin-bottom: 12px; }

.account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.account-links a {
  color: var(--text);
  font-size: 0.92rem;
}

.nav-cta button.btn {
  cursor: pointer;
  font: inherit;
}

.platform-downloads button.btn {
  cursor: pointer;
}

/* ── Site chrome (topbar / breadcrumbs) ── */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: rgba(10, 12, 15, 0.95);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid rgba(62, 74, 84, 0.45);
  font-size: 0.78rem;
  color: var(--muted);
}

.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--topbar-h);
  flex-wrap: wrap;
  padding: 6px 0;
}

.site-topbar-left,
.site-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-topbar-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(74, 122, 150, 0.45);
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-topbar-link {
  color: var(--muted);
  white-space: nowrap;
}

.site-topbar-link:hover { color: var(--text); }

.site-topbar-sep { opacity: 0.45; }

body.has-topbar .nav {
  top: var(--topbar-h);
}

body.has-topbar .hero {
  padding-top: calc(var(--nav-h) + var(--topbar-h) + 64px);
}

body.has-topbar .auth-page {
  padding-top: calc(var(--nav-h) + var(--topbar-h) + 48px);
}

.shop-page {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 32px) 0 64px;
}

body.has-topbar .shop-page {
  padding-top: calc(var(--nav-h) + var(--topbar-h) + 32px);
}

.shop-page > .wrap > :not(.site-breadcrumbs) {
  max-width: var(--catalog-rail-max);
  margin-inline: auto;
  width: 100%;
}

.site-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-breadcrumbs a { color: var(--muted); }
.site-breadcrumbs a:hover { color: var(--text); }

.site-breadcrumbs .bc-sep { opacity: 0.45; }

/* ── Shop / product cards ── */
.shop-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 12px;
}

.shop-lead {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 24px;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.shop-filter {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.shop-filter:hover,
.shop-filter.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(74, 122, 150, 0.12);
}

.shop-tooling-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: -12px 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(74, 122, 150, 0.06);
}

.shop-tooling-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 70ch;
}

.shop-tooling-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

@media (max-width: 720px) {
  .shop-section-controls {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}

.shop-tooling-filters-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 4px;
}

.shop-tooling-filter {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--surface, rgba(255, 255, 255, 0.02));
}

.shop-tooling-filter:hover,
.shop-tooling-filter.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(74, 122, 150, 0.14);
}

.shop-section {
  margin-bottom: 28px;
}

.shop-section__details {
  border: 1px solid rgba(93, 154, 184, 0.22);
  border-radius: 14px;
  background: rgba(18, 21, 26, 0.42);
  overflow: hidden;
}

.shop-section__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.shop-section__summary::-webkit-details-marker {
  display: none;
}

.shop-section__summary::marker {
  content: "";
}

.shop-section__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  flex: 1;
}

.shop-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.shop-section__header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.shop-section__count {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.shop-section__chevron {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.shop-section__details[open] .shop-section__chevron {
  transform: rotate(-135deg);
}

.shop-section__details[open] .shop-section__summary {
  border-bottom: 1px solid var(--border);
}

.shop-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px 22px;
  padding: 20px;
}

.shop-section-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.shop-section-control {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.shop-section-control:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(74, 122, 150, 0.12);
}

.shop-grid--grouped {
  display: block;
}

.shop-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.shop-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(35, 42, 48, 0.45);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.shop-trust-item svg { flex-shrink: 0; color: var(--accent-bright); margin-top: 2px; }
.shop-trust-item strong { display: block; color: var(--text); margin-bottom: 6px; }

.shop-trust-item > div {
  min-width: 0;
}

.shop-trust-item span {
  display: block;
  line-height: 1.5;
}

.products-grid .shop-card-media,
.shop-grid .shop-card-media {
  display: block;
  margin: -16px -16px 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
}

.products-grid .shop-card-media img,
.shop-grid .shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card-footer {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}

.shop-card h3 a { color: var(--text); }
.shop-card h3 a:hover { color: var(--accent-bright); }

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 40px;
  align-items: start;
}

.product-detail-media.panel-card {
  padding: 0;
  border: none;
  background: transparent;
}

.product-detail-main {
  max-width: none;
}

.product-detail-media img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.product-detail-media .mars-loop img,
.product-detail-media .mars-loop video {
  border: 0;
  border-radius: 0;
}

.product-media-placeholder {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: center;
  min-height: clamp(220px, 32vw, 360px);
  padding: 32px 24px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px dashed rgba(93, 154, 184, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(93, 154, 184, 0.12), transparent 48%),
    rgba(24, 28, 34, 0.72);
  text-align: center;
}

.product-media-placeholder__eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(93, 154, 184, 0.16);
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-media-placeholder strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--text);
}

.product-media-placeholder p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-media-placeholder--compact {
  min-height: 72px;
  padding: 10px;
  gap: 0;
  border-radius: var(--radius-sm);
}

.product-media-placeholder--compact strong,
.product-media-placeholder--compact p,
.product-media-placeholder--compact .product-media-placeholder__eyebrow {
  display: none;
}

.product-media-placeholder--compact::after {
  content: "No photo";
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-gallery {
  display: grid;
  gap: 16px;
  outline: none;
}

.product-gallery--wide {
  max-width: none;
}

.product-gallery__frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(93, 154, 184, 0.32);
  background: #dfe5eb;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.product-gallery__viewport {
  position: relative;
  min-height: 280px;
  height: 420px;
  touch-action: pan-y pinch-zoom;
  cursor: zoom-in;
  background: linear-gradient(180deg, #eef2f6 0%, #dfe5eb 100%);
  transition: height 0.34s ease;
}

.product-gallery--animating .product-gallery__viewport {
  transition: height 0.34s ease;
}

.product-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.34s ease, visibility 0.34s ease;
  z-index: 0;
}

.product-gallery__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.product-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  image-rendering: auto;
}

.product-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 12, 16, 0.72);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.product-gallery__nav:hover {
  transform: translateY(-1px);
  border-color: rgba(93, 154, 184, 0.65);
  background: rgba(18, 21, 26, 0.92);
  color: var(--accent-bright);
}

.product-gallery__nav--prev { left: 14px; }
.product-gallery__nav--next { right: 14px; }

.product-gallery__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(18, 21, 26, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #12151a;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.product-gallery__zoom:hover {
  transform: translateY(-1px);
  border-color: rgba(93, 154, 184, 0.65);
  background: #fff;
}

.product-gallery__dots {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.product-gallery__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.24s ease, background 0.24s ease;
}

.product-gallery__dot.is-active {
  width: 22px;
  background: var(--accent-bright);
}

.product-gallery__status {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
}

.product-gallery__caption {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text);
}

.product-gallery__counter {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.product-gallery__filmstrip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.product-gallery__film {
  flex: 0 0 min(260px, 74vw);
  display: grid;
  gap: 8px;
  padding: 0;
  border: 1px solid rgba(62, 74, 84, 0.75);
  border-radius: var(--radius-sm);
  background: rgba(35, 42, 48, 0.55);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.product-gallery__film:hover {
  border-color: rgba(93, 154, 184, 0.45);
}

.product-gallery__film.is-active {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 1px rgba(93, 154, 184, 0.35), 0 14px 34px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.product-gallery__film-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(18, 21, 26, 0.75);
}

.product-gallery__film-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border: none;
  border-radius: 0;
}

.product-gallery__film-label {
  display: block;
  padding: 0 12px 12px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.product-gallery__film.is-active .product-gallery__film-label {
  color: var(--text);
}

.product-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.product-gallery-lightbox[hidden] {
  display: none !important;
}

.product-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 10, 0.88);
  backdrop-filter: blur(6px);
}

.product-gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(96vw, 1400px);
  max-height: 92vh;
  margin: 0;
}

.product-gallery-lightbox__img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 72px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #eef2f6;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.product-gallery-lightbox__caption {
  margin: 0;
  text-align: center;
  color: #eef2f6;
  font-size: 0.92rem;
}

.product-gallery-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(18, 21, 26, 0.92);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

body.product-gallery-lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery__slide,
  .product-gallery__nav,
  .product-gallery__film,
  .product-gallery__dot {
    transition: none;
  }
}

@media (max-width: 620px) {
  .product-gallery__nav {
    width: 38px;
    height: 38px;
    margin-top: -19px;
  }

  .product-gallery__nav--prev { left: 8px; }
  .product-gallery__nav--next { right: 8px; }

  .product-gallery__zoom {
    top: auto;
    bottom: 12px;
    right: 12px;
    padding: 8px 12px;
  }

  .product-gallery__zoom span {
    display: none;
  }

  .product-gallery__status {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-gallery__dots {
    justify-content: flex-start;
  }

  .product-gallery__film {
    flex-basis: min(180px, 78vw);
  }
}

.product-price--lg { font-size: 2rem; margin: 16px 0; }

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 24px 0;
}

.qty-field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.qty-field input {
  width: 72px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

/* ── Cart page ── */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 32px;
  align-items: start;
}

.cart-empty {
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.cart-empty-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.cart-empty-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cart-items {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.cart-items-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-items-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-items-count {
  font-size: 0.88rem;
  color: var(--muted);
}

.cart-table-header,
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 88px 100px 100px 72px;
  gap: 16px;
  align-items: center;
}

.cart-table-header {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-lines { display: block; }

.cart-line {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(62, 74, 84, 0.55);
}

.cart-line:last-child { border-bottom: none; }

.cart-line-product {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.cart-line-media {
  flex-shrink: 0;
}

.cart-line-media img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.cart-line-info { min-width: 0; }

.cart-line-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.cart-line-title a {
  color: var(--text);
}

.cart-line-title a:hover { color: var(--accent-bright); }

.cart-line-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-line-unit,
.cart-line-total {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.cart-line-total {
  font-weight: 600;
  color: var(--text);
}

.cart-qty-field input {
  width: 100%;
  max-width: 72px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.cart-qty-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(74, 122, 150, 0.2);
}

.cart-line-remove {
  justify-self: end;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-line-remove:hover {
  color: var(--danger);
}

.cart-summary {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

body.has-topbar .cart-summary {
  top: calc(var(--nav-h) + var(--topbar-h) + 24px);
}

.cart-summary h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-summary-rows {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 0.95rem;
}

.cart-summary-row + .cart-summary-row {
  margin-top: 8px;
}

.cart-summary-row strong {
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cart-summary-row--total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.cart-summary-row--total strong {
  font-size: 1.35rem;
}

.cart-summary-note,
.cart-summary-help {
  margin: 16px 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.cart-summary-help a { color: var(--muted); }
.cart-summary-help a:hover { color: var(--text); }

.cart-trust-note {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.cart-label-optional {
  font-weight: 400;
  color: var(--muted);
}

.cart-checkout-btn {
  width: 100%;
  margin-top: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 2000;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: var(--accent, #3d7ea6);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.shop-note-inline { font-size: 0.92rem; color: var(--muted); }

.shop-legal-notice {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(196, 92, 92, 0.35);
  background: rgba(196, 92, 92, 0.08);
  font-size: 0.92rem;
  color: var(--muted);
}

.checkout-test-banner {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 168, 67, 0.45);
  background: rgba(212, 168, 67, 0.12);
  font-size: 0.92rem;
  line-height: 1.45;
  color: #f3d48a;
}

#checkout-shipping-warning {
  margin-top: 0;
  margin-bottom: 16px;
}

.shop-error { color: var(--danger); }

/* ── Checkout flow ── */
.shop-page--checkout .shop-header h1 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.shop-page--checkout .shop-lead {
  max-width: none;
  margin-bottom: 8px;
}

.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-step:not(:last-child)::after {
  content: "→";
  margin-left: 8px;
  opacity: 0.45;
}

.checkout-step a {
  color: var(--muted);
}

.checkout-step a:hover {
  color: var(--text);
}

.checkout-step.is-active {
  color: var(--text);
  font-weight: 600;
}

.checkout-step.is-complete {
  color: var(--accent-bright);
}

.checkout-loading {
  padding: 32px 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-panel.panel-card {
  padding: 22px 24px;
}

.checkout-panel--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.checkout-panel--compact h2,
.checkout-panel--compact .checkout-panel-lead {
  margin: 0;
}

.checkout-panel h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.checkout-panel-lead {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.checkout-panel--compact .checkout-panel-lead {
  color: var(--text);
}

.checkout-card-section {
  margin-top: 18px;
}

#checkout-stripe-element,
#print-quote-stripe-element {
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

#checkout-stripe-loading {
  margin: 0 0 12px;
}

.checkout-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 14px;
}

.checkout-field--full,
.checkout-field--phone {
  grid-column: 1 / -1;
}

.checkout-payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-payment-options:has(label[hidden]) {
  grid-template-columns: 1fr;
}

.checkout-pay-option {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(93, 154, 184, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.checkout-pay-option:hover {
  border-color: rgba(93, 154, 184, 0.5);
}

.checkout-pay-option:has(input:checked) {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: linear-gradient(145deg, rgba(74, 122, 150, 0.18), var(--bg));
}

.checkout-pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-pay-option__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.checkout-pay-option__hint {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.checkout-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}

.checkout-checkbox + .checkout-checkbox {
  margin-top: 12px;
}

.checkout-checkbox input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid rgba(93, 154, 184, 0.45);
  background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.checkout-checkbox input:checked {
  border-color: var(--accent-bright);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23e8ecef' stroke-width='2' d='M1.5 5.2 4.6 8.2 10.5 1.8'/%3E%3C/svg%3E")
    center no-repeat,
    linear-gradient(135deg, var(--accent-bright), var(--accent));
}

.checkout-checkbox a {
  color: var(--accent-bright);
}

.checkout-panel .cart-notes-field {
  margin-top: 0;
}

.checkout-panel .cart-notes-field textarea {
  min-height: 84px;
  border-radius: 10px;
  border: 1px solid rgba(93, 154, 184, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.checkout-panel .cart-notes-field textarea:hover {
  border-color: rgba(93, 154, 184, 0.5);
}

.checkout-panel .cart-notes-field textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.checkout-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}

.checkout-line strong {
  color: var(--text);
  white-space: nowrap;
}

.checkout-summary {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.checkout-summary .cart-summary-note + .cart-summary-note {
  display: none;
}

.checkout-back-link {
  display: inline-flex;
  margin-top: 12px;
}

.checkout-compliance-notices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-compliance-notices .shop-legal-notice {
  margin-top: 0;
}

.order-confirm-card {
  max-width: 720px;
  margin: 0 auto;
}

.order-confirm-summary {
  margin: 24px 0;
  padding: 20px;
}

.order-confirm-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.order-confirm-summary-head strong {
  font-size: 1.35rem;
}

.order-confirm-lines {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.order-confirm-next {
  margin: 24px 0;
}

.order-confirm-next h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.order-confirm-steps {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.order-shipping-address {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .checkout-field-grid,
  .checkout-payment-options {
    grid-template-columns: 1fr;
  }
}

/* ── Account dashboard ── */
.account-page {
  padding: calc(var(--nav-h) + 32px) 0 64px;
}

body.has-topbar .account-page {
  padding-top: calc(var(--nav-h) + var(--topbar-h) + 32px);
}

.account-gate-card {
  max-width: 440px;
  margin: 48px auto 0;
  padding: 40px 36px;
  text-align: center;
}

.account-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(74, 122, 150, 0.15);
  color: var(--accent-bright);
}

.account-gate-benefits {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.95rem;
}

.account-gate-benefits li {
  padding: 8px 0 8px 28px;
  position: relative;
}

.account-gate-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 700;
}

.account-gate-foot {
  margin: 24px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.account-loading {
  max-width: 440px;
  margin: 48px auto 0;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.nav-cart:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
}

.nav-cart .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  margin: 0;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.65rem;
  font-weight: 600;
}

.nav-auth-pending [data-auth-guest],
.nav-auth-pending [data-auth-user] {
  opacity: 0.45;
  pointer-events: none;
}

.nav-signout-btn {
  font-size: 0.84rem;
  color: var(--muted);
}

.nav-signout-btn:hover {
  color: var(--text);
}

.account-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
}

.account-sidebar {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-height: 100%;
}

.account-sidebar-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.account-sidebar-email {
  margin: 0 0 0;
  font-size: 0.92rem;
  word-break: break-all;
  color: var(--text);
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  margin: 20px 0 0;
}

.account-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.account-sidebar-btn {
  width: 100%;
  justify-content: center;
}

.account-main {
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  min-width: 0;
  min-height: 100%;
}

.account-main.panel-card {
  padding: 28px 32px;
}

.account-content {
  flex: 1 1 auto;
  min-width: 0;
}

.account-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.account-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.account-nav a.is-active {
  color: var(--text);
  background: rgba(74, 122, 150, 0.15);
  border: 1px solid rgba(74, 122, 150, 0.35);
}

.account-section-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 8px;
}

.account-section-head {
  margin-bottom: 24px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.account-stat {
  padding: 20px;
  text-align: center;
}

.account-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1.1;
}

.account-stat-label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.account-profile-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.account-details--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.account-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.account-empty {
  text-align: center;
  padding: 40px 24px;
}

.account-empty h2 {
  font-family: var(--font-display);
  margin: 0 0 8px;
}

.orders-list {
  display: grid;
  gap: 16px;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.order-id {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 4px;
}

.order-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.order-status--pending {
  background: rgba(196, 160, 92, 0.15);
  color: #e0c080;
  border: 1px solid rgba(196, 160, 92, 0.35);
}

.order-status--processing {
  background: rgba(74, 122, 150, 0.15);
  color: var(--accent-bright);
  border: 1px solid rgba(74, 122, 150, 0.35);
}

.order-status--shipped {
  background: rgba(94, 150, 207, 0.15);
  color: #8ec5ef;
  border: 1px solid rgba(94, 150, 207, 0.35);
}

.order-status--completed {
  background: rgba(94, 207, 138, 0.15);
  color: #5ecf8a;
  border: 1px solid rgba(94, 207, 138, 0.35);
}

.order-status--cancelled {
  background: rgba(196, 92, 92, 0.12);
  color: var(--danger);
  border: 1px solid rgba(196, 92, 92, 0.35);
}

.order-items-summary {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.order-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.order-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.order-lines-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.order-lines-table th,
.order-lines-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.order-lines-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.order-line-title {
  color: var(--text);
  font-weight: 500;
}

.order-line-sku {
  font-size: 0.8rem;
  color: var(--muted);
}

.order-payment-note,
.order-customer-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 8px 0 0;
}

.order-card--highlight {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 1px rgba(93, 154, 184, 0.35);
}

.account-download-reqs {
  margin: 16px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-download-card {
  display: grid;
  gap: 0;
}

.account-license-card {
  margin-top: 20px;
}

.account-license-card code,
.account-license-panel code {
  font-size: 1rem;
  letter-spacing: 0.04em;
  user-select: all;
}

.account-license-card dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.account-license-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(62, 74, 84, 0.55);
}

.account-download-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(62, 74, 84, 0.55);
}

.account-download-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.account-download-meta code {
  font-size: 0.85rem;
  word-break: break-all;
}

.account-download-steps {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-download-steps li + li {
  margin-top: 6px;
}

.account-terminal-block {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.45;
}

.account-terminal-block code {
  white-space: pre;
  color: var(--text);
}

.platform-downloads.account-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  justify-items: stretch;
  margin-bottom: 20px;
}

.platform-downloads.account-downloads .platform-download-item {
  min-width: 0;
  max-width: none;
}

.account-download-platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(62, 74, 84, 0.55);
}

.account-download-platform {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(62, 74, 84, 0.45);
  background: rgba(18, 21, 26, 0.45);
}

.account-download-platform-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .account-download-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .platform-downloads.account-downloads {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .account-download-meta {
    grid-template-columns: 1fr;
  }

  .platform-downloads.account-downloads {
    grid-template-columns: 1fr;
  }
}

.cart-notes-field {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.cart-notes-field textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  resize: vertical;
}

.cart-notes-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(74, 122, 150, 0.2);
}

@media (max-width: 900px) {
  .account-dashboard {
    grid-template-columns: 1fr;
  }

  .account-sidebar,
  .account-main {
    min-height: 0;
  }

  .account-main.panel-card {
    padding: 24px 20px;
  }

  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 0 0 auto;
  }

  .account-sidebar-foot {
    margin-top: 20px;
    padding-top: 0;
  }

  .account-stats {
    grid-template-columns: 1fr;
  }

  .account-profile-grid {
    grid-template-columns: 1fr;
  }

  .account-details--grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .shop-trust-strip { grid-template-columns: 1fr; gap: 16px; }
  .product-detail-grid { grid-template-columns: 1fr; }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cart-summary { position: static; }

  .cart-table-header { display: none; }

  .cart-line {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "product product"
      "qty total"
      "remove remove";
    gap: 12px 16px;
  }

  .cart-line-product { grid-area: product; }
  .cart-line-qty { grid-area: qty; }
  .cart-line-unit { display: none; }
  .cart-line-total {
    grid-area: total;
    justify-self: end;
    align-self: center;
    font-size: 1.05rem;
  }

  .cart-line-remove {
    grid-area: remove;
    justify-self: start;
  }

  .cart-line-qty::before {
    content: "Qty";
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.site-footer__layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.site-footer__aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.footer-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.footer-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.footer-trust-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-bright);
}

.footer-trust-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.88rem;
}

.footer-trust-item span {
  display: block;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand img { height: 40px; margin-bottom: 12px; opacity: 0.95; }

.footer-brand p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.55;
}

.footer-legal-line {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px clamp(20px, 3vw, 40px);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 12px;
}

.footer-col a,
.footer-col .footer-cookie-settings {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-col a:hover,
.footer-col .footer-cookie-settings:hover { color: var(--accent-bright); }

.footer-cookie-settings {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom .copyright {
  margin: 0 0 8px;
  padding-top: 0;
  border-top: none;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.footer-disclaimer {
  margin: 0 auto;
  max-width: 72ch;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.site-footer__layout--legal {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.footer-links--legal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ads-product-name {
  display: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

@media (min-width: 720px) {
  .ads-product-name {
    display: inline-block;
    margin-right: auto;
    padding-left: 8px;
  }
}

.ads-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.ads-footer-brand p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.55;
}

.ads-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.ads-footer-links a {
  color: var(--text);
  font-size: 0.9rem;
}

.ads-footer-links a:hover {
  color: var(--accent-bright);
}

@media (max-width: 980px) {
  .site-footer__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

.copyright {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 520px; margin-inline: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .mars-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid--page,
  .services-detail-grid { grid-template-columns: 1fr; }
  .mars-detail { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .careers-grid,
  .careers-tracks { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.86rem; }
  .nav-cta .btn { padding: 8px 12px; font-size: 0.8rem; }
}

@media (max-width: 768px) {
  :root {
    --brand-logo-h: 40px;
    --nav-h: 64px;
    --page-gutter: 16px;
  }

  .wrap {
    width: calc(100% - (var(--page-gutter) * 2));
  }

  .nav-inner {
    gap: 8px;
    min-width: 0;
  }

  .brand {
    min-width: 0;
    flex-shrink: 1;
  }

  .brand img {
    max-width: min(148px, 42vw);
  }

  .app-body { grid-template-columns: 1fr; }
  .app-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-right: none;
    border-bottom: 1px solid var(--app-border);
  }
  .app-nav-label { display: none; }
  .app-nav-item { margin: 0; font-size: 0.85em; }
  .app-main { grid-template-columns: 1fr; }
  .app-wizard-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn {
    padding: 8px 10px;
    font-size: 0.76rem;
    min-height: 44px;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    z-index: 121;
  }
  .nav-backdrop {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + var(--topbar-h, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 109;
    background: rgba(8, 10, 12, 0.62);
    border: 0;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  body:not(.has-topbar) .nav-backdrop {
    top: var(--nav-h);
  }
  .nav.open .nav-backdrop {
    display: block;
  }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--nav-h) + var(--topbar-h, 0px));
    left: 0;
    right: 0;
    bottom: auto;
    max-height: min(70dvh, calc(100dvh - var(--nav-h) - var(--topbar-h, 0px) - 8px));
    background: var(--bg-elevated);
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--border);
    gap: 0;
    z-index: 120;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body:not(.has-topbar) .nav.open .nav-links {
    top: var(--nav-h);
  }

  .nav.open .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 1.05rem;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(62, 74, 84, 0.45);
  }

  .nav-item-has-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open .nav-submenu {
    display: block;
    position: static;
    min-width: 0;
    margin: 0 0 8px 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav.open .nav-submenu a {
    min-height: 40px;
    font-size: 0.95rem;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split-panels { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; gap: 32px; }
  .workflow::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .floating-card { left: 12px; bottom: -12px; }
  section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .nav-cta [data-auth-guest] .btn-ghost {
    display: none;
  }

  .nav-cta .btn-primary {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .site-topbar-text,
  .site-topbar-sep:nth-of-type(1) {
    display: none;
  }

  .floating-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 16px;
    min-width: 0;
    width: 100%;
  }
}

/* ── Admin panel ── */
.admin-page {
  padding: calc(var(--nav-h) + 32px) 0 64px;
}

body.has-topbar .admin-page {
  padding-top: calc(var(--nav-h) + var(--topbar-h) + 32px);
}

.admin-gate-card {
  max-width: 480px;
  margin: 48px auto 0;
  padding: 40px 36px;
  text-align: center;
}

.admin-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(74, 122, 150, 0.15);
  color: var(--accent-bright);
}

.admin-gate-icon--denied {
  background: rgba(196, 92, 92, 0.12);
  color: var(--danger);
}

.admin-gate-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.admin-gate-benefits {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-gate-benefits li {
  padding: 8px 0 8px 28px;
  position: relative;
}

.admin-gate-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 700;
}

.admin-gate-foot {
  margin: 24px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-height: 100%;
}

.admin-sidebar-kicker {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.admin-sidebar-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-sidebar-email {
  margin: 0 0 0;
  font-size: 0.92rem;
  word-break: break-all;
  color: var(--text);
}

.admin-sidebar-role {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--accent-bright);
  font-weight: 600;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  margin: 20px 0 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.admin-nav-item svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.admin-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-nav-item.is-active {
  color: var(--text);
  background: rgba(74, 122, 150, 0.15);
  border-color: rgba(74, 122, 150, 0.35);
}

.admin-nav-item.is-active svg {
  opacity: 1;
  color: var(--accent-bright);
}

.admin-nav-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(232, 195, 106, 0.2);
  border: 1px solid rgba(232, 195, 106, 0.45);
  color: #e8c36a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.admin-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.admin-sidebar-btn {
  width: 100%;
  justify-content: center;
}

.admin-main {
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  min-width: 0;
  min-height: 100%;
}

.admin-main.panel-card {
  padding: 28px 32px;
}

.admin-content {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-message {
  margin-bottom: 20px;
}

.admin-section-head {
  margin: 0 0 24px;
}

.admin-section-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 8px;
}

.admin-section-head .auth-lead {
  margin-bottom: 0;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-kpi-grid--overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-kpi-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.admin-kpi {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}

.admin-kpi--compact {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 16px;
}

.admin-kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(74, 122, 150, 0.12);
  border: 1px solid rgba(74, 122, 150, 0.25);
  color: var(--accent-bright);
}

.admin-kpi-icon--warn {
  background: rgba(232, 195, 106, 0.1);
  border-color: rgba(232, 195, 106, 0.3);
  color: #e8c36a;
}

.admin-kpi-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1.1;
}

.admin-kpi--compact .admin-kpi-num {
  font-size: 2rem;
}

.admin-kpi-label {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-kpi--highlight {
  border-color: rgba(232, 195, 106, 0.4);
  box-shadow: inset 0 0 0 1px rgba(232, 195, 106, 0.12);
}

.admin-kpi--highlight .admin-kpi-num {
  color: #e8c36a;
}

.admin-kpi--highlight .admin-kpi-icon--warn {
  background: rgba(232, 195, 106, 0.18);
}

.admin-card-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.admin-card-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-action-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 1100px) {
  .admin-action-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(35, 42, 48, 0.45);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.admin-action-tile:hover {
  border-color: rgba(74, 122, 150, 0.5);
  background: rgba(74, 122, 150, 0.1);
  transform: translateY(-1px);
}

.admin-action-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(74, 122, 150, 0.15);
  color: var(--accent-bright);
}

.admin-catalog-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(62, 74, 84, 0.45);
  font-size: 0.92rem;
  color: var(--muted);
}

.admin-catalog-meta strong {
  color: var(--text);
  font-weight: 600;
}

.admin-catalog-loading {
  color: var(--muted);
}

.admin-table-col-thumb {
  width: 56px;
}

.admin-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.admin-product-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.7rem;
}

.admin-product-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-product-cell strong {
  font-weight: 600;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.admin-filter:hover {
  color: var(--text);
  border-color: rgba(74, 122, 150, 0.5);
}

.admin-filter.is-active {
  color: var(--text);
  background: rgba(74, 122, 150, 0.15);
  border-color: rgba(74, 122, 150, 0.45);
}

.admin-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.admin-table-wrap.panel-card {
  padding: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(62, 74, 84, 0.55);
  vertical-align: middle;
}

.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.15);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 32px 16px !important;
}

.admin-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-status--pending {
  color: #e8c36a;
  background: rgba(232, 195, 106, 0.12);
  border: 1px solid rgba(232, 195, 106, 0.35);
}

.admin-status--approved {
  color: #7bc99a;
  background: rgba(123, 201, 154, 0.12);
  border: 1px solid rgba(123, 201, 154, 0.35);
}

.admin-status--rejected {
  color: var(--danger);
  background: rgba(196, 92, 92, 0.12);
  border: 1px solid rgba(196, 92, 92, 0.35);
}

.admin-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-table-actions-cell {
  vertical-align: middle;
  white-space: nowrap;
  width: 1%;
}

.admin-table td.admin-actions {
  display: table-cell;
  vertical-align: middle;
  white-space: nowrap;
  width: 1%;
}

.admin-table td.admin-actions > .btn,
.admin-table td.admin-actions > button {
  display: inline-flex;
  vertical-align: middle;
}

.admin-email {
  font-size: 0.85rem;
  word-break: break-all;
}

.admin-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-create-card {
  margin-bottom: 1.5rem;
}

.admin-create-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.admin-create-form {
  margin-top: 1rem;
}

.admin-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-create-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-create-actions {
  margin-top: 1rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-main {
    min-height: 0;
  }

  .admin-main.panel-card {
    padding: 24px 20px;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 0 0 auto;
  }

  .admin-nav-item {
    width: auto;
    flex: 1 1 auto;
    min-width: calc(50% - 4px);
  }

  .admin-sidebar-foot {
    margin-top: 20px;
    padding-top: 0;
  }

  .admin-kpi-grid,
  .admin-kpi-grid--overview,
  .admin-kpi-grid--compact {
    grid-template-columns: 1fr 1fr;
  }

  .admin-action-tiles {
    grid-template-columns: 1fr;
  }

  .admin-create-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-kpi-grid,
  .admin-kpi-grid--overview,
  .admin-kpi-grid--compact {
    grid-template-columns: 1fr;
  }

  .admin-dash-grid {
    grid-template-columns: 1fr;
  }
}

.admin-nav-item:focus-visible,
.admin-filter:focus-visible {
  outline: 2px solid rgba(74, 122, 150, 0.65);
  outline-offset: 2px;
}

.admin-section-lead {
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.account-stat--highlight,
.admin-kpi--highlight {
  border-color: rgba(232, 195, 106, 0.4);
  box-shadow: inset 0 0 0 1px rgba(232, 195, 106, 0.12);
}

.account-stat--highlight .account-stat-num,
.admin-kpi--highlight .admin-kpi-num {
  color: #e8c36a;
}

#admin-refresh-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.admin-section {
  animation: admin-fade-in 0.2s ease;
}

@keyframes admin-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-section-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.admin-dash-card {
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  height: 100%;
}

.admin-dash-card--catalog {
  background: linear-gradient(145deg, rgba(74, 122, 150, 0.08), var(--panel));
  border-color: rgba(74, 122, 150, 0.3);
}

.admin-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid rgba(74, 122, 150, 0.35);
  border-radius: 16px;
  background: var(--surface, #1a1f26);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.admin-modal--wide {
  width: min(920px, calc(100vw - 32px));
}

.admin-modal--product {
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.admin-modal--product .admin-modal-inner {
  max-height: calc(100vh - 24px);
}

.admin-product-editor__head {
  align-items: flex-start;
}

.admin-product-editor__subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-product-editor__layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  flex: 1 1 auto;
  border-top: 1px solid rgba(62, 74, 84, 0.4);
  border-bottom: 1px solid rgba(62, 74, 84, 0.4);
}

.admin-product-preview {
  margin: 1rem 0 1rem 1rem;
  padding: 1rem;
  align-self: start;
  position: sticky;
  top: 0;
}

.admin-product-preview__label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-product-preview__card {
  border: 1px solid rgba(62, 74, 84, 0.45);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.admin-product-preview__media {
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-product-preview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-product-preview__placeholder {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-product-preview__body {
  padding: 0.9rem 1rem 1rem;
}

.admin-product-preview__body h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.admin-product-preview__body .product-desc {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-product-preview__body .product-meta {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
}

.admin-product-preview__price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent, #7eb8d8);
}

.admin-product-preview__hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-product-copy-id-btn {
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
}

.admin-product-editor__alert {
  margin: 0.75rem 1rem 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 92, 92, 0.45);
  background: rgba(196, 92, 92, 0.1);
  color: #efb0b0;
  font-size: 0.86rem;
}

.admin-product-editor__alert[hidden] {
  display: none !important;
}

.admin-product-editor__shortcuts {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
  opacity: 0.85;
}

.auth-input.is-invalid,
.auth-input.is-invalid:focus {
  border-color: rgba(196, 92, 92, 0.65);
  box-shadow: 0 0 0 1px rgba(196, 92, 92, 0.25);
}

.auth-input[readonly] {
  opacity: 0.72;
  cursor: not-allowed;
}

#admin-product-short-count.is-warn {
  color: #e8c36a;
}

#admin-product-short-count.is-over {
  color: var(--danger, #c45c5c);
  font-weight: 600;
}

.admin-product-preview__status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.admin-product-preview__id {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-product-preview__sku {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-product-preview__features {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-product-preview__features li + li {
  margin-top: 0.25rem;
}

.admin-product-preview__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.admin-product-preview__gallery img,
.admin-product-gallery-preview__strip img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(62, 74, 84, 0.45);
  background: rgba(0, 0, 0, 0.2);
}

.admin-product-preview__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.admin-product-media-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.admin-product-media-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

.admin-product-media-preview.is-error {
  border-color: rgba(196, 92, 92, 0.45);
}

.admin-product-gallery-preview {
  margin-top: 1rem;
}

.admin-product-gallery-preview__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.admin-entitlement-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-chip {
  appearance: none;
  border: 1px solid rgba(74, 122, 150, 0.35);
  background: rgba(74, 122, 150, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.admin-chip:hover {
  background: rgba(74, 122, 150, 0.16);
  border-color: rgba(74, 122, 150, 0.55);
}

.admin-chip.is-active {
  background: rgba(123, 201, 154, 0.14);
  border-color: rgba(123, 201, 154, 0.45);
  color: #9ed9b6;
}

.admin-product-editor__foot-left {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.admin-product-editor__foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-product-delete-btn {
  color: var(--danger, #c45c5c);
}

.admin-product-editor__foot-note.is-dirty {
  color: #e8c36a;
}

.admin-product-editor__foot-note.is-error {
  color: var(--danger, #c45c5c);
}

.admin-product-editor__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.admin-product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(62, 74, 84, 0.4);
  background: rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-product-tab.has-errors::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--danger, #c45c5c);
  vertical-align: middle;
}

.admin-product-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.admin-product-tab:hover {
  color: var(--text);
}

.admin-product-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent, #7eb8d8);
}

.admin-product-editor__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 260px);
  overflow: auto;
}

.admin-product-panel {
  display: block;
}

.admin-product-panel[hidden] {
  display: none !important;
}

.admin-product-panel .admin-form-fieldset + .admin-form-fieldset {
  margin-top: 1.25rem;
}

.admin-form-checks--inline {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: 0;
}

.admin-field-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-field-inline .auth-input {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-textarea--tall {
  min-height: 140px;
}

.auth-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.auth-hint strong {
  font-weight: 600;
  color: var(--text);
}

.admin-product-editor__foot {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-product-editor__foot-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-product-editor__foot-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.admin-modal--product .admin-form-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem 1.25rem;
}

.admin-modal--product .admin-textarea {
  min-height: 96px;
}

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

  .admin-product-preview {
    margin: 1rem 1rem 0;
    position: static;
  }

  .admin-product-editor__body {
    max-height: none;
  }

  .admin-product-editor__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-product-editor__foot-actions {
    justify-content: flex-end;
  }
}

.admin-table-wrap--products {
  overflow: auto;
  max-width: 100%;
}

.admin-table--products {
  min-width: 880px;
}

.admin-table--products .admin-product-cell {
  min-width: 180px;
}

.admin-table th.admin-table-col-actions {
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  width: 1%;
}

.admin-main .admin-section[data-admin-section="products"] {
  min-width: 0;
}

.auth-input[readonly] {
  opacity: 0.72;
  cursor: not-allowed;
}

.admin-modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.admin-modal-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}

.admin-modal-head,
.admin-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(62, 74, 84, 0.55);
}

.admin-modal-foot {
  border-bottom: none;
  border-top: 1px solid rgba(62, 74, 84, 0.55);
  justify-content: flex-end;
}

.admin-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.admin-modal-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.admin-modal-close:hover {
  color: var(--text);
}

.admin-modal-body {
  padding: 1.25rem;
  overflow: auto;
}

#admin-password-form .admin-modal-body .auth-lead {
  margin: 0 0 1rem;
}

#admin-password-message {
  margin: 0 0 1rem;
}

#admin-password-form .auth-field + .auth-field {
  margin-top: 1rem;
}

.admin-employee-roles {
  display: grid;
  gap: 8px;
}

.admin-employee-role {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.admin-employee-role strong {
  display: block;
}

.admin-employee-role__summary {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-employee-permissions-label {
  margin: 14px 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-employee-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-employee-permissions code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-form-span-2 {
  grid-column: span 2;
}

.admin-textarea {
  min-height: 80px;
  resize: vertical;
}

.admin-modal select.auth-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.admin-form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(62, 74, 84, 0.4);
}

.admin-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.admin-order-items {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .admin-kpi-grid--overview,
  .admin-dash-grid,
  .admin-form-grid,
  .admin-order-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-span-2 {
    grid-column: span 1;
  }

  .admin-actions {
    min-width: 0;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* ── Admin marketing hub ── */
.admin-marketing-note {
  margin-bottom: 16px;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(74, 122, 150, 0.08), var(--panel));
  border-color: rgba(74, 122, 150, 0.3);
}

.admin-marketing-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.admin-marketing-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.admin-social-card {
  padding: 20px 22px;
}

.admin-social-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-social-toggle {
  margin: 0;
  font-size: 0.82rem;
  white-space: nowrap;
}

.admin-platform-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 8px;
}

.admin-form-fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.admin-form-fieldset .auth-label {
  display: block;
  margin-bottom: 8px;
}

.admin-toolbar-lead {
  margin: 0;
  flex: 1 1 240px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 12px 0 4px;
}

.footer-social a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-social a:hover {
  color: var(--accent-bright);
}

@media (max-width: 900px) {
  .admin-social-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Multi-page layout & commerce home ── */
.page-main {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 32px) 0 80px;
}

.page-main > .wrap > :not(.site-breadcrumbs) {
  max-width: var(--catalog-rail-max);
  margin-inline: auto;
  width: 100%;
}

body.has-topbar .page-main {
  padding-top: calc(var(--nav-h) + var(--topbar-h) + 32px);
}

.page-hero {
  margin: 0 auto 48px;
  max-width: 720px;
  text-align: center;
}

.page-hero-brand {
  display: block;
  width: min(360px, 88%);
  height: auto;
  margin: 0 auto 20px;
}

.page-hero .eyebrow {
  display: inline-flex;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.page-lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0 auto;
  max-width: 58ch;
}

.services-page-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.page-hero.page-hero--services {
  max-width: none;
  width: 100%;
  margin-bottom: 22px;
  text-align: center;
}

.page-hero.page-hero--services .eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
}

.page-hero.page-hero--services h1 {
  margin-bottom: 14px;
}

.page-hero.page-hero--services .page-lead {
  max-width: 62ch;
  margin-inline: auto;
  line-height: 1.65;
}

.page-hero--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: none;
}

.page-section {
  margin-bottom: 56px;
}

.page-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 20px;
}

.page-cta {
  margin-top: 48px;
  padding: 32px;
  text-align: center;
}

.page-cta h2 {
  font-family: var(--font-display);
  margin: 0 0 12px;
}

.page-cta p {
  color: var(--muted);
  margin: 0 0 20px;
}

.page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
  flex-wrap: wrap;
  max-width: var(--catalog-rail-max);
  width: 100%;
  margin: 0 0 40px;
  text-align: left;
}

.section-head--row > :first-child {
  flex: 1 1 420px;
  min-width: 0;
}

.section-head--row > .btn {
  flex-shrink: 0;
  margin-bottom: 2px;
}

@media (max-width: 640px) {
  .section-head--row {
    align-items: stretch;
  }

  .section-head--row > .btn {
    align-self: flex-start;
  }
}

.hero--commerce .hero-grid {
  align-items: center;
}

.commerce-hero-card {
  padding: 28px;
}

.commerce-hero-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 12px;
}

.commerce-hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.commerce-hero-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

.commerce-hero-card__price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.commerce-hero-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-trust {
  padding: 0 0 48px;
}

.home-trust--storefront {
  padding: 48px 0 56px;
}

.home-trust--storefront .shop-trust-strip {
  max-width: var(--catalog-rail-max);
  margin-inline: auto;
  margin-bottom: 0;
}

.home-trust--storefront .shop-trust-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 18px;
}

.home-trust--storefront .shop-trust-item strong {
  margin-bottom: 8px;
}

.home-categories,
.home-products,
.home-promo-band,
.home-about-teaser {
  padding: 48px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: var(--catalog-rail-max);
  margin-inline: auto;
}

.category-grid--compact {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 28px;
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(35, 42, 48, 0.45);
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.category-card__icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--accent-bright);
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.category-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 16px;
  flex: 1;
}

.category-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.category-card--compact {
  padding: 16px 20px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.category-card--compact.is-active,
.category-card.is-active {
  border-color: var(--accent);
  background: rgba(74, 122, 150, 0.14);
}

.category-card--compact h3 {
  margin: 0;
  font-size: 0.95rem;
}

.promo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.promo-card {
  padding: 32px;
}

.promo-card h2 {
  font-family: var(--font-display);
  margin: 8px 0 12px;
}

.promo-card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.promo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px;
  text-align: center;
}

.about-teaser > div:first-child {
  max-width: 720px;
}

.about-teaser h2 {
  font-family: var(--font-display);
  margin: 0 0 10px;
}

.about-teaser p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 52ch;
}

.about-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.product-landing-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 48px;
}

.product-landing-media img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.product-landing-buy h2 {
  margin-top: 0;
}

.product-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

/* ── M.A.R.S. product page (wide layout) ── */
.page-main--mars > .wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 32px);
}

.page-main--mars > .wrap > :not(.site-breadcrumbs) {
  max-width: none;
  width: 100%;
}

.mars-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: 0;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 88% 18%, rgba(93, 154, 184, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(35, 42, 48, 0.92), rgba(18, 21, 26, 0.94));
}

.mars-page-hero__copy {
  min-width: 0;
}

.mars-page-hero__brand {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin: 0 0 16px;
}

.mars-page-hero__copy .page-lead {
  max-width: 52ch;
  margin: 0 0 24px;
  text-align: left;
}

.mars-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.mars-page-hero__buy {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(62, 74, 84, 0.55);
}

.mars-page-hero__summary {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.55;
}

.mars-page-hero__media {
  min-width: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(93, 154, 184, 0.22);
  background: rgba(18, 21, 26, 0.55);
}

.mars-page-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mars-page-hero:has(.mars-loop) {
  align-items: start;
}

.mars-page-hero__media:has(.mars-loop) {
  background: #d4d4d4;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.mars-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.mars-page-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: 0;
}

.mars-page-panel {
  padding: clamp(24px, 3vw, 32px);
  height: 100%;
}

.mars-page-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 18px;
}

.mars-page-panel .mars-list {
  margin-bottom: 0;
}

.mars-list--specs li {
  margin-bottom: 12px;
}

.mars-page-ops {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  margin-bottom: 0;
  padding: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(circle at 0% 100%, rgba(212, 168, 83, 0.1), transparent 42%),
    rgba(35, 42, 48, 0.72);
}

.mars-page-ops h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 12px;
}

.mars-page-ops p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}

.mars-tags--inline {
  margin-top: 0;
  justify-content: flex-end;
}

.mars-page-cta {
  margin-top: 0;
  padding: clamp(28px, 4vw, 40px);
}

.mars-page-panel--download .mars-page-hero__summary {
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  max-width: 68ch;
}

.mars-page-panel--download .auth-gate {
  margin-top: 4px;
  margin-bottom: clamp(20px, 2.5vw, 28px);
}

.mars-page-panel--download .platform-downloads {
  margin-top: 4px;
  margin-bottom: clamp(12px, 2vw, 20px);
}

.mars-page-panel--download #download-status {
  margin-top: 4px;
}

.download-release-notes {
  margin: clamp(16px, 2.5vw, 24px) 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 72ch;
}

.download-release-notes__link {
  margin-top: 12px;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .mars-page-hero {
    grid-template-columns: 1fr;
  }

  .mars-page-hero__media {
    order: -1;
  }

  .mars-page-hero__media:has(.mars-loop) {
    position: static;
  }

  .mars-page-columns,
  .mars-page-ops {
    grid-template-columns: 1fr;
  }

  .mars-tags--inline {
    justify-content: flex-start;
  }
}

.services-hero-offer {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent-bright);
}

.mars-page-hero__media--services {
  background: transparent;
  border: none;
  overflow: visible;
}

.services-hero-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.services-hero-visual__tile {
  min-height: 128px;
  padding: 20px 18px;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(93, 154, 184, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(93, 154, 184, 0.12), transparent 42%),
    rgba(18, 21, 26, 0.82);
}

.services-hero-visual__tile strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.services-hero-visual__tile span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .services-hero-visual {
    grid-template-columns: 1fr;
  }
}

.mars-page-hero__media--gallery {
  background: transparent;
  border: none;
  overflow: visible;
}

.mars-page-hero__media--gallery .product-gallery {
  gap: 12px;
}

.mars-page-hero__media--gallery .product-gallery__frame {
  border-radius: calc(var(--radius) + 4px);
}

/* Shop product card buttons — compact footer actions */
.shop-grid .shop-card .shop-card-footer,
.products-grid .shop-card .shop-card-footer {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.shop-grid .shop-card .shop-card-footer .product-price,
.products-grid .shop-card .shop-card-footer .product-price {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.1;
}

.shop-grid .shop-card .product-actions,
.products-grid .shop-card .product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.shop-grid .shop-card .product-actions .btn,
.products-grid .shop-card .product-actions .btn {
  padding: 6px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 0;
  gap: 4px;
}

.shop-grid .shop-card .product-actions .btn-primary,
.products-grid .shop-card .product-actions .btn-primary {
  box-shadow: 0 3px 10px rgba(74, 122, 150, 0.2);
}

.shop-grid .shop-card .product-actions .btn-primary:hover,
.products-grid .shop-card .product-actions .btn-primary:hover {
  box-shadow: 0 4px 14px rgba(74, 122, 150, 0.28);
}

@media (max-width: 520px) {
  .shop-grid .shop-card .shop-card-footer,
  .products-grid .shop-card .shop-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-grid .shop-card .product-actions,
  .products-grid .shop-card .product-actions {
    margin-left: 0;
    width: 100%;
  }

  .shop-grid .shop-card .product-actions .btn,
  .products-grid .shop-card .product-actions .btn {
    flex: 1 1 calc(50% - 3px);
    justify-content: center;
  }
}

.shop-filters-label {
  color: var(--muted);
  font-size: 0.9rem;
  align-self: center;
  margin-right: 4px;
}

.shop-filters {
  align-items: center;
}

@media (max-width: 900px) {
  .category-grid,
  .category-grid--compact {
    grid-template-columns: 1fr 1fr;
  }

  .promo-split,
  .product-landing-grid {
    grid-template-columns: 1fr;
  }

  .about-teaser {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .category-grid,
  .category-grid--compact {
    grid-template-columns: 1fr;
  }
}

/* Site promo banner (storefront CMS) */
.site-promo-banner {
  background: linear-gradient(90deg, rgba(212, 168, 83, 0.18), rgba(212, 168, 83, 0.08));
  border-bottom: 1px solid rgba(212, 168, 83, 0.35);
  color: var(--text);
}

.site-promo-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.site-promo-banner__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.site-promo-banner__copy strong {
  font-family: var(--font-display);
}

.site-promo-banner__copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

body.has-promo-banner .nav {
  top: 0;
}

/* Cart promo code */
.cart-promo-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(62, 74, 84, 0.45);
}

.cart-promo-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.cart-promo-input-row .auth-input {
  flex: 1;
}

/* Admin analytics + customer 360 */
.admin-analytics-card {
  margin-top: 1.25rem;
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 1.25rem;
}

.admin-analytics-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.admin-analytics-table {
  margin-bottom: 1.25rem;
}

.admin-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.admin-customer-section {
  padding: 1rem 1.1rem;
}

.admin-customer-orders {
  margin-top: 0;
}

.admin-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.admin-detail-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
}

.admin-detail-list dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-detail-list dd {
  margin: 0;
}

.admin-tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-storefront-form {
  display: grid;
  gap: 12px;
}

.admin-storefront-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: none;
  margin: 0;
  padding: 1rem 1.1rem;
}

.admin-storefront-section legend {
  grid-column: 1 / -1;
  padding: 0;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .admin-analytics-grid,
  .admin-customer-grid,
  .admin-storefront-section {
    grid-template-columns: 1fr;
  }

  .admin-detail-list div {
    grid-template-columns: 1fr;
  }
}

/* Customer support chat widget */
#helios-support-chat-root {
  position: static;
  z-index: 4000;
  pointer-events: none;
}

#helios-support-chat-root .support-chat-toggle,
#helios-support-chat-root .support-chat-panel {
  pointer-events: auto;
}

.support-chat-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 4001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(212, 168, 83, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(26, 31, 38, 0.98), rgba(18, 21, 26, 0.98));
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.support-chat-toggle-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: transparent;
}

.support-chat-toggle-label {
  font-weight: 600;
}

.support-chat-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent, #d4a853);
  color: #12151a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.support-chat-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 4001;
  width: min(400px, calc(100vw - 24px));
  height: auto;
  max-height: min(72dvh, calc(100dvh - 108px));
  padding: 0;
  display: flex;
  flex-direction: column;
  color: #e8ecef;
  color-scheme: dark;
  border: 1px solid rgba(62, 74, 84, 0.65);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(18, 21, 26, 0.94), rgba(18, 21, 26, 0.97)),
    #12151a;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.support-chat-panel:not([hidden]) {
  display: flex !important;
}

.support-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(62, 74, 84, 0.55);
}

.support-chat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.support-chat-brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

.support-chat-head-title,
.support-chat-head strong {
  display: block;
  font-family: var(--font-display);
}

.support-chat-head-sub {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.support-chat-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.support-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.55rem 0.75rem 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.support-chat-starters {
  flex: 0 0 auto;
  padding: 0 0.75rem 0.65rem;
}

.support-chat-starters[hidden] {
  display: none !important;
}

.support-chat-foot {
  flex: 0 0 auto;
  padding: 0.45rem 0.6rem 0.5rem;
  border-top: 1px solid rgba(62, 74, 84, 0.55);
  background: #161b21;
}

.support-chat-form {
  display: grid;
  gap: 0;
}

.support-chat-lead-toggle {
  border: none;
  background: transparent;
  color: #9aa8b5;
  font: inherit;
  font-size: 0.72rem;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.support-chat-lead-toggle:hover {
  color: #e8ecef;
}

.support-chat-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0.4rem 0.7rem;
  border-bottom: 1px solid rgba(62, 74, 84, 0.45);
  background: #161b21;
}

.support-chat-lead-input,
.support-chat-input {
  width: 100%;
  border: 1px solid #3e4a54;
  border-radius: 10px;
  background: #1a1f26;
  color: #e8ecef;
  font: inherit;
}

.support-chat-lead-input {
  min-height: 32px;
  padding: 0.3rem 0.55rem;
  font-size: 0.82rem;
}

.support-chat-lead-input::placeholder,
.support-chat-input::placeholder {
  color: #8b9aa6;
  opacity: 1;
}

.support-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.support-chat-input {
  resize: none;
  min-height: 40px;
  max-height: 88px;
  padding: 0.45rem 0.65rem;
  line-height: 1.35;
  overflow-y: auto;
  field-sizing: content;
}

.support-chat-send.btn {
  min-height: 40px;
  height: 40px;
  padding: 0 0.85rem;
  font-size: 0.85rem;
  box-shadow: none;
}

.support-chat-messages {
  display: grid;
  gap: 12px;
}

.support-chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 92%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #1a1f26;
  border: 1px solid rgba(62, 74, 84, 0.45);
  color: #e8ecef;
}

.support-chat-avatar {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

.support-chat-message-main {
  min-width: 0;
  flex: 1;
}

.support-chat-message--staff {
  margin-right: auto;
  border-color: rgba(212, 168, 83, 0.35);
}

.support-chat-message--assistant {
  margin-right: auto;
  border-color: rgba(93, 154, 184, 0.45);
  background: rgba(93, 154, 184, 0.1);
}

.support-chat-message--customer {
  margin-left: auto;
  background: rgba(212, 168, 83, 0.12);
}

.support-chat-message-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.support-chat-message-meta time {
  color: var(--muted);
  white-space: nowrap;
}

.support-chat-message-body {
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #e8ecef;
}

.support-chat-guest,
.support-chat-empty {
  display: grid;
  gap: 4px;
}

.support-chat-empty p {
  margin: 0;
}

.support-chat-empty-brand {
  display: none;
}

.support-chat-guest-form {
  display: grid;
  gap: 10px;
}

.support-chat-guest-form label {
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
}

.support-chat-guest-form input,
.support-chat-guest-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(62, 74, 84, 0.75);
  border-radius: 10px;
  background: rgba(26, 31, 38, 0.95);
  color: var(--text);
  font: inherit;
}

.support-chat-guest-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.support-chat-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.support-chat-chips .support-chat-chip:last-child {
  grid-column: 1 / -1;
}

.support-chat-chip {
  width: 100%;
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 999px;
  background: rgba(26, 31, 38, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  text-align: center;
}

.support-chat-chip:hover {
  border-color: rgba(212, 168, 83, 0.7);
  background: rgba(212, 168, 83, 0.1);
}

.support-chat-panel.is-open-hours .support-chat-head-sub::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 6px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
  vertical-align: middle;
}

.support-chat-admin-flags,
.support-chat-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-chat-flag {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(93, 154, 184, 0.16);
  color: #9cc7db;
  font-size: 0.72rem;
  font-weight: 700;
}

.support-chat-flag--urgent {
  background: rgba(212, 168, 83, 0.18);
  color: var(--accent, #d4a853);
}

.support-chat-muted,
.support-chat-error {
  color: var(--muted);
  font-size: 0.92rem;
}

.support-chat-error {
  flex: 0 0 auto;
  margin: 0 0 0.4rem;
  padding: 0;
  color: #f87171;
}

/* Admin support inbox */
.admin-support-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 12px;
  min-height: 520px;
}

.admin-support-sidebar {
  padding: 1rem;
  overflow: hidden;
}

.admin-support-thread-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  margin-top: 0.75rem;
}

.admin-support-thread {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(62, 74, 84, 0.45);
  border-radius: 12px;
  background: rgba(26, 31, 38, 0.65);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.admin-support-thread.is-active,
.admin-support-thread:hover {
  border-color: rgba(212, 168, 83, 0.45);
  background: rgba(212, 168, 83, 0.08);
}

.admin-support-thread--unread strong {
  color: var(--accent, #d4a853);
}

.admin-support-thread-top,
.admin-support-thread-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-support-thread-subject {
  font-weight: 600;
}

.admin-support-thread-preview {
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-unread-pill {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(212, 168, 83, 0.18);
  color: var(--accent, #d4a853);
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-support-detail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-support-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.1rem;
}

.admin-support-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-support-messages {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
  padding: 1rem 1.1rem;
}

.admin-support-reply {
  display: grid;
  gap: 12px;
  padding: 1rem 1.1rem;
}

.admin-crash-meta {
  padding: 1rem 1.1rem;
}

.admin-crash-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 20px;
  margin: 0;
}

.admin-crash-meta-grid dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.admin-crash-meta-grid dd {
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.92rem;
  word-break: break-word;
}

.admin-crash-detail {
  margin: 0;
  padding: 1rem 1.1rem;
  max-height: 60vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.82rem;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
}

.support-chat-panel--admin {
  width: min(420px, calc(100vw - 24px));
}

.support-chat-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.support-chat-admin-link,
.support-chat-admin-back {
  border: none;
  background: transparent;
  color: var(--accent, #d4a853);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
}

.support-chat-admin-list {
  display: grid;
  gap: 8px;
}

.support-chat-admin-thread {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(62, 74, 84, 0.45);
  border-radius: 10px;
  background: rgba(26, 31, 38, 0.75);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.support-chat-admin-thread--unread {
  border-color: rgba(212, 168, 83, 0.45);
}

.support-chat-admin-thread-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.support-chat-admin-thread-preview {
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-chat-admin-unread {
  justify-self: start;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(212, 168, 83, 0.18);
  color: var(--accent, #d4a853);
  font-size: 0.75rem;
  font-weight: 700;
}

.support-chat-admin-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

@media (max-width: 960px) {
  .admin-support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .support-chat-panel {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
    height: auto;
    max-height: min(78dvh, calc(100dvh - 96px));
  }

  .support-chat-toggle {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* Storefront overhaul */
.hero--storefront {
  min-height: auto;
  padding: calc(var(--nav-h) + 72px) 0 48px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 21, 26, 0.42) 0%, rgba(18, 21, 26, 0.14) 55%, transparent 100%),
    radial-gradient(circle at 78% 18%, rgba(93, 154, 184, 0.16), transparent 32%);
}

.hero--storefront::after {
  content: "";
  position: absolute;
  inset: auto -10% -32% -10%;
  height: 420px;
  background: linear-gradient(90deg, rgba(74, 122, 150, 0.08), rgba(212, 168, 83, 0.08), rgba(74, 122, 150, 0.08));
  filter: blur(44px);
  transform: rotate(-2deg);
}

.hero--storefront .hero-copy {
  text-align: center;
}

.hero-brand-mark {
  display: block;
  width: min(340px, 92%);
  height: auto;
  margin: 0 auto 18px;
}

.hero--storefront .hero-copy .lead {
  margin-inline: auto;
}

.hero--storefront .hero-actions {
  justify-content: center;
}

.storefront-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 480px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 1400px) {
  .storefront-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 560px);
    gap: clamp(32px, 3vw, 64px);
  }

  .services-grid--page {
    gap: 24px;
  }

  .process-grid {
    gap: 24px;
  }
}

.storefront-hero-grid > * {
  min-width: 0;
}

.hero--storefront h1 {
  max-width: 100%;
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.hero--storefront .lead {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
}

.btn-lg {
  min-height: 54px;
  padding-inline: 24px;
}

.storefront-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.storefront-proof-row span,
.product-card__meta-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(93, 154, 184, 0.28);
  border-radius: 999px;
  background: rgba(93, 154, 184, 0.09);
  color: #c7d8e2;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 8px 12px;
}

.product-card__meta-row span {
  font-size: 0.72rem;
  padding: 4px 8px;
}

.storefront-hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.storefront-terminal {
  border: 1px solid rgba(93, 154, 184, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(35, 42, 48, 0.88), rgba(18, 21, 26, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(212, 168, 83, 0.16), transparent 32%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
  overflow: hidden;
}

.storefront-terminal__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(62, 74, 84, 0.65);
  color: var(--muted);
  font-size: 0.86rem;
}

.storefront-terminal__top strong {
  color: var(--text);
}

.storefront-terminal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(62, 74, 84, 0.42);
}

.storefront-terminal__grid div {
  min-height: 118px;
  padding: 22px;
  background: rgba(18, 21, 26, 0.82);
}

.storefront-terminal__grid span,
.product-buy-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.storefront-terminal__grid strong,
.product-buy-panel strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
}

.commerce-hero-card--featured {
  border-color: rgba(212, 168, 83, 0.32);
  background:
    linear-gradient(135deg, rgba(212, 168, 83, 0.13), rgba(35, 42, 48, 0.92)),
    var(--panel);
}

.storefront-hero-panel--simple {
  align-self: start;
  display: flex;
  width: 100%;
}

.commerce-hero-card--simple {
  width: 100%;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 14%, rgba(212, 168, 83, 0.16), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(93, 154, 184, 0.17), transparent 28%),
    linear-gradient(180deg, rgba(35, 42, 48, 0.9), rgba(13, 17, 22, 0.96));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
}

.commerce-hero-card--simple h2 {
  max-width: 100%;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}

.commerce-hero-card--simple p {
  max-width: 100%;
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-service-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
}

.hero-service-list li {
  position: relative;
  padding-left: 22px;
  color: #dbe8ee;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 18px rgba(93, 154, 184, 0.65);
}

.shop-trust-strip--elevated {
  margin-top: 0;
  position: relative;
  z-index: 1;
  padding: 4px;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(18, 21, 26, 0.55);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.section-head--center {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head--center .eyebrow {
  display: inline-flex;
}

.section-head--center p {
  max-width: 62ch;
  margin-inline: auto;
}

.section-head__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.section-head--center h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.045em;
}

.section-head--left {
  max-width: var(--catalog-rail-max);
  width: 100%;
  margin: 0 0 40px;
  text-align: left;
}

.section-head--left h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.045em;
  max-width: 24ch;
}

.section-head--left p {
  max-width: 62ch;
}

.category-grid--feature {
  margin-top: 0;
}

.category-card--feature {
  min-height: 260px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(35, 42, 48, 0.72), rgba(18, 21, 26, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(93, 154, 184, 0.18), transparent 36%);
}

.category-card--feature .category-card__icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(93, 154, 184, 0.14);
  border: 1px solid rgba(93, 154, 184, 0.3);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.category-card__icon--mark {
  padding: 4px;
  overflow: hidden;
  background: rgba(18, 21, 26, 0.6);
  border-color: rgba(232, 236, 239, 0.18);
}

.category-card__icon--mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.products-grid--storefront {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
}

.product-card--featured,
.product-card--storefront {
  border-color: rgba(93, 154, 184, 0.32);
  background: rgba(26, 31, 38, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.product-card--featured:hover,
.product-card--storefront:hover {
  border-color: rgba(93, 154, 184, 0.55);
  transform: translateY(-3px);
}

.product-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.storefront-process {
  padding: 64px 0;
  border-block: 1px solid rgba(62, 74, 84, 0.55);
  background:
    linear-gradient(180deg, rgba(26, 31, 38, 0.58), rgba(18, 21, 26, 0.3));
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.process-card {
  padding: 28px;
  border: 1px solid rgba(62, 74, 84, 0.75);
  border-radius: var(--radius);
  background: rgba(35, 42, 48, 0.58);
}

.process-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-card h3,
.promo-card--software h2,
.promo-card--ops h2 {
  font-family: var(--font-display);
}

.process-card h3 {
  margin: 0 0 10px;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.promo-split--operations {
  align-items: stretch;
}

.promo-card--software,
.promo-card--ops,
.about-teaser--storefront {
  background:
    radial-gradient(circle at 10% 0%, rgba(93, 154, 184, 0.16), transparent 34%),
    rgba(35, 42, 48, 0.75);
}

.promo-card--ops {
  border-color: rgba(212, 168, 83, 0.28);
}

.shop-header--storefront {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  padding: 42px;
  border: 1px solid rgba(93, 154, 184, 0.28);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 85% 20%, rgba(93, 154, 184, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(35, 42, 48, 0.92), rgba(18, 21, 26, 0.92));
  text-align: center;
}

.shop-header--storefront h1 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.shop-header--storefront .shop-lead,
.shop-header--storefront .eyebrow {
  margin-inline: auto;
}

.shop-header--storefront .shop-lead {
  max-width: 62ch;
}

.shop-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
}

.category-grid--shop .category-card {
  background: rgba(35, 42, 48, 0.62);
}

.shop-note--storefront {
  padding: 18px 20px;
  border: 1px solid rgba(93, 154, 184, 0.26);
  border-radius: var(--radius);
  background: rgba(93, 154, 184, 0.08);
  text-align: left;
}

.product-buy-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 22px;
}

.product-buy-panel div {
  padding: 14px;
  border: 1px solid rgba(62, 74, 84, 0.7);
  border-radius: var(--radius-sm);
  background: rgba(18, 21, 26, 0.5);
}

@media (max-width: 1100px) {
  .storefront-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .storefront-hero-panel--simple {
    max-width: 640px;
  }
}

@media (max-width: 980px) {
  .storefront-hero-grid,
  .process-grid,
  .products-grid--storefront,
  .product-buy-panel {
    grid-template-columns: 1fr;
  }

  .hero--storefront {
    min-height: auto;
    padding-bottom: 64px;
  }

  .hero--storefront h1,
  .shop-header--storefront h1 {
    max-width: 100%;
  }

  .storefront-hero-panel--simple {
    max-width: none;
  }

  .shop-trust-strip--elevated {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .hero--storefront,
  .shop-page {
    padding-top: calc(var(--nav-h) + 32px);
  }

  body.has-topbar .hero--storefront,
  body.has-topbar .shop-page {
    padding-top: calc(var(--nav-h) + var(--topbar-h) + 32px);
  }

  .shop-header--storefront {
    padding: 28px 22px;
  }

  .storefront-terminal__grid {
    grid-template-columns: 1fr;
  }

  .storefront-proof-row span,
  .product-card__meta-row span {
    width: 100%;
    justify-content: center;
  }
}

/* Premium storefront and operations polish */
body {
  background: var(--bg);
}

.nav,
.nav.scrolled {
  background: rgba(9, 12, 16, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.hero--storefront {
  isolation: isolate;
}

.hero--storefront .hero-copy {
  position: relative;
  z-index: 2;
}

.hero-product-stage {
  position: relative;
  min-height: 350px;
  display: grid;
  align-items: end;
}

.hero-product-stage__main,
.hero-product-stage__mini {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.46);
}

.hero-product-stage__main {
  border-radius: 32px;
  transform: rotate(-1.4deg);
}

.hero-product-stage__mini {
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 42%;
  border-radius: 24px;
  transform: rotate(5deg);
}

.hero-product-stage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.03);
}

.hero-product-stage span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(9, 12, 16, 0.74);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.storefront-hero-panel--premium {
  gap: 28px;
}

.commerce-system-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 28px;
  border: 1px solid rgba(93, 154, 184, 0.34);
  border-radius: 30px;
  background:
    radial-gradient(circle at 70% 28%, rgba(93, 154, 184, 0.2), transparent 28%),
    radial-gradient(circle at 22% 78%, rgba(212, 168, 83, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(35, 42, 48, 0.88), rgba(11, 15, 20, 0.96));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
}

.commerce-system-card__orb {
  position: absolute;
  width: 190px;
  height: 190px;
  right: -48px;
  top: -48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle, rgba(93, 154, 184, 0.42), rgba(93, 154, 184, 0.04) 68%);
  filter: blur(0.2px);
}

.commerce-system-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 46px;
}

.commerce-system-card__head span,
.commerce-system-flow span,
.commerce-system-card__metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.commerce-system-card__head strong {
  color: var(--text);
  font-family: var(--font-display);
}

.commerce-system-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}

.commerce-system-flow span {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(93, 154, 184, 0.24);
  border-radius: 18px;
  background: rgba(18, 21, 26, 0.58);
  color: #dbe8ee;
}

.commerce-system-flow i {
  height: 1px;
  background: linear-gradient(90deg, rgba(93, 154, 184, 0.1), rgba(93, 154, 184, 0.8), rgba(93, 154, 184, 0.1));
}

.commerce-system-card__metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.commerce-system-card__metrics div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.commerce-system-card__metrics strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.storefront-terminal {
  backdrop-filter: blur(18px);
}

.storefront-terminal__grid div {
  transition: background 0.2s, transform 0.2s;
}

.storefront-terminal__grid div:hover {
  background: rgba(35, 42, 48, 0.92);
  transform: translateY(-1px);
}

.premium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.78fr) minmax(220px, 0.78fr);
  gap: 18px;
}

.premium-feature-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid rgba(93, 154, 184, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(35, 42, 48, 0.78), rgba(14, 18, 23, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(93, 154, 184, 0.16), transparent 36%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.premium-feature-card--large {
  min-height: 320px;
}

.premium-feature-card h2,
.premium-feature-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

.premium-feature-card h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.premium-feature-card p {
  color: var(--muted);
  margin: 0;
}

.premium-feature-card__num {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 800;
}

.premium-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.premium-feature-list span {
  padding: 8px 11px;
  border: 1px solid rgba(93, 154, 184, 0.28);
  border-radius: 999px;
  background: rgba(93, 154, 184, 0.09);
  color: #cfe2ec;
  font-size: 0.8rem;
  font-weight: 800;
}

.manufacturing-services-home {
  padding: 72px 0;
}

.manufacturing-services-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid rgba(212, 168, 83, 0.22);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 12%, rgba(212, 168, 83, 0.13), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(93, 154, 184, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(35, 42, 48, 0.88), rgba(12, 16, 21, 0.94));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  position: relative;
}

.manufacturing-services-panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 26px;
  pointer-events: none;
}

.manufacturing-services-copy,
.manufacturing-services-stack {
  position: relative;
  z-index: 1;
}

.manufacturing-services-copy h2 {
  margin: 8px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  max-width: 12ch;
}

.manufacturing-services-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.manufacturing-services-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.manufacturing-services-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manufacturing-capability {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(93, 154, 184, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(18, 21, 26, 0.7), rgba(18, 21, 26, 0.42)),
    rgba(255, 255, 255, 0.03);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.manufacturing-capability:hover {
  transform: translateY(-3px);
  border-color: rgba(93, 154, 184, 0.5);
  background:
    linear-gradient(180deg, rgba(35, 42, 48, 0.85), rgba(18, 21, 26, 0.62)),
    rgba(255, 255, 255, 0.04);
}

.manufacturing-capability--primary {
  border-color: rgba(212, 168, 83, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 168, 83, 0.16), transparent 34%),
    rgba(18, 21, 26, 0.62);
}

.manufacturing-capability span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.manufacturing-capability h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.manufacturing-capability p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.manufacturing-services-home--compact {
  padding: 44px 0;
}

.manufacturing-services-panel--compact {
  display: block;
  text-align: center;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 24px;
}

.manufacturing-services-panel--compact::before {
  display: none;
}

.manufacturing-services-panel--compact .manufacturing-services-copy {
  display: block;
  width: 100%;
}

.manufacturing-services-panel--compact .eyebrow {
  margin: 0 0 8px;
}

.manufacturing-services-panel--compact h2 {
  max-width: none;
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.045em;
}

.manufacturing-services-panel--compact p {
  max-width: 62ch;
  margin: 0 auto;
  font-size: 0.98rem;
}

.manufacturing-services-panel--compact .manufacturing-services-actions {
  margin: 22px 0 0;
  justify-content: center;
}

.admin-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(93, 154, 184, 0.13), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(212, 168, 83, 0.08), transparent 24rem);
}

.admin-dashboard {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.admin-sidebar.panel-card,
.admin-main.panel-card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(35, 42, 48, 0.78), rgba(14, 18, 23, 0.92)),
    var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.admin-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-radius: 24px;
}

.admin-sidebar-head {
  padding: 18px;
  border: 1px solid rgba(93, 154, 184, 0.18);
  border-radius: 18px;
  background: rgba(93, 154, 184, 0.08);
}

.admin-nav-item {
  border-radius: 14px;
  min-height: 44px;
}

.admin-nav-item.is-active {
  background:
    linear-gradient(90deg, rgba(93, 154, 184, 0.28), rgba(93, 154, 184, 0.08));
  box-shadow: inset 3px 0 0 var(--accent-bright);
}

.admin-command-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 30px;
  border: 1px solid rgba(93, 154, 184, 0.26);
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 8%, rgba(93, 154, 184, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(35, 42, 48, 0.92), rgba(14, 18, 23, 0.95));
}

.admin-command-center h1 {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.admin-command-center p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
}

.admin-command-center__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-kpi.panel-card,
.admin-kpi {
  border-radius: 20px;
  border-color: rgba(93, 154, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(35, 42, 48, 0.8), rgba(18, 21, 26, 0.84));
}

.admin-kpi-num {
  letter-spacing: -0.04em;
}

.admin-dash-card,
.admin-table-wrap,
.admin-create-card,
.admin-marketing-note {
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.1);
}

.ops-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(220px, 0.8fr));
  gap: 16px;
  margin-bottom: 18px;
}

.ops-command-card {
  padding: 24px;
  border: 1px solid rgba(93, 154, 184, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(35, 42, 48, 0.78), rgba(18, 21, 26, 0.88));
}

.ops-command-card--primary {
  border-color: rgba(212, 168, 83, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 168, 83, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(35, 42, 48, 0.84), rgba(18, 21, 26, 0.92));
}

.ops-command-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-command-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.ops-command-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-table th {
  background: rgba(9, 12, 16, 0.34);
}

.admin-table tbody tr {
  transition: background 0.18s;
}

.admin-table tbody tr:hover {
  background: rgba(93, 154, 184, 0.07);
}

@media (max-width: 980px) {
  .premium-grid,
  .manufacturing-services-panel,
  .ops-command-grid {
    grid-template-columns: 1fr;
  }

  .manufacturing-services-copy h2 {
    max-width: 14ch;
  }

  .admin-command-center {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-command-center__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .commerce-system-flow,
  .commerce-system-card__metrics {
    grid-template-columns: 1fr;
  }

  .commerce-system-flow i {
    width: 1px;
    height: 22px;
    justify-self: center;
    background: linear-gradient(180deg, rgba(93, 154, 184, 0.1), rgba(93, 154, 184, 0.8), rgba(93, 154, 184, 0.1));
  }

  .hero-product-stage__mini {
    position: relative;
    right: auto;
    bottom: auto;
    width: 70%;
    margin: -32px 0 0 auto;
  }

  .admin-sidebar {
    position: static;
  }

  .manufacturing-services-stack {
    grid-template-columns: 1fr;
  }
}

/* ── 3D Print Quote ── */
.print-quote-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-bottom: 32px;
}

.print-quote-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 16px;
}

.print-quote-dropzone:hover,
.print-quote-dropzone--active {
  border-color: var(--accent);
  background: rgba(74, 122, 150, 0.08);
}

.print-quote-dropzone-inner svg {
  color: var(--accent-bright);
  margin-bottom: 12px;
}

.print-quote-dropzone-inner p {
  margin: 0;
  font-weight: 500;
}

.print-quote-dropzone-hint {
  margin-top: 6px !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
}

.print-quote-viewer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.print-quote-viewer-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.print-quote-viewer-head .auth-hint {
  margin: 0;
}

.print-quote-canvas-wrap {
  position: relative;
  height: min(52vh, 440px);
  min-height: 320px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0e1116;
  margin-bottom: 16px;
}

.print-quote-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.print-quote-canvas-wrap canvas:active {
  cursor: grabbing;
}

.print-quote-canvas-empty {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 17, 22, 0.35), rgba(14, 17, 22, 0.92));
  pointer-events: none;
}

.print-quote-canvas-empty button {
  pointer-events: auto;
}

.print-quote-canvas-empty[hidden] {
  display: none;
}

.print-quote-viewer-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 17, 22, 0.72);
  color: var(--muted);
  font-size: 0.92rem;
}

.print-quote-viewer-loading[hidden] {
  display: none;
}

.print-quote-viewer-toolbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(18, 21, 26, 0.88);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.print-quote-viewer-toolbar[hidden] {
  display: none;
}

.print-quote-viewer-filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  color: var(--muted);
}

.print-quote-file-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.print-quote-file-bar[hidden] {
  display: none;
}

.print-quote-file-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.92rem;
}

.print-quote-canvas-empty p {
  margin: 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.print-quote-dropzone-inner .btn {
  margin-top: 14px;
}

.print-quote-cta-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.print-quote-cta-row .auth-hint {
  margin: 10px 0 0;
}

.print-quote-attached-file {
  margin: 0 0 12px;
}

.print-build-fit {
  margin: 0 0 16px;
}

#print-shop-note {
  margin: 0 0 16px;
}

.print-quote-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin: 0;
}

.print-quote-stats div {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.print-quote-stats dt {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 4px;
}

.print-quote-stats dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.print-quote-options h2,
.print-quote-options h3 {
  font-family: var(--font-display);
  margin: 0 0 16px;
}

.print-quote-options h3 {
  font-size: 1rem;
  margin-top: 24px;
}

.print-quote-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.print-quote-fields label {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.print-quote-fields input,
.print-quote-fields select,
.print-quote-status {
  margin-bottom: 24px;
}

.print-quote-status-stats {
  margin: 16px 0;
}

.print-quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.print-quote-shipping-toggle {
  margin-top: 20px;
}

.print-quote-lines {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.print-quote-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.print-quote-lines strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.print-quote-subline {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.print-quote-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  font-weight: 600;
}

.print-quote-shipping {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-elevated);
}

.print-quote-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.print-quote-grand-total strong {
  font-size: 1.5rem;
  color: var(--accent-bright);
}

.print-quote-submit {
  margin-bottom: 48px;
}

.print-quote-form {
  margin-top: 16px;
}

.service-card--link {
  display: flex;
  flex-direction: column;
}

.service-card-cta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.admin-print-quotes-hint {
  margin: 0 0 16px;
}

.admin-print-quotes-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.admin-print-quotes-layout .admin-table-wrap {
  width: 100%;
  min-width: 0;
}

#admin-print-quote-detail {
  width: 100%;
  min-width: 0;
}

.admin-print-quote-detail-card .print-quote-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-print-quote-detail-card .admin-section-head {
  margin-bottom: 10px;
}

.admin-print-quote-preview-wrap {
  margin: 12px 0 16px;
  border-radius: 12px;
  overflow: hidden;
}

.admin-print-quote-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.admin-print-quote-preview-canvas {
  display: block;
  width: 100%;
  height: 340px;
  max-height: 42vh;
  border-radius: 12px;
  background: #0e1116;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-row-clickable {
  cursor: pointer;
}

.admin-row-clickable.is-selected {
  background: rgba(74, 122, 150, 0.12);
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 960px) {
  .print-quote-layout {
    grid-template-columns: 1fr;
  }

  .print-quote-estimate {
    position: static;
  }

  .print-quote-fields,
  .print-quote-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Flagship instant-quote section (homepage) */
.home-quote-flagship {
  padding: 56px 0 64px;
}

.quote-flagship-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 5vw, 48px);
  align-items: start;
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 10%, rgba(212, 168, 83, 0.16), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(93, 154, 184, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(35, 42, 48, 0.9), rgba(12, 16, 21, 0.96));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
}

.quote-flagship-copy {
  min-width: 0;
}

.quote-flagship-copy .eyebrow {
  color: var(--accent-bright);
  margin-bottom: 12px;
}

.quote-flagship-copy h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 22ch;
}

.quote-flagship-copy p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.quote-flagship-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quote-flagship-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  align-self: stretch;
}

.quote-flagship-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(18, 21, 26, 0.55);
}

.quote-flagship-steps span {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(93, 154, 184, 0.16);
  border: 1px solid rgba(93, 154, 184, 0.4);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.quote-flagship-steps strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text);
}

.quote-flagship-steps p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 900px) {
  .home-quote-flagship {
    padding: 48px 0 56px;
  }

  .quote-flagship-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .quote-flagship-copy h2 {
    max-width: none;
  }

  .quote-flagship-actions {
    margin-top: 22px;
  }
}

/* ── Admin console v2: info badges, callouts, polish ── */

.admin-section-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.admin-section-head {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(93, 154, 184, 0.14);
}

.admin-section-head h1 {
  letter-spacing: -0.03em;
}

.admin-info-callout {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(93, 154, 184, 0.22);
  background: linear-gradient(135deg, rgba(35, 42, 48, 0.72), rgba(18, 21, 26, 0.88));
}

.admin-info-callout__title {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.admin-info-callout__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.admin-info-callout--info {
  border-color: rgba(93, 154, 184, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(93, 154, 184, 0.12), transparent 40%),
    linear-gradient(135deg, rgba(35, 42, 48, 0.78), rgba(18, 21, 26, 0.9));
}

.admin-info-callout--tip {
  border-color: rgba(123, 201, 154, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 201, 154, 0.1), transparent 40%),
    linear-gradient(135deg, rgba(35, 42, 48, 0.78), rgba(18, 21, 26, 0.9));
}

.admin-info-callout--warn {
  border-color: rgba(232, 195, 106, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 195, 106, 0.12), transparent 40%),
    linear-gradient(135deg, rgba(35, 42, 48, 0.78), rgba(18, 21, 26, 0.9));
}

.admin-info-callout--warn .admin-info-callout__title {
  color: #e8c36a;
}

.admin-marketing-note {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(93, 154, 184, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(93, 154, 184, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(35, 42, 48, 0.82), rgba(18, 21, 26, 0.9));
}

.admin-marketing-note strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.admin-marketing-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.admin-info-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  border-radius: 50%;
  border: 1px solid rgba(93, 154, 184, 0.35);
  background: rgba(93, 154, 184, 0.12);
  color: var(--accent-bright);
  cursor: help;
  flex-shrink: 0;
}

.admin-info-badge__icon {
  font-size: 0.62rem;
  font-weight: 800;
  font-style: italic;
  font-family: var(--font-display, Georgia, serif);
  line-height: 1;
}

.admin-info-badge__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  z-index: 30;
  width: max-content;
  max-width: min(280px, 70vw);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(93, 154, 184, 0.35);
  background: rgba(14, 18, 23, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.admin-info-badge__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(93, 154, 184, 0.35);
}

.admin-info-badge:hover .admin-info-badge__tip,
.admin-info-badge:focus .admin-info-badge__tip,
.admin-info-badge:focus-within .admin-info-badge__tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.admin-command-center + .admin-info-callout {
  margin: -0.5rem 0 1.75rem;
}

.admin-section-head .admin-info-callout {
  margin-top: 1rem;
}

.admin-kpi-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  justify-content: center;
}

.admin-kpi:not(.admin-kpi--compact) .admin-kpi-label {
  justify-content: flex-start;
}

.admin-table th .admin-info-badge {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.admin-permission-tag .admin-info-badge {
  margin-left: 0.25rem;
}

.admin-gate-card {
  border-radius: 22px;
  border-color: rgba(93, 154, 184, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(93, 154, 184, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(35, 42, 48, 0.88), rgba(18, 21, 26, 0.94));
}

.admin-sidebar.panel-card {
  border-radius: 22px;
  border-color: rgba(93, 154, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(35, 42, 48, 0.82), rgba(18, 21, 26, 0.92));
}

.admin-main.panel-card {
  border-radius: 22px;
}

.admin-nav-item.is-active {
  box-shadow: inset 3px 0 0 var(--accent-bright);
}

.admin-filter {
  border-radius: 999px;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.admin-filter.is-active {
  box-shadow: 0 0 0 1px rgba(93, 154, 184, 0.25);
}

.admin-action-tile {
  transition: transform 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.admin-action-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.admin-kpi.panel-card:hover,
.admin-kpi--compact.panel-card:hover {
  border-color: rgba(93, 154, 184, 0.32);
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 154, 184, 0.28);
  background: rgba(93, 154, 184, 0.1);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-cell-sub {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.admin-inline-form .auth-input {
  width: auto;
  min-width: 5.5rem;
  max-width: 7rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
}

.admin-inline-form .auth-input[name="notes"] {
  min-width: 7rem;
  max-width: 10rem;
}

.admin-permission-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 154, 184, 0.25);
  background: rgba(93, 154, 184, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-print-quotes-hint {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(93, 154, 184, 0.2);
  background: rgba(93, 154, 184, 0.06);
}

.admin-create-card {
  margin-bottom: 1.25rem;
}

.admin-create-check .auth-hint {
  margin-left: 1.65rem;
}

.admin-support-sidebar,
.admin-support-detail {
  border-radius: 18px;
}

.admin-support-thread {
  border-radius: 12px;
  transition: background 0.15s, border-color 0.15s;
}

.admin-support-thread.is-selected,
.admin-support-thread:hover {
  background: rgba(93, 154, 184, 0.08);
}

.admin-modal::backdrop {
  background: rgba(4, 6, 9, 0.72);
  backdrop-filter: blur(4px);
}

@media (max-width: 720px) {
  .admin-info-badge__tip {
    left: auto;
    right: 0;
    transform: translateY(4px);
  }

  .admin-info-badge:hover .admin-info-badge__tip,
  .admin-info-badge:focus .admin-info-badge__tip,
  .admin-info-badge:focus-within .admin-info-badge__tip {
    transform: translateY(0);
  }
}

/* ── Mobile viewing / iOS tap-scroll guards ── */
html.scroll-locked,
html.scroll-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.scroll-locked body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.btn,
.nav-links a,
.nav-cart,
.footer-col a,
.menu-btn,
.support-chat-toggle,
.support-chat-close,
.support-chat-chip {
  touch-action: manipulation;
}

input,
select,
textarea {
  font-size: max(16px, 1em);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@supports (-webkit-touch-callout: none) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 720px) {
  .site-topbar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .nav-cart {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-col a,
  .footer-col .footer-cookie-settings {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
  }

  .support-chat-toggle {
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  html.support-chat-open .support-chat-toggle {
    display: none;
  }

  .support-chat-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .support-chat-lead {
    grid-template-columns: 1fr;
  }

  .support-chat-lead-input,
  .support-chat-input {
    font-size: 16px;
  }

  .support-chat-composer {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-chat-send.btn {
    width: 100%;
    min-height: 48px;
    height: auto;
  }

  .shop-filter {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .about-teaser__actions,
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .about-teaser__actions .btn,
  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }
}

/* ── Catalog storefront ── */
body:has(.shop-page)::before {
  background:
    linear-gradient(180deg, rgba(14, 17, 21, 0.97), rgba(18, 21, 26, 0.94)),
    radial-gradient(ellipse 70% 42% at 8% -10%, rgba(74, 122, 150, 0.14), transparent 52%);
}

.shop-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin: 0 0 28px;
  padding: 8px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-masthead h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 8px;
}

.shop-masthead p,
.shop-masthead .shop-lead {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1rem;
}

.shop-masthead__proof {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.shop-header--storefront {
  margin-bottom: 28px;
  padding: 8px 0 22px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: none;
  text-align: left;
  overflow: visible;
}

.shop-header--storefront h1 {
  max-width: none;
  margin-inline: 0;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.shop-header--storefront .shop-lead,
.shop-header--storefront .eyebrow {
  margin-inline: 0;
}

.shop-filters {
  gap: 8px;
  margin-bottom: 22px;
}

.shop-filter {
  padding: 7px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
}

.shop-filter.is-active {
  color: var(--text);
  border-color: rgba(93, 154, 184, 0.5);
  background: rgba(93, 154, 184, 0.16);
}

.shop-tooling-filters {
  margin: -4px 0 22px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.shop-tooling-intro {
  font-size: 0.86rem;
  max-width: 78ch;
}

.shop-note--storefront {
  margin-top: 36px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  text-align: left;
  font-size: 0.85rem;
}

.shop-section__details {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(12, 15, 19, 0.42);
}

.shop-section__summary {
  padding: 14px 16px;
}

.shop-section__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.shop-section__grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  padding: 14px;
}

.product-card,
.product-card--catalog,
.product-card--storefront,
.product-card--featured {
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(18, 22, 27, 0.96);
  box-shadow: none;
}

.product-card--featured:hover,
.product-card--storefront:hover,
.product-card--catalog:hover {
  transform: none;
  border-color: rgba(93, 154, 184, 0.42);
}

.products-grid .shop-card-media,
.shop-grid .shop-card-media,
.shop-section__grid .shop-card-media {
  position: relative;
  margin: 0;
  border-radius: 0;
  aspect-ratio: 1;
  background: #e6ebf0;
}

.products-grid .shop-card-media img,
.shop-grid .shop-card-media img,
.shop-section__grid .shop-card-media img {
  object-fit: contain;
  padding: 14px;
  background: #e6ebf0;
}

.shop-card-media--photo,
.shop-card-media--photo img {
  background: #12161b;
}

.shop-card-media--photo img {
  object-fit: cover;
  padding: 0;
}

#shop-section-helios-products .shop-section__grid,
#shop-section-helios-hardware .shop-section__grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 760px;
}

.shop-card-media .product-status {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
  z-index: 1;
  padding: 3px 8px;
  font-size: 0.65rem;
  background: rgba(18, 22, 27, 0.78);
  color: #e8ecef;
  border-color: rgba(255, 255, 255, 0.12);
}

.shop-card-media .product-status.in-stock,
.shop-card-media .product-status.back-order,
.shop-card-media .product-status.pre-order,
.shop-card-media .product-status.out-of-stock {
  background: rgba(18, 22, 27, 0.78);
  color: #e8ecef;
  border-color: rgba(255, 255, 255, 0.12);
}

.shop-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 14px 15px 15px;
}

.product-card--catalog h3,
.product-card--storefront h3,
.shop-card h3 {
  font-size: 0.92rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card--catalog .product-meta,
.product-card--storefront .product-meta {
  margin: 0;
  font-size: 0.74rem;
}

.product-card .shop-card-footer {
  align-items: center;
  padding-top: 10px;
}

.product-card .shop-card-footer .product-price,
.product-card--catalog .product-price {
  font-size: 1.12rem;
  font-weight: 700;
}

.product-detail-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 8px 0 12px;
}

.product-detail-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
}

.product-spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0 0 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-spec-row div {
  min-width: 8rem;
}

.product-spec-row dt,
.product-buy-panel strong {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-spec-row dd {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.product-buy-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 16px 0 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-buy-panel div {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.product-price--lg {
  margin: 4px 0 8px;
  font-size: 1.85rem;
}

.shop-legal-notice[data-haas-availability-disclaimer],
.product-detail-main .shop-legal-notice {
  margin-top: 18px;
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero--storefront {
  background: none;
}

.hero--storefront::after {
  display: none;
}

.hero--storefront .hero-copy {
  text-align: left;
}

.hero--storefront .hero-copy .lead,
.hero--storefront .lead {
  margin-inline: 0;
  max-width: 46ch;
}

.hero--storefront .hero-actions {
  justify-content: flex-start;
}

.hero-brand-mark {
  display: none;
}

.storefront-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  align-items: center;
  max-width: var(--catalog-rail-max);
  margin-inline: auto;
}

.storefront-hero-visual {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #1a1f26;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.storefront-hero-visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.storefront-proof-line {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.home-categories .section-head--left {
  margin-bottom: 28px;
}

.home-categories .section-head--left h2 {
  max-width: none;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
}

.category-card--feature {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(18, 22, 27, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

.category-card--feature:hover {
  transform: none;
}

.category-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #161b21;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__media--light {
  background: #e6ebf0;
}

.category-card__media--light img {
  object-fit: contain;
  padding: 18px;
}

.category-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.category-card--feature h3 {
  margin: 0 0 6px;
}

.category-card--feature p {
  margin: 0 0 14px;
}

.category-card--feature .category-card__link {
  margin-top: auto;
}

@media (max-width: 980px) {
  .storefront-hero-grid {
    grid-template-columns: 1fr;
  }

  .storefront-hero-visual {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .shop-masthead {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-masthead__proof {
    white-space: normal;
  }

  .shop-header--storefront {
    padding: 8px 0 22px;
  }
}


/* Enhanced buy box styles */
.product-status-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.product-status.status-made-to-order {
  background: rgba(212, 168, 83, 0.15);
  color: #d4a853;
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.product-lead-time {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 0;
}

.product-shipping-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.product-shipping-free {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.product-shipping-free svg {
  flex-shrink: 0;
  color: var(--accent-bright);
}

.product-included-software {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-included-software img {
  height: 32px;
  width: auto;
}

.product-included-software span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Product gallery styles */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-gallery__main {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}

.product-gallery__main img {
  width: 100%;
  height: auto;
  display: block;
}

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.product-gallery__thumb {
  flex-shrink: 0;
  width: 100px;
  height: 75px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elevated);
  padding: 0;
  transition: border-color 0.2s;
}

.product-gallery__thumb:hover {
  border-color: var(--accent);
}

.product-gallery__thumb.active {
  border-color: var(--accent-bright);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .product-shipping-info {
    padding: 12px;
  }
  
  .product-included-software {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Product gallery CLS fix */
.product-gallery__frame {
  aspect-ratio: 16/9;
}

/* ── M.A.R.S. marketing: tagline, how-it-works, loop, signup ── */
.mars-amber {
  color: #e6a03c;
}

.mars-tagline-intro {
  margin: 0 0 10px;
  color: var(--muted);
  max-width: 46ch;
}

.mars-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.mars-tagline span {
  display: block;
}

.mars-how {
  padding: clamp(24px, 3.5vw, 40px);
}

.mars-how h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0 0 clamp(20px, 3vw, 28px);
}

.mars-how__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mars-how__steps > li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.mars-how__icon {
  color: #e6a03c;
  width: 64px;
  height: 64px;
}

.mars-how__icon svg,
.mars-how__icon img {
  display: block;
  width: 64px;
  height: 64px;
}

.mars-how__steps h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
}

.mars-how__steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.mars-how--short .mars-how__steps p {
  font-size: 0.95rem;
}

.mars-loop {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(93, 154, 184, 0.22);
  background: #d4d4d4;
  box-shadow: var(--shadow);
}

.mars-page-hero__media .mars-loop {
  border: 0;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: none;
}

.mars-page-hero__media .mars-loop img,
.mars-page-hero__media .mars-loop video {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
}

.product-detail-media .mars-loop {
  margin: 0 0 16px;
}

.mars-loop__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d4d4d4;
}

.mars-loop__video,
.mars-loop__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mars-loop__poster {
  position: absolute;
  inset: 0;
}

.mars-loop__video {
  position: relative;
  z-index: 1;
}

.signup-panel h2 {
  font-family: var(--font-display);
  margin: 0 0 10px;
}

.signup-panel > p {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 62ch;
}

.signup-form {
  max-width: 28rem;
}

.signup-optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}

.signup-consent {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.signup-optin {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.signup-optin input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.signup-status {
  margin: 0;
  font-size: 0.92rem;
}

.signup-status--success {
  color: #8fca9a;
}

.signup-status--error {
  color: var(--danger);
}

.signup-status--info {
  color: var(--accent-bright);
}

.platform-download-item--coming {
  justify-content: flex-end;
}

.platform-coming {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(93, 154, 184, 0.45);
  background: rgba(74, 122, 150, 0.08);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  cursor: default;
}

.footer-signup {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px 32px;
  align-items: start;
}

.footer-signup h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 8px;
}

.footer-signup p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-signup .signup-form {
  max-width: 24rem;
}

@media (prefers-reduced-motion: reduce) {
  .mars-loop__video {
    display: none !important;
  }
}

.product-detail-main .mars-how__steps {
  grid-template-columns: 1fr;
}

@media (max-width: 980px) {
  .mars-how__steps,
  .footer-signup {
    grid-template-columns: 1fr;
  }
}
