:root {
  --glow-intensity: 1;
  --studio-font: "Courier New", Courier, monospace;
  --container-glow: 0 0 14px rgba(34, 197, 94, 0.08);
  --commission-green: #00ff9d;
  --commission-amber: #ffb800;
  --commission-bg: #0a0a0a;
  --commission-surface: #0f0f0f;
  --commission-border: #2a2a2a;
  --commission-font-mono: "Space Mono", ui-monospace, monospace;
  --commission-font-display: "Syne", system-ui, sans-serif;
}
* {
  -webkit-tap-highlight-color: transparent;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 300;
  padding: 0.5rem 1rem;
  background: #000;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.5);
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
}
.skip-link:focus {
  left: 0.75rem;
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}
html {
  scroll-padding-top: calc(6.5rem + env(safe-area-inset-top, 0px));
}
#terminal-section {
  scroll-margin-top: calc(6.5rem + env(safe-area-inset-top, 0px));
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.blink {
  animation: blink 1s step-start infinite;
}
@keyframes pulse-glow {
  0% {
    box-shadow:
      0 0 calc(20px * var(--glow-intensity)) rgba(255, 0, 0, 0.8),
      0 0 calc(30px * var(--glow-intensity)) rgba(255, 0, 0, 0.4);
  }
  33.33% {
    box-shadow:
      0 0 calc(20px * var(--glow-intensity)) rgba(0, 255, 0, 0.8),
      0 0 calc(30px * var(--glow-intensity)) rgba(0, 255, 0, 0.4);
  }
  66.66% {
    box-shadow:
      0 0 calc(20px * var(--glow-intensity)) rgba(0, 0, 255, 0.8),
      0 0 calc(30px * var(--glow-intensity)) rgba(0, 0, 255, 0.4);
  }
  100% {
    box-shadow:
      0 0 calc(20px * var(--glow-intensity)) rgba(255, 0, 0, 0.8),
      0 0 calc(30px * var(--glow-intensity)) rgba(255, 0, 0, 0.4);
  }
}
.pulse-glow {
  animation: pulse-glow 6s ease-in-out infinite;
}
@keyframes beat-flash {
  0% {
    box-shadow:
      0 0 calc(30px * var(--glow-intensity)) rgba(74, 222, 128, 1),
      0 0 calc(60px * var(--glow-intensity)) rgba(74, 222, 128, 0.6);
  }
  100% {
    box-shadow: 0 0 calc(5px * var(--glow-intensity))
      rgba(74, 222, 128, 0.3);
  }
}
.beat-flash {
  animation: beat-flash 0.15s ease-out;
}
@keyframes subtle-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}
.subtle-pulse {
  animation: subtle-pulse 2s ease-in-out infinite;
}
/* Do not set position here — Tailwind .fixed on #boot-overlay must apply */
#boot-overlay {
  background: #000;
  overflow: hidden;
}

.boot-overlay-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.boot-plasma {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  isolation: isolate;
}

.boot-plasma-base {
  position: absolute;
  inset: 0;
  background: #000;
}

/* Full-frame subtle green wash, rotates 360° (minimal, not corner-locked) */
.boot-plasma-spin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200vmax;
  height: 200vmax;
  margin-left: -100vmax;
  margin-top: -100vmax;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(34, 197, 94, 0.04) 0deg,
    transparent 55deg,
    rgba(74, 222, 128, 0.09) 110deg,
    transparent 165deg,
    rgba(22, 163, 74, 0.06) 220deg,
    transparent 275deg,
    rgba(52, 211, 153, 0.07) 320deg,
    rgba(34, 197, 94, 0.04) 360deg
  );
  filter: blur(72px);
  opacity: 0.95;
  animation: boot-plasma-rotate 48s linear infinite;
  transform-origin: center center;
}

.boot-plasma-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.42;
  mix-blend-mode: screen;
  animation: boot-plasma-float 7s ease-in-out infinite;
}

.boot-plasma-blob:nth-child(3) {
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  top: 10%;
  right: -18%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(180, 255, 120, 0.55) 0%,
    rgba(34, 197, 94, 0.35) 35%,
    rgba(0, 80, 40, 0.2) 55%,
    transparent 70%
  );
  animation-delay: 0s;
}

.boot-plasma-blob:nth-child(4) {
  width: min(70vw, 380px);
  height: min(100vw, 600px);
  top: 25%;
  right: 5%;
  background: radial-gradient(
    ellipse at 60% 50%,
    rgba(0, 255, 130, 0.45) 0%,
    rgba(22, 163, 74, 0.25) 45%,
    transparent 65%
  );
  animation: boot-plasma-float 9s ease-in-out infinite reverse;
  animation-delay: -2s;
}

.boot-plasma-blob:nth-child(5) {
  width: min(60vw, 320px);
  height: min(60vw, 320px);
  bottom: 5%;
  right: 12%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(134, 239, 172, 0.4) 0%,
    rgba(34, 197, 94, 0.15) 50%,
    transparent 68%
  );
  animation: boot-plasma-pulse 5s ease-in-out infinite;
  animation-delay: -1s;
}

.boot-plasma-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  pointer-events: none;
  opacity: 0.35;
  z-index: 3;
}

.boot-matrix-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.2;
}

@media (prefers-reduced-motion: reduce) {
  .boot-plasma-spin {
    animation: none;
  }
  .boot-matrix-canvas {
    opacity: 0.08;
  }
}

.boot-plasma-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 85% at 28% 48%,
    transparent 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.28) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.boot-overlay-body {
  position: relative;
  z-index: 10;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 1.25rem 1rem 0.5rem;
  box-sizing: border-box;
}

.boot-boot-footer {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
}

@keyframes boot-plasma-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 4%) scale(1.06);
  }
}

@keyframes boot-plasma-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes boot-plasma-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.boot-skip-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.95);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  touch-action: manipulation;
}

.boot-skip-btn:hover {
  color: #ecfdf5;
  border-color: rgba(74, 222, 128, 0.85);
  background: rgba(34, 197, 94, 0.12);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.boot-terminal-card {
  position: relative;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 14px;
  padding: 2.75rem 1.35rem 1.5rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5) inset,
    0 0 48px rgba(34, 197, 94, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.boot-terminal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.5) 0%,
    transparent 45%,
    transparent 55%,
    rgba(34, 197, 94, 0.25) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.boot-enter-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem 0.4rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 1.35rem;
  text-align: center;
}

@keyframes boot-access-rgb-wave {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.boot-access-wave-text {
  background: linear-gradient(
    90deg,
    #22c55e,
    #4ade80,
    #2dd4bf,
    #38bdf8,
    #a78bfa,
    #e879f9,
    #fb7185,
    #fbbf24,
    #4ade80,
    #22c55e
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: boot-access-rgb-wave 3.5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.35));
}

@keyframes boot-kbd-rgb-cycle {
  0%,
  100% {
    border-color: #4ade80;
    box-shadow:
      0 0 12px rgba(74, 222, 128, 0.55),
      0 0 24px rgba(34, 197, 94, 0.2);
  }
  33% {
    border-color: #38bdf8;
    box-shadow:
      0 0 14px rgba(56, 189, 248, 0.5),
      0 0 28px rgba(129, 140, 248, 0.2);
  }
  66% {
    border-color: #e879f9;
    box-shadow:
      0 0 14px rgba(232, 121, 249, 0.45),
      0 0 28px rgba(251, 113, 133, 0.15);
  }
}

.boot-enter-hint kbd {
  display: inline-block;
  padding: 0.15em 0.45em 0.18em;
  margin: 0;
  font-size: 0.95em;
  line-height: 1.2;
  font-family: inherit;
  font-weight: 700;
  vertical-align: baseline;
  border-radius: 5px;
  border: 2px solid #4ade80;
  background: rgba(0, 0, 0, 0.88);
  color: #f0fdf4;
  -webkit-text-fill-color: #f0fdf4;
  animation: boot-kbd-rgb-cycle 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .boot-access-wave-text {
    animation: none;
    background: none;
    color: #86efac;
    -webkit-text-fill-color: #86efac;
    filter: none;
  }
  .boot-enter-hint kbd {
    animation: none;
    border-color: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.35);
  }
  .boot-enter-pulse {
    animation: none;
  }
}

@keyframes boot-enter-pulse-glow {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(34, 197, 94, 0.35),
      0 0 40px rgba(74, 222, 128, 0.12);
  }
  50% {
    box-shadow:
      0 0 32px rgba(74, 222, 128, 0.45),
      0 0 56px rgba(34, 197, 94, 0.2);
  }
}

.boot-enter-pulse {
  animation: boot-enter-pulse-glow 3.2s ease-in-out infinite;
}

.boot-enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  border: 2px solid rgba(74, 222, 128, 0.65);
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.15) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.2);
}

.boot-enter-btn:hover {
  border-color: #4ade80;
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.35);
  transform: translateY(-1px);
}

.boot-enter-btn span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #86efac;
}

