/* ===== RENDERS PAGE ===== */
.renders-page {
  padding-top: 120px;
}

.renders-header {
  padding-top: 170px;
}

.renders-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%),
    radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  text-align: center;
  padding: 120px 24px 40px;
  position: relative;
}

.renders-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,85,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.renders-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Public renders page entry transition */
body.renders-transition .renders-hero-inner,
body.renders-transition .renders-grid-section .container {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.46s cubic-bezier(0.22, 1, 0.36, 1), transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

body.renders-transition .renders-grid-section .container {
  transition-delay: 0.08s;
}

body.renders-transition.renders-ready .renders-hero-inner,
body.renders-transition.renders-ready .renders-grid-section .container {
  opacity: 1;
  transform: translateY(0);
}

.renders-label,
.renders-eyebrow {
  display: inline-block;
  color: var(--accent-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-sm);
}

.renders-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  margin: 0 0 16px;
  line-height: 1.05;
}

.renders-description {
  max-width: 520px;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin: 0 auto 28px;
}

.renders-controls,
.renders-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.renders-controls {
  padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.renders-meta,
.renders-count {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin: 0;
}

.legend-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

.legend-filter-btn,
.legend-filter {
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
}

.legend-filter-btn:hover,
.legend-filter:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(255, 107, 53, 0.05);
  transform: translateY(-1px);
}

.legend-filter-btn.active,
.legend-filter.active {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.renders-grid-section {
  padding: var(--spacing-xl) 0 var(--spacing-3xl);
}

.renders-groups,
.legend-group,
.skin-group {
  display: flex;
  flex-direction: column;
}

.renders-groups {
  gap: 56px;
}

.legend-group {
  gap: 20px;
  margin-bottom: 56px;
}

.skin-group {
  gap: 16px;
}

.legend-group-header h2 {
  margin: 0;
  font-size: 2rem;
}

.skin-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.skin-group-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.skin-group-header span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.renders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
  gap: 24px;
  align-items: start;
}

.render-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.render-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.render-card-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: #0b0b0b;
}

.render-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.render-card:hover .render-card-image img {
  transform: scale(1.05);
}

.render-card-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.render-card-legend {
  color: var(--accent-primary);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-xs);
}

.render-card-title,
.render-card-skin {
  font-size: var(--font-size-sm);
  line-height: 1.28;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.render-card-skin {
  margin: 0;
}

.render-card-count,
.render-card-pose {
  font-size: 0.85rem;
  color: #ff6a2b;
  line-height: 1.15;
  display: inline-block;
}

.renders-empty {
  color: var(--text-secondary);
  padding: 24px 0;
}

.renders-loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
  gap: 24px;
  align-items: start;
}

.render-skeleton-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

.render-skeleton-image {
  aspect-ratio: 4 / 5;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.03)
  );
}

.render-skeleton-line {
  height: 12px;
  margin: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}

.render-skeleton-line.short {
  width: 60%;
}

@keyframes skeletonPulse {
  0%,
  100% {
    opacity: 0.85;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.renders-transition .renders-hero-inner,
  body.renders-transition .renders-grid-section .container {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Modal */
.render-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.render-modal.show {
  display: flex;
}

.render-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(8px);
}

.render-modal-content {
  position: relative;
  z-index: 2;
  width: min(1220px, 100%);
  height: min(900px, calc(100vh - 32px));
  background: linear-gradient(180deg, #101010 0%, #0c0c0c 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}

.render-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}

.render-modal-close:hover {
  background: rgba(255,85,0,0.9);
  transform: scale(1.04);
}

.render-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.03) 0%, transparent 60%),
    #050505;
  padding: 34px;
  min-height: 0;
}

.render-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 52%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.render-preview img {
  position: relative;
  z-index: 1;
  max-height: min(72vh, 800px);
  max-width: 78%;
  object-fit: contain;
  transform: translateY(-14px);
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.45));
}

.render-info {
  position: absolute;
  left: 24px;
  right: 420px;
  bottom: 18px;
  z-index: 3;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15,15,15,0.55), rgba(10,10,10,0.85));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,107,53,0.14);
  box-shadow: 0 0 0 1px rgba(255,107,53,0.05), 0 10px 40px rgba(0,0,0,0.45);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
  pointer-events: none;
}

