/* ══════════════════════════════════════════════════════════════════════════
   enzinoAI Model Browser
   Dark, image-first, as little interface as the job allows.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #08080c;
  --bg-2: #0d0d13;
  --surface: #12121a;
  --surface-2: #171720;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);

  --text: #fff;
  --text-2: #fff;
  --text-3: #fff;

  --accent: #e8642d;
  --accent-soft: rgba(232, 100, 45, .12);
  --accent-line: rgba(232, 100, 45, .38);

  --free: #4ade80;
  --pro: #a78bfa;
  --premium: #fbbf24;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-full: 100px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --head-h: 76px;
  --wrap: 1080px;
  --card-min: 250px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* A display value in a class beats the browser's own [hidden] rule, which would
   leave the modal and the lightbox on screen at load. This puts hidden back in
   charge wherever it is used. */
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: var(--r-full);
}
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ═══ HEADER ══════════════════════════════════════════════════════════════ */

.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease;
}
.site-head.is-scrolled { background: var(--bg); }
.page-browse .site-head { margin-bottom: calc(-1 * var(--head-h)); }
.head-inner { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; white-space: nowrap; }
.brand-logo { display: block; width: 125px; height: auto; flex: none; }
.brand-divider { width: 1px; height: 22px; flex: none; background: rgba(255, 255, 255, .6); }
.brand-section { font-size: .86rem; font-weight: 600; color: #fff; transform: translateY(1.5px); }

.head-links { display: flex; align-items: center; gap: 7px; }

.head-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-full);
  border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--text-2);
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.head-cta:hover { border-color: var(--line-2); color: var(--text); background: var(--surface); }
.head-cta svg { width: 14px; height: 14px; flex: none; }

/* The brand link is the one that leads somewhere commercial, so it carries the
   accent while the two platform links stay neutral. */
.head-cta-brand { border-color: var(--accent-line); color: var(--accent); }
.head-cta-brand:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.site-head .head-cta, .site-head .head-cta:hover { color: #fff; }

@media (max-width: 1080px) {
  /* Icons only: three labelled pills stop fitting well before the nav does. */
  .head-cta span { display: none; }
  .head-cta { padding: 9px; }
  .head-cta-brand span { display: inline; }
  .head-cta-brand { padding: 8px 14px; }
}
@media (max-width: 760px) {
  .head-inner { gap: 12px; }
}
@media (max-width: 420px) {
  .head-cta-brand span { display: none; }
  .head-cta-brand { padding: 9px; }
}

/* ═══ HERO ════════════════════════════════════════════════════════════════ */

/* Editorial rather than centred. Given real room: the title is the only thing
   above the fold, so it may as well carry the page. */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 clamp(26px, 3vw, 38px); }
.page-browse .hero { padding-top: calc(var(--head-h) + clamp(40px, 6vw, 54px)); }
.hero.has-image { background-position: center, center, center 38%; background-size: cover; background-repeat: no-repeat; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 560px 390px at calc(50% - 320px) 30%, rgba(232, 100, 45, .11), transparent 78%),
    radial-gradient(ellipse 570px 430px at calc(50% + 300px) 38%, rgba(69, 153, 150, .12), transparent 78%),
    radial-gradient(ellipse 650px 300px at calc(50% + 270px) 65%, rgba(232, 100, 45, .045), transparent 82%);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: clamp(140px, 20vw, 250px); pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 42%); align-items: center; gap: clamp(28px, 4vw, 64px); }