@media (max-width: 640px) {
  .boot-skip-btn {
    top: 8px;
    right: 8px;
    padding: 7px 11px;
    font-size: 9px;
  }

  .boot-terminal-card {
    padding: 2.5rem 1rem 1.15rem;
    border-radius: 12px;
  }

  .boot-overlay-body {
    padding: 1rem 0.75rem 0.35rem;
  }
}
#body-tag {
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
  font-family: var(--studio-font);
  font-weight: 700;
}
.card-animated-border {
  position: relative;
}
.card-animated-border {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
}
.card-animated-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: 0 0 calc(8px * var(--glow-intensity)) rgba(34, 197, 94, 0.2);
  pointer-events: none;
  z-index: -1;
}
@keyframes smooth-rgb {
  0% {
    border-left-color: #ff0000;
    box-shadow: 0 0 calc(5px * var(--glow-intensity)) #ff000044;
  }
  16% {
    border-left-color: #ff7f00;
    box-shadow: 0 0 calc(5px * var(--glow-intensity)) #ff7f0044;
  }
  33% {
    border-left-color: #ffff00;
    box-shadow: 0 0 calc(5px * var(--glow-intensity)) #ffff0044;
  }
  50% {
    border-left-color: #00ff00;
    box-shadow: 0 0 calc(5px * var(--glow-intensity)) #00ff0044;
  }
  66% {
    border-left-color: #0000ff;
    box-shadow: 0 0 calc(5px * var(--glow-intensity)) #0000ff44;
  }
  83% {
    border-left-color: #4b0082;
    box-shadow: 0 0 calc(5px * var(--glow-intensity)) #4b008244;
  }
  100% {
    border-left-color: #ff0000;
    box-shadow: 0 0 calc(5px * var(--glow-intensity)) #ff000044;
  }
}
@keyframes product-image-wobble {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-0.7px) rotate(0.35deg) scale(1.003);
  }
  50% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  75% {
    transform: translateY(0.7px) rotate(-0.35deg) scale(0.998);
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
}
@keyframes star-shine {
  0% {
    text-shadow:
      0 0 8px rgba(245, 158, 11, 0.22),
      0 0 16px rgba(250, 204, 21, 0.12);
  }
  50% {
    text-shadow:
      0 0 12px rgba(245, 158, 11, 0.45),
      0 0 24px rgba(250, 204, 21, 0.24);
  }
  100% {
    text-shadow:
      0 0 8px rgba(245, 158, 11, 0.22),
      0 0 16px rgba(250, 204, 21, 0.12);
  }
}
.product-category-section {
  margin-bottom: 32px;
  padding: 1rem 1.5rem;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: visible;
  position: relative;
}
.product-category-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: 0 0 calc(8px * var(--glow-intensity)) rgba(34, 197, 94, 0.2);
  pointer-events: none;
  z-index: -1;
}
.product-category-section:first-child {
  margin-top: 0;
}
.product-category-title {
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 700;
}
.product-category-description {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #4b5563;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 300;
  line-height: 1.4;
}
.products-scroll-container {
  position: relative;
}
.products-scroll-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 52px 34px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: #22c55e #0a0a0a;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  justify-content: flex-start;
  flex-wrap: nowrap;
  scrollbar-gutter: stable;
}
.products-scroll-row::-webkit-scrollbar {
  height: 8px;
}
.products-scroll-row::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-radius: 4px;
}
.products-scroll-row::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 4px;
}
.products-scroll-row::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #22c55e;
  color: #22c55e;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: bold;
}
.scroll-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}
.scroll-btn-left {
  left: 0;
}
.scroll-btn-right {
  right: 0;
}
@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }
}
.product-card-minimal {
  flex: 0 0 auto;
  width: 252px;
  position: relative;
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
  touch-action: manipulation;
  scroll-snap-align: start;
  padding: 28px 26px 26px;
  box-sizing: border-box;
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 calc(8px * var(--glow-intensity)) rgba(34, 197, 94, 0.15);
}
.product-card-minimal:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 calc(12px * var(--glow-intensity)) rgba(34, 197, 94, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
}
.product-card-minimal:active {
  opacity: 0.7;
}
.product-card-admin-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}
.product-card-admin-actions.hidden {
  display: none;
}
.product-card-admin-edit {
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.product-card-admin-edit:hover {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(253, 224, 71, 0.75);
  color: #fde68a;
}
.product-card-admin-edit:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.65);
  outline-offset: 2px;
}
.product-card-image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}
.product-card-image-wrapper::after {
  display: none;
}
.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
  position: relative;
  z-index: 0;
  transform-origin: 50% 50%;
}
.product-card-minimal:hover .product-card-image {
  transform: scale(1.03);
  opacity: 0.9;
}
@media (prefers-reduced-motion: reduce) {
  .product-card-image {
    animation: none;
  }
}
.product-card-placeholder {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  font-size: 2.5rem;
  border-radius: 14px;
  position: relative;
  z-index: 0;
}
.product-card-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 10px 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.04em;
}
.product-card-stat-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.product-card-stat-glyph {
  font-size: 12px;
  color: #6b7280;
  line-height: 1;
  opacity: 0.9;
}
.product-card-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 14px;
  flex-shrink: 0;
  color: #6b7280;
  opacity: 0.9;
}
.product-card-stat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.product-card-stat-num {
  color: #e5e7eb;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.product-card-name {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 18px;
  margin-bottom: 12px;
  text-align: center;
  opacity: 1;
  min-height: 2.8em;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card-bundle-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #fde68a;
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 4px;
  vertical-align: middle;
}
.product-card-scheduled-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.5);
  border-radius: 4px;
  vertical-align: middle;
}
.product-card-minimal--scheduled-beat .product-card-genres:empty {
  display: none;
  margin: 0;
  min-height: 0;
}
.product-card-drop-countdown {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #a5b4fc;
  text-align: center;
  margin: 10px 0 6px;
  font-variant-numeric: tabular-nums;
  min-height: 1.4em;
}
.product-card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-content: flex-start;
  margin-bottom: 10px;
  padding: 0 4px;
}
.product-card-genre-tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9ca3af;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  line-height: 1.2;
}
.product-card-meta-tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  white-space: nowrap;
  line-height: 1.2;
}
.product-card-price {
  font-size: 20px;
  letter-spacing: 0.1em;
  color: #4ade80;
  text-transform: uppercase;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 4px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 0 calc(10px * var(--glow-intensity))
    rgba(74, 222, 128, 0.35);
}
.product-card-price--free {
  font-size: 26px;
  letter-spacing: 0.14em;
  margin-top: 12px;
  margin-bottom: 14px;
  padding: 10px 8px 12px;
  color: #4ade80;
  text-shadow:
    0 0 calc(14px * var(--glow-intensity)) rgba(74, 222, 128, 0.55),
    0 0 calc(28px * var(--glow-intensity)) rgba(34, 197, 94, 0.25);
  animation: product-free-pulse 2.8s ease-in-out infinite;
}
@keyframes product-free-pulse {
  0%,
  100% {
    filter: brightness(1);
    text-shadow:
      0 0 calc(12px * var(--glow-intensity)) rgba(74, 222, 128, 0.45),
      0 0 calc(22px * var(--glow-intensity)) rgba(34, 197, 94, 0.2);
  }
  50% {
    filter: brightness(1.08);
    text-shadow:
      0 0 calc(18px * var(--glow-intensity)) rgba(74, 222, 128, 0.65),
      0 0 calc(36px * var(--glow-intensity)) rgba(34, 197, 94, 0.32);
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-card-price--free {
    animation: none;
  }
  .product-card-rating-stars {
    animation: none;
  }
}
.product-card-price--coins {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  text-shadow: none;
}
.product-card-coin-tip-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-card-coin-tip-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(234, 179, 8, 0.45);
  background: rgba(234, 179, 8, 0.1);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: help;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.product-card-coin-tip-btn:hover,
.product-card-coin-tip-btn:focus-visible {
  outline: none;
  border-color: #fbbf24;
  background: rgba(234, 179, 8, 0.2);
  color: #fde68a;
}
.product-card-coin-tip-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(220px, 70vw);
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.45;
  text-transform: none;
  text-align: left;
  color: #e5e7eb;
  background: rgba(12, 12, 12, 0.96);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  z-index: 20;
}
.product-card-coin-tip-pop::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: rgba(234, 179, 8, 0.35);
}
.product-card-coin-tip-anchor:hover .product-card-coin-tip-pop,
.product-card-coin-tip-anchor:focus-within .product-card-coin-tip-pop,
.product-card-coin-tip-anchor.is-open .product-card-coin-tip-pop {
  opacity: 1;
  visibility: visible;
}
.product-card-coin-tip-anchor.is-open .product-card-coin-tip-pop {
  pointer-events: auto;
}
.product-card-rating {
  color: #d1d5db;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 6px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.product-card-rating-stars {
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #f59e0b;
  text-shadow: 0 0 calc(8px * var(--glow-intensity))
    rgba(245, 158, 11, 0.35);
  animation: star-shine 1.9s ease-in-out infinite;
}
.product-card-rating-meta {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9ca3af;
}
.product-card-rating-cta {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  line-height: 1.4;
  padding: 4px 8px;
}
.product-card-rating.unrated {
  color: #6b7280;
}
.product-card-rating.unrated .product-card-rating-stars {
  color: #6b7280;
  text-shadow: none;
  animation: none;
}
.product-card-rating.unrated .product-card-rating-meta {
  color: #6b7280;
}
#products-container {
  overflow: visible;
}
@media (max-width: 768px) {
  .product-category-section {
    margin-bottom: 24px;
    padding: 24px 20px;
  }
  .product-card-minimal {
    width: 212px;
    padding: 22px 20px 20px;
  }
  .product-card-name {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .product-category-section {
    margin-bottom: 20px;
    padding: 16px 12px;
  }
  .product-card-minimal {
    width: 184px;
    padding: 18px 14px 16px;
  }
  .product-card-name {
    font-size: 12px;
  }
  .products-scroll-row {
    gap: 14px;
    padding: 16px 0 28px;
  }
}

#boot-text .terminal-initial-text {
  display: block;
  width: 100%;
  text-align: left;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-initial-text {
  color: #22c55e;
  display: inline;
}
.boot-ascii {
  color: #22c55e;
  font-size: 10px;
  line-height: 1.25;
  white-space: pre;
  overflow-x: auto;
  text-align: center;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 0;
  padding-bottom: 14px;
  margin-bottom: 14px;
  opacity: 0.92;
  box-sizing: border-box;
}

.boot-ascii::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 197, 94, 0.25) 15%,
    rgba(74, 222, 128, 0.85) 50%,
    rgba(34, 197, 94, 0.25) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 10px rgba(74, 222, 128, 0.35),
    0 0 20px rgba(34, 197, 94, 0.15);
}
.boot-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}
.boot-social-handle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e4e4e7;
  text-align: center;
  text-shadow:
    0 0 20px rgba(74, 222, 128, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.8);
}
.boot-social-handle .boot-social-accent {
  color: #4ade80;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.boot-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.boot-social-link {
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #f4f4f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(34, 197, 94, 0.12);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.boot-social-link:hover {
  border-color: rgba(74, 222, 128, 0.85);
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(74, 222, 128, 0.25);
}
.boot-social-link svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}
.boot-social-link svg path[fill="currentColor"],
.boot-social-link svg circle[fill="currentColor"] {
  stroke: none;
}
@media (max-width: 640px) {
  .boot-ascii {
    font-size: 8px;
    line-height: 1.2;
  }
  .boot-social-handle {
    font-size: 13px;
    padding: 0 0.5rem;
  }
  .boot-social-link {
    width: 48px;
    height: 48px;
  }
  .boot-social-link svg {
    width: 22px;
    height: 22px;
  }
  .boot-social-row {
    gap: 14px;
  }
}
.cmd-product-name {
  color: #fff;
  font-weight: bold;
}
.cmd-product-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(34, 197, 94, 0.45);
}
.cmd-product-link:hover {
  color: #22c55e;
  border-bottom-color: #22c55e;
}
.cmd-response {
  color: #a1a1aa;
}
.cmd-keyword {
  color: #22c55e;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.cmd-clickable {
  cursor: pointer;
}
.cmd-clickable:hover {
  color: #4ade80;
}
.cmd-clickable.cmd-copied {
  color: #86efac;
}
.cmd-unknown {
  color: #ff5555;
}
.cmd-price {
  color: #facc15;
}
.cmd-bpm {
  color: #4ade80;
}
.cmd-key {
  color: #c084fc;
}
.cmd-sample {
  color: #fb7185;
}
.cmd-separator {
  color: #4b5563;
}
#terminal-prompt-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
  margin-right: 8px;
  flex-shrink: 0;
}
#terminal-prompt-line .blink {
  margin-left: 2px;
  color: #6b7280;
}
.terminal-entry-row {
  display: flex;
  align-items: center;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.95) 0%,
    rgba(0, 0, 0, 0.92) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 11px 14px;
  margin-top: 10px;
}
#terminal-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #22c55e;
  font-size: 16px;
  font-weight: 500;
  padding-left: 2px;
  caret-color: #39ff14;
}
#terminal-input::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-weight: 600;
  letter-spacing: 0.04em;
}
#terminal-input:focus {
  outline: none;
}
#terminal-output {
  height: 300px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #22c55e #111;
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 2px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}
#terminal-output::-webkit-scrollbar {
  width: 6px;
}
#terminal-output::-webkit-scrollbar-track {
  background: #111;
}
#terminal-output::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 3px;
}
/* Phosphor CRT readout (scoped to retro shell) */
.terminal-crt-screen #terminal-output {
  background: linear-gradient(
    180deg,
    #0a110e 0%,
    #050a07 40%,
    #08100c 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.11);
  box-shadow:
    inset 0 0 48px rgba(0, 0, 0, 0.58),
    inset 0 0 100px rgba(0, 35, 18, 0.14);
  color: #7ee2ac;
}
.terminal-crt-screen #terminal-output .cmd-response {
  color: #9aecc4;
  text-shadow:
    0 0 12px rgba(74, 222, 128, 0.22),
    0 0 2px rgba(34, 197, 94, 0.35);
}
.terminal-crt-screen #terminal-output .cmd-keyword {
  color: #b8f7d0;
  text-shadow: 0 0 14px rgba(134, 239, 172, 0.3);
}
.terminal-crt-screen #terminal-output .cmd-ascii {
  color: #72e8a8;
  text-shadow: 0 0 16px rgba(74, 222, 128, 0.18);
  letter-spacing: normal;
}
.terminal-crt-screen #terminal-output .terminal-initial-text {
  color: #86efb5;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.22);
}
.terminal-crt-screen .terminal-entry-row--crt {
  background: rgba(4, 12, 8, 0.82);
  border: 1px solid rgba(34, 197, 94, 0.12);
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.45),
    inset 0 0 40px rgba(0, 30, 14, 0.08);
}
.terminal-crt-screen #terminal-input {
  color: #8af0bc;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}
.terminal-crt-screen #terminal-input::placeholder {
  color: #3d5a4a;
  text-shadow: none;
}
.terminal-crt-screen .terminal-cursor-block {
  background: #62e090;
  box-shadow:
    0 0 12px rgba(98, 224, 144, 0.4),
    0 0 4px rgba(34, 197, 94, 0.35);
}
.cmd-ascii-wrap {
  display: block;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  text-align: left;
  margin: 4px 0 6px;
}
.cmd-ascii-wrap .cmd-ascii {
  display: block;
  width: max-content;
  max-width: none;
  text-align: left;
  margin: 0;
  letter-spacing: normal;
}
.terminal-shell {
  position: relative;
  overflow: hidden;
  box-shadow: var(--container-glow);
}
.terminal-shell:not(.terminal-crt-shell)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.terminal-shell > * {
  position: relative;
  z-index: 1;
}
/* Retro CRT + pixel-wood frame */
.terminal-crt-shell {
  padding: 0;
  background: transparent;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(20, 12, 6, 0.9);
  border-radius: 8px;
}
.terminal-crt-frame {
  position: relative;
  padding: 10px;
  border-radius: 6px;
  background-color: #2a1a0f;
  background-image:
    repeating-linear-gradient(
      90deg,
      #3d2818 0px,
      #3d2818 3px,
      #2d1c12 3px,
      #2d1c12 6px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.12) 0px,
      transparent 1px,
      transparent 2px,
      rgba(0, 0, 0, 0.08) 3px
    ),
    linear-gradient(145deg, #4a3322 0%, #1f140c 48%, #2d1e14 100%);
  background-blend-mode: normal, multiply, normal;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    0 0 0 2px #0d0805,
    0 0 0 4px #3a2618;
  image-rendering: pixelated;
}
.terminal-crt-chrome {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px 12px;
  margin: -2px -2px 0 -2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}
.terminal-crt-title {
  margin: 0;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(210, 200, 188, 0.55);
  text-align: center;
}
/* Bottom hardware: one 3.5" disk drive face + rotary knobs */
.terminal-crt-hardware-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, #1c1612 0%, #12100e 100%);
  border-radius: 0 0 4px 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.terminal-crt-drives {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.terminal-crt-disk-drive {
  flex-shrink: 0;
  pointer-events: none;
}
@keyframes terminal-crt-drive-led-blink {
  0%,
  91%,
  100% {
    background: radial-gradient(
      circle at 35% 30%,
      #223828,
      #0d1810 70%,
      #040604
    );
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.08),
      inset 0 -1px 2px rgba(0, 0, 0, 0.88),
      0 0 0 1px #0a0a0a;
  }
  93.5%,
  95.5% {
    background: radial-gradient(
      circle at 35% 30%,
      #5ee88a,
      #2a8f4a 55%,
      #0f2418
    );
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.2),
      inset 0 -1px 2px rgba(0, 0, 0, 0.55),
      0 0 0 1px #0a0a0a,
      0 0 5px rgba(74, 222, 128, 0.28);
  }
}
.terminal-crt-drive-chassis {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 218px;
  height: 36px;
  padding: 0 9px 0 8px;
  box-sizing: border-box;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07) 0%,
      transparent 22%
    ),
    linear-gradient(
      180deg,
      #3a3a3a 0%,
      #2e2e2e 12%,
      #242424 45%,
      #181818 100%
    );
  border: 1px solid #070707;
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 3px rgba(0, 0, 0, 0.45),
    0 2px 5px rgba(0, 0, 0, 0.5);
}
/* Corner rivets */
.terminal-crt-drive-chassis::before,
.terminal-crt-drive-chassis::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #5a5a5a,
    #2a2a2a 55%,
    #101010
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 1px rgba(0, 0, 0, 0.6);
  top: 4px;
}
.terminal-crt-drive-chassis::before {
  left: 5px;
}
.terminal-crt-drive-chassis::after {
  right: 5px;
}
.terminal-crt-drive-bezel {
  flex: 1;
  min-width: 0;
  height: 24px;
  padding: 5px 6px 4px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
  border: 1px solid #000;
  border-radius: 1px;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.04);
}
.terminal-crt-drive-slit {
  position: relative;
  height: 8px;
  border-radius: 1px;
  background: #020202;
  border: 1px solid #252525;
  box-shadow:
    inset 0 3px 5px rgba(0, 0, 0, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
/* Metal shutter + dark read window (3.5" mechanism) */
.terminal-crt-drive-shutter {
  display: block;
  position: absolute;
  left: 2px;
  right: 2px;
  top: 1px;
  bottom: 1px;
  border-radius: 0.5px;
  background: linear-gradient(
    90deg,
    #7a8088 0%,
    #9aa0a8 6%,
    #5c6168 18%,
    #2f3236 26%,
    #0c0c0e 34%,
    #030304 40%,
    #030304 60%,
    #0c0c0e 66%,
    #2f3236 74%,
    #5c6168 82%,
    #9aa0a8 94%,
    #7a8088 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.terminal-crt-drive-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  padding-top: 1px;
}
.terminal-crt-drive-led {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #2d5a3d,
    #0f2418 70%,
    #050a07
  );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -1px 2px rgba(0, 0, 0, 0.8),
    0 0 0 1px #0a0a0a;
  animation: terminal-crt-drive-led-blink 3.4s linear infinite;
}
.terminal-crt-drive-eject {
  width: 11px;
  height: 13px;
  border-radius: 1px;
  background: linear-gradient(180deg, #454545 0%, #2c2c2c 45%, #1f1f1f 100%);
  border: 1px solid #0a0a0a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 3px rgba(0, 0, 0, 0.5),
    0 1px 1px rgba(0, 0, 0, 0.35);
  position: relative;
}
.terminal-crt-drive-eject::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 0;
  height: 0;
  margin-left: -3px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 4px solid rgba(0, 0, 0, 0.55);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.06));
}
.terminal-crt-knobs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
  padding: 2px 0 4px;
}
.terminal-crt-knob {
  --knob-angle: 0deg;
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: grab;
  touch-action: none;
  user-select: none;
  background: radial-gradient(
    circle at 35% 30%,
    #4d4d4d 0%,
    #353535 28%,
    #242424 55%,
    #141414 100%
  );
  border: 1px solid #080808;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.55),
    inset 0 -2px 3px rgba(255, 255, 255, 0.04),
    0 2px 3px rgba(0, 0, 0, 0.45);
}
.terminal-crt-knob::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    #3a3a3a 0%,
    #252525 60%,
    #181818 100%
  );
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
/* Pointer ridge — pivots from tube center (matte) */
.terminal-crt-knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 9px;
  margin-left: -1px;
  margin-top: -9px;
  background: linear-gradient(180deg, #383838, #0a0a0a);
  border-radius: 1px;
  transform-origin: 50% 100%;
  transform: rotate(var(--knob-angle));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.terminal-crt-knob:active {
  cursor: grabbing;
}
.terminal-crt-knob:focus {
  outline: none;
}
.terminal-crt-knob:focus-visible {
  outline: 2px solid rgba(74, 222, 128, 0.45);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .terminal-crt-drive-led {
    animation: none;
    background: radial-gradient(
      circle at 35% 30%,
      #2f6040,
      #122818 70%,
      #060c08
    );
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.1),
      inset 0 -1px 2px rgba(0, 0, 0, 0.75),
      0 0 0 1px #0a0a0a,
      0 0 4px rgba(34, 197, 94, 0.2);
  }
}
.terminal-crt-screen {
  position: relative;
  padding: 8px;
  border-radius: 6px;
  background: linear-gradient(145deg, #0d120f 0%, #050806 48%, #0a100d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.65),
    inset 0 0 32px rgba(0, 0, 0, 0.5),
    inset 0 0 80px rgba(0, 25, 12, 0.25);
}
.terminal-crt-scanlines {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  z-index: 3;
  border-radius: 2px;
  opacity: 0.18;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.5) 2px,
    rgba(0, 0, 0, 0.5) 3px
  );
  mix-blend-mode: multiply;
}
.terminal-crt-noise-layer {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  z-index: 2;
  border-radius: 2px;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: overlay;
}
.terminal-crt-screen-vignette {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  z-index: 1;
  border-radius: 2px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
}
.terminal-crt-screen .terminal-history-shell {
  position: relative;
  z-index: 4;
  margin-bottom: 8px;
}
.terminal-crt-screen .terminal-entry-row--crt {
  position: relative;
  z-index: 4;
  margin-top: 0;
}
.terminal-crt-footer-stats {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 14px 14px 12px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.35);
}
.terminal-crt-footer-stats .terminal-stat-list {
  color: #9fb5a8;
}
.terminal-crt-footer-stats .text-gray-500 {
  color: #5a6b62 !important;
}
@keyframes terminal-cursor-blink-step {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
.terminal-cursor-block {
  display: inline-block;
  width: 0.52em;
  height: 1.12em;
  margin-left: 4px;
  vertical-align: -0.12em;
  flex-shrink: 0;
  background: #39ff14;
  box-shadow:
    0 0 6px rgba(57, 255, 20, 0.55),
    0 0 14px rgba(34, 197, 94, 0.35);
  animation: terminal-cursor-blink-step 1.05s step-end infinite;
}
.terminal-kind-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-header {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ffffff;
  font-weight: 700;
}
.terminal-history-shell {
  margin-bottom: 12px;
}
.terminal-history-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 6px;
}
.text-xs {
  font-size: 0.9rem;
}
.text-sm {
  font-size: 1rem;
}
.cmd-ascii {
  color: #22c55e;
  white-space: pre;
  display: block;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
/* ── Product card panel ───────────────────────────────────── */
#turntable-display {
  background: linear-gradient(
    165deg,
    #181818 0%,
    #101010 42%,
    #0a0a0a 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.72),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(34, 197, 94, 0.09),
    0 0 40px rgba(34, 197, 94, 0.04);
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.3s ease,
    padding 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  margin-bottom: 0;
}
#turntable-display.active {
  max-height: 2400px;
  opacity: 1;
  overflow: visible;
  margin-bottom: 1.75rem;
}
/* Future-scheduled solo beat: cover + tags, no preview chrome or description shell */
#turntable-display.turntable-scheduled-beat .td-play-wave-row,
#turntable-display.turntable-scheduled-beat #td-no-preview,
#turntable-display.turntable-scheduled-beat #td-waveform-wrap,
#turntable-display.turntable-scheduled-beat #td-volume-wrap,
#turntable-display.turntable-scheduled-beat #play-pause-btn {
  display: none !important;
}
#turntable-display.turntable-scheduled-beat .td-desc-container {
  display: none !important;
}
#turntable-display.turntable-scheduled-beat .td-header-player {
  padding-top: 0;
}
.td-card-inner {
  --td-inner-pad-l: 1.625rem;
  --td-inner-pad-r: 3.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1.25rem var(--td-inner-pad-r) 1.25rem var(--td-inner-pad-l);
  position: relative;
  border-radius: 17px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 28%
  );
}
/* Hero — full width inside #turntable-display; text below stays padded */
.td-hero {
  position: relative;
  align-self: stretch;
  width: calc(100% + var(--td-inner-pad-l) + var(--td-inner-pad-r));
  max-width: none;
  margin-left: calc(-1 * var(--td-inner-pad-l));
  margin-right: calc(-1 * var(--td-inner-pad-r));
  margin-top: -1.25rem;
  margin-bottom: 0.5rem;
  border-radius: 13px;
  overflow: hidden;
  z-index: 0;
  box-sizing: border-box;
  border: none;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.td-hero-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2.15 / 1;
  min-height: 148px;
  max-height: min(44vw, 300px);
  background: #0a0a0a;
  border-radius: inherit;
}
.td-hero-cover .td-cover-wrap {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none;
}
.td-hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* Tall soft falloff so the photo never “cuts off” — matches card body */
  height: min(82%, 280px);
  min-height: 140px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(16, 16, 18, 0) 0%,
    rgba(16, 16, 18, 0) 18%,
    rgba(12, 12, 14, 0.35) 38%,
    rgba(10, 10, 12, 0.72) 58%,
    rgba(14, 14, 16, 0.92) 76%,
    #101010 92%,
    #101010 100%
  );
}
/* Hero: full-bleed cover — no side padding, rings, or card frame */
.td-hero-cover .td-cover-wrap.is-beat {
  padding: 0;
  border-radius: 0;
}
.td-hero-cover .td-cover-wrap.is-beat .cover-scene {
  border-radius: 0 !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
}
.td-hero-cover .td-cover-wrap.is-beat .cover-depth-ring-1,
.td-hero-cover .td-cover-wrap.is-beat .cover-glare {
  border-radius: 0 !important;
}
.td-hero-cover .td-cover-wrap.is-beat #cover-area .record-platter {
  border-radius: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
