/* ============================================
   ARTIST GALLERY — Where Myth Meets Canvas
   IMMERSIVE EDITION — Enhanced depth, motion, atmosphere
   Synthesized from Artsy + Saatchi Art + Redbubble + Etsy
   ============================================ */

:root {
  --bg: #0b0b0d;
  --bg-alt: #121216;
  --bg-card: #17171c;
  --text: #ece7df;
  --text-muted: #9a958d;
  --border: rgba(139,30,30,0.06);
  --accent: #caa86e;
  --accent-light: #e6c88c;
  --theater-red: #8b1e1e;
  --theater-red-dark: #581010;
  --theater-red-glow: rgba(139,30,30,0.22);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.25s ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
body.loading .nav,
body.loading .hero,
body.loading section { opacity: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner { text-align: center; }
.loader-brand {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text);
  margin-bottom: 2rem;
  animation: loaderFadeUp 1s ease 0.2s both;
}
.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--theater-red), var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}
.loader-sub {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: loaderFadeUp 1s ease 0.5s both;
}
@keyframes loaderFadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,30,30,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: left, top;
}
body:hover .cursor-glow { opacity: 1; }

/* ===== AMBIENT ORBS ===== */
.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.26;
  will-change: transform;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(139,30,30,0.22), transparent);
  top: -8%; left: -8%;
  animation: orbFloat1 30s ease-in-out infinite;
}
.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(201,169,110,0.12), transparent);
  bottom: -8%; right: -8%;
  animation: orbFloat2 36s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,30,30,0.10), transparent);
  top: 42%; left: 52%;
  animation: orbFloat3 28s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.03); }
  66% { transform: translate(-20px, 50px) scale(0.98); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -30px) scale(1.02); }
  66% { transform: translate(30px, -40px) scale(0.98); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-35%, -60%) scale(1.06); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== PARALLAX HERO ENHANCEMENT ===== */
.hero { perspective: 1000px; }
.hero-content {
  animation: heroReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(60px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== GALLERY ITEM 3D TILT ===== */
.gallery-item {
  transform-style: preserve-3d;
  perspective: 800px;
}
.gallery-item .tilt-wrap {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--theater-red-dark), var(--accent), var(--theater-red-dark), transparent);
  opacity: 0.6;
  position: relative;
}
.section-divider::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  color: var(--accent);
  padding: 0 1rem;
  font-size: 0.6rem;
}

/* ===== ENHANCED SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--theater-red-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--theater-red); }

/* ===== SELECTION ===== */
::selection {
  background: rgba(139,30,30,0.4);
  color: var(--text);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 18px rgba(0,0,0,0.28);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-scrolled {
  background: rgba(11, 11, 13, 0.94);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  border-bottom-color: var(--theater-red-dark);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.view-toggle { display: flex; gap: 0.5rem; flex-shrink: 0; }
.view-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.view-btn:hover { border-color: var(--theater-red); color: var(--text); }
.view-btn.active { background: var(--theater-red); border-color: var(--theater-red); color: var(--text); }
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
}
.nav-links { display: flex; gap: 2rem; list-style: none; margin-left: auto; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--accent); }
.nav-editor-link { color: var(--accent) !important; font-weight: 600 !important; }
.nav-editor-link:hover { color: var(--accent-light) !important; }

/* View Toggle */
.view-toggle { display: flex; gap: 0.5rem; }
.view-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.view-btn:hover { border-color: var(--theater-red); color: var(--text); }
.view-btn.active { background: var(--theater-red); border-color: var(--theater-red); color: var(--text); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--text); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(139, 30, 30, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(75, 20, 20, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 20% 80%, rgba(40, 15, 15, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, #1a1216 0%, #14101a 40%, #0e0e10 100%);
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139, 30, 30, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(139, 30, 30, 0.03) 0%, transparent 35%);
  animation: heroBgDrift 30s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroBgDrift {
  0%   { transform: scale(1) translate(0, 0); opacity: 1; }
  100% { transform: scale(1.05) translate(-1%, -1%); opacity: 0.85; }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(14,14,16,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 2rem;
}
.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4), 0 0 40px rgba(139,30,30,0.3);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}
.hero-scroll span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--theater-red), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--theater-red); color: var(--text); transform: translateY(-2px); box-shadow: 0 8px 30px var(--theater-red-glow); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.75rem; }

