:root {
  --bg-deep: #040d0a;
  --bg-card: rgba(10, 26, 20, 0.72);
  --bg-card-hover: rgba(14, 36, 27, 0.88);
  --gold-light: #fef08a;
  --gold-primary: #f59e0b;
  --gold-glow: rgba(251, 191, 36, 0.45);
  --emerald-bright: #34d399;
  --emerald-deep: #065f46;
  --rose-accent: #f472b6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-shimmer: rgba(253, 230, 138, 0.24);
  --font-display: 'Cinzel Decorative', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  min-height: 100%;
  background: radial-gradient(ellipse at 50% 0%, #0b291e 0%, #05110d 55%, #020705 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Interactive Fairy Dust Canvas */
#fairy-dust-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 120;
}

/* Ambient Glowing Aurora Orbs */
.ambient-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-emerald {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #10b981, transparent 70%);
  top: -120px;
  left: -100px;
}

.orb-gold {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #fbbf24, transparent 70%);
  top: 20%;
  right: -120px;
  animation-delay: -6s;
}

.orb-rose {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  bottom: -140px;
  left: 30%;
  animation-delay: -11s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -35px) scale(1.12); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(4, 13, 10, 0.75);
  border-bottom: 1px solid var(--border-shimmer);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  font-size: 1.9rem;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fef08a, #34d399, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-pill {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--border-shimmer);
  color: var(--gold-light);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-pill:hover,
.btn-pill[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(16, 185, 129, 0.28));
  border-color: var(--gold-light);
  box-shadow: 0 0 18px var(--gold-glow);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 2.2rem;
}

.hero-wing-crest {
  width: 260px;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 0 18px rgba(253, 230, 138, 0.35));
  animation: wingFlutter 4.5s ease-in-out infinite;
}

@keyframes wingFlutter {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(-6px) scaleX(1.04); }
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--emerald-bright);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1rem;
  text-shadow: 0 0 35px rgba(251, 191, 36, 0.28);
}

.shimmer-text {
  background: linear-gradient(120deg, #fef08a 0%, #34d399 28%, #38bdf8 52%, #f472b6 76%, #fef08a 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmerFlow 5s linear infinite;
}

@keyframes shimmerFlow {
  to { background-position: 200% center; }
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: #cbd5e1;
  line-height: 1.55;
  max-width: 740px;
  margin: 0 auto 1.8rem;
}

.hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.stat-chip {
  background: rgba(10, 26, 20, 0.75);
  border: 1px solid var(--border-shimmer);
  border-radius: 14px;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Filter & Search Toolbar */
.toolbar {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: 0 auto 1.8rem;
  padding: 0 1.5rem;
}

.toolbar-inner {
  background: rgba(8, 22, 17, 0.8);
  border: 1px solid var(--border-shimmer);
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(12px);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #f59e0b, #10b981);
  color: #020c08;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.model-select,
.search-input {
  background: rgba(3, 10, 8, 0.85);
  border: 1px solid var(--border-shimmer);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  outline: none;
}

.search-input {
  min-width: 240px;
}

.model-select:focus,
.search-input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* Gallery Grid */
.gallery-container {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.75rem;
}

.art-card {
  background: var(--bg-card);
  border: 1px solid var(--border-shimmer);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  backdrop-filter: blur(12px);
  position: relative;
}

.art-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-light);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.75), 0 0 28px rgba(253, 230, 138, 0.28);
}

.art-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: #020806;
  cursor: pointer;
}

.art-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.art-card:hover .art-image-wrap img {
  transform: scale(1.045);
}

.card-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.badge-model,
.badge-res {
  background: rgba(4, 13, 10, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(253, 230, 138, 0.35);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-light);
}

.badge-res {
  color: var(--emerald-bright);
}

.art-body {
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.art-collection {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--emerald-bright);
}

.art-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-light);
}