.td-hero-cover .td-cover-wrap.is-beat #cover-area .record-platter-media,
.td-hero-cover .td-cover-wrap.is-beat #cover-area .record-cover,
.td-hero-cover
  .td-cover-wrap.is-beat
  #cover-area
  .record-platter-media
  .placeholder-cover {
  border-radius: 0 !important;
}
.td-hero-cover .td-cover-wrap.is-kit {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.td-hero-cover .td-cover-wrap.is-kit .static-cover-container {
  border-radius: 0 !important;
}
.td-hero-cover .td-cover-wrap.is-kit .static-cover {
  border-radius: 0 !important;
}
/* Left column (legacy; hero replaces layout) */
.td-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  width: 168px;
}
.td-cover-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 12px;
  overflow: visible;
  background: transparent;
  perspective: 640px;
  perspective-origin: 50% 42%;
}
/* Square variant for beats — shared radii + inset; single hairline frame */
.td-cover-wrap.is-beat {
  --beat-cover-r: 10px;
  --beat-inset: 4px;
  border-radius: var(--beat-cover-r);
  overflow: visible;
  border: none;
  background: transparent;
  padding: 4px;
  box-sizing: border-box;
  perspective: none;
}
.td-cover-wrap.is-beat #cover-area {
  position: relative;
  z-index: 1;
  background: transparent;
}
/* Beats: label is unused (text cleared in JS) but the bar still painted a dark rect */
.td-cover-wrap.is-beat .td-cover-label {
  display: none;
}
/* Clip parallax stack; thin frame only needs a small outer margin */
.td-cover-wrap.is-beat .cover-scene {
  border-radius: var(--beat-cover-r);
  -webkit-clip-path: inset(-6px round calc(var(--beat-cover-r) + 6px));
  clip-path: inset(-6px round calc(var(--beat-cover-r) + 6px));
}
/* Hide extra depth layers — one even ring reads cleaner than stacked glows */
.td-cover-wrap.is-beat .cover-depth-ring-2,
.td-cover-wrap.is-beat .cover-depth-ring-3 {
  display: none;
}
.td-cover-wrap.is-beat .cover-depth-ring-1 {
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  border-radius: var(--beat-cover-r);
  animation: none !important;
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.33),
    0 2px 8px rgba(0, 0, 0, 0.4);
}
.td-cover-wrap.is-beat .cover-wrapper {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* Square variant for kits */
.td-cover-wrap.is-kit {
  border-radius: 14px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(145deg, #141414, #0a0a0a);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 16px 36px rgba(0, 0, 0, 0.5);
}
.td-cover-3d {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: inherit;
  touch-action: none;
  --td-look-x: 50%;
  --td-look-y: 42%;
  transform-style: preserve-3d;
}
.td-cover-wrap.is-kit .td-cover-3d {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}
/* Beat cover: parallax scene (perspective on parent) */
.cover-scene {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 600px;
  perspective-origin: 50% 42%;
  --cover-glare-x: 50%;
  --cover-glare-y: 42%;
  touch-action: none;
}
.cover-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}
@keyframes cover-depth-ring-green {
  0%,
  100% {
    box-shadow:
      0 0 0 0.5px rgba(74, 222, 128, 0.2),
      0 0 10px rgba(34, 197, 94, 0.28),
      0 0 22px rgba(34, 197, 94, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 0.5px rgba(190, 242, 100, 0.45),
      0 0 18px rgba(74, 222, 128, 0.5),
      0 0 34px rgba(34, 197, 94, 0.22);
  }
}
.cover-depth-ring {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  border: none;
  box-sizing: border-box;
  animation: cover-depth-ring-green 2.6s ease-in-out infinite;
}
.cover-depth-ring-1 {
  top: -8px;
  right: -8px;
  bottom: -8px;
  left: -8px;
  transform: translateZ(-6px);
  animation-delay: 0s;
}
.cover-depth-ring-2 {
  top: -16px;
  right: -16px;
  bottom: -16px;
  left: -16px;
  transform: translateZ(-14px);
  animation-delay: -0.87s;
}
.cover-depth-ring-3 {
  top: -26px;
  right: -26px;
  bottom: -26px;
  left: -26px;
  transform: translateZ(-24px);
  animation-delay: -1.74s;
}
.td-cover-wrap.is-beat .cover-depth-ring {
  border-radius: var(--beat-cover-r);
}
.td-cover-wrap.is-beat .cover-glare {
  border-radius: var(--beat-cover-r);
  opacity: 0.16;
  mix-blend-mode: overlay;
  background: radial-gradient(
    circle at var(--cover-glare-x) var(--cover-glare-y),
    rgba(255, 255, 255, 0.1) 0%,
    transparent 52%
  );
}
.cover-glare {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.5;
  transform: translateZ(10px);
  background: radial-gradient(
    circle at var(--cover-glare-x) var(--cover-glare-y),
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.03) 32%,
    transparent 58%
  );
}
.td-cover-3d-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  border-radius: inherit;
  will-change: transform;
}
.td-cover-3d.is-idle .td-cover-3d-inner {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.td-cover-3d-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      ellipse 95% 85% at var(--td-look-x) var(--td-look-y),
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.04) 28%,
      transparent 52%
    ),
    linear-gradient(
      125deg,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, 0.09) 48%,
      rgba(255, 255, 255, 0) 58%
    );
  mix-blend-mode: soft-light;
  opacity: 0.92;
  transform: translateZ(4px);
}
.td-cover-wrap.is-beat .td-cover-3d-shine {
  border-radius: var(--beat-cover-r);
}
/* Favorite overlay button — top-right of the card */
.td-fav-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 15;
  background: rgba(18, 18, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #6b7280;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  line-height: 1;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 20px rgba(0, 0, 0, 0.45);
}
.td-fav-overlay:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(248, 113, 113, 0.15);
  transform: translateY(-1px);
}
.td-fav-overlay.favorited {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.15);
}
/* Description container */
.td-desc-container {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 2px solid #00c853;
  border-radius: 14px;
  padding: 16px 18px 16px 20px;
  margin-bottom: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.25);
}
/* Tags container — genre on top, divider, then license */
.td-tags-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.025) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 22px rgba(0, 0, 0, 0.32);
}
.td-tags-genre-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
  padding-bottom: 12px;
}
.td-tags-divider {
  width: 100%;
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 15%,
    rgba(255, 255, 255, 0.14) 85%,
    transparent 100%
  );
  margin: 4px 0 12px;
}
.td-tags-container:not(.td-tags-has-license) .td-tags-divider {
  display: none;
}
.td-tags-license-col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}
.td-tags-container:not(.td-tags-has-license) .td-tags-license-col {
  display: none;
}
.td-tags-container:not(.td-tags-has-license) .td-tags-genre-col {
  padding-bottom: 0;
}
.td-tags-genre-heading {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
}
#turntable-tags.td-tags-genre-chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  row-gap: 4px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 2px 0 4px;
  box-sizing: border-box;
}
#turntable-tags.td-tags-genre-chips::-webkit-scrollbar {
  height: 4px;
}
#turntable-tags.td-tags-genre-chips::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.35);
  border-radius: 999px;
}
#cover-area {
  width: 100%;
  height: 100%;
}
/* Kits: square fill */
#cover-area .static-cover-container {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
#cover-area .static-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform: translateZ(1px) scale(1.08);
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
/* Beats: square record (no outer shadows; clip matches 3D frame) */
#cover-area .record-platter {
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  transform: translateZ(2px);
  transform-style: preserve-3d;
}
#cover-area .record-platter-media {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
#cover-area .record-cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
  opacity: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0.5px);
}
#cover-area .record-platter-media .placeholder-cover {
  border-radius: 12px;
}
/* Beat art: inset mat + inner radius tracks outer frame (via --beat-cover-r / --beat-inset) */
.td-cover-wrap.is-beat #cover-area .record-platter {
  border-radius: var(--beat-cover-r) !important;
  padding: var(--beat-inset);
  background: linear-gradient(165deg, #0e0e0e 0%, #080808 100%);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none;
  overflow: hidden;
}
.td-cover-wrap.is-beat #cover-area .record-platter-media {
  border-radius: calc(var(--beat-cover-r) - var(--beat-inset));
}
.td-cover-wrap.is-beat #cover-area .record-cover {
  border-radius: calc(var(--beat-cover-r) - var(--beat-inset));
}
.td-cover-wrap.is-beat #cover-area .record-platter-media .placeholder-cover {
  border-radius: calc(var(--beat-cover-r) - var(--beat-inset));
}
.td-cover-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
  font-size: 9px;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 4;
}
.td-controls {
  display: flex;
  gap: 10px;
}
.td-btn-play {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.18) 0%,
    rgba(34, 197, 94, 0.08) 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.42);
  border-radius: 12px;
  color: #86efac;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    border-width 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    color 0.22s ease;
  min-height: 56px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 6px 16px rgba(0, 0, 0, 0.35);
}
.td-btn-play:hover {
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.28) 0%,
    rgba(34, 197, 94, 0.12) 100%
  );
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 10px 22px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(34, 197, 94, 0.18);
  transform: translateY(-1px);
}
.td-btn-play.is-playing {
  border-width: 2px;
  border-color: rgba(74, 222, 128, 0.95);
  padding: 13px 11px;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.42) 0%,
    rgba(34, 197, 94, 0.2) 100%
  );
  color: #d1fae5;
  /* Tighter glow, biased upward so it does not wash over the player below */
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.35) inset,
    0 -4px 14px rgba(34, 197, 94, 0.28),
    0 -2px 28px rgba(34, 197, 94, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.4);
  transform: scale(1.02);
}
.td-btn-play.is-playing:hover {
  border-color: rgba(134, 239, 172, 1);
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.45) inset,
    0 -5px 18px rgba(34, 197, 94, 0.34),
    0 -3px 32px rgba(34, 197, 94, 0.14),
    0 8px 20px rgba(0, 0, 0, 0.42);
  transform: scale(1.02) translateY(-1px);
}
.td-btn-play .td-btn-play-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: width 0.22s ease, height 0.22s ease;
}
.td-btn-play.is-playing .td-btn-play-icon {
  width: 28px;
  height: 28px;
}
.td-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.td-turntable-back-wrap {
  width: 100%;
  margin-top: 12px;
  margin-bottom: 2px;
}
.td-btn-back--footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  margin-top: 0;
  background: linear-gradient(
    180deg,
    rgba(127, 29, 29, 0.55) 0%,
    rgba(69, 10, 10, 0.72) 100%
  ) !important;
  border: 1px solid rgba(248, 113, 113, 0.55) !important;
  color: #fecaca !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 22px rgba(0, 0, 0, 0.4) !important;
}
.td-btn-back--footer:hover {
  background: linear-gradient(
    180deg,
    rgba(185, 28, 28, 0.55) 0%,
    rgba(127, 29, 29, 0.78) 100%
  ) !important;
  border-color: rgba(252, 165, 165, 0.85) !important;
  color: #fff1f2 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 26px rgba(0, 0, 0, 0.45) !important;
}
.td-btn-back--footer:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.85);
  outline-offset: 2px;
}
.td-btn-back:hover .td-btn-back-label {
  text-decoration: none;
}
.td-btn-back-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.9;
}
/* Right column */
.td-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.td-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
  margin-top: 2px;
}
.td-controls.td-controls--header {
  flex: 1 1 auto;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  min-width: min(100%, 220px);
  max-width: 100%;
}
.td-controls.td-controls--header .td-btn-play {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.td-controls.td-controls--header .td-btn-play-icon {
  width: 18px;
  height: 18px;
}
.td-controls.td-controls--header .td-btn-play.is-playing .td-btn-play-icon {
  width: 22px;
  height: 22px;
}
.td-type-badge {
  display: inline-block;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.2) 0%,
    rgba(34, 197, 94, 0.1) 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 12px;
  line-height: 1.2;
  margin: 0;
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 6px 16px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(34, 197, 94, 0.08);
}
.td-fav-overlay.busy {
  opacity: 0.5;
  pointer-events: none;
}
.td-title {
  font-family: var(--studio-font);
  font-size: clamp(1.5rem, 4.2vw, 2.05rem);
  font-weight: 800;
  color: #f0fdf4;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.35rem 0;
  word-break: break-word;
  text-shadow:
    0 0 40px rgba(34, 197, 94, 0.12),
    0 1px 0 rgba(0, 0, 0, 0.4);
}
.td-title-sub {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(167, 243, 208, 0.82);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}
.td-title-sub.hidden {
  display: none;
}
/* Meta pills — flex row */
.turntable-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.turntable-meta-pill {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border-radius: 13px;
  padding: 12px 22px;
  min-width: 92px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 8px 18px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.22);
}
.turntable-meta-label {
  color: #b8c0cc;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.turntable-meta-value {
  color: #f9fafb;
  font-size: 16px;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1.35;
  word-break: break-word;
}
/* Inline stats row — dividers, no chip boxes */
.turntable-meta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35rem;
  margin: 0 0 1rem 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #a1a1aa;
}
.turntable-meta-inline-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}
.turntable-meta-inline-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #71717a;
}
.turntable-meta-inline-value {
  font-weight: 600;
  color: #e4e4e7;
  font-variant-numeric: tabular-nums;
}
.turntable-meta-sep {
  color: #3f3f46;
  font-weight: 300;
  user-select: none;
  margin: 0 0.2rem;
}
.td-play-wave-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 4px 0 2px 0;
  margin-top: 0;
}
#td-kit-preview-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 2px 0 6px 0;
}
#td-kit-preview-stack .td-index-kit-card {
  width: 100%;
  min-width: 0;
}
#td-kit-preview-stack .protected-audio-block > audio {
  display: none;
}
#td-kit-preview-stack .audio-wrapper {
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  box-sizing: border-box;
}
#td-kit-preview-stack .player-visualizer {
  width: 100%;
  height: 56px;
  display: block;
  border-radius: 2px;
  background: #000;
}
#td-kit-preview-stack .player-controls-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
#td-kit-preview-stack .player-time {
  font-size: 0.75rem;
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
  min-width: 5.5rem;
  text-align: right;
}
#td-kit-preview-stack .player-play-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #22c55e 0%, #15803d 55%, #166534 100%);
  color: #ecfdf5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 3px 10px rgba(34, 197, 94, 0.35);
}
#td-kit-preview-stack .player-play-btn:hover {
  filter: brightness(1.06);
}
#td-kit-preview-stack .player-play-btn.is-playing {
  background: linear-gradient(145deg, #bbf7d0 0%, #4ade80 45%, #22c55e 100%);
  color: #064e3b;
}
#td-kit-preview-stack .player-play-btn svg {
  width: 18px;
  height: 18px;
}
#td-kit-preview-stack .player-progress {
  flex: 1;
  min-width: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
