/* ============================================================
   BSS Catalog — Design System & Styles
   ============================================================ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --border: #242424;
  --border-2: #2e2e2e;

  --text: #f0ece5;
  --text-2: #a09890;
  --text-3: #5a5450;

  --accent: #c4a97d;
  --accent-dim: #8a7358;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Crimson Pro', Georgia, serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --transition: 200ms ease;

  --nav-h: 56px;
  --modal-w: 420px;
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* Suppress all transitions and animations while page initializes */
.is-loading *,
.is-loading *::before,
.is-loading *::after {
  transition: none !important;
  animation-duration: 0s !important;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.22s ease-out;
}

body.page-ready {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

ul {
  list-style: none;
}

/* ── Utility ────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 99px;
}

/* ── Atmospheric Black Snow & Frost Canvas ──────────────── */
.snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 40;
  opacity: 0.85;
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter var(--transition);
}

.nav__logo-img {
  height: 20px;
  width: auto;
  display: block;
}

.nav__logo:hover .nav__logo-mark {
  transform: scale(1.14);
  filter: drop-shadow(0 0 10px rgba(196, 169, 125, 0.45));
}

.nav__links {
  display: flex;
  gap: 4px;
}

.nav__link {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
  background: var(--surface-2);
}

.nav__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__icon-link {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  position: relative;
  transition: color var(--transition), background-color var(--transition);
}

.nav__icon {
  width: 17px;
  height: 17px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav__icon-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav__icon-link:hover .nav__icon {
  transform: scale(1.12);
}

.nav__icon-link--boosty:hover {
  color: var(--accent);
}

/* Micro-tooltip on hover */
.nav__icon-link::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 4px 8px;
  background: #181818;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.nav__icon-link:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
}

.lang-toggle__btn {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  color: var(--text-3);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.lang-toggle__btn.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-2);
}

.lang-toggle__btn:hover:not(.active) {
  color: var(--text-2);
}

@media (max-width: 768px) {
  .nav__socials {
    display: none;
  }

  .nav__divider {
    display: none;
  }
}

/* ── Page Wrapper & Section Transitions ─────────────────── */
.page {
  padding-top: var(--nav-h);
  overflow: visible;
  position: relative;
  min-height: calc(100vh - var(--nav-h));
}

.page-section {
  display: none;
  width: 100%;
}

.page-section.active {
  display: block;
}

/* Exit animations: swift slide out with scale & motion blur */
.page-section.section-exit-left {
  display: block;
  animation: sectionExitLeft 0.16s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

.page-section.section-exit-right {
  display: block;
  animation: sectionExitRight 0.16s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

/* Enter animations: dynamic sweeping slide in with depth scale and spring deceleration */
.page-section.section-enter-right {
  display: block;
  animation: sectionEnterRight 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-section.section-enter-left {
  display: block;
  animation: sectionEnterLeft 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sectionExitLeft {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateX(-130px) scale(0.985);
    filter: blur(4px);
  }
}

@keyframes sectionExitRight {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateX(130px) scale(0.985);
    filter: blur(4px);
  }
}

@keyframes sectionEnterRight {
  from {
    opacity: 0;
    transform: translateX(140px) scale(0.985);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes sectionEnterLeft {
  from {
    opacity: 0;
    transform: translateX(-140px) scale(0.985);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .page-section.section-exit-left,
  .page-section.section-exit-right,
  .page-section.section-enter-right,
  .page-section.section-enter-left {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 108px 32px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* subtle radial glow behind title */
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(196, 169, 125, 0.05) 0%, transparent 70%),
    var(--bg);
}

.hero__watermark {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 85vw);
  max-width: 600px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.026;
  filter: blur(0.3px);
  transition: opacity 0.4s ease;
}

.hero__watermark-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__eyebrow,
.hero__title,
.hero__subtitle,
.hero__actions,
.hero__scroll-btn {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  max-width: 960px;
  text-wrap: balance;
}

.hero__subtitle {
  font-size: 13.5px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-bottom: 36px;
  text-transform: uppercase;
}

/* ── Hero CTAs ───────────────────────────────────────── */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* ── Shiny Call-to-Action Commission Button (HexagonCircle / Ryan Mulligan) ── */
:root {
  --shiny-cta-bg: var(--accent);
  --shiny-cta-bg-subtle: #a68d65;
  --shiny-cta-fg: #1a1208;
  --shiny-cta-highlight: #fff2db;
  --shiny-cta-highlight-subtle: #ffffff;
}

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}

@property --gradient-shine {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}

.btn-commission {
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 11px 26px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--shiny-cta-fg);
  background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-cta-highlight) var(--gradient-percent),
      var(--gradient-shine) calc(var(--gradient-percent) * 2),
      var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
      transparent calc(var(--gradient-percent) * 4)) border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
  will-change: transform;

  &::before,
  &::after,
  span::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    translate: -50% -50%;
    z-index: -1;
  }

  &:active {
    translate: 0 1px;
  }
}

/* Dots pattern */
.btn-commission::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle at var(--position) var(--position),
      white calc(var(--position) / 4),
      transparent 0) padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg),
      black,
      transparent 10% 90%,
      black);
  border-radius: inherit;
  opacity: 0.4;
  z-index: -1;
}

/* Inner shimmer */
.btn-commission::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg,
      transparent,
      var(--shiny-cta-highlight),
      transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
}