.art-prompt-snippet {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
  background: rgba(2, 8, 6, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.art-telemetry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.telemetry-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.art-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-card-action {
  background: rgba(253, 230, 138, 0.1);
  border: 1px solid rgba(253, 230, 138, 0.3);
  color: var(--gold-light);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-action:hover {
  background: var(--gold-light);
  color: #04100c;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.hidden {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 5, 0.88);
  backdrop-filter: blur(18px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100vw - 8.5rem));
  height: min(880px, 90vh);
  background: rgba(7, 20, 15, 0.95);
  border: 1px solid var(--gold-light);
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(251, 191, 36, 0.22);
  display: grid;
  grid-template-columns: 1fr 420px;
  overflow: hidden;
}

.lightbox-stage {
  background: #010504;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-meta {
  padding: 2.85rem 1.75rem 2rem;
  overflow-y: auto;
  border-left: 1px solid var(--border-shimmer);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.meta-header {
  padding-right: 2.75rem;
  padding-top: 0.25rem;
  border-bottom: 1px solid rgba(253, 230, 138, 0.14);
  padding-bottom: 0.9rem;
}

.meta-collection {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--emerald-bright);
  margin-bottom: 0.45rem;
}

.meta-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.28;
  color: var(--gold-light);
  margin: 0 0 0.35rem 0;
}

.meta-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meta-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.meta-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

.model-badge-large {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--gold-light);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
}

.prompt-box {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.5;
  color: #e2e8f0;
  background: rgba(2, 8, 6, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 150px;
  overflow-y: auto;
}

.prompt-box-neg {
  color: #fca5a5;
  max-height: 95px;
}

.btn-mini-copy {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--emerald-bright);
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
}

.btn-mini-copy:hover {
  background: var(--emerald-bright);
  color: #020c08;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.spec-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
}

.spec-k {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-v {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(4, 13, 10, 0.85);
  border: 1px solid var(--border-shimmer);
  color: var(--gold-light);
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(4, 13, 10, 0.82);
  border: 1px solid var(--border-shimmer);
  color: var(--gold-light);
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; left: auto; }

/* 18+ Age Gate Veil & Error Page */
.age-gate,
.error-page {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: radial-gradient(circle at center, rgba(9, 32, 24, 0.94), rgba(2, 7, 5, 0.98));
  backdrop-filter: blur(22px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-gate.hidden {
  display: none;
}

.age-gate-card {
  max-width: 520px;
  background: rgba(8, 24, 18, 0.92);
  border: 1px solid var(--gold-light);
  border-radius: 26px;
  padding: 2.5rem 2.2rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 45px rgba(251, 191, 36, 0.25);
}

.crest-badge {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--emerald-bright);
  margin-bottom: 0.6rem;
}

.age-gate-card h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-light);
  margin-bottom: 0.9rem;
}

.age-gate-copy {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 1.6rem;
}

.btn-gold {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 55%, #10b981 100%);
  color: #03110b;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(251, 191, 36, 0.75);
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.age-gate-footnote {
  margin-top: 1.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--border-shimmer);
  background: rgba(3, 9, 7, 0.8);
}

.footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 960px) {
  .lightbox-content {
    grid-template-columns: 1fr;
    height: 92vh;
    overflow-y: auto;
  }
  .lightbox-stage {
    min-height: 45vh;
  }
  .lightbox-next {
    left: auto;
    right: 1.2rem;
  }
}

/* Series Blocks & Admin Studio Styles */
.series-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.series-block {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.series-header-card {
  background: rgba(8, 24, 18, 0.85);
  border: 1px solid var(--border-shimmer);
  border-radius: 22px;
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.series-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.series-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold-light);
  margin: 0.2rem 0;
}

.series-subtitle {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #cbd5e1;
}

.series-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.series-base-preview {
  background: rgba(2, 8, 6, 0.72);
  border: 1px solid rgba(253, 230, 138, 0.18);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.series-base-preview code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #a7f3d0;
  line-height: 1.45;
  word-break: break-word;
}

.admin-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(245, 158, 11, 0.25));
  border: 1px solid var(--emerald-bright);
  color: var(--emerald-bright);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-badge.hidden,
.series-admin-drawer.hidden,
.admin-panel-box.hidden,
.stage-single.hidden,
.stage-compare.hidden {
  display: none !important;
}