#td-kit-preview-stack .player-progress-fill {
  height: 100%;
  width: 0%;
  background: #22c55e;
  border-radius: 3px;
  pointer-events: none;
}
.td-play-wave-row .td-preview-side {
  flex: 1;
  min-width: 0;
  gap: 4px;
}
.td-btn-play--circle {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: linear-gradient(
    145deg,
    #22c55e 0%,
    #15803d 55%,
    #166534 100%
  );
  color: #ecfdf5;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 14px rgba(34, 197, 94, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.45);
}
.td-btn-play--circle:hover {
  background: linear-gradient(
    145deg,
    #4ade80 0%,
    #22c55e 50%,
    #15803d 100%
  );
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 6px 20px rgba(34, 197, 94, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.5);
  transform: scale(1.04);
}
.td-btn-play--circle .td-btn-play-icon {
  width: 24px;
  height: 24px;
  color: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}
.td-btn-play--circle.is-playing {
  background: linear-gradient(
    145deg,
    #bbf7d0 0%,
    #4ade80 45%,
    #22c55e 100%
  );
  color: #064e3b;
  border: none;
  padding: 0;
  transform: scale(1.05);
  box-shadow:
    0 0 0 2px rgba(6, 78, 59, 0.35) inset,
    0 4px 18px rgba(34, 197, 94, 0.4),
    0 8px 28px rgba(0, 0, 0, 0.45);
}
.td-btn-play--circle.is-playing .td-btn-play-icon {
  width: 22px;
  height: 22px;
  filter: none;
}
/* Description */
#turntable-desc {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 0;
}
#turntable-desc p {
  margin: 0 0 6px 0;
}
#turntable-desc p:last-child {
  margin-bottom: 0;
}
#turntable-desc strong,
#turntable-desc b {
  color: #d1fae5;
}
#turntable-desc em,
#turntable-desc i {
  color: #bfdbfe;
}
#turntable-desc a {
  color: #86efac;
  text-decoration: underline;
}
/* Tags */
.td-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.turntable-tag-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(190, 242, 196, 0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.3;
  box-shadow: none;
}
/* Waveform + view — directly under PLAY / BACK row */
.td-header-player {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 0;
  margin-bottom: 14px;
}
.td-preview-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.td-header-player .td-waveform-row {
  width: 100%;
}
.td-header-player .td-view-btn {
  width: 100%;
  max-width: 100%;
  margin-top: 2px;
}
.td-header-player .td-no-preview {
  justify-content: center;
  text-align: center;
}
.td-header-player #playback-status {
  text-align: center;
}
#playback-status {
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#download-status-container {
  font-size: 11px;
}
.td-view-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.2) 0%,
    rgba(34, 197, 94, 0.08) 100%
  );
  color: #4ade80;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 11px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  cursor: pointer;
  transition: all 0.18s;
  min-height: 44px;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 8px 22px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(34, 197, 94, 0.08);
}
.td-view-btn--solid {
  background: linear-gradient(
    165deg,
    #22c55e 0%,
    #15803d 48%,
    #14532d 100%
  );
  color: #ecfdf5;
  border: 1px solid rgba(134, 239, 172, 0.45);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 6px 20px rgba(34, 197, 94, 0.25),
    0 10px 28px rgba(0, 0, 0, 0.4);
}
.td-view-btn--solid .td-view-arrow {
  margin-left: 0.35em;
  font-weight: 600;
  opacity: 0.92;
}
.td-view-btn--solid:hover {
  background: linear-gradient(
    165deg,
    #4ade80 0%,
    #22c55e 50%,
    #166534 100%
  );
  color: #f7fee7;
  border-color: rgba(187, 247, 208, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 26px rgba(34, 197, 94, 0.35),
    0 14px 36px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}
.td-view-btn:not(.td-view-btn--solid):hover {
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.3) 0%,
    rgba(34, 197, 94, 0.14) 100%
  );
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(34, 197, 94, 0.2);
  transform: translateY(-2px);
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes td-cover-playing-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.45);
  }
  50% {
    box-shadow: inset 0 0 0 3px rgba(74, 222, 128, 0.65);
  }
}
@keyframes td-cover-playing-pulse-beat {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.28);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.42);
  }
}
#cover-area .record-platter.playing {
  animation: td-cover-playing-pulse 2.2s ease-in-out infinite;
}
.td-cover-wrap.is-beat #cover-area .record-platter.playing {
  animation: td-cover-playing-pulse-beat 2.2s ease-in-out infinite;
}
.td-cover-3d:not(.is-idle) .static-cover {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .td-cover-3d-inner {
    transition: none !important;
  }
  #cover-area .record-platter.playing {
    animation: none;
  }
  #cover-area .record-cover,
  #cover-area .static-cover {
    transition: none !important;
  }
  .cover-depth-ring {
    animation: none !important;
    border: none;
    box-shadow:
      0 0 0 0.5px rgba(74, 222, 128, 0.35),
      0 0 14px rgba(34, 197, 94, 0.25);
  }
  .td-cover-wrap.is-beat .cover-depth-ring-1 {
    box-shadow:
      0 0 0 1px rgba(74, 222, 128, 0.3),
      0 2px 6px rgba(0, 0, 0, 0.35);
  }
  .td-btn-play.is-playing {
    transform: none;
  }
  .td-btn-play.is-playing:hover {
    transform: none;
  }
  .td-waveform-playhead-glow {
    animation: none !important;
  }
}

/* Producer line above description */
.td-producer-line {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #6ee7b7;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

/* Tags row with right-side badge */
.td-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.td-license-badge {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(190, 242, 196, 0.88);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(34, 197, 94, 0.06) inset;
}

/* Beat bundle: per-track preview picker */
.td-bundle-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  max-height: 88px;
  overflow-y: auto;
}
.td-bundle-tracks.hidden {
  display: none;
}
.td-bundle-track-pill {
  font-family: "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
  color: #86efac;
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.td-bundle-track-pill:hover {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.12);
}
.td-bundle-track-pill.active {
  border-color: rgba(34, 197, 94, 0.85);
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
}

.td-waveform-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.td-volume-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 2px;
}
.td-volume-wrap.hidden {
  display: none;
}
#td-preview-volume {
  width: 52px;
  height: 3px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  accent-color: #4ade80;
}
#td-preview-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.35);
}
#td-preview-volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.35);
}
#td-preview-volume::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* Waveform progress bar */
.td-waveform-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 6px 16px rgba(0, 0, 0, 0.35);
}
.td-play-wave-row .td-waveform-bar {
  padding: 6px 8px;
}
.td-wave-time {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 32px;
}
.td-wave-time.end {
  text-align: right;
}
.td-waveform {
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 1.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}
.td-wave-bar {
  flex: 1;
  min-width: 2px;
  background: rgba(34, 197, 94, 0.18);
  border-radius: 1px;
  transition: background 0.1s;
}
.td-wave-bar.played {
  background: rgba(34, 197, 94, 0.75);
}
.td-waveform-playhead-glow {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 3px;
  margin-left: -1.5px;
  pointer-events: none;
  z-index: 4;
  border-radius: 2px;
  left: 0;
  background: rgba(250, 250, 250, 0.95);
  box-shadow:
    0 0 10px 2px rgba(74, 222, 128, 0.55),
    0 0 22px 5px rgba(34, 197, 94, 0.28);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.12s ease;
  animation: td-waveform-playhead-pulse 1.75s ease-in-out infinite;
}
.td-waveform-playhead-glow.is-active {
  opacity: 1;
}
.td-waveform-playhead-glow.is-paused {
  animation: none;
  opacity: 0.88;
  box-shadow:
    0 0 8px 2px rgba(74, 222, 128, 0.4),
    0 0 16px 4px rgba(34, 197, 94, 0.18);
}
@keyframes td-waveform-playhead-pulse {
  0%,
  100% {
    box-shadow:
      0 0 8px 1px rgba(74, 222, 128, 0.45),
      0 0 18px 4px rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow:
      0 0 14px 3px rgba(74, 222, 128, 0.65),
      0 0 28px 8px rgba(34, 197, 94, 0.32);
  }
}
/* No-preview placeholder */
.td-no-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
/* .td-no-preview sets display:flex — must win over Tailwind .hidden (loaded earlier) */
#td-no-preview.hidden,
.td-no-preview.hidden {
  display: none !important;
}
/* Same pattern: waveform bar uses display:flex */
#td-waveform-wrap.hidden,
.td-waveform-bar.hidden {
  display: none !important;
}
#play-pause-btn.hidden {
  display: none !important;
}
.td-no-preview-bars {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 16px;
}
.td-no-preview-bar {
  width: 2px;
  background: #374151;
  border-radius: 1px;
}

