/* Tokens lifted verbatim from leakshaven.com (layout-C1I9rDal.css :root) */
:root {
  --ember: #e14b3a;
  --ember-dim: #b53a2d;
  --ember-glow: #e14b3a73;
  --amber: #f5a524;

  --background: #0d0b0a;
  --foreground: #f5f2ee;
  --bg-2: #141110;
  --card: #1a1615;
  --card-hi: #221c1a;
  --muted-foreground: #8a827c;

  --border: #ffffff0f;
  --border-strong: #ffffff1f;
  --primary: var(--ember);

  --radius: 0.875rem;
  --shadow-xl: 0 16px 40px #00000073;

  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; }

body {
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ── page atmosphere, copied from leakshaven.com body layer ── */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}
.atmosphere-ember {
  position: absolute;
  top: -10%;
  right: -20%;
  width: 540px;
  height: 540px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(225, 75, 58, 0.28), transparent 65%);
  filter: blur(50px);
}
.atmosphere-amber {
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 600px;
  height: 600px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.18), transparent 65%);
  filter: blur(50px);
}
.atmosphere-hatch {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
}

/* ── aside: fixed top-0 left-0 flex-col gap-5 p-4 w-[240px] h-dvh ── */
.nav-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px;
  width: 240px;
  height: 100dvh;
}

/* ── inner card: the glass ─────────────────────────────── */
.rail {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
  background: rgba(20, 17, 16, 0.6);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.grow { flex: 1; }

/* ── brand ────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px;
  padding: 4px;
  border-radius: 12px;
  text-decoration: none;
  outline: none;
}
.brand-word {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.5px;
  color: var(--foreground);
}
.brand-word b { font-weight: 600; color: var(--primary); }

/* ── nav ──────────────────────────────────────────────── */
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label {
  padding: 0 8px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.nav-item--lg { height: 40px; }

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

.nav-item.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--foreground);
}
.nav-item.is-active .nav-text { font-weight: 600; }

.nav-cursor {
  position: absolute;
  left: -4px;
  top: 10px;
  bottom: 10px;
  width: 2.5px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(225, 75, 58, 0.8);
}

.nav-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ico { flex-shrink: 0; }
.ico-18 { width: 18px; height: 18px; }
.ico-17 { width: 17px; height: 17px; }
.ico-12 { width: 12px; height: 12px; flex-shrink: 0; }
.ico-13 { width: 13px; height: 13px; flex-shrink: 0; color: var(--amber); }
.muted { color: var(--muted-foreground); }

.nav-rule {
  height: 1px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.08);
}

/* ── bottom pills ─────────────────────────────────────── */
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.pill:hover { background: rgba(255, 255, 255, 0.08); }

.pill--select {
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pill--select:hover { border-color: rgba(255, 255, 255, 0.14); }

.pill--tokens {
  gap: 8px;
  padding: 0 10px;
  text-decoration: none;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.pill-text {
  flex: 1;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: rgba(245, 242, 238, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.22);
  color: rgb(134, 239, 172);
  flex-shrink: 0;
}
.pill-tile svg { width: 13px; height: 13px; }

.pill-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(74, 222, 128);
  box-shadow: 0 0 4px rgba(74, 222, 128, 0.8);
}

/* language */
.lang { position: relative; }
.lang-value { display: flex; align-items: center; gap: 8px; min-width: 0; }
.flag {
  width: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex-shrink: 0;
}
.flag--lg { width: 18px; }
.chev {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
  color: rgba(138, 130, 124, 0.85);
  transition: transform 0.15s;
}
.lang.open .chev { transform: rotate(180deg); }

.lang-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-xl);
  z-index: 50;
}
.lang.open .lang-menu { display: block; }

.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.lang-opt img { width: 16px; aspect-ratio: 4 / 3; object-fit: cover; }
.lang-opt:hover { background: rgba(255, 255, 255, 0.05); color: var(--foreground); }
.lang-opt.is-on { color: var(--foreground); }

/* AI generation tokens */
.tokens {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
}
.tokens-n { font-variant-numeric: tabular-nums; }
.tok-mark {
  font-size: 11px;
  line-height: 1;
  color: var(--amber);
}
.mobile-chip--tokens {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
}

/* ── account row ──────────────────────────────────────── */
.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s;
}
.me:hover { background: rgba(255, 255, 255, 0.04); }