.render-info-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.render-info h2 {
  font-size: 1.9rem;
  line-height: 1.02;
  margin: 0;
}

#render-modal-subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 0.93rem;
  line-height: 1.08;
  margin: 0;
}

.render-download {
  grid-column: 2;
  align-self: center;
  pointer-events: auto;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.render-download-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.render-download .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
  min-height: 42px;
  padding: 9px 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.24);
  letter-spacing: 0.02em;
}

#render-modal-download-all {
  min-height: 36px;
  padding: 6px 11px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  width: 94%;
  justify-self: center;
}

.render-download .btn.is-loading,
.render-download .btn.is-disabled {
  opacity: 0.8;
  pointer-events: none;
}

.render-download-meta {
  margin-top: 6px !important;
  font-size: 0.8rem !important;
  line-height: 1.15;
  text-align: center;
  color: rgba(255,255,255,0.6) !important;
}

.render-download-status {
  grid-column: 2;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  font-size: 0.76rem !important;
  line-height: 1.15;
  text-align: center;
  justify-self: stretch;
}

.render-download-status[data-state="success"] {
  color: #71d08f !important;
}

.render-download-status[data-state="error"] {
  color: #ff8f8f !important;
}

.render-poses-wrap {
  position: relative;
  background: #111;
  border-left: 1px solid rgba(255,255,255,0.06);
  min-height: 0;
}

.render-poses {
  background: transparent;
  padding: 74px 18px 124px;
  overflow-y: scroll;
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(136px, 1fr));
  column-gap: 14px;
  row-gap: 28px;
  height: 100%;
  scrollbar-gutter: stable;
}

.render-poses-fade {
  position: absolute;
  left: 0;
  right: 14px;
  height: 42px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.render-poses-fade-top {
  top: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.96), rgba(17,17,17,0));
}

.render-poses-fade-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(17,17,17,1), rgba(17,17,17,0));
}

.render-poses-wrap.has-overflow:not(.at-top) .render-poses-fade-top {
  opacity: 1;
}

.render-poses-wrap.has-overflow:not(.at-bottom) .render-poses-fade-bottom {
  opacity: 1;
}

.render-poses-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.62);
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 4px 10px;
  pointer-events: auto;
  cursor: pointer;
}

.render-poses-hint:hover,
.render-poses-hint:focus-visible {
  color: rgba(255,255,255,0.82);
  border-color: rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.58);
}

.render-poses::-webkit-scrollbar {
  width: 14px;
}

.render-poses::-webkit-scrollbar-track {
  background: #121212;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.render-poses::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff965f 0%, #ff5500 100%);
  border-radius: 8px;
  border: 3px solid #121212;
}

.render-poses::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff8d5c 0%, #ff6424 100%);
}

.render-poses {
  scrollbar-color: #ff6424 #181818;
  scrollbar-width: thin;
}

.render-pose-thumb {
  position: relative;
  display: grid;
  grid-template-rows: minmax(96px, 1fr) auto;
  gap: 6px;
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  min-height: 168px;
  padding: 12px;
}

.render-pose-thumb:focus-visible {
  outline: none;
  border-color: #ff5500;
  box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.32);
}

.render-pose-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 53, 0.45);
  background: #141414;
}

.render-pose-thumb.active {
  border-color: #ff5500;
  box-shadow: 0 0 0 1px rgba(255,85,0,0.22), 0 10px 24px rgba(0,0,0,0.3);
}