.piano-outer-container {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #22c55e #111;
  -webkit-overflow-scrolling: touch;
}
.piano-outer-container::-webkit-scrollbar {
  height: 6px;
}
.piano-outer-container::-webkit-scrollbar-track {
  background: #111;
}
.piano-outer-container::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 3px;
}
.piano-container {
  display: flex;
  position: relative;
  height: 120px;
  background: #000;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #111;
}
:root {
  --white-key-width: 30px;
  --black-key-width: 20px;
  --black-key-offset: -10px;
}
.piano-key {
  position: relative;
  flex: 0 0 var(--white-key-width);
  height: 100%;
  z-index: 1;
}
.white-key {
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%);
  border: 1px solid #111;
  height: 100%;
  width: var(--white-key-width);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 5px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease;
  border-radius: 0 0 3px 3px;
  touch-action: manipulation;
}
.white-key:active,
.white-key.active {
  background: #22c55e;
  color: #000;
  box-shadow: inset 0 0 10px #000;
  transform: translateY(2px);
}
.black-key {
  position: absolute;
  width: var(--black-key-width);
  height: 70px;
  background: linear-gradient(180deg, #333 0%, #111 100%);
  border: 1px solid #000;
  z-index: 10;
  margin-left: var(--black-key-offset);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 5px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
  border-radius: 0 0 2px 2px;
  top: 0;
  right: var(--black-key-offset);
  touch-action: manipulation;
}
.black-key:active,
.black-key.active {
  background: #16a34a;
  color: #fff;
  box-shadow: inset 0 0 10px #000;
  transform: translateY(2px);
}
.drum-machine-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #22c55e #111;
}
.drum-machine-wrapper::-webkit-scrollbar {
  height: 6px;
}
.drum-machine-wrapper::-webkit-scrollbar-track {
  background: #111;
}
.drum-machine-wrapper::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 3px;
}
.drum-machine-container {
  display: grid;
  grid-template-columns: 60px repeat(16, 1fr);
  gap: 3px;
  padding: 8px;
  background: #111;
  border-radius: 4px;
  border: 1px solid #333;
  min-width: 400px;
}
.track-label {
  grid-column: 1/2;
  padding: 4px 2px;
  text-align: right;
  color: #9ca3af;
  font-weight: bold;
  font-size: 10px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step-button {
  width: 100%;
  aspect-ratio: 1;
  min-width: 16px;
  min-height: 16px;
  background-color: #333;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.1s;
  border: 1px solid #222;
  touch-action: manipulation;
}
.step-button.active {
  background-color: #22c55e;
  border-color: #16a34a;
  box-shadow: 0 0 calc(4px * var(--glow-intensity)) #22c55e;
}
.step-button.current-step {
  background-color: #4ade80 !important;
  box-shadow: 0 0 calc(8px * var(--glow-intensity)) #4ade80;
  border-color: #22c55e;
  transform: scale(1.1);
}
.step-button:hover {
  background-color: #444;
  transform: scale(1.05);
}
.step-button.active:hover {
  background-color: #16a34a;
}
.step-button[data-step="0"],
.step-button[data-step="4"],
.step-button[data-step="8"],
.step-button[data-step="12"] {
  border-bottom: 2px solid #22c55e44;
}
.track-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.track-volume {
  width: 60px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #333;
  border-radius: 3px;
  cursor: pointer;
}
.track-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #22c55e;
  border-radius: 50%;
  cursor: pointer;
}
.track-mute {
  font-size: 10px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid #444;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.track-mute.muted {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
.tempo-display {
  font-size: 1.75rem;
  font-weight: bold;
  color: #22c55e;
  text-align: center;
  background: linear-gradient(135deg, #000 0%, #0a0a0a 100%);
  border: 2px solid #22c55e;
  padding: 12px 8px;
  border-radius: 4px;
  box-shadow:
    inset 0 0 calc(20px * var(--glow-intensity)) rgba(34, 197, 94, 0.2),
    0 0 calc(10px * var(--glow-intensity)) rgba(34, 197, 94, 0.3);
  letter-spacing: 2px;
  font-family: "Courier New", monospace;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s ease;
}
.tap-button {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #000;
  font-weight: bold;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
  font-size: 1rem;
  min-height: 52px;
  min-width: 120px;
  touch-action: manipulation;
}
.tap-button:active {
  transform: scale(0.95);
  box-shadow: 0 0 calc(20px * var(--glow-intensity)) #22c55e;
}
.visualizer-bar {
  width: 6px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-radius: 2px;
  transition: height 0.05s ease;
  min-height: 4px;
}
.tool-card {
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  min-width: 0;
  box-shadow: var(--container-glow);
}
.tool-card:hover {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 calc(15px * var(--glow-intensity))
    rgba(34, 197, 94, 0.1);
}
.feat-wrap {
  font-family: "Courier New", monospace;
  padding: 1.25rem 0.5rem 0.75rem;
}
.feat-title-label {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}
.feat-prompt {
  font-size: 12px;
  color: #4ade80;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
.prompt-symbol {
  color: #888;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}
.feat-card {
  background: #0d0d0d;
  padding: 1.75rem 1.5rem;
  position: relative;
  transition:
    background 0.15s,
    box-shadow 0.2s ease;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}
.feat-card:hover {
  background: #141414;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.08);
}
.feat-card-clickable {
  cursor: pointer;
}
.feat-card-clickable:hover {
  box-shadow:
    inset 0 0 0 1px rgba(34, 197, 94, 0.35),
    0 0 12px rgba(34, 197, 94, 0.15);
}
.feat-card-open {
  background: #121712;
  box-shadow:
    inset 0 0 0 1px rgba(34, 197, 94, 0.4),
    0 0 14px rgba(34, 197, 94, 0.2);
}
.feat-expand {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease;
}
.feat-card-open .feat-expand {
  max-height: 160px;
  opacity: 1;
}
.feat-expand-label {
  color: #22c55e;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 9px;
  margin-bottom: 5px;
}
.feat-card.feat-card-soon {
  border: 0.5px dashed rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.03);
}
.feat-card.feat-card-soon .feat-name {
  color: #f59e0b;
}
.feat-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 0.5px solid rgba(74, 222, 128, 0.25);
  border-radius: 3px;
  padding: 2px 6px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.feat-tag.soon {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}
.feat-name {
  font-size: 13px;
  font-weight: 700;
  color: #e5e5e5;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.feat-desc {
  font-size: 11.5px;
  color: #888;
  line-height: 1.6;
}
.feat-status {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-live {
  background: #4ade80;
  box-shadow: 0 0 4px #4ade80;
}
.status-soon {
  background: #f59e0b;
}
.feat-footer {
  margin-top: 1rem;
  font-size: 10px;
  color: #555;
  display: flex;
  gap: 1rem;
}
.fun-tools-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1.5rem;
}
.fun-tools-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #888;
  font-family: "Courier New", monospace;
  font-weight: 700;
}
.fun-tools-prompt {
  font-size: 12px;
  color: #4ade80;
  font-family: "Courier New", monospace;
  opacity: 0.8;
}
.fun-tools-grid {
  gap: 1.5rem;
}
.fun-tools-grid > .tool-card {
  margin-bottom: 2rem;
}
.ft-divider {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #555;
  text-transform: uppercase;
  border-top: 0.5px solid rgba(255, 255, 255, 0.07);
  padding-top: 1rem;
  margin: 1.75rem 0 1rem;
  font-family: "Courier New", monospace;
}
.ft-equal-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
}
.ft-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ft-card-wide {
  background: #000;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}
.placeholder-cover {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 3rem;
}
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.settings-modal.active {
  opacity: 1;
  visibility: visible;
}
.admin-quick-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px 12px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  box-sizing: border-box;
}
.admin-quick-edit-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.admin-quick-edit-panel {
  width: min(100%, 440px);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: #0a0a0a;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
  color: #e5e7eb;
}
.admin-quick-edit-panel h2 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fcd34d;
  margin: 0 0 0.75rem;
}
.admin-quick-edit-panel label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin: 0.65rem 0 0.25rem;
}
.admin-quick-edit-panel input[type="text"],
.admin-quick-edit-panel input[type="number"],
.admin-quick-edit-panel textarea,
.admin-quick-edit-panel input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 10px;
  color: #f3f4f6;
  font: inherit;
}
.admin-quick-edit-panel textarea {
  min-height: 100px;
  resize: vertical;
}
.admin-quick-edit-panel .aqe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 0.35rem;
}
.admin-quick-edit-panel .aqe-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: #d1d5db;
  cursor: pointer;
}
.admin-quick-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-quick-edit-actions button {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
}
.admin-quick-edit-actions .aqe-cancel {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #9ca3af;
}
.admin-quick-edit-actions .aqe-save {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}
.admin-quick-edit-actions .aqe-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-quick-edit-msg {
  margin-top: 0.5rem;
  font-size: 11px;
  min-height: 1.2em;
  color: #94a3b8;
}
.admin-quick-edit-msg.aqe-err {
  color: #f87171;
}
.admin-quick-edit-msg.aqe-ok {
  color: #4ade80;
}
.admin-quick-edit-type {
  font-size: 11px;
  color: #a3e635;
  word-break: break-all;
}
.aqe-quill-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
}
.admin-quick-edit-panel .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #161616;
  padding: 6px;
}
.admin-quick-edit-panel .ql-container.ql-snow {
  border: none;
  font-family: inherit;
  font-size: 13px;
}
.admin-quick-edit-panel .ql-editor {
  min-height: 150px;
  max-height: 280px;
  color: #f3f4f6;
  line-height: 1.45;
}
.admin-quick-edit-panel .ql-editor.ql-blank::before {
  color: #6b7280;
  font-style: normal;
}
.admin-quick-edit-panel .ql-snow .ql-stroke {
  stroke: #9ca3af;
}
.admin-quick-edit-panel .ql-snow .ql-fill {
  fill: #9ca3af;
}
.admin-quick-edit-panel .ql-snow .ql-picker {
  color: #d1d5db;
}
.admin-quick-edit-panel .ql-snow .ql-picker-options {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.15);
}
.aqe-genre-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.aqe-genre-tag button {
  margin: 0;
  padding: 0 2px;
  line-height: 1;
  color: #f87171;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.aqe-genre-tag button:hover {
  color: #fca5a5;
}
.aqe-genre-preset-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.aqe-genre-preset-btn {
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #d1fae5;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.aqe-genre-preset-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.45);
  color: #ecfdf5;
}
#aqe-description-plain {
  min-height: 150px;
}
.settings-content {
  background: #000;
  border: 2px solid #22c55e;
  border-radius: 4px;
  padding: 1.5rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 calc(30px * var(--glow-intensity))
    rgba(34, 197, 94, 0.3);
}
.settings-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  cursor: pointer;
}
.settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  background: #22c55e;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 calc(10px * var(--glow-intensity))
    rgba(34, 197, 94, 0.5);
}
.settings-select {
  width: 100%;
  background: #111;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  outline: none;
}
.settings-select:focus {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  padding: 1rem 1.5rem 1.25rem;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  box-shadow: var(--container-glow);
  --filter-accent: #22c55e;
}
.filter-panel-sticky {
  position: relative;
  margin: -0.25rem -0.5rem 0;
  padding: 0.35rem 0.5rem 12px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(
    180deg,
    #000 0%,
    #000 88%,
    rgba(0, 0, 0, 0.92) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.filter-main-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.filter-collapsible,
.filter-section-static {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(8, 10, 8, 0.65);
  overflow: hidden;
  margin-bottom: 6px;
}
.filter-collapsible.filter-group-full,
.filter-section-static.filter-group-full {
  margin-bottom: 8px;
}
.filter-collapsible-accent--type {
  --filter-accent: #4ade80;
}
.filter-collapsible-accent--genre {
  --filter-accent: #a78bfa;
}
.filter-collapsible-accent--key {
  --filter-accent: #38bdf8;
}
.filter-collapsible-accent--mood {
  --filter-accent: #fbbf24;
}
.filter-collapsible-accent--bpm {
  --filter-accent: #34d399;
}
.filter-collapsible-accent--sort {
  --filter-accent: #94a3b8;
}
.filter-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding: 10px 12px 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d1d5db;
  border-left: 3px solid var(--filter-accent);
  background: rgba(0, 0, 0, 0.35);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.filter-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d1d5db;
  border-left: 3px solid var(--filter-accent);
  background: rgba(0, 0, 0, 0.35);
}
.filter-section-summary::-webkit-details-marker {
  display: none;
}
.filter-section-summary:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f3f4f6;
}
.filter-section-summary-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.filter-section-icon {
  font-size: 14px;
  line-height: 1;
  opacity: 0.92;
  filter: grayscale(0.2);
}
.filter-section-chevron {
  font-size: 9px;
  color: #6b7280;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.filter-collapsible[open] .filter-section-chevron {
  transform: rotate(0deg);
}
.filter-collapsible:not([open]) .filter-section-chevron {
  transform: rotate(-90deg);
}
.filter-section-body {
  padding: 4px 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 900px) {
  .filter-section-chevron {
    display: none;
  }
  .filter-collapsible,
  .filter-section-static {
    border: none;
    border-radius: 0;
    background: transparent;
    margin-bottom: 0;
  }
  .filter-section-summary,
  .filter-section-heading {
    pointer-events: none;
    cursor: default;
    padding: 0 0 6px 0;
    border-left: none;
    border-bottom: 2px solid var(--filter-accent);
    background: transparent;
    border-radius: 0;
  }
  .filter-section-summary:hover {
    background: transparent;
  }
  .filter-section-body {
    padding: 8px 0 0 0;
    border-top: none;
  }
}