.hero-copy { min-width: 0; }
.hero-main.is-empty { display: block; }
.hero-feature { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 520px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .22); border-radius: 26px; background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .32), 0 0 80px rgba(69, 153, 150, .1); }
.hero-feature-link { position: absolute; inset: 0; display: block; color: #fff; }
.hero-feature-link > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero-feature-link:hover > img { transform: scale(1.045); }
.hero-feature-link::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 42%, rgba(0, 0, 0, .86)); }
.hero-feature-top, .hero-feature-bottom { position: absolute; z-index: 1; left: 24px; right: 24px; display: flex; }
.hero-feature-top { top: 20px; align-items: center; justify-content: space-between; gap: 10px; }
.hero-feature-label, .hero-feature-base { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: var(--r-full); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.hero-feature-label { gap: 7px; background: rgba(12, 14, 17, .78); border: 1px solid rgba(255, 255, 255, .2); }
.hero-feature-label i { width: 6px; height: 6px; border-radius: 50%; background: #63c48d; }
.hero-feature-base { background: var(--accent); }
.hero-feature-bottom { bottom: 24px; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-feature-bottom strong { font-size: clamp(1.45rem, 2.8vw, 2.25rem); line-height: 1.05; letter-spacing: -.04em; }
.hero-feature-summary { max-width: 34ch; font-size: .84rem; line-height: 1.45; color: #fff; }
.hero-feature-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 20px; border-radius: var(--r-full); background: var(--accent); font-size: .85rem; font-weight: 800; box-shadow: 0 8px 24px rgba(232, 100, 45, .3); }
.hero-feature-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero-feature-link:hover .hero-feature-cta { filter: brightness(1.1); }
.hero-main:not(.is-empty) .hero-title { font-size: clamp(2.8rem, 4.2vw, 4.5rem); }
@media (min-width: 981px) {
  .hero-main:not(.is-empty) .hero-title .solid { white-space: nowrap; }
}
@media (max-width: 980px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-feature { max-width: 480px; max-height: 500px; justify-self: center; }
  .hero::before {
    background:
      radial-gradient(ellipse 480px 340px at 28% 22%, rgba(232, 100, 45, .1), transparent 78%),
      radial-gradient(ellipse 500px 390px at 70% 72%, rgba(69, 153, 150, .12), transparent 78%);
  }
}
@media (max-width: 560px) {
  .hero-feature { border-radius: 20px; }
  .hero-feature-top, .hero-feature-bottom { left: 17px; right: 17px; }
  .hero-feature-bottom { bottom: 17px; }
  .hero-feature-summary { display: none; }
}

.hero-kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.hero-kicker .rule { width: 42px; height: 2px; background: currentColor; flex: none; border-radius: 2px; }

/* Line one is solid, line two is drawn in outline. Same size, same weight:
   the contrast comes from the fill, which keeps the shape of the type intact. */
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 900; letter-spacing: -.05em; line-height: .92;
}
.hero-title span { display: block; }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 243, 247, .7);
  font-weight: 700;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* Firefox and anything without text-stroke falls back to a dimmed fill rather
   than losing the line entirely. */
@supports not ((-webkit-text-stroke: 1px black)) {
  .hero-title .outline { color: rgba(243, 243, 247, .22); }
}
@media (max-width: 560px) {
  .hero-title .outline { -webkit-text-stroke-width: 1px; }
}

.hero-sub {
  color: var(--text-2); font-size: clamp(.95rem, 1.5vw, 1.08rem);
  max-width: 520px; margin: 26px 0 0; line-height: 1.65;
}

/* Two headline figures beneath the hero copy. */
.stats { margin-top: clamp(26px, 3.4vw, 40px); }

.stats-leads { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px clamp(24px, 3vw, 38px); }
.stats-lead { display: inline-flex; align-items: baseline; gap: 9px; }
.stats-lead b { font-size: clamp(1.8rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.stats-lead span {
  font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

/* ═══ CONTROL BAR ═════════════════════════════════════════════════════════
   Search and ordering in a single rounded container. They belong to the same
   gesture, and keeping them together saves a whole row. */

.controls {
  display: flex; align-items: center; gap: 8px;
  margin-top: clamp(28px, 3.6vw, 44px); padding: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-full);
  transition: border-color .25s var(--ease);
}
.controls:focus-within { border-color: var(--accent-line); }

.search { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.search-ico {
  position: absolute; left: 16px; width: 18px; height: 18px;
  color: var(--text-3); pointer-events: none;
}
.search input {
  width: 100%; height: 44px; padding: 0 76px 0 46px;
  background: transparent; border: none; border-radius: var(--r-full);
  font-size: .98rem; outline: none;
}
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }

.search-clear {
  position: absolute; right: 42px; width: 26px; height: 26px; border: none; background: none;
  color: var(--text-3); cursor: pointer; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: color .2s, background .2s;
}
.search-clear:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.search-clear svg { width: 14px; height: 14px; }

/* The shortcut already exists; showing it is what makes it usable. */
.search-kbd {
  position: absolute; right: 12px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); color: var(--text-3);
  font-family: inherit; font-size: .74rem; font-weight: 600;
}
.controls:focus-within .search-kbd { opacity: 0; }

.controls-tail { display: flex; align-items: center; gap: 6px; flex: none; }

.ctl {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: var(--r-full); cursor: pointer;
  background: var(--bg-2); border: 1px solid transparent;
  font-size: .84rem; font-weight: 600; color: var(--text-2); white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}
.ctl:hover { color: var(--text); border-color: var(--line-2); }
.ctl svg { width: 15px; height: 15px; }
.ctl-fav[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.ctl-fav[aria-pressed="true"] svg { fill: currentColor; }

.ctl-sort { padding-right: 8px; }
.ctl-sort-label { color: var(--text-3); font-size: .78rem; }
.ctl-sort select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 0 26px 0 0; border: none; background: transparent;
  font-size: .84rem; font-weight: 700; color: var(--text); outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 13px;
}
.ctl-sort select option { background: var(--surface); color: var(--text); }

@media (max-width: 860px) {
  .controls { flex-wrap: wrap; border-radius: var(--r-lg); }
  .search { flex: 1 1 100%; }
  .controls-tail { flex: 1 1 100%; }
  .ctl-sort { margin-left: auto; }
}
@media (max-width: 440px) {
  .search-kbd { display: none; }
  .search input { padding-right: 40px; }
  .search-clear { right: 10px; }
  .ctl-fav span { display: none; }
}

/* ═══ FILTERS ═════════════════════════════════════════════════════════════ */

/* ═══ LIBRARY BAR ═════════════════════════════════════════════════════════
   Above the collections and the filters, because it is not a filter: it picks
   which library you are looking at, and everything below it adapts. */

.libbar { padding: clamp(4px, 1vw, 10px) 0 clamp(12px, 1.6vw, 16px); }

/* Five libraries plus All. Too many to fit a phone, so the row scrolls sideways
   rather than wrapping into a second line that pushes the grid down. */
.libnav {
  display: inline-flex; align-items: center; gap: 20px; flex: none;
  max-width: 100%; white-space: nowrap;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.libtab { scroll-snap-align: start; }
.libnav::-webkit-scrollbar { display: none; }

.libtab {
  display: inline-flex; align-items: center; flex: none; position: relative;
  padding: 15px 0; border: none; cursor: pointer;
  background: transparent; color: var(--text-3);
  font-size: .9rem; font-weight: 650; white-space: nowrap;
  transition: color .25s var(--ease);
}
.libtab:hover { color: var(--text); }
.libtab.is-on { color: #fff; }
.libtab.is-on::after { content: ''; position: absolute; height: 3px; background: var(--accent); bottom: 0; left: 0; right: 0; }
.libtab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 640px) {
  .libtab { font-size: .8rem; }
}

/* Two rows, not four: the collections, then a single filter rail.
   Everything that used to sit on its own line now shares one. */
.filters { padding-bottom: clamp(24px, 3vw, 38px); }

.collections {
  display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 16px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.collections::-webkit-scrollbar { display: none; }

.coll {
  position: relative; overflow: hidden;
  flex: 0 0 auto; scroll-snap-align: start; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 16px 11px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s var(--ease), background .3s var(--ease),
              transform .3s var(--ease), box-shadow .3s var(--ease);
}
.coll:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }

/* Selected state. Four signals at once, each of them quiet: an accent edge on
   the left, a warmer surface, the icon filled, and the label in accent. One
   alone reads as a hover; together they are unmistakable without shouting. */
.coll.is-on {
  border-color: var(--accent-line);
  background: linear-gradient(90deg, rgba(232, 100, 45, .16), rgba(232, 100, 45, .07));
  box-shadow: 0 6px 22px rgba(232, 100, 45, .14);
}
.coll.is-on::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
}
.coll.is-on:hover { transform: translateY(-2px); }

.coll-ico {
  width: 32px; height: 32px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .05); color: var(--text-2);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.coll-ico svg { width: 15px; height: 15px; }
.coll:hover .coll-ico { color: var(--text); }
.coll.is-on .coll-ico { background: var(--accent); color: #fff; }

.coll-text { display: flex; flex-direction: column; line-height: 1.25; }
.coll-label {
  font-size: .84rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
  transition: color .3s var(--ease);
}
.coll-count { font-size: .72rem; color: var(--text-3); transition: color .3s var(--ease); }
.coll.is-on .coll-label { color: var(--accent); }
.coll.is-on .coll-count { color: rgba(232, 100, 45, .85); }

/* Compact catalogue filters stay visible at the site's 1010px width. */
.filter-bar {
  display: flex; align-items: center; gap: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.filter-rail {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; min-width: 0; flex: 1; padding: 7px 0;
}
.filter-select {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--surface); white-space: nowrap;
}
.filter-select > span {
  color: var(--text-2); font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.filter-select select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  width: 108px; min-width: 0; padding: 0 17px 0 0; border: 0; outline: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 12px;
  color: var(--text); font-size: .83rem; font-weight: 700;
}
.filter-select[data-group="availability"] select { width: 104px; }
.filter-select[data-group="type"] select { width: 134px; }
.filter-select.is-on { border-color: var(--accent-line); }
.filter-select select option { background: var(--surface); color: var(--text); }
.filter-select:focus-within { border-color: var(--accent); }

@media (max-width: 900px) {
  .filter-bar { flex-wrap: wrap; gap: 0 14px; }
  .filter-rail { flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .filter-rail { gap: 7px; }
  .filter-select { flex: 1 1 150px; justify-content: space-between; }
}

.reset {
  flex: none; border: none; background: none; cursor: pointer; padding: 0;
  font-size: .8rem; font-weight: 600; color: var(--accent);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.reset:hover { border-bottom-color: var(--accent); }

/* ═══ GRID ════════════════════════════════════════════════════════════════ */

.grid-wrap { padding-bottom: clamp(60px, 8vw, 110px); }
/* Fixed column counts rather than auto-fill: the number of cards per row is a
   design decision here, not a consequence of how wide the window happens to be.
   Row gap stays larger than the column gap, because with portrait cards the
   crowding is felt vertically first.
     desktop  ≥1024px  3 columns
     tablet   ≥640px   2 columns
     mobile   <640px   1 column                                              */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 20px) clamp(12px, 1.2vw, 16px);
}
.grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min)), 1fr));
  --card-min: 190px;
}