.render-pose-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.render-pose-name {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.74);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.render-pose-quick-download {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.render-pose-quick-download:hover,
.render-pose-quick-download:focus-visible {
  opacity: 1;
  transform: translateY(0);
  background: rgba(255, 85, 0, 0.9);
}

.render-pose-quick-download.is-loading {
  opacity: 1;
}

.render-pose-thumb:hover .render-pose-quick-download,
.render-pose-thumb:focus-within .render-pose-quick-download {
  opacity: 1;
  transform: translateY(0);
}

@media (pointer: coarse) {
  .render-pose-quick-download {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .renders-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .renders-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1400px) {
  .renders-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 960px) {
  .render-modal-content {
    grid-template-columns: 1fr;
    height: calc(100vh - 24px);
  }

  .render-preview {
    min-height: 360px;
    padding: 28px 20px 96px;
  }

  .render-preview img {
    max-height: 44vh;
    max-width: 68%;
    transform: translateY(-8px);
  }

  .render-info {
    left: 16px;
    right: 16px;
    bottom: 76px;
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .render-poses {
    border-top: 1px solid rgba(255,255,255,0.06);
    max-height: 34vh;
    padding: 18px 16px 18px;
    grid-template-columns: repeat(4, minmax(88px, 1fr));
    column-gap: 12px;
    row-gap: 18px;
  }

  .render-poses-wrap {
    border-left: 0;
  }

  .render-download {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    padding-left: 0;
    border-left: 0;
  }

  .render-download-status {
    grid-column: 1;
  }

  .render-download-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .renders-hero {
    min-height: auto;
    padding: 80px 18px 36px;
  }

  .renders-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .renders-description {
    font-size: 0.9rem;
  }

  .renders-controls {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .renders-toolbar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .renders-toolbar .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .legend-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: none;
    width: 100%;
  }

  .legend-filters::-webkit-scrollbar {
    display: none;
  }

  .legend-filter-btn,
  .legend-filter {
    flex: 0 0 auto;
    padding: 9px 16px;
    min-height: 40px;
  }

  .legend-group-header h2 {
    font-size: 1.5rem;
  }

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

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

  .render-modal {
    padding: 12px;
  }

  .render-preview {
    min-height: 300px;
    padding: 20px 16px 82px;
  }

  .render-preview img {
    max-height: 38vh;
    max-width: 78%;
    transform: translateY(-4px);
  }

  .render-info h2 {
    font-size: 1.4rem;
  }

  .render-poses {
    grid-template-columns: repeat(3, minmax(86px, 1fr));
    column-gap: 10px;
    row-gap: 16px;
  }

  .render-pose-thumb {
    min-height: 138px;
    padding: 8px;
  }

  .render-download-actions {
    grid-template-columns: 1fr;
  }

  .skin-group-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .renders-grid {
    grid-template-columns: 1fr;
  }

  .render-poses {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    column-gap: 10px;
    row-gap: 16px;
  }
}

/* ===== RENDERS CATALOGUE UPGRADE ===== */
.renders-toolbar-hero {
  justify-content: center;
}

.renders-catalogue-section {
  padding-top: 0;
}

.legend-catalogue-shell,
.selected-legend-section {
  background: linear-gradient(180deg, rgba(17,17,17,0.92), rgba(11,11,11,0.98));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.24);
}

.selected-legend-section {
  margin-top: 28px;
}

.renders-section-eyebrow {
  margin: 0 0 8px;
  color: var(--accent-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.renders-section-title,
.selected-legend-name {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.renders-section-description,
.selected-legend-meta {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.64);
  max-width: 780px;
}

#legend-catalogue {
  margin-top: 28px;
}

.legend-catalogue-grid,
.skins-catalogue-grid {
  display: grid;
  gap: 24px;
}

.legend-catalogue-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skins-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 200px));
  gap: 24px;
  justify-content: start;
  margin-top: 28px;
}

.legend-catalogue-card {
  position: relative;
  min-height: 340px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0d0d0d;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.legend-catalogue-card:hover,
.legend-catalogue-card.active {
  transform: translateY(-4px);
  border-color: rgba(255,107,53,0.5);
  box-shadow: 0 16px 34px rgba(0,0,0,0.34), 0 0 0 1px rgba(255,107,53,0.14);
}

.legend-catalogue-card-image,
.legend-catalogue-fallback {
  position: absolute;
  inset: 0;
}

.legend-catalogue-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.legend-catalogue-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.26);
  font-size: 2rem;
  background: radial-gradient(circle at top, rgba(255,107,53,0.14), transparent 55%), #101010;
}

.legend-catalogue-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 38%, rgba(0,0,0,0.9) 100%),
    linear-gradient(135deg, rgba(255,107,53,0.16), transparent 42%);
}

.legend-catalogue-card-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-catalogue-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.legend-catalogue-renders {
  color: rgba(255,255,255,0.88);
  font-weight: 700;
}

