:root {
  --bg-void: #040209;
  --bg-panel: rgba(11, 6, 24, 0.78);
  --bg-card: rgba(18, 10, 38, 0.84);
  --border-neon: rgba(255, 255, 255, 0.18);
  --text-primary: #fbf8ff;
  --text-secondary: #cbbde6;
  --text-muted: #8a79ad;
  --acid-lime: #c8ff29;
  --acid-magenta: #ff2a85;
  --acid-cyan: #00f0ff;
  --acid-gold: #ffb800;
  --acid-violet: #9d4edd;
  --font-display: 'Syne', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
  --rgb-offset: 3px;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-display);
  user-select: none;
}

body[data-trip-mode="overdrive"] {
  animation: hueCycle 6s infinite linear;
}

@keyframes hueCycle {
  0% { filter: hue-rotate(0deg) saturate(1.3); }
  50% { filter: hue-rotate(180deg) saturate(1.75); }
  100% { filter: hue-rotate(360deg) saturate(1.3); }
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Infinite Procedural Zoomquilt Canvas */
#zoomquiltCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Custom Cursor Halo */
.cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--acid-lime), var(--acid-cyan));
  box-shadow: 0 0 28px var(--acid-lime), 0 0 55px var(--acid-magenta);
  mix-blend-mode: screen;
}

/* Top HUD: World Portal Jump Bar */
.zq-header {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, 95vw);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: rgba(8, 4, 18, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 255, 41, 0.38);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 42, 133, 0.25);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 58% 42% 65% 35% / 45% 55% 45% 55%;
  background: conic-gradient(from 45deg, var(--acid-magenta), var(--acid-cyan), var(--acid-lime), var(--acid-magenta));
  color: #040209;
  font-family: var(--font-mono);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  animation: blobSpin 5s linear infinite alternate;
}

@keyframes blobSpin {
  0% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; transform: rotate(0deg); }
  100% { border-radius: 38% 62% 63% 37% / 42% 58% 42% 58%; transform: rotate(12deg); }
}

.brand-text {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  text-shadow: -2px 0 var(--acid-magenta), 2px 0 var(--acid-cyan);
}

.layer-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.layer-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.layer-tab span {
  color: var(--acid-magenta);
  font-size: 0.65rem;
}

.layer-tab:hover,
.layer-tab.active {
  background: linear-gradient(135deg, var(--acid-lime), var(--acid-cyan));
  color: #040209;
  border-color: var(--acid-lime);
  box-shadow: 0 0 18px rgba(200, 255, 41, 0.55);
  transform: scale(1.05);
}

.layer-tab.active span,
.layer-tab:hover span {
  color: #040209;
}

.checkout-tab {
  border-color: var(--acid-gold);
  background: rgba(255, 184, 0, 0.14);
  color: var(--acid-gold);
}

.cart-badge {
  background: var(--acid-magenta);
  color: #fff;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.68rem;
}

/* Bottom HUD: Zoomquilt Controls */
.zq-controls {
  position: fixed;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, 95vw);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem;
  background: rgba(8, 4, 18, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.38);
  border-radius: 999px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75);
}

.zq-control-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.zq-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-neon);
  color: var(--text-primary);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zq-btn:hover,
.zq-btn.active {
  background: linear-gradient(135deg, var(--acid-magenta), var(--acid-violet));
  border-color: var(--acid-lime);
  box-shadow: 0 0 16px var(--acid-magenta);
}

.zq-btn-cruise.active {
  background: linear-gradient(135deg, var(--acid-lime), var(--acid-cyan));
  color: #040209;
}

.depth-readout {
  text-align: center;
  min-width: 195px;
}

.mono-tiny {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--acid-cyan);
}

#depthLabel {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--acid-lime);
}

.speed-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--acid-cyan);
}

#tripSlider {
  width: 80px;
  accent-color: var(--acid-lime);
  cursor: pointer;
}

/* ============================================================================
   3D ZOOMQUILT VIEWPORT & NESTED LAYERS
   ============================================================================ */
.zq-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1200px;
}

.zq-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.zq-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
}

.zq-layer.is-interactive {
  pointer-events: auto;
}

/* Ornate Psychedelic Portal Frame Ring around each layer */
.zq-frame-ring {
  width: min(1040px, 88vw);
  max-height: 78vh;
  border-radius: 46px 18px 46px 18px;
  padding: 3px;
  background: conic-gradient(
    from 0deg,
    var(--acid-magenta),
    var(--acid-cyan),
    var(--acid-lime),
    var(--acid-gold),
    var(--acid-violet),
    var(--acid-magenta)
  );
  box-shadow:
    0 0 60px rgba(255, 42, 133, 0.35),
    0 0 110px rgba(0, 240, 255, 0.22),
    inset 0 0 40px rgba(200, 255, 41, 0.3);
  position: relative;
}

.zq-panel {
  width: 100%;
  height: 100%;
  max-height: calc(78vh - 6px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 50%, rgba(18, 9, 38, 0.45) 0%, rgba(7, 3, 16, 0.72) 72%);
  backdrop-filter: blur(16px);
  border-radius: 43px 15px 43px 15px;
  padding: 1.8rem 2.2rem;
  position: relative;
}