/* ===== SECTIONS COMMON ===== */
section { padding: 6rem 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ===== CURATOR'S PICK ===== */
.curator-pick { background: var(--bg-alt); padding: 6rem 2rem; }
.curator-container { max-width: 1100px; margin: 0 auto; }
.curator-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}
.curator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.curator-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.curator-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--theater-red-glow);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.curator-info h2 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 0.5rem; }
.curator-medium { color: var(--accent); font-size: 0.9rem; margin-bottom: 1.25rem; font-style: italic; }
.curator-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }
.curator-price-row { display: flex; align-items: center; gap: 1.5rem; }
.curator-price { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent); }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--theater-red);
  color: var(--theater-red);
  background: rgba(139,30,30,0.1);
}

/* ===== GALLERY GRID ===== */
.gallery { background: var(--bg); }
.gallery-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(139,30,30,0.4); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(139,30,30,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-title { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.25rem; }
.gallery-item-meta { font-size: 0.8rem; color: var(--text-muted); }
.gallery-item-price { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: 0.5rem; }

/* ===== LORE SECTION (Immersive Featured) ===== */
.lore {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.lore::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--theater-red), transparent);
}
.lore-container { max-width: 900px; margin: 0 auto; }
.lore-header { text-align: center; margin-bottom: 4rem; }
.lore-tag {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.lore-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}
.lore-header h2 em { font-style: italic; color: var(--accent); }
.lore-featured { position: relative; }
.lore-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--theater-red), var(--accent), transparent);
  border-radius: 2px;
}
.lore-featured-inner { padding-left: 2.5rem; }
.lore-featured-image {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  margin-bottom: 3rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  transition: transform 0.6s ease;
}
.lore-featured-image:hover { transform: scale(1.01); }
.lore-featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(22,22,26,0.85) 100%);
}
.lore-featured-tag {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.lore-featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--text);
}
.lore-featured-text {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.9;
  color: var(--text);
  max-width: 750px;
}
.lore-featured-text p { margin-bottom: 1.5rem; }
.lore-featured-text p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 4em;
  float: left;
  line-height: 0.8;
  margin-right: 0.12em;
  margin-top: 0.04em;
  color: var(--accent);
  font-weight: 700;
}
.lore-featured-text .pull-quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  border-left: 3px solid var(--theater-red);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 1.5rem 0;
  line-height: 1.5;
}
.lore-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.lore-cta-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
}

/* Lore reveal animations */
.lore-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.lore-reveal.visible { opacity: 1; transform: translateY(0); }
.lore-reveal-image { transition-delay: 0.1s; }
.lore-reveal-tag { transition-delay: 0.2s; }
.lore-reveal-title { transition-delay: 0.3s; }
.lore-reveal-text { transition-delay: 0.4s; }
.lore-reveal-cta { transition-delay: 0.6s; }

/* ===== ABOUT ===== */
.about { background: var(--bg); }
.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.about-tag {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.about-text h2 { font-family: var(--font-display); font-size: 2.4rem; margin-bottom: 1.5rem; }
.about-statement { color: var(--text-muted); line-height: 1.9; margin-bottom: 2rem; font-size: 1rem; }
.about-stats { display: flex; gap: 2.5rem; margin-bottom: 2rem; }
.stat { text-align: center; }
.stat span { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--accent); }
.stat label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.about-socials { display: flex; gap: 1.5rem; }
.social-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}
.social-link:hover { border-color: var(--accent); }

