/* ==========================================================================
   IntegerScale V4 Storefront & Display Engineering Stylesheet
   Editorial Retro Handhelds, Hardware FPGA, Pixel Geometry & YouTube Hub
   Palette:
     - Obsidian Pitch:   #060912 / #090d18
     - Warm Paper:       #f3f1ea
     - Paper Recess:     #e6e3d8
     - Studio White:     #ffffff
     - Phosphor Cyan:    #38bdf8
     - Deep Cerulean:    #0284c7
     - Warm Amber:       #f59e0b
     - Signal Coral:     #f43f5e
   Typography:
     - Display / Copy: Space Grotesk (500 / 600 / 700)
     - Controls / Nav: Chakra Petch (600 / 700)
     - Specs / Ratios: JetBrains Mono (400 / 500 / 600 / 700)
   ========================================================================== */

:root {
  --oled: #070b14;
  --oled-elev: #101726;
  --oled-line: #1e293b;
  --oled-muted: #b8c7da;
  --putty: #f3f1ea;
  --putty-recess: #e7e4d8;
  --putty-deep: #d6d2c3;
  --studio: #ffffff;
  --ink: #0f1420;
  --ink-soft: #333d4d;
  --line: #cfcabb;
  --line-strong: #9c9684;
  --cyan: #38bdf8;
  --cyan-deep: #075985;
  --cyan-wash: #e0f2fe;
  --purple: #6366f1;
  --purple-deep: #4338ca;
  --purple-wash: #eef2ff;
  --amber: #f59e0b;
  --amber-deep: #853a08;
  --amber-wash: #fef3c7;
  --coral: #f43f5e;

  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-tech: "Chakra Petch", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(7, 11, 20, 0.06), 0 10px 24px rgba(7, 11, 20, 0.05);
  --shadow-hover: 0 14px 30px rgba(7, 11, 20, 0.12);
}

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

html {
  background: var(--putty);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--putty);
  color: var(--ink);
  overflow-x: hidden;
}

#htfb-btn {
  display: none !important;
}
body.show-feedback #htfb-btn {
  display: inline-flex !important;
}

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

a {
  color: var(--cyan-deep);
  text-decoration: none;
  transition: color 0.16s ease;
}
a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.fine {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0.55rem 0 0;
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--oled);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip:focus {
  left: 14px;
}

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

/* --------------------------------------------------------------------------
   Sticky Obsidian Header & Brand Emblem
   -------------------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--oled-line);
  color: #f8fafc;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  min-height: 44px;
  flex-shrink: 0;
}
.logo:hover {
  color: #ffffff;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.18s ease;
}
.logo:hover .logo-mark {
  transform: translateY(-1px) scale(1.02);
}

.wordmark-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.wordmark {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.035em;
  color: #ffffff;
}
.wordmark b {
  color: var(--cyan);
  font-weight: 700;
}

.wordmark-sub {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--oled-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 0.81rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #cbd5e1;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover {
  color: #ffffff;
  border-bottom-color: rgba(56, 189, 248, 0.45);
}
.nav a.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.nav a.nav-accent {
  color: var(--amber);
}
.nav a.nav-accent:hover,
.nav a.nav-accent.active {
  color: #fbbf24;
  border-bottom-color: var(--amber);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.util-switch,
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  border: 1px solid #263349;
  background: var(--oled-elev);
  color: #e2e8f0;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 0.81rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.util-switch:hover,
.util-switch.active,
.menu-btn:hover {
  border-color: var(--cyan);
  color: #ffffff;
  background: #162033;
}

.util-switch svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.saved-switch em {
  font-style: normal;
  background: var(--cyan);
  color: var(--oled);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.menu-btn {
  display: none;
}
.menu-ico {
  width: 14px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.menu-ico::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  border-top: 2px solid currentColor;
}

/* --------------------------------------------------------------------------
   Main Layout & Typography
   -------------------------------------------------------------------------- */
.main-view {
  flex: 1;
  padding: 0 0 72px;
}

.page-pad {
  padding-top: 36px;
}

.main-stack {
  padding-top: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cyan-deep);
  margin-bottom: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan-deep);
  border-radius: 1px;
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin: 0 0 10px;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.05rem, 3.6vw, 3.1rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.38rem, 2.2vw, 1.85rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.06rem;
  line-height: 1.28;
}