.btn-commission span {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  will-change: transform;

  &::before {
    --size: calc(100% + 4rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
    opacity: 0;
  }
}

/* Animate */
.btn-commission {
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent,
    --gradient-shine;

  &,
  &::before,
  &::after {
    animation: var(--animation) var(--duration),
      var(--animation) calc(var(--duration) / 0.4) reverse paused;
    animation-composition: add;
  }

  span::before {
    transition: opacity var(--transition);
    animation: calc(var(--duration) * 1.5) breathe linear infinite;
  }
}

.btn-commission:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);

  &,
  &::before,
  &::after {
    animation-play-state: running;
  }

  span::before {
    opacity: 1;
  }
}

@keyframes gradient-angle {
  to {
    --gradient-angle: 360deg;
  }
}

@keyframes shimmer {
  to {
    rotate: 360deg;
  }
}

@keyframes breathe {

  from,
  to {
    scale: 1;
  }

  50% {
    scale: 1.2;
  }
}

/* Secondary: Support */
.btn-support {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(196, 169, 125, 0.3);
  color: var(--accent);
  background: rgba(196, 169, 125, 0.05);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
}

.btn-support:hover {
  border-color: var(--accent);
  background: rgba(196, 169, 125, 0.1);
}

/* Scroll arrow */
.hero__scroll-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  padding: 6px 16px;
  transition: color var(--transition);
}

.hero__scroll-btn:hover {
  color: var(--accent);
}

.hero__scroll-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  transition: color var(--transition);
}

.hero__scroll-arrow {
  font-size: 16px;
  line-height: 1;
  animation: heroScrollBounce 1.8s ease-in-out infinite;
  display: block;
  color: inherit;
}

@keyframes heroScrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

.btn-primary {
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #1a1208;
  transition: opacity var(--transition), transform var(--transition);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  font-size: 13.5px;
  font-weight: 400;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-ghost:hover {
  border-color: var(--text-3);
  color: var(--text);
}

.btn-ghost--accent {
  border-color: rgba(196, 169, 125, 0.35);
  color: var(--accent);
}

.btn-ghost--accent:hover {
  border-color: var(--accent);
  background: rgba(196, 169, 125, 0.08);
  color: var(--text);
}

/* ── Catalog Toolbar ────────────────────────────────────── */
.catalog-toolbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  padding: 0 32px;
  background: rgba(13, 13, 13, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.toolbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.toolbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border-2);
  flex-shrink: 0;
  opacity: 0.85;
}

.toolbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 240px;
  max-width: 360px;
  min-width: 180px;
}

.toolbar-center .search-wrap {
  width: 100%;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nsfw-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
  user-select: none;
  transition: border-color var(--transition);
}

.nsfw-switch:hover {
  border-color: var(--border-2);
}

.nsfw-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: calc(var(--radius-sm) - 2px);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.nsfw-switch__btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nsfw-switch__btn .nsfw-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
  transition: background var(--transition), box-shadow var(--transition);
}

/* SFW Active State (Green) */
.nsfw-switch__btn--sfw.active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.nsfw-switch__btn--sfw.active .nsfw-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.85);
}

/* NSFW Active State (Red) */
.nsfw-switch__btn--nsfw.active {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ff6b6b;
}

.nsfw-switch__btn--nsfw.active .nsfw-dot {
  background: #ff4848;
  box-shadow: 0 0 8px rgba(255, 72, 72, 0.85);
}

.btn-drawer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
}

.btn-drawer-toggle:hover,
.btn-drawer-toggle.open {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(196, 169, 125, 0.08);
}

.btn-drawer-toggle .drawer-icon {
  width: 13px;
  height: 13px;
  stroke: var(--accent);
  display: block;
  flex-shrink: 0;
}

.btn-drawer-toggle .drawer-chevron {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn-drawer-toggle.open .drawer-chevron {
  transform: rotate(180deg);
}

.drawer-badge-count {
  background: var(--accent);
  color: #1a1208;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 6px;
  line-height: 1.2;
}

.catalog-drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1), opacity 240ms ease, padding 280ms ease;
  border-top: 1px solid transparent;
}

.catalog-drawer.open {
  max-height: 520px;
  opacity: 1;
  border-top-color: var(--border);
  padding: 12px 0 16px;
  overflow-y: auto;
}

.catalog-drawer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-group__header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.drawer-group__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.tag-search-wrap {
  position: relative;
  width: 180px;
}

.tag-search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  width: 12px;
  height: 12px;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.tag-search-input {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 4px 10px 4px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}

.tag-search-input:focus {
  border-color: var(--accent);
}

.btn-clear-filters {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  margin-left: auto;
  padding: 2px 6px;
  transition: opacity var(--transition);
}

.btn-clear-filters:hover {
  opacity: 0.8;
}

.drawer-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 4px;
}

.drawer-tag {
  font-family: var(--font-sans);
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
}

.drawer-tag:hover {
  border-color: var(--border-2);
  color: var(--text);
}