@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}
@media (max-width: 639px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ── card ──────────────────────────────────────────────────────────────── */

.card {
  display: block; position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(232, 100, 45, .08);
}

.card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .4s var(--ease);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-noimg { position: absolute; inset: 0; background: linear-gradient(135deg, #16161f, #1d1d28); }

/* Two gradients. The first is always there and only exists so the name stays
   readable over a bright image; the second deepens on hover to carry the extra
   information without ever dimming the preview at rest. */
.card-media::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(4, 4, 8, .88) 0%, rgba(4, 4, 8, .44) 27%, transparent 53%);
}
.card-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(4, 4, 8, .92) 0%, rgba(4, 4, 8, .55) 38%, rgba(4, 4, 8, .1) 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover .card-media::after { opacity: 1; }

.card-badges { position: absolute; top: 11px; left: 11px; display: flex; gap: 6px; z-index: 3; }
.c-base, .c-avail {
  padding: 5px 10px; border-radius: var(--r-full);
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
  background: rgba(8, 8, 12, .8); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card-badges .c-base, .card-badges .c-avail { padding: 4px 8px; }
.c-avail-pro { color: var(--pro); border-color: rgba(167, 139, 250, .45); background: rgba(40, 28, 70, .8); }
.c-avail-premium { color: var(--premium); border-color: rgba(251, 191, 36, .45); background: rgba(58, 42, 10, .8); }

/* Model or LoRA. Outlined rather than filled: it names a category, not a
   status, and must not compete with the availability badge beside it. */
.c-kind {
  padding: 5px 10px; border-radius: var(--r-full);
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: transparent; border: 1px solid rgba(255, 255, 255, .34); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.c-kind-model { border-color: rgba(232, 100, 45, .75); color: #ffb28c; background: rgba(60, 24, 10, .55); }

/* Free is the quiet default. Free + Premium says both things at once without
   spending a second badge on it. */
.c-avail-free { color: #fff; border-color: rgba(255, 255, 255, .16); background: rgba(8, 8, 12, .7); }
.c-avail-free_premium { color: var(--free); border-color: rgba(74, 222, 128, .45); background: rgba(10, 40, 26, .8); }

/* Saving without opening the model is the point, so the heart is visible at
   rest rather than hidden behind a hover nobody thinks to try. It stays quiet
   until the card is hovered. */
.card-fav {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 8, 12, .5); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: .5;
  transition: opacity .25s var(--ease), transform .25s var(--ease),
              color .2s, border-color .2s, background .2s;
}
.card:hover .card-fav { opacity: 1; background: rgba(8, 8, 12, .7); border-color: rgba(255, 255, 255, .2); }
.card-fav:hover { color: #fff; border-color: rgba(255, 255, 255, .38); transform: scale(1.1); }
.card-fav svg { width: 16px; height: 16px; }
.card-fav.is-on { opacity: 1; color: var(--accent); border-color: var(--accent-line); background: rgba(8, 8, 12, .72); }
.card-fav.is-on svg { fill: currentColor; }
/* A short pop on toggle: enough feedback that the click clearly registered. */
.card-fav.pop { animation: favPop .32s var(--ease); }
@keyframes favPop {
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

.card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 18px 17px 16px;
  transition: transform .4s var(--ease);
}
.card-name {
  font-size: 1.08rem; font-weight: 750; letter-spacing: -.025em; line-height: 1.24;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}
/* What it is on the left, what it costs on the right, one line. The price
   earns its own end of the row so the eye finds it without reading. */
.card-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 4px;
}
.card-meta {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  font-size: .75rem; font-weight: 500; color: rgba(255, 255, 255, .78);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.card-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-vers {
  flex: none;
  padding: 2px 7px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, .13);
  font-size: .68rem; font-weight: 600; letter-spacing: .01em;
}

/* A mark, not a metric. It says others took this one without printing a figure
   small enough to argue the other way. */
.card-hot, .m-hot {
  flex: none;
  padding: 2px 8px; border-radius: var(--r-full);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--accent);
  font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.m-hot { padding: 5px 10px; font-size: .66rem; }

.card-price {
  flex: none; display: flex; align-items: baseline; gap: 6px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}
.card-price strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.card-price i {
  font-style: normal; font-size: .64rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.card-price em {
  font-style: normal; font-size: .68rem; font-weight: 600; color: rgba(255, 255, 255, .62);
}
.card-price-free strong { color: var(--free); }
.card-price-pro strong { color: var(--pro); }

/* Revealed on hover. max-height rather than display so it can animate. */
.card-reveal {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s var(--ease), opacity .3s var(--ease), margin-top .4s var(--ease);
}
.card:hover .card-reveal { max-height: 40px; opacity: 1; margin-top: 12px; }
.card-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 700; color: var(--accent);
}
.card-cta svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.card:hover .card-cta svg { transform: translateX(3px); }

/* Touch devices never fire hover, so nothing may hide behind it. */
@media (hover: none) {
  .card-reveal { display: none; }
  .card-fav { opacity: 1; transform: none; }
  .card-media::after { opacity: .5; }
}

/* nsfw */
.card.is-nsfw .card-media img { filter: blur(22px) saturate(.6); transform: scale(1.1); }
.card.is-nsfw.revealed .card-media img { filter: none; transform: none; }
.card-veil {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
}
.card-veil::after { content: 'Sensitive'; }
.card.revealed .card-veil { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   The membership bar.
   One line above the grid, because the alternative to thirty-six purchases
   deserves to be said once, plainly, before the visitor starts counting.
   ══════════════════════════════════════════════════════════════════════════ */

.probar {
  display: flex; align-items: center; gap: 15px;
  padding: 15px 18px; margin-bottom: clamp(16px, 2vw, 24px);
  border: 1px solid var(--accent-line); border-radius: var(--r);
  background: linear-gradient(100deg, var(--accent-soft), transparent 62%), var(--surface);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.probar[hidden] { display: none !important; }
.probar:hover { border-color: var(--accent); transform: translateY(-1px); }

.probar-mark {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
}
.probar-mark svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }

.probar-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.probar-text strong { font-size: 1rem; font-weight: 750; letter-spacing: -.02em; }
.probar-text span { font-size: .79rem; color: var(--text-2); }

.probar-cta {
  flex: none; display: flex; align-items: center; gap: 8px; margin-left: auto;
  padding: 9px 13px; border-radius: var(--r-full);
  background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800;
  box-shadow: 0 6px 20px rgba(232, 100, 45, .2);
}
.probar-cta em { font-style: normal; font-size: .84rem; white-space: nowrap; }
.probar-cta svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.probar:hover .probar-cta svg { transform: translateX(3px); }

@media (max-width: 559px) {
  .probar { flex-wrap: wrap; gap: 12px; }
  .probar-cta { margin-left: 0; width: 100%; justify-content: center; }
}

.empty { text-align: center; color: var(--text-3); padding: 70px 0; }

.more-wrap { display: flex; justify-content: center; padding-top: clamp(28px, 3.5vw, 44px); }
.more {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-radius: var(--r-full); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: .9rem; font-weight: 700; color: var(--text);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.more:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.more em {
  font-style: normal; font-size: .78rem; font-weight: 600; color: var(--text-3);
  padding-left: 12px; border-left: 1px solid var(--line-2);
}
.more:hover em { color: var(--accent); }

/* skeletons while the catalogue loads */
.skel { border-radius: var(--r); aspect-ratio: 3 / 4; background: var(--surface); position: relative; overflow: hidden; }
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .045), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ═══ MODEL PAGE ══════════════════════════════════════════════════════════ */

.crumbs {
  display: flex; align-items: center; gap: 9px;
  padding-top: 22px; font-size: .8rem; color: var(--text-3);
}
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--text); }

.model {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 3.5vw, 56px);
  padding: clamp(18px, 3vw, 34px) clamp(16px, 3vw, 40px) clamp(50px, 7vw, 90px);
  align-items: start;
}
@media (max-width: 980px) { .model { grid-template-columns: 1fr; } }

.stage {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  aspect-ratio: 3 / 4; max-height: 74vh;
}
.stage img { width: 100%; height: 100%; object-fit: cover; }
.model.is-nsfw .stage img { filter: blur(30px) saturate(.6); transform: scale(1.08); }
.model.revealed .stage img { filter: none; transform: none; }
.nsfw-reveal {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  background: rgba(8, 8, 12, .35); border: none; color: #fff;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.nsfw-sub { font-size: .7rem; font-weight: 500; letter-spacing: .04em; text-transform: none; color: #fff; }
.model.revealed .nsfw-reveal { display: none; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.shot {
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
  aspect-ratio: 1; cursor: pointer; background: var(--bg-2);
  transition: border-color .25s var(--ease), opacity .25s var(--ease);
  opacity: .62;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover { opacity: 1; }
.shot.is-active { border-color: var(--accent); opacity: 1; }
.model.is-nsfw:not(.revealed) .shot img { filter: blur(10px); }

.model-side .kicker {
  font-size: .68rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.model-side h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900;
  letter-spacing: -.035em; line-height: 1.06; margin-top: 8px;
}
.by { color: var(--text-3); font-size: .85rem; margin-top: 6px; }
.lede { color: var(--text-2); margin-top: 18px; line-height: 1.7; }

.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: var(--r-full); cursor: pointer;
  font-size: .89rem; font-weight: 700; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 22px rgba(232, 100, 45, .26); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232, 100, 45, .36); filter: brightness(1.06); }
.btn-ghost { border-color: var(--line-2); color: var(--text-2); background: transparent; }
.btn-ghost:hover { border-color: var(--text-3); color: var(--text); }
.btn-icon { width: 46px; padding: 0; border-color: var(--line-2); color: var(--text-2); background: transparent; }
.btn-icon:hover { border-color: var(--text-3); color: var(--text); }
.btn-icon[aria-pressed="true"] { color: var(--accent); border-color: var(--accent-line); }
.btn-icon[aria-pressed="true"] svg { fill: currentColor; }

.notice {
  margin-top: 24px; padding: 16px 18px; border-radius: var(--r);
  background: rgba(251, 191, 36, .07); border: 1px solid rgba(251, 191, 36, .26);
  font-size: .85rem; line-height: 1.6; color: var(--text-2);
}
.notice-title { font-weight: 800; color: var(--premium); margin-bottom: 5px; }
.notice a { color: var(--premium); border-bottom: 1px solid rgba(251, 191, 36, .4); }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px; margin-top: 28px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.fact { background: var(--surface); padding: 13px 15px; }
.fact dt { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.fact dd { font-size: .9rem; font-weight: 700; margin-top: 3px; }

.block { margin-top: 26px; }
.block h2 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 9px; }
.block p { color: var(--text-2); line-height: 1.7; font-size: .9rem; }
.trigger {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem;
  padding: 9px 15px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--accent);
  transition: border-color .25s var(--ease);
}
.trigger:hover { border-color: var(--accent-line); }
.trigger::after { content: 'copy'; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.trigger.copied::after { content: 'copied'; color: var(--free); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tag {
  padding: 5px 11px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .76rem; color: var(--text-2); transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--line-2); color: var(--text); }

.report { margin-top: 26px; font-size: .78rem; color: var(--text-3); }
.report a { border-bottom: 1px solid var(--line-2); }
.report a:hover { color: var(--text-2); }

.related { padding-bottom: clamp(60px, 8vw, 100px); }
.related h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }

/* ═══ DOC PAGES ═══════════════════════════════════════════════════════════ */

.doc { max-width: 720px; padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(60px, 8vw, 100px); }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; }
.doc-lede { font-size: 1.05rem; color: var(--text-2); line-height: 1.75; margin-top: 18px; }
.doc h2 { font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; margin: 38px 0 12px; }
.doc p { color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.doc ul { color: var(--text-2); line-height: 1.75; margin: 0 0 16px 20px; }
.doc li { margin-bottom: 7px; }
.doc a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.doc strong { color: var(--text); }

/* ═══ MODAL ═══════════════════════════════════════════════════════════════ */

.mw {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}
.mw-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 4, 8, .82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s var(--ease);
}
.mw.is-open .mw-backdrop { opacity: 1; }

/* A definite height, not a maximum. Grid rows of 1fr can only resolve to equal
   heights when the container knows how tall it is; with max-height alone the
   panel sizes to its content and the images fall back to their own ratio. */
.modal {
  position: relative; z-index: 1;
  width: 100%; max-width: 1180px; height: min(88vh, 860px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .95fr);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .65);
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.mw.is-open .modal { opacity: 1; transform: none; }

.m-close {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 8, 12, .66); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.m-close:hover { color: #fff; border-color: rgba(255, 255, 255, .34); transform: rotate(90deg); }
.m-close svg { width: 15px; height: 15px; }

/* ── images: the majority of the panel on desktop ──────────────────────── */

/* min-height: 0 on both, otherwise a grid item refuses to shrink below the
   intrinsic height of the images inside it and the rows drift apart. */
.m-visual { position: relative; background: var(--bg-2); min-width: 0; min-height: 0; }

/* Sensitive previews stay blurred until asked for, in the modal as on the card. */
.modal.is-nsfw .m-shot img { filter: blur(26px) saturate(.6); transform: scale(1.08); }
.modal.is-nsfw .m-shot { cursor: default; }
.modal.revealed .m-shot img { filter: none; transform: none; }
.modal.revealed .m-shot { cursor: zoom-in; }
.modal .nsfw-reveal { position: absolute; inset: 0; z-index: 3; }
.modal.revealed .nsfw-reveal { display: none; }
.m-shots { display: grid; gap: 3px; height: 100%; min-height: 0; grid-auto-rows: 1fr; }
.m-shots.shots-1 { grid-template-columns: 1fr; }
.m-shots.shots-2 { grid-template-columns: 1fr 1fr; }
/* one large on the left, two stacked on the right */
.m-shots.shots-3 { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; }
.m-shots.shots-3 .m-shot:first-child { grid-row: span 2; }
.m-shots.shots-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.m-shot {
  position: relative; padding: 0; border: none; cursor: zoom-in;
  overflow: hidden; background: var(--bg-2); min-height: 0;
}
.m-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.m-shot:hover img { transform: scale(1.04); }
.m-shot::after {
  content: ''; position: absolute; inset: 0; background: rgba(4, 4, 8, .18);
  opacity: 0; transition: opacity .3s var(--ease);
}
.m-shot:hover::after { opacity: 1; }
.m-more {
  position: absolute; right: 10px; bottom: 10px;
  padding: 4px 10px; border-radius: var(--r-full);
  background: rgba(8, 8, 12, .75); border: 1px solid rgba(255, 255, 255, .16);
  font-size: .72rem; font-weight: 700;
}

/* ── info panel ───────────────────────────────────────────────────────── */

.m-info {
  padding: clamp(22px, 2.4vw, 32px);
  overflow-y: auto; min-width: 0; min-height: 0;
  border-left: 1px solid var(--line);
}
.m-info::-webkit-scrollbar { width: 8px; }
.m-info::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }

.m-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.m-badges .c-base, .m-badges .c-avail, .m-badges .c-kind { position: static; }
.m-type {
  padding: 5px 10px; border-radius: var(--r-full);
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .06); color: var(--text-2);
}
.m-dl { font-size: .76rem; color: var(--text-3); margin-left: 2px; }