.lede {
  font-size: 1.03rem;
  color: var(--ink-soft);
  max-width: 70ch;
  margin: 0 0 16px;
}

.page-head {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Buttons & Tactile Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn.sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.77rem;
}

.btn.primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--oled);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}
.btn.primary:hover {
  background: #7dd3fc;
  border-color: #7dd3fc;
  color: var(--oled);
}

.btn.accent {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--oled);
}
.btn.accent:hover {
  background: #fbbf24;
  color: var(--oled);
}

.btn.ghost {
  background: var(--studio);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--oled);
  border-color: var(--oled);
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Compact Product-First Storefront Hero (.product-hero)
   -------------------------------------------------------------------------- */
.product-hero {
  background-color: #eeebe0;
  background-image: linear-gradient(180deg, #f7f5ee 0%, #eae6d8 100%);
  border-bottom: 2px solid var(--line-strong);
  padding: 18px 0 24px;
}

.product-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.product-hero-head {
  min-width: 260px;
  flex: 1 1 360px;
}

.product-hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-niche-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--oled);
  color: var(--cyan);
  border: 1px solid #1e293b;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-niche-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  flex-shrink: 0;
}

.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--studio);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
}
.hero-stat-pill a {
  color: var(--cyan-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-stat-pill a:hover {
  color: var(--ink);
}

.product-hero-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.product-hero-h span {
  color: var(--cyan-deep);
}

.product-hero-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 460px;
  justify-content: flex-end;
}

.hero-search-box {
  position: relative;
  flex: 1 1 220px;
  min-width: 190px;
  max-width: 340px;
}
.hero-search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2;
  pointer-events: none;
}
.hero-search-box input[type="search"] {
  width: 100%;
  min-height: 40px;
  padding: 0 12px 0 34px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background-color: var(--studio);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(7, 11, 20, 0.04);
}
.hero-search-box input[type="search"]::placeholder {
  color: var(--ink-soft);
  opacity: 0.82;
}
.hero-search-box input[type="search"]:focus {
  border-color: var(--cyan-deep);
  outline: 2px solid rgba(7, 89, 133, 0.2);
}

.hero-tool-btn {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.shop-search-row {
  margin-bottom: 12px;
}

.shop-search-box {
  max-width: 480px;
}

.retail-bar-desktop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.flt-select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 38px;
  padding: 0 32px 0 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b1120' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
  transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.flt-select option {
  background-color: #ffffff;
  color: #0b1120;
}

.flt-select:hover {
  border-color: var(--ink);
}

.flt-select:focus {
  border-color: var(--cyan-deep);
  outline: 2px solid rgba(7, 89, 133, 0.22);
}

.flt-select.has-val {
  background-color: var(--oled);
  border-color: var(--oled);
  color: var(--cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.flt-sort-desktop {
  margin-left: auto;
}

.flt-sale-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1.5px solid #d97706;
  background-color: var(--amber-wash);
  color: var(--amber-deep);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.flt-sale-btn:hover {
  background-color: #fde68a;
}

.flt-sale-btn.active {
  background-color: var(--oled);
  border-color: var(--amber);
  color: #fbbf24;
}

.flt-reset-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background-color: #ffffff;
  color: var(--ink);
  font-family: var(--font-tech);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.flt-reset-pill:hover {
  background-color: var(--oled);
  border-color: var(--oled);
  color: var(--cyan);
}

.retail-bar-mobile {
  display: none;
}

.flt-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background-color: #ffffff;
  color: var(--ink);
  font-family: var(--font-tech);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  min-width: 0;
}

.flt-trigger-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.flt-trigger-btn.has-val {
  background-color: var(--oled);
  border-color: var(--oled);
  color: var(--cyan);
}

.flt-drawer[hidden] {
  display: none !important;
}

.flt-drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.flt-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(7, 11, 20, 0.56);
}

.flt-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background-color: #fbfaf6;
  color: var(--ink);
  border-top: 2px solid var(--oled);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -12px 36px rgba(7, 11, 20, 0.28);
}

.flt-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
}