.series-admin-drawer {
  border-top: 1px solid var(--border-shimmer);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.dup-modal-card {
  position: relative;
  z-index: 2;
  width: min(860px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(7, 20, 15, 0.97);
  border: 1px solid var(--gold-light);
  border-radius: 24px;
  padding: 1.75rem 2rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.88), 0 0 40px rgba(251, 191, 36, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.dup-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-shimmer);
  padding-bottom: 0.85rem;
}

.dup-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dup-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-shimmer);
}

.full-width {
  width: 100%;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prompt-textarea {
  width: 100%;
  resize: vertical;
  outline: none;
}

.prompt-textarea:not([readonly]) {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(3, 14, 10, 0.95);
}

.admin-llm-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-llm-row {
  display: flex;
  gap: 0.65rem;
}

.admin-layers-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-layer-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-light);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  min-width: 68px;
  text-align: center;
}

.admin-drawer-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.series-status-msg,
.admin-status-msg {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-light);
}

.art-card.has-candidate {
  border-color: var(--emerald-bright);
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.28);
}

.admin-panel-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-panel-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-bright);
}

.admin-row,
.admin-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

/* Side-by-side Candidate Comparison inside Lightbox */
.stage-single {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-compare {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.compare-pane {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(4, 13, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.85rem;
}

.compare-pane-new {
  border-color: var(--gold-light);
}

.compare-pane img {
  max-height: calc(100% - 80px);
  max-width: 100%;
  object-fit: contain;
}

.compare-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.compare-tag-new {
  color: var(--gold-light);
  font-weight: 700;
}

/* ==========================================================================
   Zero-Scroll Single-Viewport 3-Card Chronological Stage & Modal Overlays
   ========================================================================== */
.hidden {
  display: none !important;
}

:root {
  --gold-bright: #fbbf24;
  --gold-soft: #fde047;
}

body.no-scroll-body {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-group > div {
  display: flex;
  flex-direction: column;
}

.compact-header {
  height: 62px;
  min-height: 62px;
  padding: 0 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  z-index: 40;
}

.header-filters {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.header-filters .filter-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(253, 230, 138, 0.2);
  color: #cbd5e1;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pill:hover,
.pill.active {
  background: linear-gradient(135deg, #f59e0b, #10b981);
  color: #020c08;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.38);
}

.btn-ghost {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--border-shimmer);
  color: var(--gold-light);
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-ghost:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(16, 185, 129, 0.28));
  border-color: var(--gold-light);
  box-shadow: 0 0 16px var(--gold-glow);
}

.admin-mode-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(245, 158, 11, 0.25));
  border: 1px solid var(--emerald-bright);
  color: var(--emerald-bright);
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.compact-select {
  padding: 0.34rem 0.65rem;
  font-size: 0.76rem;
  max-width: 210px;
}

.compact-search {
  padding: 0.34rem 0.7rem;
  font-size: 0.76rem;
  width: 170px;
}

.btn-compact {
  padding: 0.36rem 0.75rem;
  font-size: 0.76rem;
  white-space: nowrap;
}

.viewport-stage {
  position: relative;
  z-index: 5;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.6rem 1.35rem 0.5rem;
  gap: 0.5rem;
  overflow: hidden;
}

.stage-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.38rem 0.9rem;
  background: rgba(6, 20, 15, 0.76);
  border: 1px solid rgba(253, 230, 138, 0.16);
  border-radius: 12px;
  flex-shrink: 0;
}

.context-left {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  min-width: 0;
}

.stage-series-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--gold-light);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.context-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.step-counter-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold-light);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.32);
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
}

.stage-status-msg {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--emerald-bright);
}

.carousel-deck-wrap {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  overflow: hidden;
}

.deck-arrow {
  width: 46px;
  flex-shrink: 0;
  align-self: center;
  height: 120px;
  border-radius: 14px;
  background: rgba(8, 25, 19, 0.85);
  border: 1px solid rgba(253, 230, 138, 0.32);
  color: var(--gold-light);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.deck-arrow:hover:not(:disabled) {
  background: rgba(251, 191, 36, 0.22);
  border-color: var(--gold-bright);
  transform: scale(1.05);
}

.deck-arrow:disabled {
  opacity: 0.22;
  cursor: default;
}

.three-card-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 1.05rem;
  align-items: stretch;
}