.me-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.me-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.me-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me-tier {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.me-gear {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.me-gear svg { width: 16px; height: 16px; }
.me:hover .me-gear { color: var(--foreground); }

/* ── dashboard stage ──────────────────────────────────── */
.stage {
  margin-left: 240px;
  padding: 18px 24px 40px;
  min-height: 100dvh;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.page-head h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.page-head p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.search-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 22, 21, 0.55);
  backdrop-filter: blur(22px) saturate(1.4);
}
.search-strip svg { width: 16px; height: 16px; color: var(--muted-foreground); flex-shrink: 0; }
.search-strip input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--foreground);
  font: 500 14px/1 var(--font-sans);
  outline: none;
}
.search-strip input::placeholder { color: color-mix(in oklab, var(--muted-foreground) 80%, transparent); }

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-foreground);
  font: 500 12px/1 var(--font-sans);
  cursor: pointer;
}
.chip.is-on, .chip:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.vid-grid,
.vid-grid--poster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.vslot,
.vslot--poster {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: 0;
  padding: 0;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  content-visibility: auto;
  contain-intrinsic-size: 160px 90px;
}
.vslot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.vslot-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg-2);
}
.vplay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(10, 8, 6, 0.55);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.vplay::after {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
@media (hover: hover) {
  .vslot { transition: box-shadow 0.2s ease; }
  .vslot:hover { box-shadow: 0 0 0 1px rgba(225, 75, 58, 0.45); }
  .vslot:hover img { transform: scale(1.05); }
  .vslot:hover .vplay { background: rgba(225, 75, 58, 0.8); border-color: rgba(255, 255, 255, 0.4); }
}
.vcard-fav {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 11, 10, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.vcard-fav svg { width: 13px; height: 13px; }
.vcard-fav.is-on { color: var(--ember); }

@media (min-width: 480px) {
  .vid-grid, .vid-grid--poster { gap: 8px; }
}
@media (min-width: 768px) {
  .vid-grid, .vid-grid--poster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cat-bar { top: 0; padding-top: 4px; }
  .cat-sheet { left: 240px; padding: 24px 28px 40px; }
  .st-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .st-head h1 { font-size: 26px; }
  .st-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
  }
  .st-hero {
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: min(720px, 70vh);
  }
  .st-hero-center h2 { font-size: 28px; }
  .st-side { display: flex; position: sticky; top: 16px; }
  .st-side--mobile,
  .st-cost--mobile { display: none; }
  .st-src-face { width: 60px; height: 74px; }
  .st-run-track { display: block; }
  .st-run-bar b { display: inline-flex; }
  .st-ring { width: 112px; height: 112px; }
  .st-ring b { width: 100px; height: 100px; font-size: 26px; }
  .st-rail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    overflow: visible;
    padding-top: 12px;
  }
  .st-card { width: auto; flex: none; }
  .st-gallery h2 { font-size: 26px; }
}
@media (min-width: 1024px) {
  .vid-grid, .vid-grid--poster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vslot { border-radius: 10px; }
}
@media (min-width: 1400px) {
  .vid-grid, .vid-grid--poster { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
}

.empty, .status {
  padding: 48px 12px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 13px;
}

.cat-panel {
  margin-top: 28px;
  margin-bottom: 8px;
}
.cat-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 12px;
}
.cat-panel-head h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.cat-panel-head p {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted-foreground);
}
.cat-panel-head a {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ember);
  text-decoration: none;
}
.cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cat-tile {
  position: relative;
  flex: 0 0 148px;
  width: 148px;
  height: 188px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background: var(--card);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.cat-board .cat-tile {
  width: auto;
  flex: none;
  height: 210px;
}
.cat-tile img, .cat-tile-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-tile-ph { background: linear-gradient(160deg, #3a241f, #141110); }
.cat-tile-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(8, 6, 6, 0.88) 100%);
}
.cat-tile-info {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-tile-info strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.cat-tile-info em {
  font-style: normal;
  font-size: 11px;
  color: rgba(245, 242, 238, 0.72);
}
.cat-tile--all {
  background: linear-gradient(160deg, #3a1c18, #141110);
}
.cat-tile.is-on {
  box-shadow: 0 0 0 2px var(--ember);
}
@media (min-width: 700px) {
  .cat-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-tile { flex-basis: 168px; width: 168px; height: 210px; }
}
@media (min-width: 1100px) {
  .cat-board { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.preset {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0;
}
.preset img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: var(--bg-2); }
.preset figcaption { padding: 8px 10px 10px; }
.preset strong { display: block; font-size: 12px; font-weight: 600; }
.preset em { font-style: normal; font-size: 11px; color: var(--muted-foreground); }
.preset.is-hint {
  border-color: rgba(225, 75, 58, 0.55);
  box-shadow: 0 0 0 1px rgba(225, 75, 58, 0.28);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.plan {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 22, 21, 0.55);
  backdrop-filter: blur(18px);
}
.plan--hot {
  border-color: rgba(225, 75, 58, 0.5);
  background:
    linear-gradient(180deg, rgba(225, 75, 58, 0.12), rgba(26, 22, 21, 0.55));
  box-shadow: 0 12px 32px rgba(225, 75, 58, 0.16);
}
.plan em {
  position: absolute;
  top: 14px;
  right: 14px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  color: #fff;
  font: 650 10px/22px var(--font-sans);
  letter-spacing: 0.2px;
  font-style: normal;
}
.plan h3 { font-size: 16px; font-weight: 650; }
.plan .price { margin: 8px 0 14px; font-size: 26px; font-weight: 650; letter-spacing: -0.6px; }
.plan p { font-size: 13px; color: var(--muted-foreground); line-height: 1.45; }
.plan ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.plan li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: rgba(245, 242, 238, 0.78);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(225, 75, 58, 0.6);
}
.plan button, .btn {
  margin-top: 18px;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  color: #fff;
  font: 650 14px var(--font-sans);
  cursor: pointer;
}
.page-head--sell h1 { letter-spacing: -0.8px; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.account-card--hold {
  border-color: #e14b3a55;
  background: linear-gradient(145deg, #2a1815 0%, #1a1615 100%);
}
.account-card--hold h2 { color: #ffb7ad; }

body.is-payment-pending .nav-item[data-route]:not([data-route="account"]),
body.is-payment-pending .nav-sidebar .nav[aria-label="Library"],
body.is-payment-pending .nav-sidebar .nav-rule,
body.is-payment-pending .nav-sidebar .nav-label,
body.is-payment-pending #supportRailOpen,
body.is-payment-pending .pill--tokens,
body.is-payment-pending .dock,
body.is-payment-pending #viewer,
body.is-payment-pending #supportFab,
body.is-payment-pending .mobile-topbar__actions,
body.is-payment-pending .notify-bell {
  display: none !important;
}
body.is-payment-pending .brand,
body.is-payment-pending .mobile-brand {
  pointer-events: none;
}
body.is-payment-pending .nav-item[data-route="account"] {
  display: flex !important;
}

.account-card {
  max-width: 420px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(26, 22, 21, 0.5);
}
.account-card h2 { font-size: 16px; margin-bottom: 8px; }
.account-card p { font-size: 13px; color: var(--muted-foreground); line-height: 1.45; }
.account-stack { display: grid; gap: 12px; max-width: 520px; }
.account-handle { margin-top: 10px !important; color: var(--foreground) !important; font-weight: 600; }
.account-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  background: rgba(255,255,255,0.08);
  color: #ffb7ad;
  font: 700 13px var(--font-sans);
  text-decoration: none;
}
.account-cancel:hover { background: rgba(225, 75, 58, 0.22); }
.account-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  color: #fff;
  font: 700 13px var(--font-sans);
  text-decoration: none;
}
.account-discord-note { margin-top: 10px !important; }
.account-discord-note a { color: #d8cbc5; font-weight: 600; }
@media (min-width: 768px) {
  .account-cancel, .account-discord { width: auto; }
}
.account-form { display: grid; gap: 10px; margin-top: 12px; }
.account-form label { font-size: 11px; font-weight: 700; color: var(--muted-foreground); }
.account-form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #0d0b0a;
  color: var(--foreground);
  padding: 11px 12px;
  font: inherit;
}
.pass-field { position: relative; display: block; margin-top: 6px; }
.pass-field input { margin-top: 0; padding-right: 44px; }
.account-form .pass-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-foreground);
  display: grid;
  place-items: center;
}
.account-form .pass-eye svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.account-form .pass-eye .eye-shut { display: none; }
.account-form .pass-eye.is-shown { color: #e14b3a; }
.account-form .pass-eye.is-shown .eye-open { display: none; }
.account-form .pass-eye.is-shown .eye-shut { display: block; }
.account-form button, .account-out {
  border: 0;
  border-radius: 11px;
  padding: 11px 13px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  color: #fff;
  font: 700 13px var(--font-sans);
  cursor: pointer;
}
.account-out { background: rgba(255,255,255,0.08); color: #ffb7ad; width: 100%; }
.account-form #accEmailResend {
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid rgba(255,255,255,0.12);
}
.account-form #accEmailResend:disabled { opacity: 0.55; cursor: wait; }
.account-msg { min-height: 18px; color: #ffb7ad; font-size: 12px; }
html.is-setup-lock,
body.is-setup-lock {
  overflow: hidden;
  height: 100dvh;
  overscroll-behavior: none;
}
body.is-setup-lock {
  display: flex;
  flex-direction: column;
}
body.is-setup-lock .stage {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}
.member-setup {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}
.member-setup-card {
  width: min(100%, 440px);
  padding: 8px;
  text-align: center;
}
.member-setup-card h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 550;
  letter-spacing: -1.4px;
  line-height: 1.05;
}
.member-setup-card h1 em {
  font-style: normal;
  font-weight: 650;
  color: var(--ember);
}
.member-setup-card p {
  margin: 14px auto 0;
  max-width: 34ch;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.45;
}
.member-setup-card .hub-cta { margin-top: 22px; }
.plan-switch { display: flex; gap: 8px; margin-top: 14px; }
.plan-switch button {
  flex: 1;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted-foreground);
  font: 600 12px var(--font-sans);
  cursor: pointer;
}
.plan-switch button.is-on {
  color: #fff;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  border-color: transparent;
}
.hub {
  padding: 4px 0 20px;
}
.hub-hero {
  max-width: 720px;
  margin: 6px 0 22px;
}
.hub-hero h1 {
  margin-top: 8px;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 550;
  letter-spacing: -1.4px;
  line-height: 1.02;
}
.hub-hero h1 em {
  font-style: normal;
  font-weight: 650;
  color: var(--ember);
}
.hub-hero > p {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted-foreground);
}
.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hub-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  color: #fff;
  font: 650 14px var(--font-sans);
  letter-spacing: -0.2px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(225, 75, 58, 0.38);
}
.hub-cta:hover { filter: brightness(1.06); }
.hub-cta--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--foreground);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.hub-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.hub-points li {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 242, 238, 0.78);
  font: 600 11px/28px var(--font-sans);
  letter-spacing: 0.1px;
}
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hub-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card);
  color: inherit;
  text-decoration: none;
}
.hub-card--hero {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}
.hub-media,
.hub-ph {
  position: absolute;
  inset: 0;
}
.hub-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.hub-card--stack .hub-media {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.hub-card--stack .hub-media img:first-child { grid-row: 1 / 3; }
.hub-ph { background: linear-gradient(150deg, #3a241f, #17110f); }
.hub-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 6, 6, 0.05) 20%, rgba(8, 6, 6, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 6, 6, 0.18), transparent 40%);
  pointer-events: none;
}
.hub-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 11, 10, 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: #fff;
  font: 650 10px/24px var(--font-mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.hub-panel {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
}
.hub-panel strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.hub-panel small {
  font-size: 13px;
  color: rgba(245, 242, 238, 0.72);
}
.hub-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font: 650 12px/1 var(--font-sans);
}
.hub-go svg { width: 13px; height: 13px; }
.hub-card:hover {
  border-color: rgba(225, 75, 58, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(225, 75, 58, 0.22);
}
.hub-card:hover .hub-media img { transform: scale(1.04); }
.hub-card:hover .hub-go {
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  border-color: transparent;
}

.hub-peek { margin-top: 28px; }
.hub-peek-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.hub-peek-head h2 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.hub-peek-head a {
  color: var(--muted-foreground);
  text-decoration: none;
  font: 600 13px var(--font-sans);
}
.hub-peek-head a:hover { color: var(--foreground); }
.vid-grid--peek {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Videos header + category rail ── */
.page-head--videos {
  align-items: flex-end;
  margin-bottom: 14px;
}
.page-kicker {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember);
}
.page-head--videos h1 {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.05;
}
.page-sub {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.cat-bar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px 0 12px;
  background: linear-gradient(180deg, var(--background) 72%, transparent);
}
.cat-rail {
  position: relative;
  flex: 1;
  min-width: 0;
}
.cat-rail-track {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 2px 0;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
}
.cat-rail-track::-webkit-scrollbar { display: none; }

.cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 242, 238, 0.72);
  cursor: pointer;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.cat-chip-face {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(150deg, #3a241f, #17110f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.cat-chip-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-chip-name {
  font: 600 13px/1 var(--font-sans);
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.cat-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--foreground);
}
.cat-chip.is-on {
  color: #fff;
  border-color: rgba(225, 75, 58, 0.5);
  background: linear-gradient(180deg, rgba(225, 75, 58, 0.22), rgba(181, 58, 45, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.cat-chip.is-on .cat-chip-face {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 0 2px rgba(225, 75, 58, 0.55);
}

.cat-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(26, 22, 21, 0.85);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: var(--foreground);
  font: 650 13px/1 var(--font-sans);
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.cat-all svg { width: 14px; height: 14px; opacity: 0.75; }
.cat-all:hover {
  border-color: rgba(225, 75, 58, 0.5);
  background: rgba(36, 26, 24, 0.92);
}
.infinite-sent { height: 1px; }

/* ── empty states ── */
.blank {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 52px 20px 60px;
}
.blank-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 999px;
  font-size: 22px;
  color: var(--ember);
  background: rgba(225, 75, 58, 0.12);
  box-shadow: inset 0 0 0 1px rgba(225, 75, 58, 0.28);
}
.blank h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.blank p {
  font-size: 13px;
  color: var(--muted-foreground);
  max-width: 34ch;
}
.blank-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  color: #fff;
  font: 650 14px var(--font-sans);
  letter-spacing: -0.2px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(225, 75, 58, 0.4);
}
.blank-cta:hover { filter: brightness(1.06); }

/* ── request search ── */
.req-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 14px;
}
.req-form .req-search { flex: 1; margin: 0; }
.req-go {
  flex-shrink: 0;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  color: #fff;
  font: 650 14px var(--font-sans);
  letter-spacing: -0.2px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(225, 75, 58, 0.35);
}
.req-go:hover { filter: brightness(1.06); }
.req-hint {
  margin: 2px 2px 14px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.req-done {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(225, 75, 58, 0.35);
  background: rgba(225, 75, 58, 0.1);
}
.req-done[hidden] { display: none; }
.req-done-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.req-done strong { display: block; font-size: 14px; letter-spacing: -0.2px; }
.req-done p { margin-top: 2px; font-size: 13px; color: var(--muted-foreground); }
.req-done em { font-style: normal; color: var(--foreground); }
.req-done.is-in { animation: reqIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) both; }
.req-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin: 0 0 18px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 22, 21, 0.6);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.req-search:focus-within {
  border-color: rgba(225, 75, 58, 0.5);
  background: rgba(32, 24, 22, 0.72);
}
.req-search-ico {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: color 0.18s ease;
}
.req-search:focus-within .req-search-ico { color: var(--ember); }
.req-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--foreground);
  font: 500 14px var(--font-sans);
  letter-spacing: -0.2px;
}
.req-search input::placeholder { color: var(--muted-foreground); }
.req-clear {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-foreground);
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.req-search.has-q .req-clear {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.req-clear:hover { color: var(--foreground); background: rgba(255, 255, 255, 0.14); }

.req-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 40%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0;
}
.req-search.is-working .req-bar {
  opacity: 1;
  animation: reqSweep 0.55s linear infinite;
}
@keyframes reqSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