/* ===== COMMISSIONS ===== */
.commissions { background: var(--bg-alt); }
.commissions-container {
  max-width: 900px;
  margin: 0 auto;
}
.comm-tag {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.commissions-text { text-align: center; margin-bottom: 3rem; }
.commissions-text h2 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 1rem; }
.commissions-text > p { color: var(--text-muted); line-height: 1.8; max-width: 600px; margin: 0 auto; }
.commission-hub { background: rgba(23, 23, 28, 0.88); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: inset 0 1px 0 rgba(139,30,30,0.06); }
.commission-form { display: flex; flex-direction: column; gap: 1.5rem; }
.comm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.comm-field { display: flex; flex-direction: column; gap: 0.5rem; }
.comm-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.commission-form input,
.commission-form select,
.commission-form textarea {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.commission-form input:focus,
.commission-form select:focus,
.commission-form textarea:focus { outline: none; border-color: var(--theater-red); }
.commission-form textarea { resize: vertical; min-height: 120px; }
.commission-success { text-align: center; padding: 3rem 1rem; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--theater-red); color: var(--text); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.commission-success h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.75rem; }
.commission-success p { color: var(--text-muted); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg); }
.test-container { max-width: 1100px; margin: 0 auto; text-align: center; }
.test-container h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 3rem; }
.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.test-card {
  background: rgba(23, 23, 28, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(139,30,30,0.06);
}
.test-stars { color: var(--accent); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.test-card p { color: var(--text-muted); line-height: 1.8; font-style: italic; margin-bottom: 1.25rem; }
.test-author strong { display: block; color: var(--text); }
.test-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact { background: var(--bg-alt); }
.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-tag {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.contact-info h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.contact-details p { padding: 0.4rem 0; color: var(--text-muted); font-size: 0.9rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; }

/* ===== GALLERY EDITOR ===== */
.gallery-editor { background: var(--bg-alt); border-top: 1px solid var(--border); }
.editor-container { max-width: 700px; margin: 0 auto; }
.editor-container h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.5rem; }
.editor-sub { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }
.editor-form { display: flex; flex-direction: column; gap: 1.25rem; }
.editor-row { display: flex; flex-direction: column; gap: 0.5rem; }
.editor-row.split { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.editor-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.editor-form input,
.editor-form select {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.editor-form input:focus,
.editor-form select:focus { outline: none; border-color: var(--accent); }
.editor-upload { display: flex; flex-direction: column; gap: 0.75rem; }
.editor-upload input[type="file"] { padding: 0.5rem; cursor: pointer; }
.editor-upload input[type="file"]::file-selector-button { display: none; }
.editor-preview { width: 100%; max-width: 300px; aspect-ratio: 3/4; border-radius: var(--radius); background: var(--bg); border: 1px dashed var(--border); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; }
.editor-preview.has-image { border-style: solid; border-color: var(--accent-dark); }

/* ===== FOOTER ===== */
.footer { background: var(--bg); border-top: 1px solid var(--theater-red-dark); padding: 4rem 2rem 2rem; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-links, .footer-socials { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a, .footer-socials a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover, .footer-socials a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--theater-red-dark);
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CART PANEL ===== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cart-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  right: -400px;
  top: 0;
  z-index: 160;
  width: 400px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.cart-panel.active { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-close:hover { color: var(--accent); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr 60px 30px;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  align-items: center;
}
.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}
.cart-item-info {
  min-width: 0;
}
.cart-item-info h4 {
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}
.cart-item-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.cart-item-price {
  color: var(--accent) !important;
  font-weight: 600;
}
.cart-item-qty {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.9rem;
}
.qty-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover {
  background: var(--theater-red-dark);
  border-color: var(--theater-red);
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cart-item-remove:hover { color: var(--theater-red); }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.cart-total strong { color: var(--accent); }

/* Cart notification */
.cart-notification {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--theater-red);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 500;
  transition: bottom 0.3s ease;
  box-shadow: var(--shadow);
}
.cart-notification.visible { bottom: 2rem; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  z-index: 201;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}
.lightbox-content img { max-width: 100%; max-height: 75vh; border-radius: var(--radius); }
.lightbox-content .lightbox-info { margin-top: 1rem; }
.lightbox-content .lightbox-info h3 { font-family: var(--font-display); font-size: 1.3rem; }
.lightbox-content .lightbox-info p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== VIEW MODE: GALLERY ONLY ===== */
body.gallery-mode .hero,
body.gallery-mode .curator-pick,
body.gallery-mode .lore,
body.gallery-mode .about,
body.gallery-mode .commissions,
body.gallery-mode .testimonials,
body.gallery-mode .contact,
body.gallery-mode .footer { display: none; }
body.gallery-mode .gallery { padding-top: 8rem; }
body.gallery-mode .gallery-editor { border-top: none; background: var(--bg); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(139,30,30,0.06), transparent 30%),
              radial-gradient(circle at bottom right, rgba(201,169,110,0.04), transparent 32%);
  z-index: 0;
}
body > *:not(.nav):not(.loader):not(.cursor-glow):not(.cart-overlay):not(.cart-panel):not(.lightbox):not(.admin-overlay):not(.admin-panel):not(.checkout-overlay):not(.checkout-modal):not(.order-success):not(.admin-trigger-hint):not(.cart-notification) {
  position: relative;
  z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .curator-grid, .about-container, .commissions-container, .contact-container {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .about-stats { justify-content: center; }
  .about-socials { justify-content: center; }
  .cart-panel { width: 100%; max-width: 400px; }
}

@media (max-width: 600px) {
  .cart-panel {
    width: 100%;
    right: -100%;
  }
}

/* ============================================
   ADMIN PANEL (Layer 1 — Operator Console)
   ============================================ */
.admin-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.admin-overlay.active { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 0.3s ease, visibility 0s 0s; }

.admin-panel {
  position: fixed; top: 0; right: -560px;
  width: 560px; max-width: 100vw; height: 100vh;
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-panel.active { right: 0; }

.admin-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(180deg, rgba(139,30,30,0.08), transparent);
}
.admin-header h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); margin-bottom: 0.25rem; }
.admin-sub { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.admin-close {
  background: none; border: none; color: var(--text);
  font-size: 1.75rem; cursor: pointer; line-height: 1;
  padding: 0; width: 32px; height: 32px;
  border-radius: 50%; transition: background 0.2s;
}
.admin-close:hover { background: var(--theater-red); }

.admin-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 1.75rem;
  background: var(--bg);
}
.admin-tab {
  background: none; border: none;
  padding: 1rem 1.25rem;
  color: var(--text-muted); cursor: pointer;
  font-family: var(--font-body); font-size: 0.85rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.admin-tab-content { display: none; padding: 1.5rem 1.75rem; flex: 1; }
.admin-tab-content.active { display: block; }

.admin-toolbar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.admin-toolbar .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }

.admin-inventory-list, .admin-orders-list {
  display: flex; flex-direction: column; gap: 0.75rem;
}

.admin-inv-item, .admin-order-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  align-items: center;
  transition: border-color 0.2s;
}
.admin-inv-item:hover, .admin-order-item:hover { border-color: var(--theater-red); }

.admin-inv-thumb {
  width: 60px; height: 60px;
  background-size: cover; background-position: center;
  border-radius: 8px;
  background-color: var(--bg);
}
.admin-inv-info h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.25rem; }
.admin-inv-info p { font-size: 0.8rem; color: var(--text-muted); }
.admin-inv-info .stock-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-top: 0.25rem;
  background: rgba(202,168,110,0.15);
  color: var(--accent);
}
.admin-inv-info .stock-badge.low { background: rgba(139,30,30,0.25); color: var(--theater-red); }
.admin-inv-info .stock-badge.out { background: rgba(80,80,80,0.3); color: var(--text-muted); }