.flt-drawer-head strong {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.flt-drawer-x {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-strong);
  background-color: #ffffff;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flt-drawer-body {
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flt-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.flt-group-label {
  font-family: var(--font-tech);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.flt-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.flt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.flt-chip.active {
  background-color: var(--oled);
  border-color: var(--oled);
  color: var(--cyan);
}

.flt-drawer-select {
  width: 100%;
  border-radius: var(--radius-sm);
  min-height: 40px;
}

.flt-drawer-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background-color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.hero-prod-grid {
  margin-top: 2px;
}

.hero-more-wrap {
  margin-top: 20px;
}

.hero-empty {
  text-align: center;
  padding: 28px 20px;
}
.hero-empty p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Category Bento Strip
   -------------------------------------------------------------------------- */
.arch-strip {
  margin-bottom: 44px;
}

.cat-bento {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.cat-tile {
  text-align: left;
  background: var(--studio);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.cat-tile:hover {
  transform: translateY(-2px);
  background: var(--oled);
  border-color: var(--oled);
}
.cat-tile-name {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--ink);
  text-transform: uppercase;
}
.cat-tile-desc {
  font-size: 0.75rem;
  line-height: 1.38;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-tile:hover .cat-tile-name {
  color: var(--cyan);
}
.cat-tile:hover .cat-tile-desc {
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   YouTube Handhelds Hub & Home Creator Showcase
   -------------------------------------------------------------------------- */
.yt-showcase {
  background: var(--oled);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 46px;
  border: 1px solid #1e293b;
  box-shadow: 0 18px 40px rgba(7, 11, 20, 0.16);
}
.yt-showcase .eyebrow {
  color: var(--cyan);
}
.yt-showcase h2 {
  color: #ffffff;
}
.yt-showcase .sec-head a {
  color: #bae6fd;
  border-bottom-color: var(--cyan);
}
.yt-showcase .sec-head a:hover {
  color: #ffffff;
}

.yt-channel-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.yt-mini-card {
  background: #101829;
  border: 1px solid #24324a;
  border-radius: var(--radius);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.yt-mini-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.yt-mini-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.creator-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #1d4ed8;
  background-image: linear-gradient(135deg, #0284c7 0%, #1d4ed8 55%, #1e1b4b 100%);
  color: #ffffff;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.yt-mini-meta {
  min-width: 0;
}
.yt-mini-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt-mini-name:hover {
  color: var(--cyan);
}
.yt-mini-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--oled-muted);
}
.yt-ext-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fecdd3;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.yt-ext-pill:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #ffffff;
}

.lane-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.lane-pill {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--studio);
  color: var(--ink);
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 0.79rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.lane-pill:hover {
  border-color: var(--ink);
  background: var(--putty-recess);
}
.lane-pill.active {
  background: var(--oled);
  border-color: var(--oled);
  color: var(--cyan);
}

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

.creator-card {
  background: var(--studio);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.creator-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.creator-card.selected {
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2), var(--shadow-hover);
}

.creator-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.creator-head-text {
  min-width: 0;
  flex: 1;
}
.creator-head-text h3 {
  margin: 0 0 2px;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.creator-handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-deep);
}

.creator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.creator-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--putty);
  border: 1px solid var(--line);
  color: var(--ink);
}
.creator-pill.subs {
  background: var(--cyan-wash);
  border-color: rgba(2, 132, 199, 0.3);
  color: var(--oled);
}

.creator-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}

.creator-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--putty-recess);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-xs);
  background: #fff1f2;
  border: 1px solid #fda4af;
  color: #be123c;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
}
.yt-btn:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #ffffff;
}
.yt-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Rich Maker Visual Cards (.bg-grid + .bcard + .bcard-ph)
   -------------------------------------------------------------------------- */
.bg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bcard {
  background: var(--studio);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.bcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cyan-deep);
}

.bcard-ph {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background-color: #070b14;
  background-image: linear-gradient(180deg, #101829 0%, #070b14 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.bcard-cell {
  min-width: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.bcard-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bcard-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-width: 0;
}
.bcard-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bcard-monogram {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--oled);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--cyan);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bcard-title-stack {
  min-width: 0;
  flex: 1;
}
.bcard-title-stack h3 {
  font-size: 1.08rem;
  line-height: 1.2;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bcard-title-stack h3 a {
  color: var(--ink);
}
.bcard-title-stack h3 a:hover {
  color: var(--cyan-deep);
}
.domain-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan-deep);
  background: var(--cyan-wash);
  border: 1px solid rgba(7, 89, 133, 0.28);
  padding: 1px 7px;
  border-radius: var(--radius-xs);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bcard-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.bcard-sku-pill,