.req-results.is-in .preset {
  animation: reqIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 26ms);
}
@keyframes reqIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.req-results.is-in .blank {
  animation: reqIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .req-results.is-in .preset,
  .req-results.is-in .blank { animation: none; }
  .req-search.is-working .req-bar { animation: none; }
}

.cat-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: auto;
  padding: 16px 14px 110px;
  background: rgba(13, 11, 10, 0.94);
  backdrop-filter: blur(22px);
}
.cat-sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cat-sheet-bar h2 { font-size: 20px; font-weight: 650; }
.cat-sheet-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* ── Studio (leakshaven /ai 1:1) ── */
.studio { width: 100%; max-width: 1400px; }
.st-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 2px;
}
.st-head p {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0;
}
.st-head h1 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.1;
}
.st-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(245, 165, 36, 0.38);
  background:
    linear-gradient(135deg, rgba(245, 165, 36, 0.18), rgba(225, 75, 58, 0.1));
  color: var(--amber);
  box-shadow: 0 0 20px rgba(245, 165, 36, 0.12);
}
.st-perk svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(245, 165, 36, 0.7));
}
.st-perk span { display: flex; flex-direction: column; line-height: 1.15; }
.st-perk b {
  font: 600 11px var(--font-sans);
  color: #fff;
  letter-spacing: -0.2px;
}
.st-perk em {
  font: 600 9px var(--font-mono);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--amber);
}
.st-perk--head {
  height: 32px;
  padding: 0 10px 0 8px;
  border-radius: 10px;
}
.st-perk--head span { flex-direction: row; align-items: center; gap: 6px; }
.st-perk--head em::before { content: "·"; margin-right: 6px; opacity: 0.7; }
.st-perk--side {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
}
.st-perk--run {
  margin-top: 12px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(13, 11, 10, 0.55);
  backdrop-filter: blur(12px);
}
.st-perk--run span { flex-direction: row; align-items: center; gap: 6px; }
.st-perk--run em::before { content: "·"; margin-right: 6px; opacity: 0.7; }
@media (max-width: 767px) {
  .st-perk--head { display: none; }
  .st-reel { padding: 8px 14px; gap: 12px; }
  .st-take { flex-basis: 230px; width: 230px; }
}
.st-styles.is-need {
  outline: 1px solid rgba(245, 165, 36, 0.45);
  outline-offset: 6px;
  border-radius: 16px;
  animation: stNeed 1.4s ease;
}
@keyframes stNeed {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 6px rgba(245, 165, 36, 0.18); }
}
.st-tokens,
.st-buy,
.st-help {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px) saturate(1.3);
  color: var(--foreground);
  font: 600 12px var(--font-sans);
  text-decoration: none;
}
.st-help { width: 32px; padding: 0; justify-content: center; cursor: pointer; }
.st-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.st-hero {
  position: relative;
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1615;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.st-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.st-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 10, 0.75), rgba(13, 11, 10, 0.85) 50%, rgba(13, 11, 10, 0.95));
}
.st-hero-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}
.st-hero-tag span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
}
.st-hero-tag strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(245, 242, 238, 0.7);
}
.st-hero-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
}
.st-hero-center p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0;
}
.st-hero-center h2 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.1;
}
.st-hero-center em {
  margin-top: 8px;
  max-width: 280px;
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.st-hero-center kbd {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  font: 600 10px var(--font-mono);
  color: rgba(245, 242, 238, 0.9);
}
.st-hero-btns { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.st-select,
.st-paste {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 11px;
  font: 700 13px var(--font-sans);
  cursor: pointer;
}
.st-select {
  color: #fff;
  background: linear-gradient(180deg, #e14b3a, #b53a2d);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.st-paste {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.st-hero-center small {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(138, 130, 124, 0.75);
}
.st-side {
  display: none;
  flex-direction: column;
  gap: 14px;
}
.st-cost {
  padding: 14px;
  border-radius: 14px;
  background: rgba(20, 17, 16, 0.6);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.st-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.st-cost-row strong { font-size: 12px; color: var(--foreground); letter-spacing: 0.5px; }
.st-cost-row em { font-style: normal; color: var(--muted-foreground); font-weight: 600; }
.st-generate {
  position: relative;
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: 700 16px var(--font-sans);
  background: linear-gradient(180deg, #e14b3a, #b53a2d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.st-generate b {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
  font: 700 11px var(--font-mono);
}
.st-cost--mobile { margin: 16px 0 8px; }
.st-side--mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
/* ── crop stage ── */
.st-hero--edit {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(225, 75, 58, 0.08), transparent 60%),
    #0f0d0c;
}
.st-stage {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 22px;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.022) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.022) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.022) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}
.st-crop {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 5px rgba(13, 11, 10, 0.55),
    0 18px 44px rgba(0, 0, 0, 0.55);
  cursor: grab;
  touch-action: none;
}
.st-crop.is-dragging { cursor: grabbing; }
.st-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.st-crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  background:
    linear-gradient(to right, transparent 33.33%, rgba(255, 255, 255, 0.32) 33.33%, rgba(255, 255, 255, 0.32) calc(33.33% + 1px), transparent calc(33.33% + 1px), transparent 66.66%, rgba(255, 255, 255, 0.32) 66.66%, rgba(255, 255, 255, 0.32) calc(66.66% + 1px), transparent calc(66.66% + 1px)),
    linear-gradient(to bottom, transparent 33.33%, rgba(255, 255, 255, 0.32) 33.33%, rgba(255, 255, 255, 0.32) calc(33.33% + 1px), transparent calc(33.33% + 1px), transparent 66.66%, rgba(255, 255, 255, 0.32) 66.66%, rgba(255, 255, 255, 0.32) calc(66.66% + 1px), transparent calc(66.66% + 1px));
}
.st-crop:hover .st-crop-grid,
.st-crop.is-dragging .st-crop-grid { opacity: 1; }
.st-crop-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(13, 11, 10, 0.6);
  backdrop-filter: blur(18px);
}
.st-ratios { display: flex; gap: 5px; flex-wrap: wrap; }
.st-ratios button {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-foreground);
  font: 600 11px var(--font-sans);
  cursor: pointer;
}
.st-ratios button.is-on {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
}
.st-zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
}
.st-zoom svg { width: 14px; height: 14px; color: var(--muted-foreground); flex-shrink: 0; }
.st-zoom input {
  flex: 1;
  min-width: 80px;
  height: 4px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.st-zoom input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  box-shadow: 0 2px 8px rgba(225, 75, 58, 0.5);
}
.st-zoom input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
}
.st-crop-reset {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-foreground);
  font: 600 11px var(--font-sans);
  cursor: pointer;
}
.st-crop-reset:hover { color: var(--foreground); }
.st-src,
.st-set,
.st-prompt,
.st-cost {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 22, 21, 0.55);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.st-src {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.st-src-face {
  width: 52px;
  height: 64px;
  border-radius: 9px;
  overflow: hidden;
  border: 1.5px solid var(--amber);
  flex-shrink: 0;
}
.st-src-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-src p,
.st-set > p {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
}
.st-set > p { color: var(--muted-foreground); margin-bottom: 10px; }
.st-src strong { display: block; margin-top: 2px; font-size: 13px; letter-spacing: -0.2px; }
.st-src em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--muted-foreground);
}
.st-src-x {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-foreground);
  cursor: pointer;
}
.st-set { padding: 14px; }
.st-hero--done {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(225, 75, 58, 0.08), transparent 60%),
    #0f0d0c;
  display: flex;
  flex-direction: column;
}
.st-reel {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 16px;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 8px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.st-reel::-webkit-scrollbar { display: none; }
.st-take {
  flex: 0 0 300px;
  width: 300px;
  cursor: pointer;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  scroll-snap-align: start;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 18px 44px rgba(0, 0, 0, 0.5);
  animation: stDoneIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.st-take:nth-child(2) { animation-delay: 0.08s; }
.st-take video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.st-reel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0;
  pointer-events: none;
}
.st-reel-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.st-reel-dots i.is-on {
  width: 16px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
}
.st-watch {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 56px;
  background: rgba(8, 6, 5, 0.78);
  backdrop-filter: blur(22px) saturate(1.2);
}
.st-watch.is-on,
.st-watch:not([hidden]) { display: flex; }
.st-watch[hidden] { display: none !important; }
.st-watch-stage {
  width: min(560px, 78vw);
  height: min(88vh, 92dvh);
  max-width: calc(88vh * 0.72);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 28px 80px rgba(0, 0, 0, 0.55);
}
.st-watch-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.st-watch-x,
.st-watch-edge {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 17, 16, 0.55);
  backdrop-filter: blur(16px);
  color: #fff;
  cursor: pointer;
}
.st-watch-x {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
}
.st-watch-edge {
  top: 50%;
  width: 44px;
  height: 64px;
  border-radius: 14px;
  font-size: 28px;
  transform: translateY(-50%);
}
#stWatchPrev { left: 12px; }
#stWatchNext { right: 12px; }
@media (max-width: 767px) {
  .st-watch { padding: 12px 8px; }
  .st-watch-stage {
    width: min(94vw, 420px);
    height: min(82vh, 88dvh);
    max-width: none;
  }
  .st-watch-edge { width: 36px; height: 52px; }
  #stWatchPrev { left: 6px; }
  #stWatchNext { right: 6px; }
}
@keyframes stDoneIn {
  from { opacity: 0; transform: translateX(18px) scale(0.96); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.st-done-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(13, 11, 10, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.st-done-tag span {
  display: block;
  font: 600 10px var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
}
.st-done-tag strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.st-prompt { padding: 14px; }
.st-prompt > p {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 10px;
}
.st-prompt-box {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.st-prompt-dot {
  margin-top: 12px;
  font: 600 16px var(--font-sans);
  color: var(--muted-foreground);
  line-height: 1;
}
.st-prompt textarea {
  flex: 1;
  min-height: 112px;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font: 500 14px/1.45 var(--font-sans);
  letter-spacing: -0.2px;
  padding: 10px 0;
  outline: none;
}
.st-prompt textarea::placeholder { color: var(--muted-foreground); }
.st-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.st-hint {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(138, 130, 124, 0.85);
  font: 500 11px var(--font-sans);
  cursor: pointer;
}
.st-hint:hover {
  color: var(--foreground);
  border-color: rgba(255, 255, 255, 0.22);
}
.st-dd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: none;
  color: inherit;
  font: 600 12px var(--font-sans);
  cursor: pointer;
}
.st-dd span { color: var(--muted-foreground); font-weight: 500; }
.st-dd b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 650;
}
.st-dd i { font-style: italic; color: var(--muted-foreground); font-weight: 500; }
.st-dd svg { width: 12px; height: 12px; color: var(--muted-foreground); }
.st-dd-menu {
  display: grid;
  gap: 2px;
  margin: 4px 0 8px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(13, 11, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.st-dd--jump b svg { opacity: 0.8; }
.st-dd--jump:hover { border-color: rgba(225, 75, 58, 0.45); }
.st-dd-menu button {
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--foreground);
  font: 600 12px var(--font-sans);
  cursor: pointer;
}
.st-dd-menu button:hover { background: rgba(255, 255, 255, 0.06); }
.st-dd-menu em { font-style: normal; color: var(--amber); margin-left: 6px; font-size: 10px; }
.st-tools {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.st-tool {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-foreground);
  font: 600 11px var(--font-sans);
  cursor: pointer;
}
.st-tool:hover { color: var(--foreground); }
.st-wait {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(44, 207, 255, 0.3);
  background: rgba(44, 207, 255, 0.08);
  color: #2ccfff;
  font: 600 10px/1.4 var(--font-mono);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.st-wait svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px; }
.st-wait-name {
  margin-top: 12px;
  text-align: center;
  font: 600 10px var(--font-mono);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
/* ── rendering ── */
.st-hero--run {
  background: #070605;
  isolation: isolate;
}
.st-run-plate {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.st-run-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(0.75) blur(2px);
  animation: stDrift 9s ease-in-out infinite alternate;
}
@keyframes stDrift {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}
.st-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(225, 75, 58, 0.16) 44%,
    rgba(245, 165, 36, 0.32) 50%,
    rgba(225, 75, 58, 0.16) 56%,
    transparent 100%
  );
  background-size: 100% 46%;
  background-repeat: no-repeat;
  animation: stScan 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  mix-blend-mode: screen;
  opacity: 0.7;
}
@keyframes stScan {
  0% { background-position: 0 -50%; }
  100% { background-position: 0 150%; }
}
.st-run {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px 88px;
}
/* Keeps the status copy legible no matter where the scan beam is. */
.st-run::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(56% 42% at 50% 44%, rgba(7, 6, 5, 0.88), rgba(7, 6, 5, 0.4) 62%, transparent 78%);
  pointer-events: none;
}
.st-run > * { position: relative; }
.st-ring {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
}
.st-ring::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(225, 75, 58, 0.35), transparent 65%);
  animation: stPulse 2.2s ease-in-out infinite;
}
@keyframes stPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}
.st-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.st-ring circle {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}
.st-ring-bg { stroke: rgba(255, 255, 255, 0.09); }
.st-ring-fg {
  stroke: url(#stGrad);
  stroke: #e14b3a;
  filter: drop-shadow(0 0 8px rgba(225, 75, 58, 0.85));
  transition: stroke-dashoffset 0.25s linear;
}
.st-ring b {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: rgba(10, 8, 8, 0.82);
  backdrop-filter: blur(10px);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.st-ring small { font-size: 12px; color: var(--muted-foreground); margin-left: 2px; align-self: flex-end; margin-bottom: 6px; }
.st-run p {
  margin-top: 18px;
  font: 600 10px var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
}
.st-run h2 {
  margin-top: 6px;
  min-height: 26px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.st-run h2.is-in { animation: stPhaseIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes stPhaseIn {
  from { opacity: 0; transform: translateY(7px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
.st-eta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  height: 28px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
  color: var(--amber);
  font: 600 10px var(--font-mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.st-eta svg { width: 12px; height: 12px; }
.st-run-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 17, 16, 0.6);
  backdrop-filter: blur(26px) saturate(1.5);
}
.st-run-bar img {
  width: 42px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--amber);
}
.st-run-bar strong { display: block; font-size: 13px; }
.st-run-bar em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-foreground);
}
.st-run-track {
  display: none;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.st-run-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e14b3a, #f5a524);
  box-shadow: 0 0 14px rgba(225, 75, 58, 0.8);
  transition: width 0.25s linear;
}
@media (prefers-reduced-motion: reduce) {
  .st-scan,
  .st-ring::after,
  .st-run-plate img { animation: none; }
}
.st-run-bar b {
  display: none;
  font: 700 11px var(--font-mono);
  color: var(--ember);
}
.st-styles { margin-top: 22px; }
.st-styles-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.st-styles-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.st-styles-head span { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12); }
.st-styles-head small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.st-filters, .st-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.st-filters button {
  height: 28px;
  padding: 0 12px;
  border-radius: 9px;
  border: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-foreground);
  font: 600 11px var(--font-sans);
  cursor: pointer;
}
.st-filters button.is-on {
  background: rgba(255, 255, 255, 0.08);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.st-pills span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.st-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.st-rail::-webkit-scrollbar { display: none; }
.st-card {
  flex: 0 0 140px;
  width: 140px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  scroll-snap-align: center;
  text-align: left;
}
.st-card.is-on { box-shadow: 0 0 0 2px var(--ember); border-color: transparent; }
.st-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.st-card-media img,
.st-card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.st-card-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.9) 100%);
}
.st-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 4px;
}
.st-badges i,
.st-new {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  font: 800 8px/1 var(--font-mono);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-style: normal;
}
.st-badges i { color: #fff; background: rgba(225, 75, 58, 0.8); }
.st-badge-ai { background: rgba(44, 207, 255, 0.9) !important; color: #000 !important; }
.st-new {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #2ccfff;
  color: #000;
}
.st-card-name {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.st-gallery { margin-top: 36px; padding-top: 8px; }
.st-gallery > p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.st-gallery h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.st-gallery-empty {
  margin-top: 18px;
  padding: 36px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--muted-foreground);
  font-size: 13px;
}

/* ── Full-screen viewer (same shell as pleasurehouse preview) ── */
#viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(225, 75, 58, 0.14), transparent 60%),
    radial-gradient(ellipse 120% 90% at 50% 50%, #15100e 0%, #070606 62%, #000 100%);
  touch-action: manipulation;
  overscroll-behavior: none;
}
#viewer.open { display: flex; }
.viewer-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top, 10px)) max(10px, env(safe-area-inset-right, 10px)) 22px max(12px, env(safe-area-inset-left, 12px));
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 55%, transparent 100%);
}
.viewer-top > * { pointer-events: auto; }
.viewer-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 2px;
  pointer-events: none;
}
.viewer-meta-cat {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.viewer-meta-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 180, 192, 0.9);
}
.viewer-top-actions { display: flex; align-items: center; gap: 8px; }
.v-icon, #vClose {
  background: rgba(16, 12, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.v-icon svg { width: 18px; height: 18px; }
.v-icon.is-on { color: #e14b3a; }
#vClose { font-size: 15px; font-weight: 700; }
#vClose:hover, .v-icon:hover, .v-fs:hover { background: rgba(225, 75, 58, 0.6); }
.viewer-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viewer-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; }
#vVid {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  outline: none;
  background: #000;
}
.v-edge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(16, 12, 12, 0.6);
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.v-edge:disabled { opacity: 0; pointer-events: none; }
#vPrev { left: max(8px, env(safe-area-inset-left, 8px)); }
#vNext { right: max(8px, env(safe-area-inset-right, 8px)); }
.v-fs {
  position: absolute;
  right: max(10px, env(safe-area-inset-right, 10px));
  bottom: max(52px, calc(10px + env(safe-area-inset-bottom, 0px)));
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 12, 12, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.v-fs svg { width: 19px; height: 19px; }
.viewer-chrome { display: none; }
.viewer-meta-tag:empty { display: none; }
#vCount { display: none; }
.viewer-load-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
}
.viewer-load-overlay.show { display: flex; }
.viewer-load-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #e14b3a;
  border-radius: 50%;
  animation: phViewerSpin 0.75s linear infinite;
}
@keyframes phViewerSpin { to { transform: rotate(360deg); } }
.viewer-load-title { font-size: 15px; font-weight: 700; color: #fff; }
.viewer-load-hint { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
@media (min-width: 700px) {
  #vVid {
    width: auto;
    height: auto;
    max-width: min(1100px, 100%);
    max-height: min(90dvh, calc(100dvh - 56px));
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.07);
  }
  .viewer-stage::after { box-shadow: inset 0 0 180px 40px rgba(0, 0, 0, 0.45); }
}