.drawer-tag.active {
  background: rgba(196, 169, 125, 0.16);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.drawer-tag .tag-count {
  font-size: 10px;
  opacity: 0.6;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.arch-filter {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
  white-space: nowrap;
}

.filter-tab--sm {
  font-size: 11.5px;
  padding: 3px 10px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-filter {
  display: flex;
  gap: 4px;
  align-items: center;
}

.price-filter-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
  white-space: nowrap;
}

/* ── Custom Sort Dropdown ───────────────────────────────── */
.custom-select {
  position: relative;
  user-select: none;
}

.custom-select__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  white-space: nowrap;
}

.custom-select__trigger:hover,
.custom-select.open .custom-select__trigger {
  border-color: var(--border-2);
  color: var(--text);
  background: var(--surface-2);
}

.custom-select__label {
  line-height: 1.2;
}

.custom-select__arrow {
  width: 11px;
  height: 11px;
  stroke: var(--text-3);
  transition: transform var(--transition), stroke var(--transition);
  flex-shrink: 0;
}

.custom-select.open .custom-select__arrow {
  transform: rotate(180deg);
  stroke: var(--accent);
}

.custom-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 165px;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), 0 0 16px rgba(196, 169, 125, 0.06);
  padding: 4px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  pointer-events: none;
}

.custom-select.open .custom-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-select__option {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-2);
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.custom-select__option:hover {
  background: rgba(196, 169, 125, 0.12);
  color: var(--accent);
}

.custom-select__option.active {
  background: rgba(196, 169, 125, 0.16);
  color: var(--accent);
  font-weight: 600;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid transparent;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
  box-sizing: border-box;
}

.filter-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 17px;
  line-height: 1.25;
  transition: color var(--transition), background var(--transition);
}

.filter-tab:hover {
  color: var(--text);
  border-color: var(--border-2);
}

.filter-tab:hover .filter-tab__count {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.09);
}

.filter-tab.active {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text);
}

.filter-tab.active .filter-tab__count {
  color: var(--accent);
  background: rgba(196, 169, 125, 0.16);
  font-weight: 600;
}

.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
}

/* Hide native browser search cancel button (ugly cross with default cursor) */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-input {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 7px 28px 7px 33px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
}

.search-clear-btn {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  padding: 0;
}

.search-clear-btn:hover {
  background: var(--border-2);
  color: var(--text);
}

.copy-icon,
.btn-copy-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.trigger-icon {
  display: inline-block;
  vertical-align: -1px;
  margin-right: 2px;
  color: var(--accent);
}

.search-input::placeholder {
  color: var(--text-3);
}

.search-input:focus {
  border-color: var(--border-2);
}

/* ── Catalog Grid ───────────────────────────────────────── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 24px 32px 64px;
  min-height: 480px;
}

@media (max-width: 1600px) {
  .catalog-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1280px) {
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 580px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px 12px 48px;
  }

  .catalog-toolbar {
    padding: 0 16px;
  }

  .hero {
    padding: 72px 16px 56px;
  }

  .nav {
    padding: 0 16px;
  }

  .sort-select {
    font-size: 12px;
  }

  .price-filter-label {
    display: none;
  }
}

/* ── Card ───────────────────────────────────────────────── */
.card {
  content-visibility: auto;
  contain-intrinsic-size: 0 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  will-change: transform;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  border-color: rgba(196, 169, 125, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(196, 169, 125, 0.08);
}

.card:hover .card__preview img {
  transform: scale(1.035);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card__preview {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}

.card__preview img,
.card__preview video,
.card__preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.card:hover .card__preview img,
.card:hover .card__preview video,
.card:hover .card__preview-video {
  transform: scale(1.04);
}

/* Subtle crystalline frost sheen sweep */
.card__preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(220, 240, 255, 0.03) 30%,
      rgba(196, 169, 125, 0.12) 55%,
      rgba(255, 255, 255, 0.05) 75%,
      transparent 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  transition: none;
}

.card:hover .card__preview::after {
  left: 170%;
  transition: left 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card__preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: radial-gradient(circle at center, rgba(32, 32, 32, 0.85), rgba(14, 14, 14, 0.98));
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px;
  text-align: center;
}

.card__preview-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  opacity: 0.7;
  transition: opacity var(--transition), transform var(--transition);
}

.card:hover .card__preview-placeholder svg {
  opacity: 1;
  transform: scale(1.08);
}

.card__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__title-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.card__title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.card:hover .card__title {
  text-overflow: clip;
}

.card__title-inner {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

.card__badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge--LoRA {
  background: rgba(196, 169, 125, 0.12);
  color: var(--accent);
  border: 1px solid rgba(196, 169, 125, 0.25);
}

.badge--Fine-tune {
  background: rgba(140, 180, 160, 0.10);
  color: #8cb4a0;
  border: 1px solid rgba(140, 180, 160, 0.2);
}

.badge--Nodes {
  background: rgba(160, 140, 200, 0.10);
  color: #a08cc8;
  border: 1px solid rgba(160, 140, 200, 0.2);
}

.badge--Workflows {
  background: rgba(100, 160, 200, 0.10);
  color: #64a0c8;
  border: 1px solid rgba(100, 160, 200, 0.2);
}

.badge--Utilities {
  background: rgba(200, 150, 100, 0.10);
  color: #c89664;
  border: 1px solid rgba(200, 150, 100, 0.2);
}

.badge--Tutorials {
  background: rgba(180, 180, 100, 0.10);
  color: #b4b464;
  border: 1px solid rgba(180, 180, 100, 0.2);
}

.badge--arch {
  background: rgba(120, 150, 210, 0.12);
  color: #8faee0;
  border: 1px solid rgba(120, 150, 210, 0.25);
}

.badge--nsfw {
  background: rgba(230, 60, 60, 0.16);
  color: #ff6868;
  border: 1px solid rgba(230, 60, 60, 0.35);
  font-weight: 700;
}

.card__preview.is-nsfw-blurred img {
  filter: blur(16px) brightness(0.65);
}

.card__preview.is-nsfw-blurred:hover img {
  filter: blur(0px) brightness(1);
}

.card__preview-nsfw-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(230, 60, 60, 0.5);
  color: #ff6868;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 5;
}