.three-card-stage .art-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(7, 22, 17, 0.86);
  border: 1px solid rgba(253, 230, 138, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.three-card-stage .art-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

.three-card-stage .art-image-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  aspect-ratio: unset !important;
  background: radial-gradient(circle at center, rgba(16, 48, 36, 0.55) 0%, rgba(2, 8, 6, 0.96) 100%);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.three-card-stage .art-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.three-card-stage .art-card:hover .art-image-wrap img {
  transform: scale(1.02);
}

.three-card-stage .art-body {
  flex: 0 0 auto;
  padding: 0.6rem 0.85rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  background: rgba(4, 14, 10, 0.96);
  border-top: 1px solid rgba(253, 230, 138, 0.14);
}

.three-card-stage .art-title {
  font-size: 0.96rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.three-card-stage .art-telemetry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.three-card-stage .telemetry-pill {
  font-size: 0.64rem;
  padding: 0.12rem 0.4rem;
}

.three-card-stage .art-footer {
  padding-top: 0.3rem;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.stage-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
}

.scrubber-dots {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  overflow-x: auto;
  max-width: 65%;
  scrollbar-width: none;
}

.scrubber-dot {
  width: 24px;
  height: 22px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  border: 1px solid rgba(253, 230, 138, 0.2);
  background: rgba(8, 24, 18, 0.75);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.scrubber-dot.in-window {
  border-color: var(--gold-bright);
  background: rgba(251, 191, 36, 0.22);
  color: var(--gold-light);
  font-weight: 600;
}

.stage-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.lb-history-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Overlays & Modals (Age Gate, Lightbox, Series Studio, Duplicate, Cloud AI) */
.age-gate-overlay,
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 8, 6, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox-image-stage {
  background: #010504;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.single-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.compare-stage {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.meta-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.42rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.meta-value {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-main);
}

.lb-admin-panel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.admin-divider {
  height: 1px;
  background: var(--border-shimmer);
  margin: 0.25rem 0;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-badge-inline {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--emerald-bright);
}

.admin-seed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.seed-input {
  width: 120px;
}

.admin-action-buttons,
.candidate-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.candidate-decision-bar {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--emerald-bright);
  border-radius: 10px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.candidate-prompt-label,
.admin-status-text {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold-light);
}

.admin-modal-card {
  position: relative;
  z-index: 2;
  width: min(880px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(7, 20, 15, 0.97);
  border: 1px solid var(--gold-light);
  border-radius: 22px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.88), 0 0 40px rgba(251, 191, 36, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-shimmer);
  padding-bottom: 0.75rem;
}

.admin-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cloud-provider-block {
  background: rgba(4, 14, 10, 0.75);
  border: 1px solid rgba(253, 230, 138, 0.16);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--gold-light);
  cursor: pointer;
}

/* Minimalist Public Art Gallery Placards & Tags */
.art-card.gallery-minimal-card {
  cursor: pointer;
  border-color: rgba(253, 230, 138, 0.16);
  background: rgba(5, 16, 12, 0.72);
}

.art-card.gallery-minimal-card:hover {
  border-color: rgba(251, 191, 36, 0.48);
}

.art-card.gallery-minimal-card .art-body {
  padding: 0.65rem 0.85rem 0.75rem;
  gap: 0.42rem;
}

.gallery-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.gallery-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  white-space: nowrap;
}

.gallery-tag-series {
  border-color: rgba(253, 230, 138, 0.28);
  color: var(--gold-light);
  background: rgba(251, 191, 36, 0.08);
}

.gallery-tag-model {
  border-color: rgba(52, 211, 153, 0.32);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.09);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.gallery-tag-style {
  border-color: rgba(196, 181, 253, 0.32);
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.1);
}

.gallery-placard-tags {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(4, 15, 11, 0.65);
  border: 1px solid rgba(253, 230, 138, 0.16);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.placard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.placard-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  text-align: right;
}

.placard-tag-model {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #6ee7b7;
}

.placard-tag-style {
  color: #ddd6fe;
}

.placard-style-prompt {
  margin: 0.3rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(4, 15, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #e2e8f0;
}