/* ── phone chrome: leakshaven md:hidden topbar + bottom-nav ── */
.mobile-topbar,
.dock {
  display: none;
}

.mobile-topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 8px 12px 10px;
}
.mobile-topbar__glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 12px;
  border-radius: 16px;
  background: rgba(26, 22, 21, 0.55);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.35);
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--foreground);
}
.mobile-brand span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.mobile-brand b { font-weight: 600; color: var(--primary); }

.mobile-topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.mobile-chip--icon {
  width: 32px;
  padding: 0;
}
.mobile-chip:hover { background: rgba(255, 255, 255, 0.1); }

.lang--mobile .lang-menu {
  left: auto;
  right: 0;
  bottom: auto;
  top: calc(100% + 6px);
  min-width: 160px;
}

.dock {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 14px;
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 48px);
  transform: translateX(-50%);
  margin-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
}
.dock > * { pointer-events: auto; }

.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 22px;
  background: rgba(20, 17, 16, 0.62);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 16px;
  border: 0;
  background: transparent;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}
.tab-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted-foreground);
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}
.tab-ico svg { width: 22px; height: 22px; }
.tab-label { display: none; }
.tab:hover .tab-ico { background: rgba(255, 255, 255, 0.04); }
.tab.is-active .tab-ico {
  color: #fff;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  box-shadow:
    0 3px 10px rgba(225, 75, 58, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

@media (max-width: 767px) {
  .nav-sidebar { display: none; }
  .mobile-topbar { display: block; }
  .dock { display: flex; }
  .stage {
    margin-left: 0;
    padding: 8px 6px 96px;
  }
  body.is-setup-lock .stage {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
  .page-head { padding: 0 6px; }
  .chip-row { padding-left: 6px; padding-right: 6px; }
  .request-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .page-head--videos h1 { font-size: 22px; }
  .cat-bar {
    top: 60px;
    z-index: 35;
    margin-left: -6px;
    margin-right: -6px;
    padding: 8px 10px 10px;
    background: rgba(13, 11, 10, 0.9);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .cat-all {
    height: 40px;
    padding: 0 12px;
  }
  .cat-all span { display: none; }
  .cat-all svg { width: 16px; height: 16px; opacity: 0.9; }
  .st-head h1 { font-size: 20px; }
  .st-hero { min-height: 300px; }
  .st-hero-center h2 { font-size: 20px; }
  .st-hero-center em { font-size: 12px; }
  .hub-hero h1 { font-size: 30px; letter-spacing: -1px; }
  .hub-hero > p { font-size: 14px; }
  .hub-card { border-radius: 18px; }
  .hub-card:not(.hub-card--hero) { aspect-ratio: 3 / 4; }
  .hub-panel strong { font-size: 16px; }
  .hub-panel small { display: none; }
  .hub-go { margin-top: 6px; }
  .vid-grid--peek {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    grid-template-columns: none;
    margin: 0 -6px;
    padding: 0 6px 4px;
    scrollbar-width: none;
  }
  .vid-grid--peek::-webkit-scrollbar { display: none; }
  .vid-grid--peek .vslot { flex: 0 0 44%; }
  .req-form { gap: 8px; }
  .req-go { padding: 0 14px; }
}

@media (min-width: 768px) {
  .st-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .st-head h1 { font-size: 26px; }
  .st-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
  }
  .st-hero {
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: min(720px, 70vh);
  }
  .st-hero-center h2 { font-size: 28px; }
  .st-hero-tag { top: 20px; left: 20px; }
  .st-hero-tag strong { font-size: 16px; }
  .st-side { display: flex; position: sticky; top: 16px; }
  .st-side--mobile,
  .st-cost--mobile { display: none; }
  .st-src-face { width: 60px; height: 74px; }
  .st-run-track { display: block; }
  .st-run-bar b { display: inline-flex; }
  .st-ring { width: 112px; height: 112px; }
  .st-ring b { width: 100px; height: 100px; font-size: 26px; }
  .st-rail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    overflow: visible;
    padding-top: 12px;
  }
  .st-card { width: auto; flex: none; }
  .st-gallery h2 { font-size: 26px; }
}

@media (min-width: 768px) {
  .hub-grid {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    min-height: 460px;
  }
  .hub-card--hero {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: auto;
    height: 100%;
    min-height: 460px;
  }
  .hub-card:not(.hub-card--hero) {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
  }
  .hub-panel strong { font-size: 24px; }
  .vid-grid--peek { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ── support chat (member hub) ─────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.support-chat {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 18px));
  bottom: max(18px, env(safe-area-inset-bottom, 18px));
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.support-chat > * { pointer-events: auto; }

.support-bubble {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(225, 75, 58, 0.38);
  background: rgba(26, 22, 21, 0.66);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  color: var(--ember);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(225, 75, 58, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.support-bubble svg { width: 19px; height: 19px; }
.support-bubble:hover {
  transform: translateY(-1px);
  background: rgba(34, 28, 26, 0.82);
  border-color: rgba(225, 75, 58, 0.55);
}
.support-bubble.is-open { display: none; }
.support-bubble__ping {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ember);
  box-shadow: 0 0 0 3px rgba(225, 75, 58, 0.25);
}

.support-panel {
  width: min(360px, calc(100vw - 28px));
  max-height: min(520px, calc(100dvh - 110px));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 15, 14, 0.82);
  backdrop-filter: blur(26px) saturate(1.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.55);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.support-panel[hidden] { display: none !important; }

.support-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(225, 75, 58, 0.08), transparent);
}
.support-panel__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 4px;
}
.support-panel__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--foreground);
}
.support-panel__wait {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-foreground);
}
.support-panel__close {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 12px;
}
.support-panel__close:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.08);
}