.admin-inv-actions { display: flex; gap: 0.4rem; }
.admin-inv-actions button {
  background: none; border: 1px solid var(--border);
  color: var(--text); padding: 0.4rem 0.7rem;
  border-radius: 6px; cursor: pointer;
  font-size: 0.75rem; transition: all 0.2s;
}
.admin-inv-actions button:hover { border-color: var(--accent); color: var(--accent); }
.admin-inv-actions button.danger:hover { border-color: var(--theater-red); color: var(--theater-red); }

.admin-form { display: flex; flex-direction: column; gap: 1rem; }
.admin-form label { display: flex; flex-direction: column; gap: 0.4rem; }
.admin-form label span { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.admin-form input, .admin-form select, .admin-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.admin-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }
.admin-hint kbd {
  background: var(--bg-card); padding: 0.15rem 0.4rem;
  border-radius: 4px; font-family: monospace;
  border: 1px solid var(--border);
}
.admin-hint code {
  background: var(--bg-card); padding: 0.15rem 0.4rem;
  border-radius: 4px; font-family: monospace;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.admin-stat-card .stat-label {
  font-size: 0.7rem; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.admin-stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
}
.admin-stat-card .stat-sub {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 0.25rem;
}

.admin-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.admin-chart h4 { font-family: var(--font-display); margin-bottom: 1rem; font-size: 1rem; }
.admin-bar {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.admin-bar-label { font-size: 0.8rem; min-width: 120px; color: var(--text-muted); }
.admin-bar-track {
  flex: 1; height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.admin-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--theater-red), var(--accent));
  border-radius: 4px;
}
.admin-bar-value { font-size: 0.8rem; color: var(--accent); min-width: 40px; text-align: right; }