/* Custom Scrollbar inside a panel if content is tall on small screens */
.zq-panel::-webkit-scrollbar {
  width: 6px;
}
.zq-panel::-webkit-scrollbar-thumb {
  background: var(--acid-magenta);
  border-radius: 99px;
}

/* Typography Helpers */
.serif-italic,
.serif-melt {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(90deg, var(--acid-lime), var(--acid-cyan), var(--acid-magenta));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerFlow 4s linear infinite;
}

.serif-melt {
  filter: url(#liquid-warp);
}

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

.rgb-split {
  text-shadow:
    calc(var(--rgb-offset) * -1) 0 0 rgba(255, 42, 133, 0.9),
    var(--rgb-offset) 0 0 rgba(0, 240, 255, 0.9);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--acid-cyan);
  display: inline-block;
}

/* Layer 00: Hero Portal Panel */
.hero-portal-panel {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.4rem 2rem;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  background: rgba(200, 255, 41, 0.12);
  border: 1px dashed var(--acid-lime);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--acid-lime);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid-lime);
  box-shadow: 0 0 12px var(--acid-lime);
}

.zq-hero-title {
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  line-height: 0.94;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.zq-hero-sub {
  max-width: 650px;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.35rem;
}

.portal-quick-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-neon);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 24px 8px 24px 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.pill-btn:hover {
  background: var(--acid-lime);
  color: #040209;
  border-color: var(--acid-lime);
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: -4px 4px 0 var(--acid-magenta);
}

.pill-gold {
  border-color: var(--acid-gold);
  color: var(--acid-gold);
  background: rgba(255, 184, 0, 0.12);
}

.zq-mini-quote {
  font-style: italic;
  color: var(--acid-cyan);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.center-portal-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--acid-lime);
}

.portal-reticle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px dashed var(--acid-lime);
  box-shadow: 0 0 25px var(--acid-magenta), inset 0 0 18px var(--acid-cyan);
  animation: spinReticle 6s linear infinite;
}

@keyframes spinReticle {
  to { transform: rotate(360deg) scale(1.1); }
}

/* Layer Header Bar */
.layer-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.layer-heading {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  line-height: 1.05;
}

.btn-portal-next {
  background: linear-gradient(135deg, var(--acid-magenta), var(--acid-violet));
  border: 1px solid var(--acid-lime);
  color: #fff;
  padding: 0.52rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-portal-next:hover {
  background: linear-gradient(135deg, var(--acid-lime), var(--acid-cyan));
  color: #040209;
  transform: scale(1.05);
}

/* Gallery & Film Cards inside Zoomquilt Layers */
.zq-cards-ring {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.zq-art-card {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 26px 10px 26px 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.zq-art-card:hover {
  border-color: var(--acid-lime);
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: -5px 5px 0 var(--acid-magenta), 5px -5px 0 var(--acid-cyan);
}

.zq-card-visual {
  height: 148px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.zq-card-visual canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.price-orb {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(4, 2, 9, 0.88);
  border: 1px solid var(--acid-lime);
  color: var(--acid-lime);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.zq-card-body {
  padding: 0.95rem 1.05rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zq-card-body h3 {
  font-size: 1.05rem;
  margin: 0.2rem 0 0.35rem;
}

.zq-card-body p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.zq-card-actions {
  display: flex;
  gap: 0.5rem;
}

.zq-mini-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-neon);
  color: var(--text-primary);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zq-mini-btn:hover {
  border-color: var(--acid-cyan);
  background: rgba(0, 240, 255, 0.18);
}

.btn-neon {
  background: linear-gradient(135deg, var(--acid-lime), var(--acid-cyan));
  color: #040209;
  border-color: var(--acid-lime);
}

.btn-neon:hover {
  background: linear-gradient(135deg, var(--acid-magenta), var(--acid-gold));
  color: #fff;
}

/* Film Layer Layout */
.film-vortex-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reel-portal-card {
  position: relative;
  height: 130px;
  border-radius: 26px 10px 26px 10px;
  overflow: hidden;
  border: 2px solid var(--acid-cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
}

#reelCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reel-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(4, 2, 9, 0.72);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.play-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--acid-lime);
  color: #040209;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 0 25px var(--acid-lime);
  flex-shrink: 0;
}

/* Comedy Layer */
.comedy-vortex-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
}

.joke-vortex-box,
.shows-vortex-box {
  background: var(--bg-card);
  border: 1px solid var(--acid-magenta);
  border-radius: 28px 10px 28px 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.joke-vortex-box.warping {
  filter: url(#liquid-warp) hue-rotate(110deg);
}

.joke-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.joke-setup {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.joke-punchline {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 0.75rem;
  text-shadow: -2px 0 rgba(255, 42, 133, 0.55), 2px 0 rgba(0, 240, 255, 0.55);
}

.joke-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(200, 255, 41, 0.14);
  color: var(--acid-lime);
  border: 1px solid var(--acid-lime);
  margin-bottom: 0.85rem;
}

.joke-actions {
  display: flex;
  gap: 0.5rem;
}

.live-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(200, 255, 41, 0.2);
  color: var(--acid-lime);
}

.zq-shows-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.zq-show-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zq-show-row h4 {
  font-size: 0.85rem;
}

.zq-show-row span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--acid-cyan);
}

.zq-clips-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Bio & Commission Layer */
.bio-vortex-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.bio-eye-card,
.bio-commission-form {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 28px 10px 28px 10px;
  padding: 1.35rem;
}

.eye-prism {
  width: 86px;
  height: 48px;
  border-radius: 75% 15%;
  transform: rotate(45deg);
  border: 2px solid var(--acid-lime);
  background: #040209;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 22px rgba(200, 255, 41, 0.45);
}

.iris {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(var(--acid-cyan), var(--acid-magenta), var(--acid-lime), var(--acid-cyan));
  display: grid;
  place-items: center;
  transform: rotate(-45deg);
}

.pupil {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #040209;
}

.bio-eye-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.bio-eye-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.bio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bio-badges span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--acid-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.bio-commission-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.inquiry-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-neon);
  color: var(--text-secondary);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  cursor: pointer;
}

.chip.active {
  background: var(--acid-lime);
  color: #040209;
  border-color: var(--acid-lime);
  font-weight: 700;
}

.compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

input,
textarea {
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: 12px;
  background: rgba(4, 2, 9, 0.82);
  border: 1px solid var(--border-neon);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--acid-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

.form-feedback {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--acid-lime);
}

/* ============================================================================
   LAYER 06: THE ZOOMQUILT CHECKOUT VORTEX
   ============================================================================ */
.checkout-vortex-panel {
  position: relative;
  overflow: hidden;
}

.checkout-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
}