.m-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.m-tags .tag { cursor: default; }

/* ── offers ───────────────────────────────────────────────────────────── */

.m-offers { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.offer { display: flex; flex-direction: column; gap: 5px; }
.offer-btn { justify-content: flex-start; width: 100%; height: 48px; gap: 10px; }
.offer-btn svg { width: 16px; height: 16px; opacity: .85; }
.offer-btn span { flex: 1; text-align: left; }

/* The price rides inside the button. A separate price tag would turn the panel
   into a product sheet, which is exactly what this must not become. */
.offer-price {
  font-style: normal; font-weight: 800; font-size: .88rem;
  padding: 3px 10px; border-radius: var(--r-full);
  background: rgba(0, 0, 0, .22);
}
.btn-ghost .offer-price { background: var(--surface-2); color: var(--text); }

/* Paid offers that are not the primary action still need to read as paid. */
.btn-ghost.offer-premium, .btn-ghost.offer-pro {
  border-color: rgba(251, 191, 36, .35); color: var(--premium);
}
.btn-ghost.offer-premium:hover, .btn-ghost.offer-pro:hover { border-color: var(--premium); color: var(--premium); }
.btn-ghost.offer-premium .offer-price { background: rgba(251, 191, 36, .14); color: var(--premium); }

.offer-note {
  display: flex; flex-wrap: wrap; gap: 4px 8px;
  font-size: .74rem; color: var(--text-3); padding-left: 4px;
}
.offer-where { color: var(--text-2); font-weight: 600; }
.offer-where + span::before { content: '·'; margin-right: 8px; }

/* The membership, offered right where the price was just read. Quieter than
   the buy buttons on purpose: it is an alternative, not a competitor. */
.m-pro {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.m-pro[hidden] { display: none !important; }
.m-pro:hover { border-color: var(--accent); background: rgba(232, 100, 45, .18); }
.m-pro-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-pro-text strong { font-size: .84rem; font-weight: 700; color: var(--text); }
.m-pro-text span { font-size: .74rem; color: var(--text-3); }
.m-pro svg { width: 15px; height: 15px; flex: none; margin-left: auto; color: var(--accent); }

/* Formats. Flat, not clickable: the choice happens on the seller's page, and a
   button here would promise something the link cannot deliver. */
.m-formats { margin-top: 20px; }
.m-formats h3 {
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}
.m-formats-row { display: flex; flex-wrap: wrap; gap: 7px; }
.m-format {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line-2);
}
.m-format strong { font-size: .78rem; font-weight: 700; }
.m-format span { font-size: .78rem; color: rgba(255, 255, 255, .62); }
.m-formats-note { margin-top: 8px; font-size: .74rem; color: rgba(255, 255, 255, .5); }

/* Versions. A row of small buttons rather than a dropdown: four files is a
   choice you make by looking, not by opening a menu. */
.m-versions { margin-top: 22px; }
.m-versions[hidden] { display: none !important; }
.m-versions h3 {
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 9px;
}
.m-versions-row { display: flex; flex-wrap: wrap; gap: 7px; }
.m-version {
  display: inline-flex; align-items: baseline; gap: 7px; cursor: pointer;
  padding: 7px 12px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.m-version:hover { border-color: var(--text-3); color: var(--text); }
.m-version strong { font-size: .8rem; font-weight: 700; }
.m-version em {
  font-style: normal; font-size: .6rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.m-version span { font-size: .74rem; color: var(--text-3); }
.m-version.is-on {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.m-version.is-on em, .m-version.is-on span { color: rgba(255, 255, 255, .8); }

.m-side-actions { display: flex; gap: 8px; margin-top: 14px; }
.m-side-actions .btn { flex: 1; height: 40px; width: auto; padding: 0 14px; font-size: .82rem; }
.m-side-actions .btn svg { width: 15px; height: 15px; }

.m-info h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 900;
  letter-spacing: -.035em; line-height: 1.08;
}
.m-unofficial {
  margin-top: 10px; padding: 10px 13px; border-radius: var(--r-sm);
  background: rgba(251, 191, 36, .07); border: 1px solid rgba(251, 191, 36, .24);
  font-size: .78rem; line-height: 1.55; color: var(--text-2);
}
.m-unofficial strong { color: var(--premium); display: block; }
.m-by { font-size: .82rem; color: var(--text-3); margin-top: 8px; }
/* pre-line, because the shop writes feature lists with real line breaks and
   collapsing them turns a readable list into a paragraph of ticks. */
.m-desc {
  color: var(--text-2); line-height: 1.7; font-size: .92rem; margin-top: 16px;
  white-space: pre-line;
}
.m-desc.is-clamped {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6;
  overflow: hidden;
}

.m-desc-more {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  margin-top: 8px; padding: 0; border: none; background: none;
  font-size: .8rem; font-weight: 700; color: var(--accent);
}
.m-desc-more[hidden] { display: none !important; }
.m-desc-more:hover { text-decoration: underline; }
.m-desc-more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.m-desc-more.is-open svg { transform: rotate(180deg); }

.m-block { margin-top: 20px; }
.m-block h3 { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.m-block p { color: var(--text-2); line-height: 1.7; font-size: .88rem; }

.m-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px; margin-top: 20px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}

.m-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.m-actions .btn { height: 44px; }
.m-actions .btn-icon { width: 44px; }
.m-report { margin-top: 18px; font-size: .76rem; color: var(--text-3); }
.m-report a { border-bottom: 1px solid var(--line-2); }
.m-report a:hover { color: var(--text-2); }

/* ── mobile: one column, images first ─────────────────────────────────── */

@media (max-width: 900px) {
  .mw { padding: 0; align-items: flex-end; }
  .modal {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr;
    max-width: none; height: auto; max-height: 94vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: none;
    transform: translateY(28px);
  }
  /* Stacked, so the images get a ratio of their own rather than a share of a
     height that no longer exists. */
  .m-shots { height: auto; }
  .m-shots.shots-3, .m-shots.shots-4 { grid-template-rows: 1fr 1fr; }
  .m-shot { aspect-ratio: 1; }
  .m-shots.shots-1 .m-shot { aspect-ratio: 4 / 3; }
  .m-info { border-left: none; border-top: 1px solid var(--line); }
}

/* ═══ LIGHTBOX ════════════════════════════════════════════════════════════ */

.lb {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(2, 2, 5, .95);
  opacity: 0; transition: opacity .2s var(--ease);
}
.lb.is-open { opacity: 1; }
.lb img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: var(--r-sm); cursor: zoom-out;
}
.lb-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  transition: background .2s, transform .2s var(--ease);
}
.lb-close:hover { background: rgba(255, 255, 255, .14); transform: rotate(90deg); }
.lb-close svg { width: 17px; height: 17px; }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  transition: background .2s;
}
.lb-nav:hover { background: rgba(255, 255, 255, .16); }
.lb-nav svg { width: 20px; height: 20px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: .78rem; font-weight: 600; color: #fff;
}
@media (max-width: 620px) {
  .lb-nav { width: 40px; height: 40px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ═══ TOAST ═══════════════════════════════════════════════════════════════ */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translate(-50%, 16px);
  padding: 11px 20px; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: .84rem; font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══ FOOTER ══════════════════════════════════════════════════════════════ */

/* The footer is the last thing on every page and the only place that shows the
   whole site at once. Five columns, the last one commercial, then a quiet bar
   for the notices nobody reads but everyone needs. */
.site-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 54px 0 34px; }

/* The footer's own container, not the homepage's. It is the one block shared
   by every page, so it cannot depend on a variable that only some of them
   define. Same width and same gutters as the rest of the site. */
.foot-wrap { width: min(calc(100% - 56px), 1080px); margin-inline: auto; }
@media (max-width: 820px) { .foot-wrap { width: calc(100% - 36px); } }
.foot-inner { display: flex; flex-direction: column; gap: 40px; }

.foot-cols {
  display: grid; gap: 34px clamp(24px, 3vw, 46px);
  grid-template-columns: 1.6fr repeat(3, .85fr) 1.15fr;
}

.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; min-width: 0; }
.foot-col h2 {
  margin-bottom: 3px;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.foot-col a { font-size: .83rem; color: rgba(255, 255, 255, .72); transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-col p { font-size: .81rem; line-height: 1.6; color: rgba(255, 255, 255, .55); }

.foot-col-brand { gap: 14px; max-width: 330px; }
.foot-logo { width: 132px; height: auto; }

.foot-social { display: flex; gap: 8px; margin-top: 2px; }
.foot-social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 9px;
  color: rgba(255, 255, 255, .62);
  transition: color .2s, border-color .2s, background .2s;
}
.foot-social a:hover { color: #fff; border-color: var(--line-2); background: var(--surface); }
.foot-social svg { width: 16px; height: 16px; }

/* The one thing in the footer that is trying to sell, so it is the one thing
   wearing the accent. */
.foot-col-pro { padding: 18px; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--accent-soft); }
.foot-col-pro h2 { color: var(--accent); }
.foot-pro-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  padding: 10px 18px; border-radius: var(--r-full);
  background: var(--accent); color: #fff !important;
  font-size: .8rem; font-weight: 700;
}
.foot-pro-btn:hover { filter: brightness(1.08); }