.admin-item-editor {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
  z-index: 10;
}
.admin-item-editor.active { display: flex; }
.admin-item-editor-inner {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 100%; max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.admin-item-editor-inner h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.admin-item-editor-inner label {
  display: flex; flex-direction: column; gap: 0.3rem;
}
.admin-item-editor-inner label span {
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.admin-item-editor-inner input, .admin-item-editor-inner select, .admin-item-editor-inner textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.admin-item-editor-inner input:focus, .admin-item-editor-inner select:focus, .admin-item-editor-inner textarea:focus {
  outline: none; border-color: var(--accent);
}
.admin-item-editor-actions {
  display: flex; gap: 0.5rem; justify-content: flex-end;
  margin-top: 0.5rem;
}

/* ============================================
   CHECKOUT MODAL (Layer 2 — Visitor)
   ============================================ */
.checkout-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.checkout-overlay.active { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 0.3s ease, visibility 0s 0s; }

.checkout-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 520px; max-width: 95vw;
  max-height: 90vh;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 10001;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
  overflow-y: auto;
}
.checkout-modal.active {
  opacity: 1; pointer-events: auto; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.checkout-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.checkout-header h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); }
.checkout-close {
  background: none; border: none; color: var(--text);
  font-size: 1.75rem; cursor: pointer; line-height: 1;
  width: 32px; height: 32px;
  border-radius: 50%; transition: background 0.2s;
}
.checkout-close:hover { background: var(--theater-red); }

#checkoutForm {
  padding: 1.5rem 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
#checkoutForm label { display: flex; flex-direction: column; gap: 0.4rem; }
#checkoutForm label span {
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}
#checkoutForm input, #checkoutForm textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
#checkoutForm input:focus, #checkoutForm textarea:focus {
  outline: none; border-color: var(--accent);
}

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.5rem;
}
.checkout-summary h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.checkout-summary-item {
  display: flex; justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-summary-item .qty { color: var(--text-muted); margin-right: 0.5rem; }

.checkout-totals {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.9rem;
}
.checkout-totals .total-row {
  display: flex; justify-content: space-between;
  padding: 0.3rem 0;
}
.checkout-totals .total-row.grand {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem; padding-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
}

.checkout-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================
   ORDER SUCCESS
   ============================================ */
.order-success {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  z-index: 10002;
  display: none;
  align-items: center; justify-content: center;
}
.order-success.active { display: flex; }
.order-success-inner {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.order-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.order-success-inner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.order-success-inner p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ============================================
   STOCK BADGES ON GALLERY ITEMS
   ============================================ */
.gallery-item .stock-pill {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: rgba(0,0,0,0.7);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.gallery-item .stock-pill.low { color: #d4a04a; }
.gallery-item .stock-pill.out { color: var(--text-muted); }
.gallery-item.sold-out { opacity: 0.6; }
.gallery-item.sold-out .gallery-item-image { filter: grayscale(0.5); }

/* ============================================
   ADMIN TRIGGER HINT (subtle)
   ============================================ */
.admin-trigger-hint {
  position: fixed;
  bottom: 1rem; right: 1rem;
  background: rgba(0,0,0,0.6);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.admin-trigger-hint.visible { opacity: 0.7; }
.admin-trigger-hint kbd {
  background: var(--bg-card);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.65rem;
  margin: 0 0.15rem;
}

/* ============================================
   VAULT — Creator-only access (Google OAuth)
   ============================================ */
.vault-login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 16, 0.96);
  backdrop-filter: blur(8px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.vault-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 60vh;
}

.vault-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.3));
  animation: vault-pulse 2s ease-in-out infinite;
}

@keyframes vault-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

.vault-login h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.vault-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  max-width: 320px;
  line-height: 1.5;
}

.vault-sub-small {
  font-size: 0.8rem;
  margin-bottom: 2rem;
}

#googleSignInButton {
  margin: 1rem 0 1.5rem 0;
  min-height: 44px;
}

.vault-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin: 1rem 0;
  max-width: 320px;
}

.vault-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 1rem;
  transition: all 0.2s;
}

.vault-cancel:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Vault login tabs (Google / Password) */
.vault-login-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.vault-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.vault-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

.vault-tab-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vault-password-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 280px;
  margin: 1rem 0;
}

.vault-password-form input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.vault-password-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.vault-password-submit {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.vault-password-submit:hover {
  background: var(--accent-hover, #ff6b6b);
  transform: translateY(-1px);
}

/* Creator badge in admin header */
.creator-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-left: auto;
  margin-right: 1rem;
}

.creator-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.5);
}

.creator-name {
  color: #4ade80;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.creator-logout {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: background 0.2s;
  margin-left: 0.25rem;
}

.creator-logout:hover {
  background: rgba(220, 38, 38, 0.2);
}

/* ============================================
   CHECKOUT MODAL — High-end customer experience
   ============================================ */