.checkout-header-bar,
.checkout-grid {
  position: relative;
  z-index: 2;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.25rem;
  align-items: start;
}

.checkout-cart-col,
.checkout-pay-col {
  background: rgba(10, 5, 22, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(200, 255, 41, 0.42);
  border-radius: 28px 10px 28px 10px;
  padding: 1.15rem;
  box-shadow: -5px 5px 0 var(--acid-magenta);
}

.cart-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.clear-cart-btn {
  background: none;
  border: 1px dashed var(--acid-cyan);
  color: var(--acid-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  cursor: pointer;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 155px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.cart-item-info h4 {
  font-size: 0.84rem;
}

.cart-item-info span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--acid-cyan);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-neon);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--acid-magenta);
}

.quick-add-bar {
  margin-bottom: 0.65rem;
}

.quick-add-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.quick-pill {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.38);
  color: var(--acid-cyan);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  cursor: pointer;
}

.quick-pill:hover {
  background: var(--acid-cyan);
  color: #040209;
}

.promo-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.promo-row .zq-mini-btn {
  flex: 0 0 auto;
  padding: 0 1rem;
}

.cart-totals {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
}

.total-line.grand-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--acid-lime);
  margin-top: 0.35rem;
}

/* Checkout Payment Form */
.checkout-pay-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pay-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.pay-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-neon);
  color: var(--text-secondary);
  padding: 0.42rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  cursor: pointer;
}

.pay-tab.active {
  background: linear-gradient(135deg, var(--acid-magenta), var(--acid-violet));
  color: #fff;
  border-color: var(--acid-lime);
}

.card-fields-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.btn-checkout-submit {
  background: linear-gradient(90deg, var(--acid-lime), var(--acid-cyan), var(--acid-magenta));
  background-size: 200% auto;
  color: #040209;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 28px rgba(200, 255, 41, 0.5);
  animation: shimmerFlow 4s linear infinite;
}

.btn-checkout-submit:hover {
  transform: scale(1.03);
}

.checkout-receipt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--acid-lime);
  text-align: center;
}

/* Modal Lightbox */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 9, 0.88);
  backdrop-filter: blur(18px);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: grid;
}

.modal-dialog {
  width: min(740px, 100%);
  background: rgba(12, 6, 26, 0.95);
  border: 2px solid var(--acid-lime);
  border-radius: 34px 12px 34px 12px;
  overflow: hidden;
  position: relative;
  box-shadow: -8px 8px 0 var(--acid-magenta), 8px -8px 0 var(--acid-cyan);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--acid-lime);
  background: rgba(4, 2, 9, 0.85);
  color: var(--acid-lime);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
}

.modal-visual {
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#modalArtCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#modalOverlayContent {
  position: relative;
  z-index: 2;
}

.modal-details {
  padding: 1.4rem 1.65rem;
}

.modal-details h3 {
  font-size: 1.4rem;
  margin: 0.3rem 0;
}

.modal-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--acid-cyan);
  margin-bottom: 0.65rem;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .zq-cards-ring,
  .comedy-vortex-grid,
  .bio-vortex-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .zq-frame-ring {
    max-height: 74vh;
  }
}