/* Force "mobile-style" filters on desktop too (index should match mobile). */
@media (min-width: 900px) {
  .filter-section-chevron {
    display: inline;
  }
  .filter-collapsible,
  .filter-section-static {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(8, 10, 8, 0.65);
    overflow: hidden;
    margin-bottom: 6px;
  }
  .filter-section-summary,
  .filter-section-heading {
    pointer-events: auto;
    cursor: pointer;
    padding: 10px 12px 10px 14px;
    border-left: 3px solid var(--filter-accent);
    border-bottom: none;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0;
  }
  .filter-section-body {
    padding: 4px 12px 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.filter-controls-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filter-controls-row .filter-select {
  width: 100%;
}
.filter-row-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-top: 2px;
  font-weight: 600;
}
.filter-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-pill {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
  color: #cbd5e1;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 36px;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  cursor: pointer;
}
.filter-pill:hover {
  border-color: rgba(34, 197, 94, 0.55);
  color: #f1f5f9;
  background: rgba(34, 197, 94, 0.08);
  transform: translateY(-1px);
}
.filter-pill:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.65);
  outline-offset: 2px;
}
.filter-pill.active {
  border-color: rgba(34, 197, 94, 0.95);
  color: #86efac;
  background: rgba(6, 40, 18, 0.92);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.35),
    0 0 14px rgba(34, 197, 94, 0.28);
}
.filter-sort-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filter-sort-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-sort-pill {
  cursor: pointer;
  margin: 0;
}
.filter-sort-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  /* Allow the radio to receive activation from the label; pointer-events:none
     breaks checked state / change events with custom pill styling in some browsers. */
}
.filter-sort-pill span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
  color: #cbd5e1;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 36px;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.filter-sort-pill:hover span {
  border-color: rgba(148, 163, 184, 0.55);
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}
.filter-sort-pill:has(input:checked) span {
  border-color: rgba(148, 163, 184, 0.95);
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.85);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.35),
    0 0 12px rgba(148, 163, 184, 0.2);
}
.filter-sort-pill:has(input:focus-visible) span {
  outline: 2px solid rgba(148, 163, 184, 0.65);
  outline-offset: 2px;
}
.bpm-dual-slider-shell {
  position: relative;
  height: 28px;
  margin: 10px 0 8px;
}
@media (max-width: 899px) {
  .bpm-dual-slider-shell {
    height: 44px;
    margin-top: 12px;
    margin-bottom: 10px;
  }
  .bpm-slider-track {
    top: 22px !important;
  }
  .bpm-slider-range {
    top: 22px !important;
  }
  .bpm-dual-range {
    top: 14px !important;
  }
  .bpm-dual-range::-webkit-slider-thumb {
    width: 24px !important;
    height: 24px !important;
  }
  .bpm-dual-range::-moz-range-thumb {
    width: 24px !important;
    height: 24px !important;
  }
}
.bpm-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}
.bpm-slider-range {
  position: absolute;
  top: 14px;
  height: 5px;
  border-radius: 3px;
  background: rgba(34, 197, 94, 0.8);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.34);
}
.bpm-dual-range {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  width: 100%;
  margin: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.bpm-dual-range::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  border: 1px solid #0b120b;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  cursor: pointer;
}
.bpm-dual-range::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  border: 1px solid #0b120b;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  cursor: pointer;
}
.bpm-slider-bubble {
  display: none;
}
.filter-active-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 0;
}
.filter-active-pills:empty {
  display: none;
}
.filter-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px 6px 14px;
  border: 1px solid rgba(34, 197, 94, 0.5);
  background: rgba(8, 28, 14, 0.95);
  color: #86efac;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.12);
}
.filter-active-pill button {
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #a7f3d0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 6px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.filter-active-pill button:hover {
  color: #fff;
  background: rgba(34, 197, 94, 0.35);
}
.filter-active-pill button:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.7);
  outline-offset: 1px;
}
.catalog-link-shell {
  position: relative;
}
.catalog-link-shell::before {
  content: "";
  position: absolute;
  top: 70px;
  left: 24px;
  width: 2px;
  height: calc(100% - 70px);
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.45) 0%,
    rgba(34, 197, 94, 0.1) 50%,
    rgba(34, 197, 94, 0) 100%
  );
  pointer-events: none;
}
.filter-header-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.filter-results-count {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #9ca3af;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.filter-results-count .filter-results-num {
  color: #e5e7eb;
  font-weight: 700;
}
.filter-results-count .filter-results-meta {
  color: #6b7280;
  font-size: 11px;
  margin-left: 4px;
}
.filter-clear-all-btn {
  flex-shrink: 0;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(40, 10, 10, 0.55);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.filter-clear-all-btn:hover {
  border-color: rgba(248, 113, 113, 0.85);
  color: #fecaca;
  background: rgba(60, 20, 20, 0.65);
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.15);
}
.filter-clear-all-btn:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.65);
  outline-offset: 2px;
}
.filter-products-connector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  padding-left: 20px;
}
.filter-products-connector::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(34, 197, 94, 0.9) 0%,
    rgba(34, 197, 94, 0.2) 60%,
    rgba(34, 197, 94, 0) 100%
  );
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}
.filter-products-connector::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.4) 0%,
    rgba(34, 197, 94, 0.08) 100%
  );
}
.connector-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b5563;
  white-space: nowrap;
}
.terminal-stat-list {
  color: #9ca3af;
  font-size: 1rem;
  font-weight: 700;
}
.terminal-stat-number {
  color: #f3f4f6;
  font-weight: 700;
}
.terminal-stat-keyword {
  color: #22c55e;
  font-weight: 600;
}
.terminal-stat-shine {
  display: inline-block;
  color: #86efac;
  font-weight: 700;
  letter-spacing: 0.01em;
  background-image: linear-gradient(
    110deg,
    rgba(34, 197, 94, 0.72) 0%,
    rgba(74, 222, 128, 0.86) 42%,
    rgba(22, 163, 74, 0.92) 52%,
    rgba(74, 222, 128, 0.86) 62%,
    rgba(34, 197, 94, 0.72) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 2px rgba(74, 222, 128, 0.16),
    0 0 7px rgba(22, 163, 74, 0.08);
  animation: terminal-shine-soft 4.8s ease-in-out infinite;
}
@keyframes terminal-shine-soft {
  0% {
    background-position: 120% 0;
    filter: brightness(0.98);
  }
  45% {
    background-position: 40% 0;
    filter: brightness(1);
  }
  60% {
    background-position: 20% 0;
    filter: brightness(1.03);
  }
  100% {
    background-position: -120% 0;
    filter: brightness(0.98);
  }
}
.section-separator {
  position: relative;
}
.section-separator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0) 0%,
    rgba(34, 197, 94, 0.65) 25%,
    rgba(34, 197, 94, 0.65) 75%,
    rgba(34, 197, 94, 0) 100%
  );
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
  pointer-events: none;
}
.inline-section-separator {
  height: 1px;
  margin: 0 4px 24px;
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0) 0%,
    rgba(34, 197, 94, 0.55) 50%,
    rgba(34, 197, 94, 0) 100%
  );
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.25);
}
#filter-container.hidden + .filter-products-connector {
  display: none;
}
.filter-container > .filter-select {
  width: 100%;
}
@media (min-width: 900px) {
  .filter-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 22px;
    align-items: start;
  }
  .filter-group.filter-group-full,
  .filter-collapsible.filter-group-full,
  .filter-section-static.filter-group-full {
    grid-column: 1 / -1;
  }
  .filter-controls-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .filter-controls-row .filter-select {
    width: min(320px, 100%);
  }
  .filter-sort-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }
  .filter-sort-actions .filter-sort-pill-row {
    flex: 1;
    min-width: min(100%, 280px);
  }
}
.filter-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: 0 0 calc(8px * var(--glow-intensity)) rgba(34, 197, 94, 0.2);
  pointer-events: none;
  z-index: -1;
}
/* —— Commissions (Syne + Space Mono; aligned with products / filter panel) —— */
#commissions-section {
  font-family: var(--commission-font-mono);
  color: #a1a1aa;
  background: transparent;
  overflow-x: clip;
  --comm-accent-glow: rgba(0, 255, 157, 0.22);
  --comm-border-ui: rgba(255, 255, 255, 0.1);
  --comm-text-muted: rgba(161, 161, 170, 0.85);
}
.commission-filter-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.1rem 1.25rem 1.5rem;
  background-color: #000;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.11) 2px,
    rgba(0, 0, 0, 0.11) 4px
  );
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: var(--container-glow);
  min-width: 0;
}
.commission-filter-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: 0 0 calc(8px * var(--glow-intensity)) rgba(34, 197, 94, 0.2);
  pointer-events: none;
  z-index: -1;
}
.commission-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.commission-title-cluster {
  flex: 1;
  min-width: 0;
}
#commissions-section .commission-title-syne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin: 0;
  font-family: var(--commission-font-display);
  font-weight: 800;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fafafa;
  line-height: 1.15;
}
.commission-open-badge {
  display: inline-block;
  font-family: var(--commission-font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--commission-green);
  border: 1px solid var(--commission-green);
  padding: 4px 10px;
  border-radius: 0;
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.35);
  vertical-align: middle;
}
.commission-title-underline {
  width: 72px;
  max-width: 40%;
  height: 2px;
  margin-top: 12px;
  background: linear-gradient(
    90deg,
    var(--commission-green) 0%,
    rgba(0, 255, 157, 0.35) 55%,
    transparent 100%
  );
  box-shadow:
    0 0 10px rgba(0, 255, 157, 0.65),
    0 0 22px rgba(0, 255, 157, 0.35);
  border-radius: 0;
}
.commission-menu-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--commission-border);
  color: #71717a;
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px 10px;
  cursor: default;
  border-radius: 0;
  font-family: var(--commission-font-mono);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.commission-menu-btn:hover {
  color: var(--commission-green);
  border-color: rgba(0, 255, 157, 0.35);
}
.commission-desc {
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.55;
  color: #52525b;
  margin: 10px 0 0;
  max-width: 42rem;
}
.commission-auth-strip {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #d4d4d8;
  border: 1px solid var(--commission-border);
  border-left: 4px solid var(--commission-amber);
  border-radius: 0;
  padding: 11px 14px 11px 14px;
  margin-top: 14px;
  background: rgba(15, 15, 15, 0.8);
}
.commission-auth-strip::before {
  content: "!";
  margin-right: 8px;
  font-weight: 900;
  color: var(--commission-amber);
}
.commission-auth-strip a {
  color: var(--commission-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.commission-auth-strip a:hover {
  color: #ffd454;
}
.commission-inline-separator {
  height: 1px;
  width: 100%;
  margin: 4px 0 2px;
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0) 0%,
    rgba(34, 197, 94, 0.45) 50%,
    rgba(34, 197, 94, 0) 100%
  );
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}
/* Claude-style commissions marketing (scoped; matches index terminal / mint) */
.commission-hero {
  text-align: center;
  padding: 8px 0 16px;
}
.commission-hero-tag {
  display: block;
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--comm-text-muted);
  margin-bottom: 12px;
}
.commission-hero-tag::before {
  content: "> ";
  color: var(--commission-green);
}
.commission-hero-title {
  margin: 0;
  font-family:
    Orbitron, var(--commission-font-display), system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(1.35rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fafafa;
  text-shadow:
    0 0 28px var(--comm-accent-glow),
    0 0 48px rgba(0, 255, 157, 0.08);
  animation: commission-hero-flicker 8s infinite;
}
.commission-hero-stroke {
  color: transparent;
  -webkit-text-stroke: 1px var(--commission-green);
  text-shadow: none;
}
.commission-hero-sub {
  margin: 12px 0 0;
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--comm-text-muted);
}
.commission-cursor-blink {
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-left: 4px;
  vertical-align: middle;
  background: var(--commission-green);
  animation: commission-cursor-blink 1s step-end infinite;
}
@keyframes commission-hero-flicker {
  0%,
  100% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  93% {
    opacity: 0.88;
  }
  94% {
    opacity: 1;
  }
  96% {
    opacity: 0.92;
  }
  97% {
    opacity: 1;
  }
}
@keyframes commission-cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.commission-ticker-wrap {
  overflow: hidden;
  margin: 4px 0 18px;
  padding: 8px 0;
  border-top: 1px solid var(--comm-border-ui);
  border-bottom: 1px solid var(--comm-border-ui);
  background: rgba(0, 255, 157, 0.03);
}
.commission-ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: commission-ticker-scroll 24s linear infinite;
}
@keyframes commission-ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.commission-ticker-item {
  flex-shrink: 0;
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--comm-text-muted);
  white-space: nowrap;
}
.commission-ticker-item strong {
  font-weight: 700;
  color: var(--commission-green);
}
.commission-genre-ticker-wrap {
  overflow: hidden;
  margin: 12px 0 0;
  padding: 10px 0 4px;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.commission-genre-ticker-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  animation: commission-genre-scroll 48s linear infinite;
}
@keyframes commission-genre-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.commission-genre-item {
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: clamp(11px, 1.65vw, 14px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(0, 255, 157, 0.5);
  white-space: nowrap;
}
.commission-genre-sep {
  color: rgba(0, 255, 157, 0.2);
  font-size: 0.85em;
  padding: 0 0.05rem;
}
.commission-marketing-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
}
.commission-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--comm-text-muted);
  margin: 22px 0 14px;
}
.commission-section-label::before {
  content: "//";
  color: rgba(0, 255, 157, 0.55);
  letter-spacing: 0.1em;
}
.commission-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--comm-border-ui);
}
.commission-section-label:first-of-type {
  margin-top: 0;
}
.commission-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
}
.commission-tiers-grid--two {
  max-width: none;
  width: 100%;
  grid-template-columns: repeat(2, minmax(min(100%, 320px), 1fr));
  gap: 4px;
}
@media (max-width: 700px) {
  .commission-tiers-grid--two {
    grid-template-columns: 1fr;
  }
}
.commission-tier-card {
  position: relative;
  background: var(--commission-surface);
  border: 1px solid var(--comm-border-ui);
  padding: 22px 18px 20px;
  overflow: hidden;
  transition:
    border-color 0.25s,
    transform 0.25s;
}
.commission-tier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--comm-border-ui);
  transition:
    background 0.25s,
    box-shadow 0.25s;
}
.commission-tier-card:hover {
  border-color: rgba(0, 255, 157, 0.35);
  transform: translateY(-2px);
}
.commission-tier-card:hover::before {
  background: var(--commission-green);
  box-shadow: 0 0 12px var(--comm-accent-glow);
}
.commission-tier-card--featured {
  background: #0c100f;
  border-color: rgba(0, 255, 157, 0.28);
}
.commission-tier-card--featured::before {
  background: var(--commission-green);
  box-shadow: 0 0 14px var(--comm-accent-glow);
}
.commission-tier-card--featured::after {
  content: "MOST POPULAR";
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #0a0a0a;
  background: var(--commission-green);
  padding: 3px 7px;
}
.commission-tier-corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--commission-green);
  border-left: 1px solid var(--commission-green);
  opacity: 0.45;
  pointer-events: none;
}
.commission-tier-type {
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--comm-text-muted);
  margin-bottom: 6px;
}
.commission-tier-name {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--commission-green);
  margin-bottom: 4px;
}
.commission-tier-price {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--commission-green);
  text-shadow: 0 0 16px var(--comm-accent-glow);
  line-height: 1;
  margin-bottom: 2px;
}
.commission-tier-price sup {
  font-size: 0.55em;
  font-weight: 400;
  vertical-align: super;
  margin-right: 2px;
}
.commission-tier-note {
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--comm-text-muted);
  margin-bottom: 16px;
}
.commission-tier-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.commission-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 255, 157, 0.07);
  font-size: 13px;
  line-height: 1.45;
  color: #b4b4bc;
}
.commission-tier-features li::before {
  content: "›";
  color: var(--commission-green);
  font-size: 14px;
  line-height: 1.2;
  flex-shrink: 0;
}
.commission-tier-features li.commission-li-highlight {
  color: var(--commission-green);
  font-weight: 600;
}
.commission-tier-features li.commission-li-yellow {
  color: var(--commission-amber);
  font-weight: 600;
}
.commission-tier-features li.commission-li-yellow::before {
  color: var(--commission-amber);
}
.commission-divider-diamond {
  width: 100%;
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 157, 0.45),
    transparent
  );
  position: relative;
}
.commission-divider-diamond::after {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  padding: 0 10px;
  color: rgba(0, 255, 157, 0.45);
  font-size: 9px;
}
.commission-mix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
}
.commission-mix-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.commission-mix-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--commission-surface);
  border: 1px solid var(--comm-border-ui);
  padding: 20px 16px 18px;
  transition:
    border-color 0.25s,
    transform 0.25s;
}
.commission-mix-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--comm-border-ui);
  transition:
    background 0.25s,
    box-shadow 0.25s;
}
.commission-mix-card:hover {
  border-color: rgba(0, 255, 157, 0.3);
  transform: translateY(-2px);
}
.commission-mix-card:hover::before {
  background: var(--commission-green);
  box-shadow: 0 0 10px var(--comm-accent-glow);
}
.commission-mix-name {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 4px;
}
.commission-mix-desc {
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--comm-text-muted);
  margin-bottom: 0;
}
.commission-mix-desc strong {
  font-weight: 600;
  color: #d4d4d8;
}
.commission-mix-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
  color: var(--commission-green);
}
.commission-mix-icon svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.35));
}
.commission-mix-price-row {
  margin-top: auto;
  padding-top: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.commission-mix-price {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--commission-green);
  text-shadow: 0 0 14px var(--comm-accent-glow);
  line-height: 1;
}
.commission-mix-price-note {
  margin: 0;
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
}
.commission-mix-preset-btn {
  margin-top: 0;
}
a.commission-submit-btn {
  text-decoration: none;
  box-sizing: border-box;
}
.commission-info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 2px;
  margin: 8px 0 4px;
}
.commission-info-cell {
  background: var(--commission-surface);
  border: 1px solid var(--comm-border-ui);
  padding: 16px 12px;
  text-align: center;
}
.commission-info-val {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  font-weight: 900;
  color: var(--commission-green);
  text-shadow: 0 0 12px var(--comm-accent-glow);
  line-height: 1;
  margin-bottom: 6px;
}
.commission-info-val--range {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}
.commission-info-dash {
  font-weight: 400;
  opacity: 0.85;
  padding: 0 1px;
}
.commission-info-pct-sym {
  font-weight: 700;
  margin-left: 1px;
}
.commission-info-val--pct {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}
.commission-info-val--ghost,
.commission-info-val--inf {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    text-shadow 0.55s ease;
}
.commission-info-val--ghost.commission-stat-revealed,
.commission-info-val--inf.commission-stat-revealed {
  opacity: 1;
  transform: scale(1);
  text-shadow:
    0 0 16px rgba(0, 255, 157, 0.65),
    0 0 32px rgba(0, 255, 157, 0.25);
}
.commission-info-label {
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--comm-text-muted);
}
.commission-how-block {
  margin-top: 0;
}
.commission-section-label--how {
  margin-top: 18px;
}
.commission-how-block.commission-how--visible
  .commission-section-label--how {
  color: rgba(0, 255, 157, 0.95);
}
.commission-how-block.commission-how--visible
  .commission-section-label--how::before {
  color: var(--commission-green);
  text-shadow:
    0 0 16px rgba(0, 255, 157, 0.65),
    0 0 28px rgba(0, 255, 157, 0.35);
}
.commission-how-block.commission-how--visible
  .commission-section-label--how::after {
  background: linear-gradient(
    90deg,
    rgba(0, 255, 157, 0.35),
    rgba(0, 255, 157, 0.08),
    transparent
  );
  height: 1px;
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.35);
}
.commission-process-strip {
  display: flex;
  gap: 0;
  margin: 4px 0 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-radius: 0;
  transition:
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}
.commission-process-strip.commission-process--visible {
  border: 1px solid rgba(0, 255, 157, 0.35);
  box-shadow:
    0 0 28px rgba(0, 255, 157, 0.12),
    inset 0 0 40px rgba(0, 255, 157, 0.04);
}
.commission-process-step {
  flex: 1;
  min-width: 140px;
  background: var(--commission-surface);
  border: 1px solid var(--comm-border-ui);
  padding: 18px 12px 16px;
  text-align: center;
  margin-right: -1px;
  position: relative;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
}
.commission-process-step:last-child {
  margin-right: 0;
}
.commission-process-step--lit {
  border-color: rgba(0, 255, 157, 0.55) !important;
  background: rgba(0, 255, 157, 0.05);
  box-shadow:
    inset 0 0 28px rgba(0, 255, 157, 0.07),
    0 0 18px rgba(0, 255, 157, 0.12);
}
.commission-step-num {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 900;
  color: rgba(0, 255, 157, 0.12);
  -webkit-text-stroke: 1px rgba(0, 255, 157, 0.2);
  line-height: 1;
  margin-bottom: 8px;
  transition:
    color 0.4s ease,
    text-shadow 0.4s ease,
    -webkit-text-stroke 0.4s ease;
}
.commission-process-step--lit .commission-step-num {
  color: var(--commission-green);
  -webkit-text-stroke: 1px rgba(0, 255, 157, 0.45);
  text-shadow:
    0 0 18px var(--comm-accent-glow),
    0 0 36px rgba(0, 255, 157, 0.2);
}
.commission-step-title {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--commission-green);
  margin-bottom: 4px;
}
.commission-step-desc {
  font-family: "Share Tech Mono", var(--commission-font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--comm-text-muted);
}
.commission-process-step::after {
  content: "›";
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 255, 157, 0.4);
  font-size: 1.1rem;
  z-index: 1;
  background: #000;
  padding: 2px 0;
  line-height: 1;
}
.commission-process-step:last-child::after {
  display: none;
}
@media (max-width: 768px) {
  .commission-process-strip {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0;
    -webkit-overflow-scrolling: auto;
  }
  .commission-process-step {
    flex: none;
    min-width: 0;
    width: 100%;
    margin-right: 0;
    margin-bottom: -1px;
    text-align: left;
    padding: 14px 16px 16px;
  }
  .commission-process-step::after {
    display: none;
  }
}
.commission-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  margin-bottom: 4px;
}
.commission-addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--commission-surface);
  border: 1px solid var(--comm-border-ui);
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.commission-addon-item:hover {
  border-color: rgba(0, 255, 157, 0.28);
}
.commission-addon-name {
  font-size: 11px;
  font-weight: 600;
  color: #c4c4cc;
}
.commission-addon-price {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--commission-green);
  flex-shrink: 0;
}
.commission-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding-top: 4px;
}
.commission-cta-stack .commission-desc {
  margin-top: 0;
}
.commission-cta-stack > .commission-section-label {
  margin-top: 0;
  margin-bottom: 10px;
}
.commission-panels-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  align-items: stretch;
}
.commission-forms-separator {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
}
.commission-forms-separator-line {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 157, 0.15) 15%,
    var(--commission-green) 50%,
    rgba(0, 255, 157, 0.15) 85%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: commission-sep-line-h 2.8s ease-in-out infinite;
  box-shadow:
    0 0 14px rgba(0, 255, 157, 0.55),
    0 0 32px rgba(0, 255, 157, 0.2);
}
@keyframes commission-sep-line-h {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.85;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}
@keyframes commission-sep-line-v {
  0%,
  100% {
    background-position: 50% 0%;
    opacity: 0.85;
  }
  50% {
    background-position: 50% 100%;
    opacity: 1;
  }
}
.commission-panel {
  position: relative;
  background: var(--commission-surface);
  border: none;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.commission-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--commission-green) 0%,
    rgba(0, 255, 157, 0.35) 45%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 3;
}
.commission-panel:hover::before {
  opacity: 1;
}
.commission-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 157, 0.028) 2px,
    rgba(0, 255, 157, 0.028) 3px
  );
  opacity: 0.5;
}
.commission-panel-inner {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.commission-panel-inner--form {
  flex: 1;
  min-height: 0;
}
.commission-form-stretch {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: min(52vh, 440px);
}
.commission-fieldset-stretch {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.commission-submit-wrap {
  margin-top: auto;
  padding-top: 12px;
}
.commission-submit-wrap .commission-submit-btn {
  margin-top: 0;
}
.commission-email-files-note {
  margin: 0;
  padding: 10px 11px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #71717a;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}
.commission-mix-grid-note {
  margin: -4px 0 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.55;
  color: #71717a;
}
.commission-panel-head {
  margin-bottom: 2px;
}
.commission-subheader {
  font-family: var(--commission-font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--commission-green);
  font-weight: 700;
  margin: 0 0 4px;
  text-shadow: 0 0 18px rgba(0, 255, 157, 0.35);
}
.commission-hint {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #52525b;
  line-height: 1.45;
  margin: 0 0 4px;
}
.commission-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #52525b;
  margin-bottom: 5px;
  font-weight: 600;
}
.commission-req {
  color: var(--commission-green);
  font-weight: 700;
}
#commissions-section .commission-input,
#commissions-section .commission-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--commission-font-mono);
  font-size: 13px;
  color: #e4e4e7;
  background: var(--commission-bg);
  border: 1px solid var(--commission-border);
  border-radius: 0;
  padding: 10px 12px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  min-height: 44px;
}
#commissions-section .commission-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}
#commissions-section .commission-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300ff9d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 32px;
}
#commissions-section .commission-select option {
  background: #0a0a0a;
  color: #e4e4e7;
}
#commissions-section input[type="date"].commission-input-date {
  color-scheme: dark;
}
#commissions-section .commission-input::placeholder,
#commissions-section .commission-textarea::placeholder {
  color: #3f3f46;
}
#commissions-section .commission-input:focus,
#commissions-section .commission-textarea:focus,
#commissions-section .commission-select:focus,
#commissions-section input[type="date"].commission-input-date:focus {
  border-color: var(--commission-green);
  box-shadow:
    0 0 0 1px rgba(0, 255, 157, 0.45),
    inset 0 0 20px rgba(0, 255, 157, 0.06);
}
.commission-bpm-key-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--commission-border);
  border-radius: 0;
}
.commission-bpm-key-row .commission-field-cell {
  min-width: 0;
  padding: 8px 10px 10px;
  border-right: 1px solid var(--commission-border);
  background: var(--commission-surface);
}
.commission-bpm-key-row .commission-field-cell:last-child {
  border-right: none;
}
.commission-submit-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--commission-green);
  color: var(--commission-green);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--commission-font-mono);
  cursor: pointer;
  border-radius: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 0;
  transition:
    color 0.3s ease,
    box-shadow 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.commission-submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--commission-green);
  transform: translateX(-101%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.commission-submit-btn:hover:not(:disabled)::before {
  transform: translateX(0);
}
.commission-submit-btn:hover:not(:disabled) {
  color: var(--commission-bg);
  box-shadow:
    0 0 0 1px rgba(0, 255, 157, 0.45),
    0 0 24px rgba(0, 255, 157, 0.35);
}
.commission-btn-arrow {
  font-weight: 400;
  letter-spacing: 0;
}
#commissions-section fieldset:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.commission-panel--beat {
  opacity: 0;
  animation: commission-fade-up 0.55s ease forwards;
}
.commission-panel--mix {
  opacity: 0;
  animation: commission-fade-up 0.55s ease 0.14s forwards;
}
@keyframes commission-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 768px) {
  .commission-panels-row {
    grid-template-columns: 1fr minmax(52px, 76px) 1fr;
  }
  .commission-forms-separator {
    grid-column: auto;
    padding: 0.35rem 0.5rem;
    min-height: min(52vh, 280px);
    align-self: stretch;
  }
  .commission-forms-separator-line {
    width: 3px;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 255, 157, 0.15) 15%,
      var(--commission-green) 50%,
      rgba(0, 255, 157, 0.15) 85%,
      transparent 100%
    );
    background-size: 100% 200%;
    animation: commission-sep-line-v 2.8s ease-in-out infinite;
    box-shadow:
      0 0 14px rgba(0, 255, 157, 0.55),
      0 0 32px rgba(0, 255, 157, 0.2);
  }
  .commission-panel--beat {
    border-right: none;
  }
}
@media (max-width: 767px) {
  .commission-panel--beat {
    border-bottom: none;
  }
}
@media (max-width: 520px) {
  .commission-bpm-key-row {
    grid-template-columns: 1fr;
  }
  .commission-bpm-key-row .commission-field-cell {
    border-right: none;
    border-bottom: 1px solid var(--commission-border);
  }
  .commission-bpm-key-row .commission-field-cell:last-child {
    border-bottom: none;
  }
}
@media (max-width: 639px) {
  .commission-filter-panel {
    padding: 0.85rem 0.9rem 1.1rem;
  }
  #commissions-section .commission-hero-title {
    letter-spacing: -0.02em;
    font-size: clamp(1.1rem, 4.5vw, 2rem);
  }
  .commission-open-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
  .commission-desc {
    font-size: 11px;
    line-height: 1.5;
  }
  .commission-auth-strip {
    font-size: 11px;
    padding: 9px 11px;
  }
  .commission-panel-inner {
    padding: 0.85rem 0.75rem 1rem;
  }
  .commission-header-row {
    gap: 10px;
  }
  .commission-menu-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
  }
  #commissions-section .commission-input,
  #commissions-section .commission-textarea {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .commission-panel--beat,
  .commission-panel--mix {
    animation: none !important;
    opacity: 1 !important;
  }
  .commission-ticker-track,
  .commission-genre-ticker-track {
    animation: none !important;
  }
  .commission-forms-separator-line {
    animation: none !important;
  }
  #commissions-section .commission-hero-title {
    animation: none !important;
  }
  #commissions-section .commission-cursor-blink {
    animation: none !important;
  }
}
.filter-select,
.filter-input {
  background: #000;
  border: 1px solid #333;
  color: #22c55e;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-family: monospace;
  outline: none;
  transition: border-color 0.2s;
  min-height: 44px;
}
.filter-select {
  width: 100%;
  background: #0a120a;
  border: 1px solid #1a2e1a;
  color: #c8e6c8;
  font-family: monospace;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.filter-select:focus,
.filter-input:focus {
  border-color: #22c55e;
}
.filter-input::placeholder {
  color: #6b7280;
}
.bpm-range-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}
.bpm-range-input {
  width: 60px;
  text-align: center;
}
.metronome-display {
  font-size: 2.25rem;
  font-weight: bold;
  color: #22c55e;
  text-align: center;
  background: linear-gradient(135deg, #000 0%, #0a0a0a 100%);
  border: 2px solid #22c55e;
  padding: 14px;
  border-radius: 4px;
  box-shadow:
    inset 0 0 calc(20px * var(--glow-intensity)) rgba(34, 197, 94, 0.2),
    0 0 calc(10px * var(--glow-intensity)) rgba(34, 197, 94, 0.3);
  letter-spacing: 2px;
  font-family: "Courier New", monospace;
  transition: box-shadow 0.15s ease;
}
.metronome-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.metronome-btn {
  background: #111;
  border: 1px solid #333;
  color: #22c55e;
  padding: 12px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 12px;
  font-family: monospace;
  min-height: 44px;
  touch-action: manipulation;
}
.metronome-btn:hover {
  border-color: #22c55e;
  background: #0a0a0a;
}
.metronome-btn.active {
  background: #22c55e;
  color: #000;
  border-color: #22c55e;
}
.metronome-input {
  background: #000;
  border: 1px solid #333;
  color: #22c55e;
  padding: 12px;
  border-radius: 4px;
  width: 80px;
  text-align: center;
  font-family: monospace;
  font-size: 14px;
  min-height: 44px;
}
.metronome-input:focus {
  outline: none;
  border-color: #22c55e;
}
.time-sig-select {
  background: #000;
  border: 1px solid #333;
  color: #22c55e;
  padding: 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  cursor: pointer;
  min-height: 44px;
}
.swing-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 8px;
  background: #333;
  border-radius: 4px;
  cursor: pointer;
}
.swing-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #22c55e;
  border-radius: 50%;
  cursor: pointer;
}
.copy-bpm-btn {
  font-size: 10px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #333;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s;
  margin-top: 8px;
  min-height: 36px;
}
.copy-bpm-btn:hover {
  border-color: #22c55e;
  color: #22c55e;
}
.header-btn {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
}
/* .header-btn display:flex overrides Tailwind .hidden on auth pills without this */
#site-header #panel-btn.hidden,
#site-header #customer-panel-btn.hidden {
  display: none !important;
}
.header-btn-icon {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
}
.mobile-header-shell {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 10px 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-top: max(6px, env(safe-area-inset-top, 0px));
  padding-bottom: 10px;
}
.mobile-header-brand {
  min-width: 0;
  line-height: 1.2;
}
.mobile-header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.mobile-header-meta #user-status {
  max-width: min(36vw, 220px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-header-meta .mobile-header-auth-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.mobile-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.mobile-header-actions-track {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
}
.header-btn:hover {
  transform: translateY(-1px);
}
/* Main nav row: no hover lift / stray animation — except #arcade-btn (see below) */
#site-header .mobile-header-actions-track > .header-btn:not(#arcade-btn),
#site-header .mobile-header-actions-track .tools-dropdown-root > .header-btn {
  transition-property: background-color, border-color, color, box-shadow,
    opacity;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}