.support-thread {
  flex: 1;
  min-height: 180px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-empty {
  margin: auto;
  max-width: 240px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.support-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--foreground);
  font-weight: 600;
}
.support-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px 16px 6px 16px;
  background: rgba(225, 75, 58, 0.16);
  border: 1px solid rgba(225, 75, 58, 0.24);
  color: var(--foreground);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  align-self: flex-end;
}
.support-msg--staff {
  align-self: flex-start;
  border-radius: 16px 16px 16px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.support-msg__who {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.support-msg--staff .support-msg__who { color: var(--ember); }

.support-status {
  padding: 0 14px 8px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.support-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-items: end;
  background: rgba(0, 0, 0, 0.18);
}
.support-compose__box {
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.support-compose__box:focus-within {
  border-color: rgba(225, 75, 58, 0.45);
  box-shadow: 0 0 0 2px rgba(225, 75, 58, 0.12);
}
.support-compose textarea {
  width: 100%;
  resize: none;
  min-height: 24px;
  max-height: 110px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  padding: 0;
}
.support-compose__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.support-compose__hint,
.support-compose__count {
  font-size: 10px;
  color: rgba(245, 242, 238, 0.38);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.support-send {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(225, 75, 58, 0.38);
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.support-send svg { width: 18px; height: 18px; }
.support-send:hover { transform: translateY(-1px); }
.support-send:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
  transform: none;
}

@media (max-width: 767px) {
  .support-chat {
    right: max(12px, env(safe-area-inset-right, 12px));
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .support-panel {
    width: min(380px, calc(100vw - 24px));
    max-height: min(58dvh, calc(100dvh - 150px));
  }
}

.notify-bell {
  position: relative;
  color: var(--foreground);
}
.notify-bell svg {
  width: 16px;
  height: 16px;
}
.notify-bell__dot,
[data-notify-dot] {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #e14b3a;
  box-shadow: 0 0 0 2px rgba(26, 22, 21, 0.9);
}
.notify-bell.is-alert svg {
  transform-origin: top center;
  animation: notifyShake 0.7s ease-in-out 4;
}
@keyframes notifyShake {
  0%, 100% { transform: rotate(0deg); }
  18% { transform: rotate(14deg); }
  36% { transform: rotate(-12deg); }
  54% { transform: rotate(8deg); }
  72% { transform: rotate(-6deg); }
}
.notify-bell--desk {
  display: none;
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 46;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 22, 21, 0.72);
  backdrop-filter: blur(18px);
  color: var(--foreground);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.notify-bell--desk svg { width: 18px; height: 18px; }
.notify-nudge {
  position: fixed;
  z-index: 60;
  top: 58px;
  right: 72px;
  max-width: 168px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #1c1715;
  border: 1px solid rgba(225, 75, 58, 0.55);
  color: #f5f2ee;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.notify-nudge__arrow {
  position: absolute;
  top: -6px;
  right: 18px;
  width: 11px;
  height: 11px;
  background: #1c1715;
  border-left: 1px solid rgba(225, 75, 58, 0.55);
  border-top: 1px solid rgba(225, 75, 58, 0.55);
  transform: rotate(45deg);
}
.notify-panel {
  position: fixed;
  z-index: 48;
  top: 58px;
  right: 12px;
  width: min(320px, calc(100vw - 24px));
  max-height: min(70vh, 420px);
  overflow: auto;
  border-radius: 16px;
  background: rgba(18, 15, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(22px);
}
.notify-panel[hidden],
.notify-nudge[hidden] { display: none !important; }
.notify-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.notify-panel__title {
  font-size: 14px;
  font-weight: 650;
}
.notify-mute {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--muted-foreground);
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.notify-mute.is-on {
  color: #e14b3a;
  border-color: rgba(225, 75, 58, 0.4);
}
.notify-list { padding: 8px; }
.notify-empty {
  padding: 22px 12px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 13px;
}
.notify-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  font: inherit;
}
.notify-item:hover { background: rgba(255, 255, 255, 0.06); }
.notify-item.is-unread {
  background: rgba(225, 75, 58, 0.1);
}
.notify-item__title {
  font-size: 13px;
  font-weight: 650;
}
.notify-item__body {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.4;
}
.notify-item__when {
  margin-top: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .notify-bell--desk { display: inline-flex; }
  .notify-nudge { top: 66px; right: 18px; }
  .notify-panel { top: 66px; right: 18px; }
}
@media (max-width: 767px) {
  .notify-nudge { top: 58px; right: 14px; }
}
.cat-new {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 99px;
  background: #e14b3a;
  color: #fff;
  font: 700 10px/1.4 var(--font-sans);
  letter-spacing: 0.02em;
  vertical-align: 1px;
}
.ops-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.ops-status span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted-foreground);
  font: 700 12px/1.2 var(--font-sans);
}
.ops-status span.is-on { color: #fff; background: linear-gradient(135deg, #e14b3a, #b53a2d); }
.ops-form label, .lib-tools label { display: block; font-size: 12px; font-weight: 700; margin: 12px 0 6px; }
.ops-form input, .ops-form select, .lib-tools select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #0f0d0c;
  color: var(--foreground);
  padding: 12px 14px;
  font-size: 16px;
}
.ops-actions, .lib-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ops-actions button, .lib-tools button, .lib-row button {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #e14b3a, #b53a2d);
  color: #fff;
  font: 700 13px/1 inherit;
  cursor: pointer;
}
.lib-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.lib-row small { display: block; color: var(--muted-foreground); margin-top: 3px; }
.nav-staff { display: none !important; }
body.is-staff .nav-staff { display: flex !important; }
@media (max-width: 767px) {
  body.is-staff .nav-staff { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════════════
   v2 — tube-site layout: video cards with titles, category rail/picker, watch page,
   labeled mobile nav. Appended last so it wins over the older photo-app rules above.
   ═══════════════════════════════════════════════════════════════════════════════════ */
:root {
  --ember-soft: rgba(225, 75, 58, 0.14);
  --line: rgba(255, 255, 255, 0.09);
  --nav-h: 62px;
  --gutter: 12px;
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button, a { -webkit-tap-highlight-color: transparent; }
body:not([data-page="studio"]):not([data-page="request"]) .stage { max-width: 1480px; }
.vc-empty { color: var(--muted-foreground); padding: 28px 8px; text-align: center; }

/* — cards — */
.vc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 10px;
  margin-top: 10px;
}
.vc { position: relative; min-width: 0; }
.vc-link { display: block; color: inherit; text-decoration: none; border-radius: 12px; }
.vc-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}
.vc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.vc-dur {
  position: absolute; right: 6px; bottom: 6px;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.78); color: #fff;
  font: 600 11.5px/1.3 var(--font-mono);
}
.vc-new {
  position: absolute; left: 6px; top: 6px;
  padding: 2px 7px; border-radius: 999px;
  background: var(--primary); color: #fff;
  font: 800 10px/1.5 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase;
}
.vc-new--inline { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.vc-body { display: block; padding: 8px 2px 0; }
.vc-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 13.5px; line-height: 1.32; font-weight: 600; letter-spacing: -0.01em; color: var(--foreground);
}
.vc-title--cat { font-weight: 600; color: var(--foreground); }
.vc-meta { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted-foreground); }
.vc-fav {
  position: absolute; top: 2px; right: 2px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: transparent; color: #fff; cursor: pointer;
}
.vc-fav svg {
  width: 30px; height: 30px; padding: 6px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px);
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.vc-fav:active svg { transform: scale(0.9); }
.vc-fav.is-on svg { color: var(--primary); background: rgba(0, 0, 0, 0.72); }
@media (hover: hover) and (pointer: fine) {
  .vc-link:hover .vc-thumb { border-color: rgba(225, 75, 58, 0.7); }
  .vc-link:hover .vc-thumb img { transform: scale(1.045); }
  .vc-fav { opacity: 0; transition: opacity 0.15s; }
  .vc:hover .vc-fav, .vc-fav:focus-visible, .vc-fav.is-on { opacity: 1; }
}
@media (min-width: 640px) { .vc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; } }
@media (min-width: 1024px) { .vc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .vc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* — rails & sections — */
.sec { margin-top: 26px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sec-head h2 { margin: 2px 0 0; font-size: 19px; letter-spacing: -0.02em; }
.sec-more {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; color: var(--muted-foreground); font: 600 13px var(--font-sans); text-decoration: none; cursor: pointer;
}
.sec-more svg { width: 15px; height: 15px; }
.rail-h {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px;
}
.rail-h::-webkit-scrollbar { display: none; }
.rail-h > * { scroll-snap-align: start; }
.vc--rail { flex: 0 0 min(64vw, 250px); }
@media (min-width: 768px) { .vc--rail { flex-basis: 260px; } .rail-h { margin: 0; padding-left: 0; padding-right: 0; } }

/* — category tiles — */
.ct {
  position: relative; display: block; min-height: 104px; border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); color: #fff; text-decoration: none;
}
.ct img, .ct-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-ph { background: linear-gradient(135deg, #2a1c19, #151110); }
.ct-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.82)); }
.ct-info { position: absolute; left: 10px; right: 10px; bottom: 9px; display: block; }
.ct-info strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.ct-info em { display: block; margin-top: 1px; font-style: normal; font-size: 11.5px; color: rgba(255,255,255,0.72); }
.ct-new { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--primary); font: 800 10px/1.6 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.ct.is-on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--ember-soft); }
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ct-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ct { min-height: 130px; } }
.rail-h--cats .ct { flex: 0 0 150px; min-height: 100px; }
@media (min-width: 768px) { .rail-h--cats .ct { flex-basis: 180px; min-height: 116px; } }