.bcard-range-pill,
.bcard-deal-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}
.bcard-sku-pill {
  background: var(--putty);
  border: 1px solid var(--line);
  color: var(--ink);
}
.bcard-range-pill {
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.bcard-deal-pill {
  background: var(--amber-wash);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: var(--amber-deep);
}
.bcard-focus {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bcard-foot {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--putty-recess);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bcard-foot .btn {
  flex: 1;
  padding: 0 10px;
}

.deal-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.deal-kpi-card {
  background: var(--oled);
  color: #f8fafc;
  border: 1px solid var(--oled-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.deal-kpi-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--oled-muted);
}
.deal-kpi-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.18rem;
  color: var(--amber);
  margin-top: 2px;
}
.price-save {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-deep);
  background: var(--amber-wash);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Interactive Engineering Workbench & Console Cards
   -------------------------------------------------------------------------- */
.console-card {
  background: var(--studio);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.dark-viewport-card {
  background: var(--oled);
  border-color: #243047;
  color: #f8fafc;
}

.panel-head-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.bench-wrap {
  margin-bottom: 46px;
  background: var(--putty-recess);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.bench-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.bench-header h2 {
  margin-bottom: 0;
}

.bench-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-strong);
  background: var(--studio);
  color: var(--ink);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.tab-btn:hover {
  background: var(--putty);
  border-color: var(--ink);
}
.tab-btn.active {
  background: var(--oled);
  color: var(--cyan);
  border-color: var(--oled);
  box-shadow: 0 2px 0 var(--cyan-deep);
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1.32fr;
  gap: 20px;
  align-items: start;
}

.field {
  margin-bottom: 15px;
}
.field label,
.field-lbl {
  display: block;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink);
}

.field select,
.filter-bar select,
.filter-bar input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--line-strong);
  background: var(--studio);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
}
.field select:focus,
.filter-bar select:focus,
.filter-bar input[type="search"]:focus {
  border-color: var(--cyan-deep);
  outline: 2px solid rgba(2, 132, 199, 0.22);
}

.field input[type="range"] {
  width: 100%;
  min-height: 38px;
  accent-color: var(--cyan-deep);
  cursor: pointer;
}

.chk-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--putty);
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
}
.chk-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan-deep);
  flex-shrink: 0;
}

.preset-row,
.seg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip,
.seg-btn {
  min-height: 38px;
  padding: 0 11px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-strong);
  background: var(--putty);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.chip:hover {
  background: var(--oled);
  color: var(--amber);
  border-color: var(--oled);
}
.seg-btn.active {
  background: var(--oled);
  border-color: var(--oled);
  color: var(--cyan);
}

.scaler-svg {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 14px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--putty);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.dark-viewport-card .stat-strip {
  background: #101726;
  border-color: #243047;
}
.stat-strip span {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dark-viewport-card .stat-strip span {
  color: var(--oled-muted);
}
.stat-strip strong {
  font-size: 0.9rem;
  color: var(--ink);
}
.dark-viewport-card .stat-strip strong {
  color: var(--cyan);
}

.stage-title {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.spec-dl {
  margin: 12px 0 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.spec-dl div {
  background: var(--putty);
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--cyan-deep);
}
.spec-dl dt {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.spec-dl dd {
  margin: 4px 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
}
.soc-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  background: var(--studio);
}
.soc-matrix th,
.soc-matrix td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--putty-recess);
}
.soc-matrix th {
  background: var(--oled);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.soc-matrix tr:last-child td {
  border-bottom: 0;
}
.soc-matrix tr:nth-child(even) td {
  background: #faf9f5;
}

.proto-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--cyan-wash);
  border-left: 4px solid var(--cyan-deep);
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Section Headers, Filter Bar & Studio Product Grid
   -------------------------------------------------------------------------- */
.sub-section {
  margin-top: 26px;
}

.home-block {
  margin-top: 48px;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.sec-head h2,
.sec-head h3 {
  margin-bottom: 0;
}
.sec-head a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.sec-head a:hover {
  color: var(--cyan-deep);
  border-bottom-color: var(--cyan-deep);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px;
  background: var(--putty-recess);
}

.count-pill {
  justify-self: end;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--oled);
  background: var(--amber-wash);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--studio);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.pcard-media {
  position: relative;
  background: #ffffff;
  padding: 16px;
  border-bottom: 1px solid var(--putty-recess);
}