.legend-catalogue-meta {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

.selected-legend-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.selected-legend-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.selected-legend-search-wrap {
  min-width: min(360px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.selected-legend-search-wrap i {
  color: rgba(255,255,255,0.48);
}

.selected-legend-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  height: 48px;
  font: inherit;
}

.selected-legend-search-wrap input::placeholder {
  color: rgba(255,255,255,0.42);
}

.selected-legend-clear {
  min-height: 48px;
}

.skin-catalogue-card {
  border-radius: 18px;
}

.skin-catalogue-card-image {
  aspect-ratio: 4 / 5;
}

.skin-catalogue-card-content {
  padding: 14px 14px 16px;
  gap: 6px;
}

.renders-loading-catalogue {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.render-skeleton-card-catalogue .render-skeleton-image {
  aspect-ratio: 4 / 5;
}

@media (max-width: 900px) {
  .legend-catalogue-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .selected-legend-header {
    align-items: stretch;
  }

  .selected-legend-tools,
  .selected-legend-search-wrap {
    width: 100%;
  }

  .selected-legend-clear {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .legend-catalogue-grid,
  .renders-loading-catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .skins-catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    justify-content: stretch;
  }
}

  .legend-catalogue-card {
    min-height: 260px;
  }

  .legend-catalogue-card-content {
    padding: 14px;
  }

  .legend-catalogue-name {
    font-size: 1.05rem;
  }

  .legend-catalogue-renders,
  .legend-catalogue-meta,
  .render-card-count {
    font-size: 0.82rem;
  }


/* ===== HERO + OPEN CATALOGUE REFINEMENT ===== */
.renders-hero {
  min-height: clamp(560px, 78vh, 760px);
  padding: 128px 24px 64px;
}

.renders-hero-inner {
  max-width: 1240px;
}

.renders-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 420px);
  gap: 52px;
  align-items: center;
}

.renders-hero-copy {
  text-align: left;
  max-width: 720px;
}

.renders-title {
  max-width: 720px;
  text-wrap: balance;
}

.renders-description {
  margin: 0 0 30px;
  max-width: 560px;
}

.renders-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.renders-hero-primary,
.renders-hero-secondary {
  min-width: 188px;
  justify-content: center;
}

.renders-hero-note {
  margin: 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.98rem;
}

.renders-hero-preview {
  display: block;
}

.renders-hero-preview-panel {
  position: relative;
  padding: 26px 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(18,18,18,0.88), rgba(10,10,10,0.94)),
    radial-gradient(circle at top left, rgba(255,107,53,0.08), transparent 40%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 42px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}

.renders-hero-preview-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,53,0.08), transparent 32%, transparent 100%);
  pointer-events: none;
}

.renders-hero-preview-kicker {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.renders-hero-steps {
  position: relative;
  display: grid;
  gap: 14px;
}

.renders-hero-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.renders-hero-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.renders-hero-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,107,53,0.14);
  color: var(--accent-primary);
  font-size: 0.95rem;
  font-weight: 800;
}

.renders-hero-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.2;
  color: rgba(255,255,255,0.94);
}

.renders-hero-step small {
  display: block;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}

.legend-catalogue-shell {
  margin-top: 0;
}

.renders-section-eyebrow {
  padding-top: 0;
}

.renders-section-eyebrow::before {
  display: none;
}

.renders-catalogue-section::before {
  display: none;
}

.renders-catalogue-section .container {
  max-width: 1240px;
}

.legend-catalogue-header {
  margin-bottom: 34px;
}

.legend-catalogue-grid {
  gap: 24px;
}

.selected-legend-search-wrap[hidden],
.selected-legend-clear[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .renders-hero {
    min-height: auto;
    padding: 112px 24px 48px;
  }

  .renders-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .renders-hero-copy {
    text-align: center;
    margin: 0 auto;
  }

  .renders-description {
    margin: 0 auto 28px;
  }

  .renders-hero-actions {
    justify-content: center;
  }

  .renders-hero-note {
    text-align: center;
  }

  .renders-hero-preview {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .renders-hero {
    padding: 94px 18px 38px;
  }

  .renders-hero-grid {
    gap: 22px;
  }

  .renders-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .renders-hero-primary,
  .renders-hero-secondary {
    width: 100%;
  }

  .renders-hero-preview-panel {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .legend-catalogue-header {
    margin-bottom: 26px;
  }
}


/* ===== FINAL OPEN CATALOGUE CLEANUP ===== */
.renders-page {
  position: relative;
  background:
    radial-gradient(circle at 0% 14%, rgba(255, 85, 0, 0.12) 0%, rgba(255, 85, 0, 0.03) 20%, transparent 40%),
    radial-gradient(circle at 100% 18%, rgba(255, 85, 0, 0.10) 0%, rgba(255, 85, 0, 0.02) 18%, transparent 38%),
    linear-gradient(180deg, #050505 0%, #080808 28%, #090909 100%);
}

.renders-header {
  padding-top: 0;
}

.renders-hero {
  min-height: clamp(480px, 72vh, 680px);
  padding: 138px 24px 46px;
  background: transparent;
  overflow: visible;
}

.renders-hero::before,
.renders-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.renders-hero::before {
  top: -220px;
  left: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255,85,0,0.12) 0%, rgba(255,85,0,0.03) 34%, transparent 74%);
  filter: blur(14px);
}

.renders-hero::after {
  top: -160px;
  right: -200px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(255,85,0,0.08) 0%, rgba(255,85,0,0.02) 30%, transparent 76%);
  filter: blur(20px);
}