.card__preview-versions-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.card__preview-versions-tag svg {
  width: 11px;
  height: 11px;
  stroke: var(--accent);
  flex-shrink: 0;
}

.card__trigger-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--accent);
  background: rgba(196, 169, 125, 0.08);
  border: 1px solid rgba(196, 169, 125, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  user-select: none;
  max-width: 100%;
}

.card__trigger-box:hover {
  background: rgba(196, 169, 125, 0.16);
  border-color: rgba(196, 169, 125, 0.45);
  color: #fff;
}

.card__trigger-box .trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.card__trigger-box .trigger-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  position: relative;
  transition: color 0.15s ease;
}

.card__trigger-box .trigger-copy-btn svg {
  width: 12px;
  height: 12px;
}

.card__trigger-box .copy-icon {
  display: block;
  opacity: 0.65;
  transition: opacity var(--transition);
}

.card__trigger-box:hover .copy-icon {
  opacity: 1;
}

.card__trigger-box .check-icon {
  display: none;
  stroke: #4ade80;
}

/* When copied: zero layout shift, only swap copy icon with green checkmark */
.card__trigger-box.is-copied .copy-icon {
  display: none;
}

.card__trigger-box.is-copied .check-icon {
  display: block;
  animation: checkPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.card__desc {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.card--no-trigger .card__desc,
.card:not(:has(.card__trigger-box)) .card__desc {
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 6px;
}

.tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.card__footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card__footer-sep {
  color: var(--border-hover);
  font-size: 8px;
  line-height: 1;
  user-select: none;
  opacity: 0.7;
}

.card__stats-item {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.card__stats-item svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  opacity: 0.75;
}

.card__price {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.card__price--free {
  color: #8cb4a0;
}

.card__price--boosty {
  color: #e8894e;
}

.card__cta {
  font-size: 12.5px;
  color: var(--accent-dim);
  font-weight: 500;
  transition: color var(--transition);
}

.card:hover .card__cta {
  color: var(--accent);
}

/* ── Empty State ────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 32px;
  color: var(--text-3);
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
}

/* ── Modal Overlay ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 250ms ease;
}

.modal-overlay.open {
  background: rgba(0, 0, 0, 0.65);
  pointer-events: all;
}

/* ── Modal — centered dialog ────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease;
}

.modal.open {
  pointer-events: all;
  opacity: 1;
}

.modal__inner {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  width: min(1280px, 95vw);
  max-height: 90vh;
  height: min(900px, 90vh);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  transition: transform 280ms cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(196, 169, 125, 0.08);
}

.modal.open .modal__inner {
  transform: scale(1) translateY(0);
}

/* ── Left Column — Model Overview & Media ────────────────── */
.modal__left {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  position: relative;
}

.modal__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.modal__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}

.modal__gallery-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
}

.modal__gallery {
  aspect-ratio: 16 / 10;
  max-height: 400px;
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
}

.modal__gallery img,
.modal__gallery video,
.modal__gallery-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal__gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at center, rgba(35, 35, 35, 0.9), rgba(14, 14, 14, 0.98));
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal__gallery-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent);
  opacity: 0.75;
}

.modal__thumbs {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  flex-shrink: 0;
}

.modal__thumb {
  flex-shrink: 0;
  width: 68px;
  height: 48px;
  border-radius: 5px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--transition), border-color var(--transition);
  background: var(--surface-2);
}

.modal__thumb:hover {
  opacity: 0.85;
}

.modal__thumb.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(196, 169, 125, 0.35);
}

.modal__thumb img,
.modal__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__tags-section {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Model Statistics Bar ────────────────────────────────── */
.modal__stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.modal__stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-2);
}

.modal__stat-icon {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  opacity: 0.85;
}

.modal__stat-val {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.modal__stat-lbl {
  color: var(--text-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal__stat-item--price {
  margin-left: auto;
}

.modal__price {
  font-size: 14px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.modal__price--free {
  color: #8cb4a0;
  background: rgba(140, 180, 160, 0.12);
  border-color: rgba(140, 180, 160, 0.3);
}

.modal__price--boosty {
  color: #e8894e;
  background: rgba(232, 137, 78, 0.12);
  border-color: rgba(232, 137, 78, 0.3);
}

/* ── Model Description (Civitai Rich HTML) ───────────────── */
.modal__model-desc-wrap {
  margin-top: 4px;
}

.modal__rich-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
  word-break: break-word;
}

.modal__rich-desc p {
  margin-bottom: 12px;
}

.modal__rich-desc img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.modal__rich-desc h1,
.modal__rich-desc h2,
.modal__rich-desc h3,
.modal__rich-desc h4 {
  color: var(--text);
  font-weight: 600;
  margin: 18px 0 8px;
  line-height: 1.35;
}

.modal__rich-desc h3 {
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  color: var(--accent);
}

.modal__rich-desc h4 {
  font-size: 14.5px;
}

.modal__rich-desc hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.modal__rich-desc ul,
.modal__rich-desc ol {
  padding-left: 20px;
  margin: 10px 0 14px;
}

.modal__rich-desc li {
  margin-bottom: 6px;
}

.modal__rich-desc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.modal__rich-desc a:hover {
  color: #fff;
}

.modal__rich-desc blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 12px;
  margin: 12px 0;
  color: var(--text-3);
  font-style: italic;
  background: rgba(196, 169, 125, 0.04);
  border-radius: 0 4px 4px 0;
}

.modal__rich-desc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent);
}