.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.checkout-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(720px, 95vw);
  max-height: 92vh;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 201;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.checkout-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.checkout-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 92vh;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.checkout-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0;
}
.checkout-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.checkout-close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.checkout-body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.checkout-section {
  margin-bottom: 2rem;
}
.checkout-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
.checkout-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.checkout-item-image {
  width: 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}
.checkout-item-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.checkout-item-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.checkout-item-qty {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.checkout-item-price {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}

.checkout-totals {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.checkout-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.checkout-total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}
.checkout-total span:last-child {
  color: var(--accent);
}

.checkout-field {
  margin-bottom: 1rem;
}
.checkout-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.checkout-field input,
.checkout-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.checkout-field input:focus,
.checkout-field select:focus {
  outline: none;
  border-color: var(--accent);
}
.checkout-row-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
}

.checkout-test-banner {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid #ff6b35;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #ff6b35;
}
.checkout-test-banner code {
  background: rgba(0,0,0,0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--text);
}

.checkout-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-top: 1rem;
}
.checkout-trust-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
}

.checkout-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.checkout-footer .btn {
  flex: 1;
}
.checkout-pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success screen */
.checkout-success {
  padding: 3rem 2rem;
  text-align: center;
}
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #4a7c59, #2d5a3a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  animation: successPop 0.5s ease;
}
@keyframes successPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.checkout-success h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.success-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.success-details {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}
.success-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.success-row:last-child {
  border-bottom: none;
}
.success-row code {
  font-family: monospace;
  color: var(--accent);
  font-size: 0.85rem;
}

.success-timeline {
  text-align: left;
  margin-bottom: 2rem;
}
.success-timeline h3 {
  font-family: var(--font-display);
  color: var(--accent);
  margin-bottom: 1rem;
}
.timeline-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  position: relative;
}
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 50px;
  width: 2px;
  height: calc(100% - 30px);
  background: var(--border);
}
.timeline-step.done::after,
.timeline-step.active::after {
  background: var(--accent);
}
.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.timeline-step.done .timeline-dot {
  background: #4a7c59;
  border-color: #4a7c59;
  color: white;
}
.timeline-step.active .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(202, 168, 110, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(202, 168, 110, 0); }
}
.timeline-label {
  color: var(--text);
  font-size: 0.95rem;
}
.timeline-step.done .timeline-label,
.timeline-step.active .timeline-label {
  color: var(--text);
}
.timeline-step:not(.done):not(.active) .timeline-label {
  color: var(--text-muted);
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Pipeline log */
.pipeline-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.pipeline-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.pipeline-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 600;
}
.pipeline-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.pipeline-log {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  max-height: 240px;
  overflow-y: auto;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.8rem;
  margin-bottom: 2rem;
}
.pipeline-entry {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #4ade80;
}
.pipeline-entry:last-child {
  border-bottom: none;
}
.pipeline-time {
  color: var(--text-muted);
}
.pipeline-msg {
  color: #4ade80;
}
.pipeline-detail {
  color: var(--accent);
  font-family: monospace;
}

.order-history {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.order-history-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.order-history-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.order-history-header strong {
  color: var(--accent);
  font-family: monospace;
}
.order-history-header span {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.order-history-body {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.order-history-tracking {
  margin-top: 0.4rem;
  font-size: 0.8rem;
}
.order-history-tracking code {
  color: var(--accent);
  font-family: monospace;
}

/* Mock item badge in gallery */
.gallery-item .badge-mock {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff6b35;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

/* Live Big Cartel product badge */
.gallery-item .badge-live {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(74, 222, 128, 0.4);
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 2px 8px rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 2px 16px rgba(74, 222, 128, 0.8); }
}

/* Stock pill */
.gallery-item .stock-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 2;
}
.gallery-item .stock-pill.out {
  background: #ef4444;
  color: white;
}
.gallery-item .stock-pill.low {
  background: #fbbf24;
  color: #000;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .checkout-modal {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: translate(0, 0) scale(1);
  }
  .checkout-modal.active {
    transform: translate(0, 0) scale(1);
  }
  .checkout-header,
  .checkout-body,
  .checkout-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .checkout-row-fields {
    grid-template-columns: 1fr;
  }
  .checkout-trust {
    grid-template-columns: 1fr;
  }
  .pipeline-stats {
    grid-template-columns: 1fr;
  }
  .pipeline-entry {
    grid-template-columns: 60px 1fr;
  }
  .pipeline-entry .pipeline-detail {
    grid-column: 1 / -1;
    padding-left: 60px;
    font-size: 0.7rem;
  }
}