.pcard-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.pcard-img-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.pcard:hover .pcard-img-link img {
  transform: scale(1.03);
}

.badge-deal {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--amber);
  color: var(--oled);
  border: 1px solid rgba(7, 11, 20, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.badge-spec {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--oled);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
}

.save-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.save-btn:hover {
  border-color: var(--ink);
}
.save-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.save-btn.on {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  color: #ffffff;
}
.save-btn.on svg {
  fill: currentColor;
}

.pcard-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #fdfcf9;
}

.pcard-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.brand-chip {
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--cyan-deep);
}
.brand-chip:hover {
  color: var(--oled);
}

.cat-chip {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.pcard-title {
  font-size: 0.95rem;
  line-height: 1.32;
  margin: 0 0 7px;
}
.pcard-title a {
  color: var(--ink);
}
.pcard-title a:hover {
  color: var(--cyan-deep);
}

.pcard-sum {
  font-size: 0.81rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--putty-recess);
}

.price-now {
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--oled);
}
.price-was {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Loadouts & Video Screening Cards
   -------------------------------------------------------------------------- */
.kgrid,
.cgrid,
.vgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.kcard-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--putty);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
}

.kit-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.kit-thumbs a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: #ffffff;
  padding: 5px;
  transition: border-color 0.15s ease;
}
.kit-thumbs a:hover {
  border-color: var(--cyan-deep);
}
.kit-thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  width: 100%;
}

.kit-foot,
.ccard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.kit-detail {
  margin-bottom: 24px;
}
.kit-sum {
  font-size: 1.04rem;
  background: var(--oled);
  color: var(--amber);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
}

.vcard {
  background: var(--studio);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.yt-showcase .vcard {
  background: #101829;
  color: #f8fafc;
  border-color: #24324a;
  border-bottom-color: #0284c7;
}

.vcard-thumb {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--oled);
  cursor: pointer;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.vcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.vcard:hover .vcard-thumb img {
  transform: scale(1.03);
  opacity: 0.92;
}

.play-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(7, 11, 20, 0.92);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
}

.dur-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(7, 11, 20, 0.9);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
}

.vcard-body {
  padding: 13px 15px 15px;
}
.vcard-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.yt-showcase .vcard-meta {
  color: var(--oled-muted);
}
.vcard-chan {
  color: var(--cyan-deep);
  font-weight: 600;
}
.yt-showcase .vcard-chan {
  color: var(--cyan);
}
.vcard-title {
  font-size: 0.94rem;
  margin: 0;
}
.yt-showcase .vcard-title,
.yt-showcase .link-btn {
  color: #f8fafc;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  line-height: 1.34;
}
.link-btn:hover {
  color: var(--cyan-deep);
}
.yt-showcase .link-btn:hover {
  color: var(--cyan);
}

/* Video Screening Modal */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.vmodal-box {
  width: 100%;
  max-width: 880px;
  background: var(--oled);
  color: #ffffff;
  border-color: var(--cyan);
}
.vmodal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.vmodal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.vmodal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Trust & Legal Pages */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.legal-card,
.remove-box,
.faq-list details,
.empty-box {
  background: var(--studio);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.faq-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.faq-list summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.more-row {
  text-align: center;
  margin-top: 28px;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--oled);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 10px 18px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 160;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   Integrated Shopping & Editorial Stream (#home)
   -------------------------------------------------------------------------- */
.home-feed-section {
  padding-bottom: 48px;
}

.home-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feed-beat-grid {
  margin: 0;
}

.feed-post {
  border-radius: var(--radius-lg, 14px);
  padding: 22px 24px;
  min-width: 0;
  box-shadow: var(--shadow-card);
}

.feed-post-video,
.feed-post-guide {
  background-color: #0b1120;
  border: 1px solid #1e293b;
  border-bottom: 3px solid var(--cyan);
  color: #f8fafc;
}

.feed-post-kit,
.feed-post-deals {
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  color: var(--ink);
}

.feed-post-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.feed-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 4px;
}
.feed-eyebrow.light {
  color: #0369a1;
}

.feed-post-title {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.24;
  color: #f8fafc;
}
.feed-post-title.light {
  color: var(--ink);
}

.feed-post-copy {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
  max-width: 68ch;
}
.feed-post-copy.light {
  color: var(--ink-soft);
}

.feed-head-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  background-color: #162033;
  border: 1px solid #334155;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.feed-head-link:hover {
  background-color: #1e293b;
  color: #f8fafc;
  border-color: var(--cyan);
}