/* ── Right Column — Version Details & Actions ────────────── */
.modal__right {
  background: rgba(0, 0, 0, 0.16);
  padding: 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.modal__right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: -28px;
  margin: -28px -28px 0 -28px;
  padding: 16px 28px 14px;
  background: rgba(18, 18, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 25;
  flex-shrink: 0;
}

.modal__right-header-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
  line-height: 1;
}

.modal__close {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}

.modal__close:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--surface);
  transform: scale(1.05);
}

.modal__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.modal__section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
}

.modal__version-count {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

/* Version Tabs */
.modal__versions-wrap {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.modal__version-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.modal__version-tab {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
}

.modal__version-tab:hover {
  border-color: var(--border);
  color: var(--text);
}

.modal__version-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1208;
  font-weight: 600;
}

/* Version Specs Card */
.modal__version-specs-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.modal__spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal__spec-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.modal__spec-value {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}

/* Version Changelog Box */
.modal__version-desc-wrap {
  background: rgba(196, 169, 125, 0.04);
  border: 1px solid rgba(196, 169, 125, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.modal__version-desc-box {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
  word-break: break-word;
  margin-top: 6px;
}

.modal__version-desc-box p {
  margin-bottom: 8px;
}

.modal__version-desc-box ul {
  padding-left: 18px;
  margin: 6px 0;
}

.modal__version-desc-box a {
  color: var(--accent);
  text-decoration: underline;
}

/* Trigger Words Box */
.modal__triggers-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.btn-copy-triggers,
.btn-copy-hash {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
}

.btn-copy-triggers:hover,
.btn-copy-hash:hover {
  background: rgba(196, 169, 125, 0.15);
  border-color: var(--accent);
  color: #fff;
}

.btn-copy-triggers .check-icon,
.btn-copy-hash .check-icon {
  display: none;
  width: 13px;
  height: 13px;
  stroke: #4ade80;
}

.btn-copy-triggers .copy-icon,
.btn-copy-hash .copy-icon {
  width: 13px;
  height: 13px;
}

.btn-copy-triggers.copied,
.btn-copy-hash.copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.btn-copy-triggers.copied .copy-icon,
.btn-copy-hash.copied .copy-icon {
  display: none;
}

.btn-copy-triggers.copied .check-icon,
.btn-copy-hash.copied .check-icon {
  display: inline-block;
  animation: checkPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal__triggers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.modal__trigger-word {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--surface-2);
  color: var(--accent);
  border: 1px solid rgba(196, 169, 125, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: all;
}

.modal__trigger-word:hover {
  background: rgba(196, 169, 125, 0.18);
  border-color: var(--accent);
}

.modal__trigger-word.copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

/* SHA256 Box */
.modal__hash-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.modal__hash-box {
  margin-top: 6px;
  overflow-x: auto;
}

.modal__hash-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  color: var(--text-2);
  background: var(--surface-2);
  padding: 5px 8px;
  border-radius: 4px;
  display: block;
  word-break: break-all;
  border: 1px solid var(--border);
  user-select: all;
}

/* Download & Mirrors Section */
.modal__download-section {
  margin-top: auto;
  padding-top: 8px;
}

.modal__download-primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #1a1208;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(196, 169, 125, 0.25);
  box-sizing: border-box;
}

.modal__download-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(196, 169, 125, 0.4);
  color: #0d0903;
  opacity: 0.95;
}

.modal__download-primary-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.modal__mirrors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.modal__mirror-btn {
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all var(--transition);
}

.modal__mirror-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.modal__mirror-btn--civarchive {
  border-color: rgba(196, 169, 125, 0.35);
  color: var(--accent);
  background: rgba(196, 169, 125, 0.08);
  font-weight: 600;
}

.modal__mirror-btn--civarchive:hover {
  background: rgba(196, 169, 125, 0.18);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 960px) {
  .modal__inner {
    grid-template-columns: 1fr;
    width: 95vw;
    height: auto;
    max-height: 92vh;
  }

  .modal__left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 50vh;
  }

  .modal__right {
    max-height: 50vh;
  }
}

/* ── Order / Commission Modal ───────────────────────────── */
.modal__inner--order {
  width: min(1040px, 94vw);
  height: min(800px, 90vh);
  max-height: 90vh;
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: 1fr;
  overflow: hidden;
}