#site-header
  .mobile-header-actions-track
  > .header-btn:not(#arcade-btn):hover,
#site-header
  .mobile-header-actions-track
  > .header-btn:not(#arcade-btn):focus-visible,
#site-header
  .mobile-header-actions-track
  > .header-btn:not(#arcade-btn):active,
#site-header
  .mobile-header-actions-track
  .tools-dropdown-root
  > .header-btn:hover,
#site-header
  .mobile-header-actions-track
  .tools-dropdown-root
  > .header-btn:focus-visible,
#site-header
  .mobile-header-actions-track
  .tools-dropdown-root
  > .header-btn:active {
  transform: none !important;
  animation: none !important;
}
/* GAMES: rainbow hue + shake on hover (same as legacy .glitch-hover) */
#site-header #arcade-btn {
  position: relative;
  z-index: 1;
  margin-inline: 2px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
#site-header #arcade-btn:hover {
  animation: glitch 0.35s ease-in-out;
  /* After glitch, stay flat — avoid global .header-btn:hover lift on this pill */
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  #site-header #arcade-btn:hover {
    animation: none;
  }
}
.site-header-bar {
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100vw;
  box-sizing: border-box;
}
/* Pills around tempo + disco at all breakpoints (was mobile-only) */
.mobile-header-meta-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}
.mobile-header-meta-icon-wrap #header-tempo-toggle {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 11px;
}
.mobile-header-meta-icon-wrap #disco-ball {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
@supports (backdrop-filter: blur(12px)) {
  .site-header-bar {
    background: rgba(0, 0, 0, 0.72);
  }
}
#site-header.site-header-scroll-hidden {
  transform: translateY(-110%);
}
.tools-dropdown-root {
  position: relative;
}
.tools-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  background: #0a0a0a;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 4px;
  padding: 6px 0;
  z-index: 60;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.tools-dropdown-panel.hidden {
  display: none;
}
.tools-dropdown-panel a {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  color: #e5e7eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tools-dropdown-panel a:last-child {
  border-bottom: 0;
}
.tools-dropdown-panel a:hover {
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
}
/* Desktop: same pill / glass nav as mobile (concurrent styling) */
@media (min-width: 769px) {
  #site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
  }
  #terminal-section {
    padding-top: calc(6.75rem + env(safe-area-inset-top, 0px)) !important;
    scroll-margin-top: calc(6.75rem + env(safe-area-inset-top, 0px));
  }
  .mobile-header-actions-track > .header-btn,
  .mobile-header-actions-track .tools-dropdown-root .header-btn {
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #d1fae5;
    font-weight: 500;
    min-height: 40px;
    padding: 8px 16px;
    box-shadow: none;
  }
  .mobile-header-actions-track > .header-btn:not(#arcade-btn):hover,
  .mobile-header-actions-track .tools-dropdown-root .header-btn:hover {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.4);
    color: #ecfdf5;
    transform: none;
  }
  .mobile-header-actions-track > #arcade-btn:hover {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.4);
    color: #ecfdf5;
  }
  #settings-btn.header-btn-icon {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
  }
  #settings-btn.header-btn-icon:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
  }
  .mobile-header-meta .mobile-header-auth-btn {
    border-radius: 9999px;
    font-weight: 500;
    min-height: 40px;
    padding: 8px 16px;
    box-shadow: none;
  }
  .mobile-header-meta .mobile-header-auth-btn.text-green-400 {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #d1fae5;
  }
  .mobile-header-meta .mobile-header-auth-btn.text-green-400:hover {
    transform: none;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.4);
    color: #ecfdf5;
  }
  .mobile-header-meta .mobile-header-auth-btn.text-red-400 {
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
  }
  .mobile-header-meta .mobile-header-auth-btn.text-red-400:hover {
    transform: none;
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.55);
    color: #fecaca;
  }
}
.contact-link {
  color: #22c55e;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}
.contact-link:hover {
  color: #4ade80;
  text-decoration: underline;
}
.download-status {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 8px;
  display: inline-block;
}
.download-status.downloaded {
  background: #22c55e22;
  color: #22c55e;
  border: 1px solid #22c55e44;
}
.download-status.not-downloaded {
  background: #6b728022;
  color: #6b7280;
  border: 1px solid #6b728044;
}
@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(10rem + env(safe-area-inset-top, 0px));
  }
  #terminal-output {
    height: 320px;
    max-height: 320px;
  }
  #site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
  }
  #terminal-section {
    padding-top: calc(10rem + env(safe-area-inset-top, 0px)) !important;
    scroll-margin-top: calc(10rem + env(safe-area-inset-top, 0px));
  }
  .mobile-header-brand.glitch-hover:hover {
    animation: none;
  }
  .mobile-header-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "brand meta"
      "nav nav";
    gap: 10px 12px;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
  }
  .mobile-header-brand {
    grid-area: brand;
    font-size: 1.0625rem !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    justify-self: start;
    align-self: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .mobile-header-meta {
    grid-area: meta;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-self: end;
    align-self: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 4px;
  }
  .mobile-header-actions {
    grid-area: nav;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow: visible;
    padding: 4px 0 6px;
  }
  .mobile-header-actions-track {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding-inline-end: 16px;
    padding-inline-end: 20px;
    padding-block: 5px;
    box-sizing: border-box;
  }
  /* No right-edge fade — opaque gradient read as a black “cut” on pills */
  .mobile-header-actions-track::-webkit-scrollbar {
    display: none;
  }
  .mobile-header-actions-track .tools-dropdown-root {
    flex: 0 0 auto;
    width: auto;
  }
  .mobile-header-actions-track > .header-btn,
  .mobile-header-actions-track .tools-dropdown-root .header-btn {
    flex: 0 0 auto;
    width: auto !important;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #d1fae5;
    box-shadow: none;
  }
  .mobile-header-actions-track > .header-btn:not(#arcade-btn):hover,
  .mobile-header-actions-track .tools-dropdown-root .header-btn:hover {
    transform: none;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.4);
    color: #ecfdf5;
  }
  .mobile-header-actions-track > #arcade-btn:hover {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.4);
    color: #ecfdf5;
  }
  .mobile-header-meta #coin-balance {
    font-size: 12px;
  }
  .mobile-header-meta #user-status {
    max-width: min(46vw, 200px);
    font-size: 11px;
  }
  #settings-btn.header-btn-icon {
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
  }
  .mobile-header-meta .mobile-header-auth-btn {
    flex: 0 0 auto;
    min-height: 42px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: none;
    box-sizing: border-box;
  }
  .mobile-header-meta .mobile-header-auth-btn.text-green-400 {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #d1fae5;
  }
  .mobile-header-meta .mobile-header-auth-btn.text-green-400:hover {
    transform: none;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.4);
    color: #ecfdf5;
  }
  .mobile-header-meta .mobile-header-auth-btn.text-red-400 {
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
  }
  .mobile-header-meta .mobile-header-auth-btn.text-red-400:hover {
    transform: none;
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.55);
    color: #fecaca;
  }
  /* Admin / dashboard: same pill sizing as desktop meta (769px+ rules) */
  #site-header #panel-btn.mobile-header-auth-btn,
  #site-header #customer-panel-btn.mobile-header-auth-btn {
    border-radius: 9999px;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
  }
  /* .mobile-header-auth-btn above uses display:inline-flex — beats Tailwind .hidden */
  #site-header #panel-btn.hidden,
  #site-header #customer-panel-btn.hidden {
    display: none !important;
  }
  .terminal-crt-shell {
    padding: 10px !important;
    margin-bottom: 1.25rem !important;
  }
  #terminal-input {
    min-height: 46px;
  }
  .drum-machine-container {
    grid-template-columns: 45px repeat(16, 1fr);
    gap: 2px;
    padding: 6px;
    min-width: 360px;
  }
  .track-label {
    font-size: 8px;
    padding: 2px;
  }
  .tempo-display {
    font-size: 1.5rem;
    min-height: 50px;
    padding: 10px 6px;
  }
  :root {
    --white-key-width: 22px;
    --black-key-width: 16px;
    --black-key-offset: -8px;
  }
  .piano-container {
    height: 100px;
  }
  .piano-outer-container {
    -webkit-overflow-scrolling: touch;
  }
  .black-key {
    height: 60px;
  }
  #turntable-display.active {
    max-height: 2400px;
    overflow: visible;
  }
  .td-card-inner {
    flex-direction: column;
    align-items: center;
    --td-inner-pad-l: 1.25rem;
    --td-inner-pad-r: 2.75rem;
    padding: 1rem var(--td-inner-pad-r) 1rem var(--td-inner-pad-l);
  }
  .td-hero {
    margin-top: -1rem;
    margin-bottom: calc(0.85rem - 8px);
  }
  .td-left {
    width: 100%;
    align-items: center;
  }
  .td-cover-wrap {
    width: 152px;
    height: 152px;
  }
  .td-controls {
    width: 152px;
  }
  .td-controls.td-controls--header {
    width: 100%;
    justify-content: stretch;
  }
  .td-right {
    width: 100%;
  }
  .td-header-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
  }
  .td-type-badge {
    align-self: center;
  }
  .td-title {
    font-size: 1.3rem;
  }
  .td-header-player {
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 12px;
  }
  .td-view-btn {
    width: 100%;
    text-align: center;
    min-height: 50px;
  }
  .turntable-meta-grid {
    gap: 8px;
    margin-bottom: 12px;
  }
  .turntable-meta-pill {
    padding: 9px 15px;
    border-radius: 10px;
    min-width: 80px;
  }
  .turntable-meta-label {
    font-size: 10px;
    color: #b6beca;
  }
  .turntable-meta-value {
    font-size: 14px;
    margin-top: 5px;
  }
  #turntable-type {
    margin-bottom: 0;
  }
  #turntable-desc {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.55;
  }
  #turntable-tags {
    gap: 7px;
    margin-bottom: 10px;
  }
  .td-tags-container {
    padding: 14px 14px;
  }
  .td-tags-genre-col {
    padding-bottom: 10px;
  }
  .td-tags-license-col {
    justify-content: center;
  }
  .td-tags-divider {
    margin: 2px 0 10px;
  }
  .record-platter,
  .static-cover-container {
    width: 140px;
    height: 140px;
  }
  .filter-container {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.1rem 1.15rem;
  }
  .filter-panel-sticky {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
  .filter-pill {
    font-size: 10px;
    min-height: 36px;
    padding: 7px 12px;
  }
  .catalog-link-shell::before {
    left: 16px;
  }
  .filter-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }
  .filter-select,
  .filter-input {
    width: 100%;
  }
  .metronome-display {
    font-size: 1.75rem;
    padding: 12px;
  }
  .track-volume {
    width: 50px;
  }
  .tool-card {
    padding: 1rem;
  }
}
@media (max-width: 480px) {
  #terminal-output {
    height: 300px;
    max-height: 300px;
  }
  #terminal-section {
    padding-top: calc(10rem + env(safe-area-inset-top, 0px)) !important;
    scroll-margin-top: calc(10rem + env(safe-area-inset-top, 0px));
  }
  .mobile-header-brand {
    font-size: 14px !important;
  }
  .mobile-header-meta #coin-balance {
    font-size: 12px;
  }
  .mobile-header-meta #user-status {
    max-width: 38vw;
    font-size: 11px;
  }
  .drum-machine-container {
    grid-template-columns: 35px repeat(16, 1fr);
    gap: 1px;
    padding: 4px;
    min-width: 320px;
  }
  .track-label {
    font-size: 7px;
    padding: 1px;
  }
  .step-button {
    border-radius: 2px;
  }
  :root {
    --white-key-width: 20px;
    --black-key-width: 14px;
    --black-key-offset: -7px;
  }
  .piano-container {
    height: 90px;
  }
  .piano-outer-container {
    -webkit-overflow-scrolling: touch;
  }
  #turntable-display.active {
    max-height: 2800px;
    overflow: visible;
  }
  .td-card-inner {
    --td-inner-pad-l: 1rem;
    --td-inner-pad-r: 2.5rem;
    padding: 0.75rem var(--td-inner-pad-r) 0.75rem var(--td-inner-pad-l);
    gap: 0.75rem;
  }
  .td-hero {
    margin-top: -0.75rem;
    margin-bottom: calc(0.65rem - 8px);
  }
  .td-cover-wrap {
    width: 126px;
    height: 126px;
  }
  .td-controls {
    width: 126px;
  }
  .td-controls.td-controls--header {
    width: 100%;
  }
  .td-title {
    font-size: 1.15rem;
  }
  .turntable-meta-grid {
    gap: 6px;
  }
  .turntable-meta-pill {
    padding: 8px 13px;
    min-width: 72px;
  }
  .turntable-meta-label {
    font-size: 9px;
    color: #b6beca;
  }
  .turntable-meta-value {
    font-size: 13px;
  }
  .turntable-tag-chip {
    min-height: 0;
    padding: 4px 8px;
    font-size: 10px;
  }
  .record-platter,
  .static-cover-container {
    width: 126px;
    height: 126px;
  }
  .black-key {
    height: 55px;
  }
  .record-platter,
  .static-cover-container {
    width: 126px;
    height: 126px;
  }
  .tool-card {
    padding: 0.875rem;
  }
  .filter-products-connector {
    padding-left: 14px;
  }
  .filter-pill-row {
    gap: 6px;
  }
  .filter-pill {
    font-size: 9px;
    min-height: 34px;
    padding: 6px 10px;
  }
  .metronome-display {
    font-size: 1.5rem;
    padding: 10px;
  }
  .track-volume {
    width: 40px;
  }
  .track-mute {
    font-size: 8px;
    padding: 4px 6px;
    min-width: 28px;
    min-height: 28px;
  }
  .metronome-controls {
    gap: 6px;
  }
  .metronome-btn,
  .metronome-input,
  .time-sig-select {
    padding: 10px;
    min-height: 40px;
    font-size: 11px;
  }
  .swing-slider {
    width: 70px;
  }
}