/* Video Spotlight Post */
.feed-vid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feed-vid-slot {
  background-color: #111827;
  border: 1px solid #263348;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-vid-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #070b14;
  overflow: hidden;
}

.feed-vid-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background-color: #070b14;
  cursor: pointer;
  text-align: left;
}
.feed-vid-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.feed-vid-cover:hover img {
  transform: scale(1.03);
}

.feed-play-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-xs);
  background-color: #070b14;
  border: 1px solid #38bdf8;
  color: #7dd3fc;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.feed-vid-cover:hover .feed-play-pill {
  background-color: #0369a1;
  color: #ffffff;
}

.feed-dur-pill {
  position: absolute;
  right: 10px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background-color: #070b14;
  border: 1px solid #334155;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
}

.feed-vid-frame {
  width: 100%;
  height: 100%;
}
.feed-vid-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.feed-vid-meta {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.feed-vid-chan {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7dd3fc;
  text-decoration: none;
}
.feed-vid-chan:hover {
  text-decoration: underline;
}
.feed-vid-title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.35;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Interactive Tool / Guide Post */
.feed-post-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 20px;
  align-items: center;
}

.feed-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.feed-spec-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background-color: #162033;
  border: 1px solid #334155;
  color: #7dd3fc;
  font-size: 0.76rem;
  font-weight: 600;
}

.feed-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.feed-sec-btn {
  background-color: #162033;
  border: 1px solid #334155;
  color: #f8fafc;
}
.feed-sec-btn:hover {
  background-color: #1e293b;
  border-color: var(--cyan);
  color: #7dd3fc;
}

/* Complete Build Kit Post */
.feed-post-kit {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.feed-kit-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background-color: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feed-kit-thumb {
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feed-kit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.16s ease;
}
.feed-kit-thumb:hover img {
  transform: scale(1.05);
}

.feed-kit-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.feed-kit-parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-top: 12px;
}

.feed-kit-part {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: var(--radius-xs);
  background-color: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  min-width: 0;
  text-decoration: none;
}
.feed-kit-part:hover {
  border-color: var(--cyan-deep);
  background-color: #f0f9ff;
}
.feed-kit-part-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.feed-kit-part strong {
  font-size: 0.78rem;
  color: var(--ink);
  flex-shrink: 0;
}