.order-form-panel {
  padding: 22px 24px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.order-header {
  margin-bottom: 2px;
}

.order-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.order-subtitle {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.4;
}

.order-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.order-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-chip {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
}

.order-chip:hover {
  border-color: var(--border-2);
  color: var(--text);
}

.order-chip.active {
  background: rgba(196, 169, 125, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.order-chip:focus {
  outline: none;
}

.order-chip:focus-visible {
  outline: 1px solid var(--accent);
}

.order-chip .chip-cost {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
}

.order-chip.active .chip-cost {
  color: var(--accent);
  opacity: 0.9;
}

.priority-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.priority-hint {
  font-size: 11px;
  color: var(--text-3);
}

.priority-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.priority-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.priority-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.priority-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.priority-display {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  min-width: 74px;
  text-align: center;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.order-total-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.order-total-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.order-total-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin: 1px 0;
}

.order-total-note {
  font-size: 10.5px;
  color: var(--text-3);
}

/* Dataset Sub-options */
.dataset-sub-options {
  margin-top: 3px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.caption-stepper-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.caption-stepper-label {
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 500;
}

.photo-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.photo-stepper-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  transition: all var(--transition);
}

.photo-stepper-btn:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.photo-stepper-input {
  width: 48px;
  padding: 4px 2px;
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.photo-stepper-input::-webkit-outer-spin-button,
.photo-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.caption-rate-badge {
  font-size: 10.5px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.scratch-tier-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scratch-tier-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scratch-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: var(--radius-sm);
  width: 100%;
  box-sizing: border-box;
}

.scratch-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 6px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-sizing: border-box;
}

.scratch-seg-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.scratch-seg-btn.active {
  background: rgba(196, 169, 125, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.scratch-seg-btn .seg-price {
  font-size: 11px;
  color: var(--accent);
  opacity: 0.9;
}

.dataset-subtotal {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-left: auto;
}

.order-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-input,
.order-textarea {
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  box-sizing: border-box;
}

.order-input::placeholder,
.order-textarea::placeholder {
  color: var(--text-3);
}

.order-input:focus,
.order-textarea:focus {
  border-color: var(--border-2);
}

.order-textarea {
  resize: vertical;
  min-height: 52px;
  height: 52px;
  line-height: 1.45;
}

/* Right: Brief Panel */
.order-brief-panel {
  padding: 22px 24px;
  background: #0e0e0e;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow-y: auto;
  scrollbar-gutter: stable;
  height: 100%;
  min-height: 0;
}

.order-brief-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: -22px;
  margin: -22px -24px 0 -24px;
  padding: 16px 24px 14px;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 25;
  flex-shrink: 0;
}

.brief-heading-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.brief-heading {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.brief-box {
  flex: 1;
  min-height: 140px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-2);
  white-space: pre-wrap;
  user-select: all;
}

.brief-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brief-btn-copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
}

.btn-copy-icon {
  font-size: 14px;
}

.modal__link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  box-sizing: border-box;
}

.modal__link-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.modal__link-btn:active {
  transform: translateY(0);
}

#btn-order-telegram:hover {
  border-color: rgba(41, 182, 246, 0.55);
  color: #29b6f6;
  background: rgba(41, 182, 246, 0.08);
}

#btn-order-boosty:hover {
  border-color: rgba(241, 95, 44, 0.55);
  color: #f15f2c;
  background: rgba(241, 95, 44, 0.08);
}

.brief-links-row {
  display: flex;
  gap: 8px;
}

.brief-links-row .modal__link-btn {
  flex: 1;
  text-align: center;
}

.brief-note {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 860px) {
  .modal__inner--order {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }

  .order-form-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 50vh;
  }

  .order-row {
    grid-template-columns: 1fr;
  }
}


/* ── Blog ───────────────────────────────────────────────── */
.blog-header {
  padding: 72px 32px 40px;
  border-bottom: 1px solid var(--border);
}

.blog-header h1 {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
}

.blog-header p {
  font-size: 14px;
  color: var(--text-2);
}

.blog-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.blog-post-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: none;
}

.blog-post-card:first-child {
  border-top: none;
}

.blog-post__date {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.blog-post__title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color var(--transition);
}

.blog-post-card:hover .blog-post__title {
  color: var(--accent);
}

.blog-post__summary {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-post__tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.blog-post-full {
  display: none;
  padding-top: 20px;
}

.blog-post-full.open {
  display: block;
}

.blog-post-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
}

.blog-post-content strong {
  color: var(--text);
  font-weight: 600;
}

.blog-post__toggle {
  font-size: 12.5px;
  color: var(--accent-dim);
  font-weight: 500;
  padding: 0;
  transition: color var(--transition);
  margin-top: 12px;
  display: inline-block;
}

.blog-post__toggle:hover {
  color: var(--accent);
}

/* ── About ──────────────────────────────────────────────── */
.about-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 32px 100px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 290px 1fr;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  transition: border-color 0.3s ease;
}

.about-card:hover {
  border-color: rgba(196, 169, 125, 0.35);
}

/* Left: Brand Column */
.about-card__brand {
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
}

.about-card__logo-wrap {
  width: 140px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.about-card__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.about-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: #8cb4a0;
  background: rgba(140, 180, 160, 0.1);
  border: 1px solid rgba(140, 180, 160, 0.25);
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8cb4a0;
  box-shadow: 0 0 8px #8cb4a0;
  animation: statusPulse 2.2s infinite ease-in-out;
}