.foot-bottom {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 28px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .74rem; color: rgba(255, 255, 255, .42);
}
.foot-bottom p { line-height: 1.6; }
.foot-legal { flex: 1; min-width: 280px; max-width: 760px; }

@media (max-width: 1080px) {
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
  .foot-col-brand { grid-column: 1 / -1; max-width: none; }
  .foot-col-pro { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── sensitive content ──────────────────────────────────────────────────────
   A blur plus a veil. The blur alone still reads as a silhouette, and a veil
   alone hides that there is an image at all. */
.nsfw-veil {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(7, 10, 13, .58);
  color: #fff; text-align: center; cursor: pointer;
  transition: background .2s;
}
.nsfw-veil:hover { background: rgba(7, 10, 13, .46); }
.nsfw-veil svg { width: 22px; height: 22px; opacity: .9; }
.nsfw-veil b { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nsfw-veil em { font-style: normal; font-size: .66rem; color: rgba(255, 255, 255, .6); }

.is-nsfw > img,
.is-nsfw .home-product-media img,
.is-nsfw .product-stage img,
.product-stage-row.is-nsfw img { filter: blur(24px) saturate(.55); transform: scale(1.12); }

.is-revealed .nsfw-veil { display: none; }
.is-revealed > img,
.is-revealed .home-product-media img { filter: none; transform: none; }

/* The catalogue thumbnail follows the blur setting of its source gallery image. */
.is-preview-blurred > img,
.is-preview-blurred .home-product-media img,
.is-preview-blurred .card-media img { filter: blur(24px) brightness(.65); transform: scale(1.12); }
.preview-blur-badge { position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 7px 11px; border: 1px solid rgba(255,255,255,.42); border-radius: 18px; background: rgba(7,10,13,.8); color: #fff; font-size: .68rem; font-weight: 700; white-space: nowrap; pointer-events: none; }
.product-related-card.is-preview-blurred { position: relative; }

/* Pro column: as tall as its content, no taller than the link columns. */
.foot-col-pro { align-self: start; padding: 14px 16px; }
.foot-col-pro p { margin: 4px 0 10px; line-height: 1.5; }
.foot-pro-btn { padding: 8px 16px; }

/* Coming soon: a state of an ordinary product, said with one orange badge. */
.soon-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 14px; background: var(--accent); color: #0b0d0f; font-size: .57rem; font-weight: 800; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.c-avail-soon { color: #0b0d0f; border-color: var(--accent); background: var(--accent); }
.card-price-soon strong { color: var(--accent); font-size: .82rem; }
.card-soon-line { margin: 6px 0 0; color: rgba(255,255,255,.72); font-size: .76rem; }
.card-soon-line::before, .soon-line::before { content: '⚡'; margin-right: 5px; }

/* Footer: new releases by email, its own quiet row above the legal line */
.foot-news-band { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-news-copy h2 { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.foot-news-copy p { margin-top: 6px; font-size: .86rem; color: rgba(255,255,255,.72); }
.foot-news { display: grid; gap: 7px; width: min(100%, 420px); }
.foot-news-row { display: flex; gap: 8px; }
.foot-news input[type="email"] { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: transparent; color: #fff; font: inherit; font-size: .8rem; outline: 0; transition: border-color .2s; }
.foot-news input[type="email"]:focus { border-color: var(--accent); }
.foot-news button { flex: none; height: 40px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 99px; background: transparent; color: #fff; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s; }
.foot-news button:hover { border-color: var(--accent); color: var(--accent); }
.foot-news button:disabled { opacity: .5; }
.foot-news-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.foot-news-note { padding-left: 14px; color: rgba(255,255,255,.42); font-size: .72rem; }
.foot-news-note.is-ok { color: #8be2a6; }
.foot-news-note.is-bad { color: #ffa17c; }
@media (max-width: 640px) { .foot-news { width: 100%; } }
.news-flash { position: fixed; left: 50%; top: 90px; z-index: 90; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border: 1px solid rgba(87,196,133,.4); border-radius: 12px; background: #0f1a14; color: #a8efbd; font-size: .86rem; font-weight: 600; }
.news-flash.is-bad { border-color: rgba(232,100,45,.45); background: #1a120e; color: #ffb08f; }