.feed-kit-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--putty-recess);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-kit-total {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.feed-kit-total span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.feed-kit-total strong {
  font-size: 1.18rem;
  color: var(--ink);
}

.feed-kit-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Deals Spotlight Post (Beat 4+) */
.feed-deals-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feed-deal-tile {
  background-color: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}
.feed-deal-tile:hover {
  border-color: var(--cyan-deep);
  background-color: #ffffff;
}

.feed-deal-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feed-deal-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feed-deal-img .badge-deal {
  position: absolute;
  top: 6px;
  left: 6px;
}

.feed-deal-brand {
  font-size: 0.75rem;
  color: #0369a1;
  font-weight: 700;
}

.feed-deal-title {
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-deal-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.feed-deal-price del {
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-more-wrap {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .feed-post-guide,
  .feed-post-kit {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-guide-actions {
    justify-content: flex-start;
  }
  .feed-kit-mosaic {
    max-width: 340px;
  }
  .feed-deals-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-feed-stream {
    gap: 18px;
  }
  .feed-post {
    padding: 16px;
  }
  .feed-post-title {
    font-size: 1.08rem;
  }
  .feed-vid-grid,
  .feed-kit-parts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 374px) {
  .feed-post {
    padding: 13px;
  }
  .feed-deals-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-kit-btns,
  .feed-guide-actions {
    width: 100%;
  }
  .feed-kit-btns .btn,
  .feed-guide-actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Obsidian Footer
   -------------------------------------------------------------------------- */
.foot {
  border-top: 3px solid var(--cyan-deep);
  background: var(--oled);
  color: #cbd5e1;
  padding: 42px 0;
  margin-top: auto;
}
.foot-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 28px;
  align-items: start;
}
.foot-mark-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ratio-tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}
.foot-tag,
.foot-fine,
.foot-fee {
  font-size: 0.84rem;
  color: var(--oled-muted);
  margin: 6px 0;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}
.foot-nav a,
.foot-link,
.foot-fb-dot {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  background: none;
  border: 0;
  padding: 0;
  color: #e2e8f0;
  font-family: var(--font-tech);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}
.foot-nav a:hover,
.foot-link:hover {
  color: var(--cyan);
}

/* Mobile Slide-Over Menu */
.menu-sheet[hidden] {
  display: none;
}
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 11, 20, 0.72);
  display: flex;
  justify-content: flex-end;
}
.menu-panel {
  width: min(320px, 88vw);
  background: var(--oled);
  color: #ffffff;
  border-left: 2px solid var(--cyan);
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-body a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  color: #f8fafc;
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
}
.menu-body a:hover,
.menu-body a.active {
  background: var(--oled-elev);
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1160px) {
  .cat-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .yt-channel-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .tool-grid,
  .foot-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .pgrid,
  .kgrid,
  .cgrid,
  .vgrid,
  .bg-grid,
  .creator-grid,
  .legal-grid,
  .cat-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .product-hero-head,
  .product-hero-controls {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
  .hero-search-box {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .retail-bar-desktop,
  .hide-mobile-flt {
    display: none !important;
  }
  .retail-bar-mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }
  .flt-sort-mobile {
    min-height: 40px;
    border-radius: var(--radius-sm);
    width: 100%;
    min-width: 0;
  }
  .product-hero {
    padding: 12px 0 20px;
  }
  .product-hero-top {
    gap: 8px;
    margin-bottom: 8px;
  }
  .product-hero-controls {
    display: block;
    width: 100%;
  }
  .hero-search-box,
  .shop-search-box {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 14px;
  }
  .hide-sm {
    display: none;
  }
  .pgrid {
    gap: 10px;
  }
  .pcard-media {
    padding: 10px;
  }
  .pcard-body {
    padding: 10px 11px 12px;
  }
  .pcard-sum {
    display: none;
  }
  .pcard-foot {
    flex-wrap: wrap;
    gap: 6px;
  }
  .pcard-foot .btn.sm {
    width: 100%;
  }
  .bench-wrap,
  .yt-showcase {
    padding: 18px;
  }
  .kgrid,
  .cgrid,
  .vgrid,
  .bg-grid,
  .creator-grid,
  .yt-channel-strip,
  .legal-grid,
  .stat-strip,
  .spec-dl,
  .cat-bento {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .pcard-meta .cat-chip {
    display: none;
  }
}

@media (max-width: 374px) {
  .wrap {
    padding: 0 12px;
  }
  .product-hero-controls {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-tool-btn {
    width: 100%;
  }
  .pgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Mobile fit (v6): no side scroll at 320-430px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .yt-mini-card {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .vmodal {
    padding: 12px;
    max-width: 100%;
  }
  .vmodal-box {
    min-width: 0;
    max-width: 100%;
  }
  select,
  input:not([type="checkbox"]):not([type="radio"]) {
    max-width: 100%;
    min-width: 0;
  }
  .toast {
    left: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
  }
}
@media (max-width: 480px) {
  .top-inner { gap: 8px; }
  .logo { gap: 8px; min-width: 0; flex-shrink: 1; }
  .logo-mark { width: 34px; height: 34px; }
  .wordmark { font-size: 1.02rem; white-space: nowrap; }
  .wordmark-sub { display: none; }
  .top-actions { gap: 6px; }
  .util-switch { gap: 5px; min-width: 40px; min-height: 40px; padding: 0 9px; justify-content: center; }
  .menu-btn { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .menu-btn > span:not(.menu-ico) { display: none; }
}
@media (max-width: 359px) {
  .logo-mark { width: 30px; height: 30px; }
  .wordmark { font-size: 0.92rem; letter-spacing: 0.02em; }
  .top-actions { gap: 4px; }
  .util-switch { padding: 0 7px; }
}

html, body {
  overflow-x: clip;
}