@keyframes statusPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.about-card__spec {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Right: Content Column */
.about-card__content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-card__header {
  margin-bottom: 20px;
}

.about__name {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.15;
}

.about__handle {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.about__bio {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-2);
  margin-bottom: 32px;
}

.about-card__footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.about__platforms-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

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

.platform-link {
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.platform-link:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: rgba(196, 169, 125, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .about-card {
    grid-template-columns: 1fr;
  }

  .about-card__brand {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 36px 24px;
  }

  .about-card__content {
    padding: 32px 24px;
  }

  .about__name {
    font-size: 32px;
  }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo-img {
  height: 16px;
  width: auto;
  opacity: 0.4;
  transition: opacity var(--transition), transform var(--transition);
  display: block;
}

.footer:hover .footer__logo-img {
  opacity: 0.85;
  transform: scale(1.06);
}

.footer__text {
  font-size: 12px;
  color: var(--text-3);
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__link {
  font-size: 12px;
  color: var(--text-3);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--text-2);
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-list {
    padding: 32px 16px 60px;
  }

  .about-section {
    padding: 60px 16px 80px;
  }

  .blog-header {
    padding: 56px 16px 32px;
  }
}

/* ── Text Selection Rules ─────────────────────────────────── */
::selection {
  background: rgba(196, 169, 125, 0.32);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(196, 169, 125, 0.32);
  color: #ffffff;
}

/* Prevent accidental selection on UI chrome & interactive controls */
html,
body,
nav,
.nav,
.nav__logo,
.nav__link,
.nav__links,
.nav__socials,
.hero,
.hero-scroll,
.catalog__filters,
.filter-chip,
.category-chip,
.tab-btn,
.view-toggle,
.lang-toggle,
.badge,
.card,
.card__preview,
.card__footer,
.card__cta,
.btn,
.btn-primary,
.btn-ghost,
.modal__btn,
.modal__close,
.modal__gallery,
.order-calc,
.order-calc__chip,
.brief-actions,
.footer,
.footer__links,
button,
[role="button"] {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection where it is meaningful (descriptions, titles, articles, prompts, code) */
.card__title,
.card__desc,
.tag,
.card__tags,
.modal__title,
.modal__desc,
.modal__notes,
.modal__meta-value,
.modal__meta-label,
.modal__prompt,
.prompt-trigger,
.trigger-word,
.blog-card__title,
.blog-card__desc,
.blog-post__title,
.blog-post__content,
.blog-detail,
.blog-detail__content,
.about-bio,
.about-card p,
.about-section p,
.brief-preview,
.brief-code,
p,
article p,
input,
textarea,
pre,
code {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ── Gravitational Lens Custom Cursor ─────────────────────── */
body.custom-cursor-active,
body.custom-cursor-active * {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100000;
  opacity: 1;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.custom-cursor.is-hidden {
  opacity: 0 !important;
}

.cursor-lens {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  pointer-events: none;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    margin 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.cursor-lens__glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  box-shadow: none;
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Hover over interactive elements (cards, buttons, links) */
.custom-cursor.is-hover-interactive .cursor-lens {
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
}

.custom-cursor.is-hover-interactive .cursor-lens__glass {
  border-color: rgba(196, 169, 125, 0.75);
  background: transparent;
  box-shadow: none;
}

/* Gravitational pull active (holding LMB) */
.custom-cursor.is-gravity-active .cursor-lens__glass {
  transform: scale(0.80);
  border-color: rgba(196, 169, 125, 0.95);
  background: transparent;
  box-shadow: none;
}

/* Touch & Mobile Guard */
@media (pointer: coarse),
(max-width: 768px) {
  .custom-cursor {
    display: none !important;
  }

  body.custom-cursor-active,
  body.custom-cursor-active * {
    cursor: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN STUDIO & MODEL MANAGEMENT STYLES
   ═══════════════════════════════════════════════════════════════ */

.admin-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 88px 24px 100px;
}

.footer__admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  margin-left: 12px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.footer__admin-btn:hover {
  opacity: 1;
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(196, 169, 125, 0.12);
  transform: translateY(-1px);
}

.footer__admin-btn svg {
  flex-shrink: 0;
}

/* Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-header__brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-header__title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header__title-group h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.admin-badge {
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.admin-status-badge--online {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.35);
}

.admin-status-badge--offline {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.35);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.admin-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: #120e09;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(196, 169, 125, 0.25);
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: #d4bc94;
  border-color: #d4bc94;
  box-shadow: 0 4px 16px rgba(196, 169, 125, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-dim);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-icon-only {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Inventory & Toolbar */
.admin-inventory-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.admin-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  min-width: 320px;
  flex-grow: 1;
  max-width: 500px;
  transition: border-color var(--transition);
}

.admin-search-wrap:focus-within {
  border-color: var(--accent);
}

.admin-search-wrap .search-icon {
  position: static !important;
  transform: none !important;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex-shrink: 0;
  display: block;
}

.admin-search-wrap input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  width: 100%;
  outline: none;
  flex-grow: 1;
}

.btn-clear-search {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color var(--transition);
}

.btn-clear-search:hover {
  color: var(--text);
}

.admin-filter-pills {
  display: flex;
  gap: 8px;
}

.admin-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: all var(--transition);
}

.admin-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}

.admin-pill.active {
  background: var(--accent);
  color: #1a1208;
  font-weight: 600;
  border-color: var(--accent);
}

/* Table */
.admin-table {
  width: 100%;
}

.admin-table-head {
  display: grid;
  grid-template-columns: 70px 1fr 220px 100px 140px;
  padding: 12px 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.admin-table-row {
  display: grid;
  grid-template-columns: 70px 1fr 220px 100px 140px;
  padding: 14px 24px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition);
}

.admin-table-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.row--manual {
  background: rgba(168, 85, 247, 0.035);
}

.row-thumb-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.row-thumb-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 16px;
}

.row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.row-id code {
  font-size: 11px;
  color: var(--accent);
  background: rgba(196, 169, 125, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.row-triggers-preview {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.row-cat-badge,
.row-arch-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  margin-right: 6px;
}

.row-ver-count {
  font-size: 11px;
  color: var(--text-muted);
}

.source-badge--manual {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.source-badge--auto {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10.5px;
}

.col-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-row-action {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  transition: all var(--transition);
}

.btn-row-action:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(196, 169, 125, 0.12);
}

.btn-row-delete:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* Editor */
.admin-editor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.editor-eyebrow {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.editor-header__title h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

.editor-header__actions {
  display: flex;
  gap: 12px;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}

.editor-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.015);
}

.editor-section legend {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  padding: 0 10px;
  text-transform: uppercase;
}

.section-heading-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.editor-fields-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.field-grow {
  flex-grow: 1;
}

.field-slug {
  width: 220px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  flex-grow: 1;
}

.admin-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13.5px;
  transition: all var(--transition);
  box-sizing: border-box;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(196, 169, 125, 0.2);
}

/* Custom Toggle Switch */
.admin-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.admin-toggle-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  width: 44px;
  height: 24px;
  background: #181818;
  border: 1.5px solid #3e3e3e;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 16px;
  height: 16px;
  background: #807a72;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.admin-toggle-label:hover .toggle-track {
  border-color: #5a544c;
  background: #202020;
}

.admin-toggle-label:hover .toggle-track::after {
  background: #a8a096;
}

.admin-toggle-label input:checked + .toggle-track {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.admin-toggle-label input:checked + .toggle-track::after {
  transform: translateX(20px);
  background: #ff4d4d;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.8);
}

.toggle-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Chips Container */
.chips-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-height: 44px;
}

.chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196, 169, 125, 0.15);
  border: 1px solid rgba(196, 169, 125, 0.3);
  color: var(--text);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
}