/* Glitch and Distortion Effects */
@keyframes glitch {
  0% {
    transform: translate(0);
    filter: hue-rotate(0deg);
  }
  20% {
    transform: translate(-2px, 2px);
    filter: hue-rotate(90deg);
  }
  40% {
    transform: translate(-2px, -2px);
    filter: hue-rotate(180deg);
  }
  60% {
    transform: translate(2px, 2px);
    filter: hue-rotate(270deg);
  }
  80% {
    transform: translate(2px, -2px);
    filter: hue-rotate(360deg);
  }
  100% {
    transform: translate(0);
    filter: hue-rotate(0deg);
  }
}

@keyframes glitch-text {
  0%,
  100% {
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
  }
  25% {
    text-shadow:
      -2px 0 0 rgba(255, 0, 0, 0.5),
      2px 0 0 rgba(0, 255, 255, 0.5);
  }
  50% {
    text-shadow:
      2px 0 0 rgba(255, 0, 0, 0.5),
      -2px 0 0 rgba(0, 255, 255, 0.5);
  }
  75% {
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
  }
}

@keyframes static-flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.98;
  }
}

.glitch-hover:hover {
  animation: glitch 0.3s ease-in-out;
}

.glitch-text {
  animation: glitch-text 3s infinite;
}

.glitch-on-load {
  animation: glitch 0.5s ease-in-out;
}

/* Enhanced Interactivity - Glow effects */
.piano-key:hover,
.white-key:hover,
.black-key:hover {
  box-shadow:
    0 0 15px rgba(34, 197, 94, 0.6),
    0 0 30px rgba(34, 197, 94, 0.3);
  transition: all 0.2s ease;
}

.piano-key:active,
.white-key:active,
.black-key:active,
.piano-key.active,
.white-key.active,
.black-key.active {
  box-shadow:
    0 0 20px rgba(34, 197, 94, 0.8),
    0 0 40px rgba(34, 197, 94, 0.5);
}

.step-button:hover {
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  transform: scale(1.05);
  transition: all 0.15s ease;
}

.step-button.active {
  box-shadow:
    0 0 15px rgba(34, 197, 94, 0.7),
    0 0 25px rgba(34, 197, 94, 0.4);
}

.step-button.current-step {
  box-shadow:
    0 0 20px rgba(34, 197, 94, 0.9),
    0 0 35px rgba(34, 197, 94, 0.6);
  animation: pulse-glow 0.3s ease-in-out;
}

/* ASCII Art in Cards */
.ascii-art-inline {
  font-family: "Courier New", monospace;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(34, 197, 94, 0.4);
  white-space: pre;
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.ascii-art-inline:hover {
  color: rgba(34, 197, 94, 0.7);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px) rotate(-2deg);
  }
  75% {
    transform: translateX(3px) rotate(2deg);
  }
}

@keyframes disco {
  0% {
    filter: hue-rotate(0deg);
  }
  25% {
    filter: hue-rotate(90deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
  75% {
    filter: hue-rotate(270deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes lampPull {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Post-enter explore menu (first visit) */
#explore-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
  pointer-events: none;
}

#explore-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.explore-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.explore-menu-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(
    160deg,
    rgba(12, 18, 14, 0.97) 0%,
    rgba(0, 0, 0, 0.98) 50%,
    rgba(5, 12, 8, 0.97) 100%
  );
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 16px;
  padding: 1.65rem 1.4rem 1.4rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 0 56px rgba(34, 197, 94, 0.14),
    0 28px 56px rgba(0, 0, 0, 0.8);
  animation: explore-menu-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes explore-menu-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.explore-menu-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(74, 222, 128, 0.55) 0%,
    transparent 42%,
    transparent 58%,
    rgba(34, 197, 94, 0.2) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.explore-menu-panel h2 {
  margin: 0 0 0.4rem;
  font-size: 17px;
  font-weight: 800;
  color: #ecfdf5;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: none;
}

.explore-menu-sub {
  margin: 0 0 1.25rem;
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.55;
  text-align: center;
}

.explore-menu-signup {
  margin: 0 0 1.15rem;
  padding: 0.85rem 0.75rem 0.95rem;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.22);
  text-align: center;
}

.explore-menu-signup-title {
  margin: 0 0 0.35rem;
  font-size: 12px;
  font-weight: 700;
  color: #fef9c3;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.explore-menu-signup-title strong {
  color: #fde047;
  font-weight: 800;
}

.explore-menu-signup-hint {
  margin: 0 0 0.65rem;
  font-size: 10px;
  color: #a1a1aa;
  line-height: 1.45;
}

.explore-menu-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (min-width: 380px) {
  .explore-menu-email-form {
    flex-direction: row;
    align-items: stretch;
    gap: 0.4rem;
  }
}

.explore-menu-email-input {
  flex: 1;
  min-width: 0;
  padding: 10px 11px;
  font-size: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: #f4f4f5;
  outline: none;
  transition: border-color 0.15s ease;
}

.explore-menu-email-input::placeholder {
  color: #71717a;
}

.explore-menu-email-input:focus {
  border-color: rgba(74, 222, 128, 0.55);
}

.explore-menu-email-btn {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
  touch-action: manipulation;
}

.explore-menu-email-btn:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.32);
  border-color: rgba(134, 239, 172, 0.55);
}

.explore-menu-email-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.explore-menu-email-status {
  margin: 0.55rem 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #a1a1aa;
  min-height: 1.35em;
}

.explore-menu-email-status.explore-menu-email-status--success {
  color: #86efac;
}

.explore-menu-email-status.explore-menu-email-status--error {
  color: #fca5a5;
}

.explore-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.explore-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 12px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: rgba(34, 197, 94, 0.08);
  color: #d1fae5;
  text-align: left;
  touch-action: manipulation;
}

.explore-menu-emoji {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.explore-menu-btn-label {
  flex: 1;
  min-width: 0;
}

.explore-menu-btn:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.55);
  color: #ecfdf5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

.explore-menu-btn-primary {
  background: linear-gradient(
    135deg,
    #22c55e 0%,
    #16a34a 100%
  );
  border-color: rgba(134, 239, 172, 0.5);
  color: #022c0d;
}

.explore-menu-btn-primary .explore-menu-emoji {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.15);
}

.explore-menu-btn-primary:hover {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-color: #bbf7d0;
  color: #022c0d;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.35);
}

.explore-menu-dismiss {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.explore-menu-dismiss button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: #71717a;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.explore-menu-dismiss button:hover {
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
  .explore-menu-panel {
    padding: 1.35rem 1.1rem 1.2rem;
    border-radius: 14px;
  }

  .explore-menu-panel h2 {
    font-size: 15px;
  }

  .explore-menu-btn {
    padding: 12px 12px;
    font-size: 11px;
    gap: 0.65rem;
  }

  .explore-menu-emoji {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.2rem;
  }
}