.renders-hero-inner {
  max-width: 1240px;
  position: relative;
  z-index: 1;
}

.renders-hero-grid,
.renders-hero-copy-centered {
  max-width: 840px;
  margin: 0 auto;
}

.renders-hero-copy,
.renders-hero-copy-centered {
  text-align: center;
}

.renders-title {
  margin: 0 auto 20px;
  max-width: 860px;
  font-size: clamp(3.25rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.renders-description {
  margin: 0 auto 30px;
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
}

.renders-hero-actions,
.renders-hero-actions-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.renders-hero-primary,
.renders-hero-secondary {
  min-width: 188px;
  justify-content: center;
}

.renders-hero-note {
  margin: 0;
  text-align: center;
  color: rgba(255,255,255,0.56);
}

.renders-hero-preview,
.renders-hero-preview-panel,
.renders-hero-preview-kicker,
.renders-hero-steps,
.renders-hero-step,
.renders-hero-step-number {
  display: none !important;
}

.renders-grid-section {
  padding: 18px 0 72px;
}

.renders-catalogue-section .container {
  max-width: 1240px;
}

.legend-catalogue-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

.legend-catalogue-header {
  margin-bottom: 30px;
}

.renders-section-eyebrow {
  margin: 0 0 8px;
  padding-top: 0;
}

.renders-section-eyebrow::before {
  display: none !important;
}

.renders-section-title,
.selected-legend-name {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.renders-section-description,
.selected-legend-meta {
  max-width: 760px;
  margin-top: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.64);
}

.legend-catalogue-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.legend-catalogue-card {
  min-height: 360px;
  border-radius: 22px;
  background: #0d0d0d;
}

.legend-catalogue-card:hover,
.legend-catalogue-card.active {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.34), 0 0 0 1px rgba(255,107,53,0.14);
}

.selected-legend-section {
  margin-top: 42px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(16,16,16,0.82), rgba(10,10,10,0.94));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.18);
}

.selected-legend-header {
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 8px;
}

.selected-legend-tools {
  width: 100%;
  justify-content: flex-start;
}

.selected-legend-search-wrap {
  min-width: min(460px, 100%);
  flex: 1 1 420px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.selected-legend-search-wrap:focus-within {
  border-color: rgba(255,107,53,0.42);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.08);
}

.selected-legend-search-wrap input {
  height: 52px;
}

.selected-legend-clear {
  min-height: 52px;
}

.selected-legend-search-wrap[hidden],
.selected-legend-clear[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .renders-hero {
    min-height: auto;
    padding: 116px 24px 34px;
  }

  .renders-title {
    font-size: clamp(2.65rem, 9vw, 4rem);
  }

  .renders-description {
    font-size: 0.98rem;
  }

  .selected-legend-tools,
  .selected-legend-search-wrap {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .renders-hero {
    padding: 98px 18px 26px;
  }

  .renders-grid-section {
    padding-top: 6px;
  }

  .renders-hero-actions,
  .renders-hero-actions-centered {
    flex-direction: column;
    align-items: stretch;
  }

  .renders-hero-primary,
  .renders-hero-secondary {
    width: 100%;
  }

  .legend-catalogue-grid,
  .skins-catalogue-grid,
  .renders-loading-catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .legend-catalogue-card {
    min-height: 268px;
  }

  .selected-legend-section {
    padding: 20px 18px;
    border-radius: 20px;
  }
}