.chip-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 11px;
}

.chip-remove:hover {
  color: #ef4444;
}

.chips-input {
  border: none !important;
  background: transparent !important;
  color: var(--text);
  flex-grow: 1;
  outline: none !important;
  font-size: 13px;
  min-width: 160px;
  padding: 4px 0 !important;
}

/* Description Tabs */
.desc-tabs-header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.desc-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.desc-tab-btn.active {
  background: var(--accent);
  color: #1a1208;
  font-weight: 600;
  border-color: var(--accent);
}

.desc-tab-content {
  display: none;
}

.desc-tab-content.active {
  display: block;
}

.desc-tab-content textarea {
  width: 100%;
  min-height: 160px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  transition: all var(--transition);
}

.desc-tab-content textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(196, 169, 125, 0.2);
}

.admin-editor-wrap {
  margin-bottom: 32px;
}

/* Version Edit Card */
.version-edit-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 14px;
}

.version-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ver-drag-handle {
  font-size: 13px;
  color: var(--text);
}

.btn-remove-ver {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 12px;
  cursor: pointer;
}

/* Live Preview Sticky */
.live-preview-sticky {
  position: sticky;
  top: 76px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(16px);
}

.live-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.preview-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
}

.preview-note {
  font-size: 11px;
  color: var(--text-muted);
}

/* Toast Notifications */
.admin-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.admin-toast--success {
  background: #064e3b;
  color: #6ee7b7;
  border: 1px solid #059669;
}

.admin-toast--error {
  background: #7f1d1d;
  color: #fca5a5;
  border: 1px solid #dc2626;
}

.admin-toast--info {
  background: #1e1b4b;
  color: #c7d2fe;
  border: 1px solid #4f46e5;
}

/* Admin Custom Selects */
.admin-custom-select {
  position: relative;
  width: 100%;
}

.admin-custom-select .custom-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: all var(--transition);
  box-sizing: border-box;
  outline: none;
}

.admin-custom-select .custom-select__trigger:hover,
.admin-custom-select.open .custom-select__trigger {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 12px rgba(196, 169, 125, 0.18);
}

.admin-custom-select .custom-select__arrow {
  width: 13px;
  height: 13px;
  stroke: var(--text-2);
  transition: transform var(--transition), stroke var(--transition);
  flex-shrink: 0;
}

.admin-custom-select.open .custom-select__arrow {
  transform: rotate(180deg);
  stroke: var(--accent);
}

.admin-custom-select .custom-select__menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(196, 169, 125, 0.08);
  padding: 5px;
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.99);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  pointer-events: none;
  box-sizing: border-box;
  max-height: 260px;
  overflow-y: auto;
}

.admin-custom-select.open .custom-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.admin-custom-select .custom-select__option {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.admin-custom-select .custom-select__option:hover {
  background: rgba(196, 169, 125, 0.14);
  color: var(--accent);
}

.admin-custom-select .custom-select__option.active {
  background: rgba(196, 169, 125, 0.2);
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .live-preview-sticky {
    position: static;
    margin-top: 24px;
  }
  .admin-table-head,
  .admin-table-row {
    grid-template-columns: 60px 1fr 140px;
  }
  .col-source,
  .col-meta {
    display: none;
  }
}