/* — category picker (global sheet) — */
.cat-sheet {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center;
  padding: 0; overflow: visible; background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cat-sheet[hidden] { display: none; }
.cat-sheet-card {
  width: 100%; max-height: 90dvh; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 22px 22px 0 0; padding: 14px 14px 0; box-shadow: 0 -20px 60px rgba(0,0,0,.55);
  animation: sheetUp 0.22s ease-out;
}
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.cat-sheet-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cat-sheet-bar h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.cat-sheet-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.07); color: #fff; cursor: pointer; }
.cat-sheet-close svg { width: 20px; height: 20px; }
.cat-sheet-scroll { overflow-y: auto; padding: 12px 0 calc(18px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
body.has-sheet { overflow: hidden; }
@media (min-width: 768px) {
  .cat-sheet { align-items: flex-start; padding-top: 7vh; }
  .cat-sheet-card { max-width: 820px; max-height: 84vh; border-radius: 22px; border-bottom: 1px solid var(--line); padding: 18px 20px 0; }
}
.field-search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--muted-foreground);
}
.field-search svg { width: 20px; height: 20px; flex: none; }
.field-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--foreground); font: 500 16px var(--font-sans);
}
.field-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ember-soft); }
.field-search--page { margin: 4px 0 14px; }

/* — category page header, rail, sort — */
/* category page: plain header, text chip bar, segmented sort */
.cv-head { padding: 6px 2px 0; }
.cv-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cv-head h1 { margin: 0; font-size: clamp(24px, 6.6vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.cv-sub { margin: 4px 0 0; color: var(--muted-foreground); font-size: 13.5px; }
.cv-new {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  background: var(--ember-soft); color: #ff7a6b; font: 650 11.5px var(--font-sans); letter-spacing: .01em;
}
.cr {
  position: sticky; top: 64px; z-index: 30; display: flex; align-items: center; gap: 6px;
  margin: 12px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter);
  background: linear-gradient(180deg, rgba(13, 11, 10, 0.94), rgba(13, 11, 10, 0.82));
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) { .cr { top: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }
.cr-track {
  flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; cursor: grab;
  padding: 2px 2px 4px;
}
.cr-track.is-dragging { cursor: grabbing; }
.cr-track.is-dragging .cr-chip { pointer-events: none; }
.cr-track::-webkit-scrollbar { display: none; }
/* soft fade only on the side that has more chips */
.cr.can-next .cr-track { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.cr.can-prev .cr-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.cr.can-prev.can-next .cr-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.cr-chip {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px;
  background: #161211; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78); text-decoration: none; user-select: none; -webkit-user-drag: none;
  font: 600 13.5px var(--font-sans); letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.cr-chip:hover { border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.cr-chip:active { transform: scale(.97); }
.cr-chip.is-on {
  color: #fff; border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #e14b3a, #b53a2d);
  box-shadow: 0 6px 16px rgba(225, 75, 58, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.cr-dot { width: 6px; height: 6px; border-radius: 999px; background: #ff7a6b; box-shadow: 0 0 8px rgba(225, 75, 58, 0.8); }
.cr-arrow, .cr-all {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 12px;
  background: #161211; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #fff; cursor: pointer; transition: border-color .18s ease, opacity .18s ease;
}
.cr-arrow:hover, .cr-all:hover { border-color: rgba(255, 255, 255, 0.18); }
.cr-arrow svg, .cr-all svg { width: 16px; height: 16px; }
.cr-arrow { display: none; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
  .cr-arrow { display: grid; }
  .cr:not(.can-prev) .cr-arrow--prev, .cr:not(.can-next) .cr-arrow--next { opacity: .3; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .cr-chip, .cr-arrow, .cr-all { transition: none; } }
.recent-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.sort-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted-foreground); font: 600 13px var(--font-sans); text-decoration: none; cursor: pointer;
}
.sort-pill svg { width: 15px; height: 15px; flex: none; }
.blank-mark svg { width: 24px; height: 24px; }
.sort-pill.is-on { background: #fff; color: #111; border-color: #fff; }
.search-count { margin: 12px 2px 0; color: var(--muted-foreground); font-size: 13px; }
.btn-more {
  display: block; width: 100%; max-width: 360px; margin: 18px auto 0; min-height: 48px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: #fff; font: 700 14px var(--font-sans); cursor: pointer;
}

/* — home — */
.hx { padding-top: 4px; }
.hx-hello { display: flex; align-items: center; gap: 12px; margin: 2px 0 22px; }
.hx-avatar {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  background: linear-gradient(180deg, #e14b3a, #9d3226); color: #fff; font: 700 14px var(--font-sans); letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px rgba(225, 75, 58, 0.25);
}
.hx-hello-copy { min-width: 0; display: block; }
.hx-hello-copy small { display: block; font-size: 12.5px; color: var(--muted-foreground); }
.hx-hello-copy strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-sec + .hx-sec { margin-top: 28px; }
.hx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 8px; }
.hx-head h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; color: var(--foreground); }
.hx-more {
  display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 2px;
  color: var(--muted-foreground); font-size: 13px; font-weight: 600; text-decoration: none;
}
.hx-more svg { width: 14px; height: 14px; }
.hx-more:hover { color: var(--foreground); }
.hx-rail { scroll-padding-inline: var(--gutter); }
.hx-rail .vc--rail { flex-basis: min(58vw, 236px); }
.hx-rail .vc-title { font-size: 13.5px; }
@media (min-width: 768px) { .hx-rail { scroll-padding-inline: 0; } .hx-rail .vc--rail { flex-basis: 248px; } }

.hx-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hx-tile {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08); background: #161211; color: #fff; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color .2s ease, transform .2s ease;
}
@media (min-width: 768px) { .hx-tile { aspect-ratio: auto; height: 184px; } }
.hx-tile:hover { border-color: rgba(255, 255, 255, 0.16); }
.hx-tile:active { transform: scale(.985); }
.hx-tile-media { position: absolute; inset: 0; }
.hx-tile-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hx-tile:hover .hx-tile-media > img { transform: scale(1.03); }
.hx-tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 8, 0) 30%, rgba(10, 8, 8, 0.55) 62%, rgba(10, 8, 8, 0.92)); }
.hx-tile-ico {
  position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: rgba(13, 11, 10, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hx-tile-ico svg { width: 13px; height: 13px; }
.hx-tile-copy { position: absolute; left: 12px; right: 12px; bottom: 10px; display: block; }
.hx-tile-copy strong { display: block; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.hx-tile-copy small { display: block; margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, 0.68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Categories tile: three covers fanned out on a soft ember glow */
.hx-tile--cats { background: radial-gradient(90% 90% at 50% 10%, rgba(225, 75, 58, 0.20), transparent 70%), #161211; }
.hx-tile--cats .hx-tile-shade { background: linear-gradient(180deg, rgba(10, 8, 8, 0) 45%, rgba(10, 8, 8, 0.85)); }
.hx-tile--cats .hx-tile-media { --cx: 50%; }
@media (min-width: 768px) { .hx-tile--cats .hx-tile-media { --cx: 70%; } }
.hx-tile--cats .hx-tile-media > img.hx-fan {
  inset: auto; top: 12%; left: var(--cx); width: min(30%, 96px); height: auto; aspect-ratio: 3 / 4;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
.hx-tile--cats .hx-fan--0 { transform: translateX(-118%) rotate(-9deg); z-index: 1; }
.hx-tile--cats .hx-fan--1 { transform: translateX(-50%) translateY(-6%); z-index: 3; }
.hx-tile--cats .hx-fan--2 { transform: translateX(18%) rotate(9deg); z-index: 2; }
.hx-tile--cats:hover .hx-fan--0 { transform: translateX(-126%) rotate(-12deg); }
.hx-tile--cats:hover .hx-fan--2 { transform: translateX(26%) rotate(12deg); }
.hx-tile--cats .hx-tile-copy, .hx-tile--cats .hx-tile-ico { z-index: 4; }

/* Included tools: compact cards with the free-page promo art */
.hx-tools { display: grid; gap: 10px; }
@media (min-width: 900px) { .hx-tools { grid-template-columns: 1fr 1fr; } }
.hx-tool {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 128px; padding: 14px 12px 14px 16px;
  overflow: hidden; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none;
  background: radial-gradient(110% 140% at 100% 0%, rgba(225, 75, 58, 0.22), transparent 58%), #161211;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color .2s ease, transform .2s ease;
}
.hx-tool--req { background: radial-gradient(110% 140% at 100% 0%, rgba(217, 70, 239, 0.20), transparent 58%), #161211; }
.hx-tool:hover { border-color: rgba(255, 255, 255, 0.16); }
.hx-tool:active { transform: scale(.99); }
.hx-tool-copy { flex: 1; min-width: 0; display: block; }
.hx-tool-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #ff7a6b; }
.hx-tool--req .hx-tool-kicker { color: #e879f9; }
.hx-tool-kicker svg { width: 13px; height: 13px; }
.hx-tool-copy strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 6px 0 12px; font-size: 15.5px; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em;
}
.hx-tool-cta {
  display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 10px 0 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; color: #fff;
  background: linear-gradient(180deg, #e14b3a, #b53a2d); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 16px rgba(225, 75, 58, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.hx-tool--req .hx-tool-cta { background: linear-gradient(180deg, #db55ee, #a936c9); box-shadow: 0 6px 16px rgba(217, 70, 239, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.hx-tool-cta svg { width: 14px; height: 14px; }
.hx-tool-art { position: relative; flex: none; width: 108px; height: 100px; }
.hx-card {
  position: absolute; display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 10px; background: #0a0808;
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  transition: transform .3s ease;
}
.hx-card img, .hx-card video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hx-card--back { width: 58px; left: 4px; top: 14px; transform: rotate(-8deg); }
.hx-card--front { width: 66px; left: 40px; top: 4px; transform: rotate(6deg); z-index: 2; }
.hx-tool:hover .hx-card--back { transform: rotate(-11deg) translateX(-3px); }
.hx-tool:hover .hx-card--front { transform: rotate(8deg) translateX(3px); }
.hx-live { position: absolute; right: 6px; bottom: 6px; width: 8px; height: 8px; border-radius: 999px; background: #10b981; border: 2px solid #0d0b0a; box-shadow: 0 0 8px rgba(16, 185, 129, 0.8); }
.hx-mega { position: absolute; left: 5px; bottom: 5px; padding: 2px 5px; border-radius: 5px; background: #d9272e; color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .hx-tile, .hx-tool, .hx-card, .hx-tile-media > img { transition: none; } }

/* — dedicated video page — */
.wp { max-width: 1100px; margin: 0 auto; }
.wp-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px 0 8px; margin: 2px 0 6px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: #fff; text-decoration: none; font: 700 13px var(--font-sans);
}
.wp-back svg { width: 18px; height: 18px; }
.wp-player {
  position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); margin: 0 calc(var(--gutter) * -1);
  border-radius: 0; border-left: 0; border-right: 0;
}
@media (min-width: 768px) { .wp-player { margin: 0; border-radius: 16px; border: 1px solid var(--line); } }
.wp-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.wp-player:fullscreen { aspect-ratio: auto; border: 0; border-radius: 0; margin: 0; }
.wp-loading {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13.5px; text-align: center; padding: 0 24px;
}
.wp-loading[hidden] { display: none; }
.wp-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--primary); animation: wpSpin .8s linear infinite; }
.wp-loading.is-error .wp-spin { display: none; }
@keyframes wpSpin { to { transform: rotate(360deg); } }
.wp-center { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.wp-center[hidden] { display: none; }
.wp-disc { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(225, 75, 58, 0.92); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.wp-disc svg { width: 28px; height: 28px; margin-left: 3px; }
.wp-sound {
  position: absolute; left: 10px; top: 10px; z-index: 5; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 0; background: rgba(0,0,0,.7); color: #fff; font: 700 12.5px var(--font-sans); cursor: pointer; backdrop-filter: blur(8px);
}
.wp-sound[hidden] { display: none; }
.wp-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 6px;
  padding: 26px 8px 6px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
  transition: opacity .2s; padding-bottom: calc(6px + env(safe-area-inset-bottom) * 0);
}
.wp-player[data-controls="hide"] .wp-bar { opacity: 0; pointer-events: none; }
.wp-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 50%; }
.wp-btn svg { width: 22px; height: 22px; }
.wp-time { flex: none; display: inline-flex; gap: 4px; align-items: baseline; font: 600 12px var(--font-mono); color: #fff; }
.wp-time i { font-style: normal; opacity: .45; }
.wp-time span { opacity: .75; }
.wp-ruler { flex: 1; min-width: 40px; height: 44px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.wp-track { position: relative; width: 100%; height: 4px; border-radius: 3px; background: rgba(255,255,255,.28); }
.wp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--primary); }
.wp-knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.6); }
.wp-info { padding: 14px 2px 4px; }
.wp-eyebrow { margin: 0 0 4px; color: var(--primary); font: 800 11px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.wp-title { margin: 0 0 8px; font-size: clamp(19px, 5vw, 28px); line-height: 1.2; letter-spacing: -0.03em; }
.wp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted-foreground); font-size: 13px; }
.wp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.wp-act {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: #fff; font: 700 13px var(--font-sans); cursor: pointer;
}
.wp-act svg { width: 18px; height: 18px; }
.wp-act.is-on { border-color: var(--primary); color: var(--primary); }
@media (max-width: 520px) { .wp-actions { margin-left: 0; width: 100%; } .wp-act { flex: 1; justify-content: center; } }
.wp-related { margin-top: 26px; }

/* — phone layout (the old top bar / bottom dock styles stay as they were) — */
@media (max-width: 767px) {
  :root { --gutter: 12px; }
  body:not([data-page="studio"]):not([data-page="request"]) .stage { padding: 6px var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px)); }
  .cr { top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .vc-thumb img, .cat-sheet-card, .wp-spin, .vc-fav svg { animation: none !important; transition: none !important; }
}

/* — support chat: clear states, phone sheet — */
.support-retry {
  margin-left: 4px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--primary);
  background: transparent; color: var(--primary); font: 700 12px var(--font-sans); cursor: pointer;
}
.support-status { padding: 6px 14px; }
@media (max-width: 767px) {
  .support-panel {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-width: none;
    height: min(82dvh, 640px); max-height: none; border-radius: 22px 22px 0 0;
  }
  .support-thread { flex: 1; min-height: 0; }
  .support-panel__close { width: 44px; height: 44px; }
  .support-compose textarea { font-size: 16px; }
}

/* — top bar search / favorites: same quiet look as the bell, never amber — */
.mobile-topbar .mobile-chip--icon:not(.mobile-chip--tokens) { color: var(--foreground); }
.mobile-topbar .mobile-chip--icon svg { width: 16px; height: 16px; flex: none; }
.mobile-topbar .mobile-chip--icon.is-active { color: var(--primary); }
@media (min-width: 768px) { .hx > .hx-sec:first-child .hx-head { padding-right: 52px; } }

/* — category tiles, same language as the home tiles — */
.ct {
  min-height: 0; aspect-ratio: 4 / 3; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08);
  background: #161211; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); transition: border-color .2s ease, transform .2s ease;
}
@media (min-width: 1024px) { .ct { min-height: 0; } }
.ct img { transition: transform .4s ease; }
.ct:hover { border-color: rgba(255, 255, 255, 0.16); }
.ct:hover img { transform: scale(1.03); }
.ct:active { transform: scale(.985); }
.ct-fade { background: linear-gradient(180deg, rgba(10, 8, 8, 0) 35%, rgba(10, 8, 8, 0.6) 65%, rgba(10, 8, 8, 0.92)); }
.ct-info { left: 12px; right: 12px; bottom: 10px; }
.ct-info strong { font-size: 15px; font-weight: 650; }
.ct-info em { margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, 0.66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-new {
  top: 10px; right: 10px; padding: 0 8px; height: 22px; display: inline-flex; align-items: center; border-radius: 999px;
  background: rgba(13, 11, 10, 0.6); border: 1px solid rgba(255, 255, 255, 0.14); color: #ff7a6b;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 650 11px var(--font-sans); letter-spacing: .01em; text-transform: none;
}
.ct.is-on { border-color: #fff; box-shadow: none; }
.rail-h--cats .ct { min-height: 0; }
@media (prefers-reduced-motion: reduce) { .ct, .ct img { transition: none; } }

/* — infinite feed: a visible "more is coming" row, and a shimmer while each picture loads — */
.feed-more {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; margin: 10px 0 4px;
  color: var(--muted-foreground); font-size: 13px; font-weight: 600;
}
.feed-spin {
  width: 18px; height: 18px; border-radius: 999px; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.12); border-top-color: var(--primary);
  animation: feedSpin .8s linear infinite;
}
@keyframes feedSpin { to { transform: rotate(360deg); } }
.vc-thumb {
  background: linear-gradient(100deg, #161211 30%, #221b19 50%, #161211 70%) 0 0 / 300% 100%;
  animation: thumbShimmer 1.4s ease-in-out infinite;
}
@keyframes thumbShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .feed-spin, .vc-thumb { animation: none; } }
.vc-thumb.is-loaded { animation: none; background: var(--card); }
