@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500;700&family=DM+Sans:wght@400;500;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --bg-color: #070709;
  --bg-grid: #0d0d12;
  --card-bg: rgba(16, 16, 22, 0.65);
  --card-hover: rgba(22, 22, 32, 0.85);
  --border-color: rgba(57, 255, 20, 0.15);
  --border-hover: rgba(57, 255, 20, 0.4);
  --primary: #39ff14; /* Acid Green */
  --primary-glow: rgba(57, 255, 20, 0.3);
  --secondary: #00e5ff; /* Cyan */
  --secondary-glow: rgba(0, 229, 255, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(rgba(13, 13, 18, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 18, 0.7) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient lighting effect in background */
body::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.04) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.03) 0%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(57, 255, 20, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 7, 9, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

/* Burger Menu Button */
.burger-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  width: 32px;
  height: 28px;
  position: relative;
  z-index: 1100;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 15px;
}

.burger-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger-menu-btn.open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
  background-color: var(--primary);
}
.burger-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.burger-menu-btn.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
  background-color: var(--primary);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 4px;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo span {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
  white-space: nowrap;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  display: inline-block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 5px var(--primary-glow);
}

nav a:hover::after {
  width: 100%;
}

/* Sections General */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0.75rem auto 0 auto;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
  position: relative;
}

.hero-waveform {
  position: absolute;
  top: 15%;
  width: 80%;
  height: 150px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.95rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px var(--primary-glow);
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: 12px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 2rem;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bio {
  max-width: 750px;
  margin-bottom: 3.5rem;
  z-index: 1;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.hero-bio p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.hero-bio p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  z-index: 1;
}

/* Styled Button */
.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #000000;
  border: none;
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}

/* Interactive Synthesizer Panel */
.synth-container {
  background: linear-gradient(180deg, #181822 0%, #0d0d12 100%);
  border: 2px solid #2e2e3a;
  border-radius: 20px;
  padding: 2rem 1.25rem;
  box-shadow: 
    0 15px 45px rgba(0,0,0,0.6),
    inset 0 1px 2px rgba(255,255,255,0.1),
    0 0 2px var(--border-color);
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.synth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.synth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #272733;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.synth-title {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a1a1aa;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}

.synth-title:hover {
  opacity: 0.8;
}

.synth-title span {
  color: var(--primary);
}

.synth-layout-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  z-index: 1;
  position: relative;
  width: 100%;
}

.synth-block {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-sizing: border-box;
}

.filter-block {
  flex: 2 1 240px;
}

.modulation-block {
  flex: 3 1 320px;
}

.drums-block {
  flex: 4 1 400px;
}

.poly-block {
  flex: 4 1 400px;
}

.mixer-block {
  flex: 1 1 100%;
  width: 100%;
}

.fx-block {
  flex: 4 1 380px;
}

.master-block {
  flex: 2 1 240px;
}

/* ── MASTER EQ & STEREO WIDENER BLOCK ───────────────── */
.master-eq-block {
  flex: 2 1 280px;
  min-width: 240px;
  border-color: rgba(255, 255, 255, 0.07);
}

.master-eq-knobs {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Thin vertical divider between EQ and Widener knobs */
.master-eq-divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.08);
  align-self: center;
  margin: 0 0.2rem;
  border-radius: 1px;
}

/* ── MASTER FILTER BLOCK ──────────────────────────── */
.master-filter-block {
  flex: 1 1 120px;
  min-width: 100px;
}

/* Scale labels below the knob: L.CUT — ◆ — H.CUT */
.master-filter-scale-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 7px;
  letter-spacing: 0.05em;
  color: var(--text-muted, #555);
  margin-top: 2px;
  text-transform: uppercase;
  user-select: none;
  width: 100%;
  max-width: 80px;
}

/* Centre diamond accent colour */
.master-filter-scale-labels span:nth-child(2) {
  color: var(--primary, #39ff14);
  opacity: 0.5;
}


/* ── SAMPLER BLOCK ────────────────────────────── */
:root {
  --sampler: #ffb300;        /* Warm amber accent */
  --sampler-glow: rgba(255, 179, 0, 0.25);
  --sampler-dim: rgba(255, 179, 0, 0.12);
}

.sampler-block {
  flex: 1 1 100%;
  width: 100%;
  border-color: rgba(255, 179, 0, 0.12) !important;
}

.sampler-block .block-title {
  color: var(--sampler);
  border-bottom-color: rgba(255, 179, 0, 0.15);
}

/* Source buttons row */
.sampler-source-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.sampler-btn {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 179, 0, 0.3);
  border-radius: 6px;
  color: var(--sampler);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  padding: 0.55rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}
.sampler-btn:hover {
  background: var(--sampler-dim);
  border-color: var(--sampler);
  box-shadow: 0 0 10px var(--sampler-glow);
}
.sampler-btn.active {
  background: var(--sampler);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 14px var(--sampler-glow);
}
.sampler-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Recording status indicator */
.sampler-rec-status {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #ff4444;
  letter-spacing: 1px;
}
.sampler-rec-status.active { display: flex; }
.sampler-rec-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff4444;
  animation: sampler-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes sampler-pulse {
  from { opacity: 1; box-shadow: 0 0 6px #ff4444; }
  to   { opacity: 0.25; box-shadow: none; }
}
.sampler-rec-timer {
  min-width: 38px;
  text-align: right;
}

/* Empty state hint */
.sampler-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px;
  color: rgba(255, 179, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-align: center;
  border: 1px dashed rgba(255, 179, 0, 0.15);
  border-radius: 8px;
  width: 100%;
}
.sampler-empty svg { opacity: 0.4; }

/* Waveform canvas */
.sampler-waveform-wrap {
  display: none;
  flex-direction: column;
  width: 100%;
  gap: 6px;
}
.sampler-waveform-wrap.visible { display: flex; }
#sampler-canvas {
  width: 100%;
  height: 80px;
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 179, 0, 0.15);
  display: block;
}
.sampler-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  width: 100%;
}
.sampler-info-name {
  color: var(--sampler);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}
/* Hidden file input */
#sampler-file-input { display: none; }

/* Sampler step buttons */
.step-btn.sampler-active {
  background: rgba(255, 179, 0, 0.18);
  border-color: var(--sampler);
  color: var(--sampler);
  box-shadow: inset 0 0 4px rgba(255, 179, 0, 0.25);
}

.step-btn-mini {
  font-size: 0.55rem !important;
  padding: 1px 2px !important;
  min-height: 18px !important;
  line-height: 1 !important;
  letter-spacing: 0.3px;
}

.step-btn.smp-rev-active {
  background: rgba(255, 179, 0, 0.15);
  border-color: #ffa000;
  color: #ffa000;
  box-shadow: inset 0 0 3px rgba(255, 160, 0, 0.2);
}

.step-btn.smp-pitch-active {
  background: rgba(255, 214, 0, 0.12);
  border-color: #ffd600;
  color: #ffd600;
  box-shadow: inset 0 0 3px rgba(255, 214, 0, 0.2);
}

/* Sampler FX row */
.sampler-fx-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 179, 0, 0.15);
}

.block-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: #71717a;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  text-align: center;
  padding-bottom: 0.5rem;
  font-weight: 700;
}

.block-knobs {
  display: flex;
  justify-content: space-around;
  gap: 1.5rem;
  width: 100%;
}

/* Filter Mode Switch */
.filter-mode-select {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.mode-btn:hover {
  color: #ffffff;
}

.mode-btn.active {
  background: var(--primary);
  color: #000000;
  box-shadow: 0 0 10px var(--primary-glow);
}

#bass-sub-btn.active {
  background: var(--primary) !important;
  color: #000000 !important;
  box-shadow: 0 0 10px var(--primary-glow) !important;
}

#lead-sub-btn.active {
  background: #448aff !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(68, 138, 255, 0.6) !important;
}

.dial-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dial-divider {
  width: 1px;
  height: 90px;
  background: rgba(255, 255, 255, 0.08);
  align-self: center;
  margin: 0 16px;
}

.dial-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Knob Styling */
.knob-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  cursor: pointer;
}

.knob-body {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #2d2d3a 0%, #15151e 100%);
  border-radius: 50%;
  border: 4px solid #3f3f52;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.5),
    inset 0 2px 4px rgba(255,255,255,0.05);
  position: relative;
  transition: transform 0.5s ease-out;
}

.knob-indicator {
  position: absolute;
  top: 8px;
  left: calc(50% - 2px);
  width: 4px;
  height: 16px;
  background-color: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--primary);
}

.knob-notches {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* Interactive Knob Hover Effects */
.knob-wrapper:hover .knob-body {
  border-color: var(--primary);
  box-shadow: 
    0 0 15px rgba(57, 255, 20, 0.25),
    inset 0 1px 3px rgba(255,255,255,0.08);
}

/* Sequencer Controls Bar */
.sequencer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
  gap: 1rem;
}

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

.control-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #71717a;
  text-transform: uppercase;
}

/* Play/Stop Button */
.play-btn {
  background: #ff3e3e;
  color: #ffffff;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(255, 62, 62, 0.3);
}

.play-btn.playing,
.play-btn.active {
  background: var(--primary) !important;
  color: #000000 !important;
  box-shadow: 0 0 15px var(--primary-glow) !important;
}

/* Waveform Select Toggle */
.wave-select {
  display: flex;
  background: #1c1c28;
  border: 1px solid #3f3f52;
  border-radius: 6px;
  overflow: hidden;
}

.wave-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.wave-btn.active {
  background: var(--primary);
  color: #000000;
  font-weight: 700;
}

/* Sequencer Scroll / Grid Layout */
.sequencer-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.5rem 1rem;
}

.sequencer-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 900px;
}

@media (min-width: 960px) {
  .sequencer-scroll-wrapper {
    overflow-x: hidden;
    padding: 1.5rem 0.75rem;
  }
  
  .sequencer-grid {
    min-width: unset;
  }
  
  .step-column {
    padding: 0.5rem 0.25rem;
    gap: 0.5rem;
  }
  
  .step-btn {
    font-size: 0.6rem;
    padding: 0.35rem 0;
    letter-spacing: 0.2px;
  }
  
  .step-select {
    font-size: 0.6rem;
    padding: 0.2rem 0;
  }
}

/* Step Column */
.step-column {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}

/* Step Header containing LED & Number */
.step-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  box-sizing: border-box;
}

.step-column.current {
  /* No outline or background highlights on active columns to prevent visual lag and layout thrashing */
}

/* Step LED */
.step-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f3f52;
  transition: none;
}

.step-column.current .step-led {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #52525b;
}

.step-column.current .step-number {
  color: var(--primary);
}

/* Step Toggle Buttons */
.step-btn {
  width: 100%;
  padding: 0.4rem 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  transition: var(--transition);
  text-align: center;
}

.step-btn.gate-active {
  background: rgba(57, 255, 20, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: inset 0 0 4px rgba(57, 255, 20, 0.2);
}

.step-btn.tie-active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--secondary);
  color: var(--secondary);
}

.step-btn.accent-active {
  background: rgba(255, 234, 0, 0.15);
  border-color: #ffea00;
  color: #ffea00;
}

/* Dropdown styling */
.step-select {
  width: 100%;
  background: #121218;
  border: 1px solid #2e2e3a;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  text-align-last: center;
}

.step-select:focus {
  border-color: var(--primary);
}

/* Discography Grid */
.disco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* Custom Audio Player Layout */
.custom-player {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.custom-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.custom-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.custom-cover-wrapper:hover .custom-cover {
  transform: scale(1.03);
}

.custom-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.85);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
  z-index: 2;
}

.custom-play-btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
  transform: translate(-50%, -50%) scale(1.08);
}

.custom-play-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.custom-play-btn svg.play-svg {
  margin-left: 3px; /* visual center alignment for play triangle */
}

.custom-play-btn svg.hidden {
  display: none;
}

.custom-player-details {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-track-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fff;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}

.custom-timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-timeline {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.custom-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--primary);
}

.custom-time-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Beat Glow pulse animation (120 BPM = 0.5s per beat, 1s full cycle) */
@keyframes beat-glow {
  0% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--border-color);
  }
  50% {
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.25), 0 0 3px rgba(57, 255, 20, 0.4);
    border-color: rgba(57, 255, 20, 0.5);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--border-color);
  }
}

.album-card.playing {
  animation: beat-glow 3.5s infinite ease-in-out;
}


.album-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.album-card:hover {
  transform: translateY(-5px);
  background: var(--card-hover);
  border-color: var(--border-hover);
  box-shadow: 
    0 10px 30px rgba(57, 255, 20, 0.08),
    0 0 2px var(--border-hover);
}

.album-header {
  margin-bottom: 1.25rem;
}

.album-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.album-title-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.album-embed {
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a24;
  margin: 0 auto 1.25rem auto;
  width: 100%;
  max-width: 350px;
  height: 420px;
}

.album-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.album-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.album-link:hover {
  color: var(--primary);
}

.album-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.album-link:hover svg {
  transform: translateX(3px);
}

/* Video Section */
.youtube-block {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(7, 7, 9, 0.6) 100%);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.youtube-block:hover {
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 
    0 15px 45px rgba(220, 38, 38, 0.06),
    0 0 2px rgba(220, 38, 38, 0.3);
}

.youtube-info h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.youtube-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.youtube-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #111 url('https://img.youtube.com/vi/QYzCy_f8o7M/hqdefault.jpg') no-repeat center center;
  background-size: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.youtube-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
  transition: var(--transition);
}

.youtube-preview:hover::before {
  background: rgba(0, 0, 0, 0.3);
}

.play-icon {
  width: 64px;
  height: 64px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.play-icon svg {
  fill: #ffffff;
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

.youtube-preview:hover .play-icon {
  transform: scale(1.1);
  background: #e60000;
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.6);
}

/* Contact Footer */
footer {
  background: #040406;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 4rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 6px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-logo span {
  color: var(--primary);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.social-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon-btn:hover {
  color: var(--primary);
  background: rgba(57, 255, 20, 0.05);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-3px);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #4b5563;
  letter-spacing: 1px;
}

/* Responsive Rules */
@media (max-width: 900px) {
  .youtube-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  header {
    background: rgba(7, 7, 9, 0.95);
  }
  
  .nav-container {
    padding: 1rem 1.5rem;
  }
  
  .burger-menu-btn {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(7, 7, 9, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    padding: 90px 2rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    z-index: 1000;
  }
  
  body.theme-neumorphic nav {
    background: rgba(238, 242, 247, 0.98);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  }

  nav.open {
    right: 0;
  }

  nav ul {
    display: flex !important;
    flex-direction: column;
    gap: 1.75rem;
    align-items: flex-start;
  }
  
  nav a {
    font-size: 1.05rem;
    padding: 8px 0;
    display: block;
    width: 100%;
  }
  
  section {
    padding: 4rem 1.5rem;
  }
  
  .hero-bio {
    padding: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  nav ul {
    /* display: none; - overridden by mobile burger menu drawer */
  }
  
  .hero h1 {
    letter-spacing: 6px;
  }
  
  .synth-container {
    padding: 1.5rem 1rem;
  }
  
  .block-knobs {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .synth-block {
    padding: 1rem 0.5rem;
    width: 100%;
  }
}

/* Drum Track Styling */
.step-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 0.25rem 0;
}

.track-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: #52525b;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.step-btn.kick-active {
  background: rgba(255, 87, 34, 0.15);
  border-color: #ff5722;
  color: #ff5722;
  box-shadow: inset 0 0 4px rgba(255, 87, 34, 0.2);
}

.step-btn.hat-closed {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
  color: #00e5ff;
  box-shadow: inset 0 0 4px rgba(0, 229, 255, 0.2);
}

.step-btn.hat-open {
  background: rgba(255, 171, 0, 0.15);
  border-color: #ffab00;
  color: #ffab00;
  box-shadow: inset 0 0 4px rgba(255, 171, 0, 0.2);
}

/* Embedded Tempo Styles */
.tempo-embed-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tempo-embed-dial-box {
  display: flex;
  align-items: center;
}

.knob-tempo-embed {
  width: 44px !important;
  height: 44px !important;
}

.knob-tempo-embed .knob-body {
  width: 44px !important;
  height: 44px !important;
}

.knob-tempo-embed .knob-indicator {
  height: 12px !important;
  top: 4px !important;
}

/* Mixer Channel Strips Layout */
.mixer-channels {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.mixer-channels::-webkit-scrollbar {
  height: 6px;
}
.mixer-channels::-webkit-scrollbar-track {
  background: transparent;
}
.mixer-channels::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.mixer-channels::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mixer-channel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 95px;
  min-width: 95px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 0.5rem 0.1rem;
  gap: 0.5rem;
}

.mixer-channel-title {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  width: 80%;
  text-align: center;
  padding-bottom: 0.2rem;
  margin-bottom: 0.1rem;
}

/* Color highlights for channel titles */
.channel-bassline .mixer-channel-title {
  color: var(--primary); /* Neon Green */
}

.channel-kick .mixer-channel-title {
  color: #ff5722; /* Orange */
}

.channel-hat .mixer-channel-title {
  color: #00e5ff; /* Cyan */
}

.channel-lead .mixer-channel-title {
  color: #448aff; /* Light Blue */
}

.channel-snare .mixer-channel-title {
  color: #e040fb; /* Magenta */
}

.channel-sampler .mixer-channel-title {
  color: var(--sampler); /* Amber */
}

/* Micro-potentiometers styling inside mixer */
.knob-mixer {
  width: 50px !important;
  height: 50px !important;
}

.knob-mixer .knob-body {
  width: 50px !important;
  height: 50px !important;
}

.knob-mixer .knob-indicator {
  height: 14px !important;
  top: 4px !important;
}

.knob-mixer-small {
  width: 36px !important;
  height: 36px !important;
}

.knob-mixer-small .knob-body {
  width: 36px !important;
  height: 36px !important;
}

.knob-mixer-small .knob-indicator {
  height: 10px !important;
  top: 2px !important;
}

/* Legal Modal Styling */
.footer-legal {
  margin-top: 15px;
  text-align: center;
}

.legal-link-btn {
  background: none;
  border: none;
  color: #888;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-link-btn:hover {
  color: #39ff14;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  display: none;
  opacity: 0;
}

.modal-container {
  width: 90%;
  max-width: 700px;
  height: 85vh;
  background: #0d0d0d;
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(57, 255, 20, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.modal-close-x-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.modal-close-x-btn:hover {
  color: #fff;
}

.modal-tabs {
  display: flex;
  background: #121212;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #888;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.modal-tab-btn.active {
  color: #39ff14;
  border-bottom-color: #39ff14;
  background: rgba(57, 255, 20, 0.02);
}

.modal-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  color: #aaa;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  font-size: 18px;
  color: #fff;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.legal-section {
  margin-bottom: 20px;
}

.legal-section h4 {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 6px;
}

.legal-section p {
  margin: 0;
}

.legal-section ul {
  margin: 8px 0;
  padding-left: 20px;
}

.legal-section li {
  margin-bottom: 4px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  background: #0d0d0d;
}

.modal-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Filter small Env knob styling */
.knob-small {
  width: 36px !important;
  height: 36px !important;
}

.knob-small .knob-body {
  width: 36px !important;
  height: 36px !important;
}

.knob-small .knob-indicator {
  height: 10px !important;
  top: 2px !important;
}

.filter-env-knob-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 5px;
}

.dial-box-small {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dial-box-small .dial-label {
  font-size: 10px !important;
  margin-top: 4px;
}

/* Randomize Button */
#seq-random-btn {
  background: #00e5ff;
  color: #000000;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

#seq-random-btn:hover {
  background: #00b2cc;
}

/* Duck Button */
#duck-btn.active {
  background: #ff5722;
  color: #000000;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.4);
  border-color: #ff5722 !important;
}

#duck-btn.duck-flash {
  animation: duckPulse 0.12s ease-out;
}

@keyframes duckPulse {
  0% { box-shadow: 0 0 20px rgba(255, 87, 34, 0.9); transform: scale(1.08); }
  100% { box-shadow: 0 0 10px rgba(255, 87, 34, 0.4); transform: scale(1); }
}

/* --- COLLAPSIBLE ACCORDION & VOICE STYLES --- */
.voice-section {
  display: flex;
  flex-direction: column;
  background: rgba(16, 16, 22, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 8px;
}

.voice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.voice-title-wrap {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

.voice-arrow {
  transition: transform 0.2s ease;
}

.voice-random-btn {
  margin-left: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.voice-random-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--voice-color, var(--primary));
  color: #fff;
  box-shadow: 0 0 8px var(--voice-color, var(--primary));
}

.dir-selector {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dir-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.dir-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.dir-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.seq-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.seq-mode-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.seq-mode-btn.active {
  background: var(--track-color, var(--primary));
  color: #000000;
}

.seq-auto-map-btn {
  background: rgba(255, 179, 0, 0.05);
  border: 1px solid rgba(255, 179, 0, 0.3);
  color: var(--track-color, var(--primary));
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.seq-auto-map-btn:hover {
  background: rgba(255, 179, 0, 0.18);
  border-color: var(--track-color, var(--primary));
}

.wave-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.wave-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.voice-steps {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 10px;
  margin-top: 10px;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
  max-height: 350px;
  opacity: 1;
}

.voice-steps.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

@media (min-width: 960px) {
  .voice-steps {
    gap: 4px;
  }
}

/* Step colors per voice */
#section-bass .step-column.current .step-led {
  background: var(--primary) !important;
  box-shadow: 0 0 10px var(--primary) !important;
}
#section-bass .step-column.current .step-number {
  color: var(--primary) !important;
}

#section-lead .step-column.current .step-led {
  background: #448aff !important;
  box-shadow: 0 0 10px #448aff !important;
}
#section-lead .step-column.current .step-number {
  color: #448aff !important;
}

#section-kick .step-column.current .step-led {
  background: #ff5722 !important;
  box-shadow: 0 0 10px #ff5722 !important;
}
#section-kick .step-column.current .step-number {
  color: #ff5722 !important;
}

#section-snare .step-column.current .step-led {
  background: #e040fb !important;
  box-shadow: 0 0 10px #e040fb !important;
}
#section-snare .step-column.current .step-number {
  color: #e040fb !important;
}

#section-hat .step-column.current .step-led {
  background: #00e5ff !important;
  box-shadow: 0 0 10px #00e5ff !important;
}
#section-hat .step-column.current .step-number {
  color: #00e5ff !important;
}

/* Voice specific active buttons */
.lead-gate-active {
  background: #448aff !important;
  border-color: #448aff !important;
  box-shadow: 0 0 10px rgba(68, 138, 255, 0.6) !important;
  color: #000000 !important;
}
.lead-tie-active {
  background: #00bcd4 !important;
  border-color: #00bcd4 !important;
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.5) !important;
  color: #000000 !important;
}
.lead-accent-active {
  background: #ff4081 !important;
  border-color: #ff4081 !important;
  box-shadow: 0 0 8px rgba(255, 64, 129, 0.5) !important;
  color: #000000 !important;
}
.snare-active {
  background: #e040fb !important;
  border-color: #e040fb !important;
  box-shadow: 0 0 10px rgba(224, 64, 251, 0.6) !important;
  color: #000000 !important;
}
.rim-active {
  background: #9c27b0 !important;
  border-color: #9c27b0 !important;
  box-shadow: 0 0 8px rgba(156, 39, 176, 0.5) !important;
  color: #ffffff !important;
}
.step-btn.kick-accent-active {
  background: #ff5722 !important;
  border-color: #ff5722 !important;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.7) !important;
  color: #ffffff !important;
  font-weight: bold !important;
}
.step-btn.snare-accent-active {
  background: #ff00ff !important;
  border-color: #ff00ff !important;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.7) !important;
  color: #ffffff !important;
  font-weight: bold !important;
}

/* Mixer LED indicator colors */
.channel-strip[data-channel="lead"] .mixer-meter-led {
  background: #448aff;
  box-shadow: 0 0 8px #448aff;
}
.channel-strip[data-channel="snare"] .mixer-meter-led {
  background: #e040fb;
  box-shadow: 0 0 8px #e040fb;
}

/* --- VOICE CONTROLS (DIR / LOOP / SYNC) --- */
.voice-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.loop-selector, .speed-selector {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.loop-btn, .speed-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.loop-btn:hover, .speed-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.loop-btn.active, .speed-btn.active {
  background: var(--track-color) !important;
  color: #000000 !important;
  font-weight: 800;
  box-shadow: 0 0 8px var(--track-color);
}

.sync-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.sync-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--track-color);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
}

.sync-btn.flash {
  animation: syncFlash 0.3s ease-out;
}

@keyframes syncFlash {
  0% {
    background: var(--track-color);
    color: #000000;
    box-shadow: 0 0 15px var(--track-color);
  }
  100% {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    box-shadow: none;
  }
}

/* Make sure mobile is responsive and controls stack cleanly */
@media (max-width: 768px) {
  .voice-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .voice-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Multi-Select & Transpose Enhancements */
.step-column.selected {
  outline: 2px solid var(--track-color);
  outline-offset: -2px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.multi-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 5px 8px;
  cursor: pointer;
  transition: var(--transition);
}
.multi-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--track-color);
}
.multi-btn.active {
  background: var(--track-color) !important;
  color: #000000 !important;
  border-color: var(--track-color);
  box-shadow: 0 0 8px var(--track-color);
}

.step-column.flash-active {
  animation: stepFlashAnim 0.4s ease-out;
}
@keyframes stepFlashAnim {
  0% {
    background: var(--track-color);
    opacity: 0.85;
  }
  100% {
    background: transparent;
    opacity: 1.0;
  }
}

.transpose-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 3px 6px;
}
.trans-readout {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--track-color);
  min-width: 58px;
  text-align: center;
  letter-spacing: 0.5px;
}
.trans-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.trans-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--track-color);
}

/* LFO Sektion Layout & Elements */
.lfo-block {
  flex: 1 1 100%;
  width: 100%;
}

.lfo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.lfo-grid.collapsed {
  display: none !important;
}

/* Custom Single-Select Dropdown System styles for LFO Sync Rate */
.lfo-custom-select-wrapper {
  position: relative;
  width: 100%;
}

.lfo-custom-select-trigger {
  width: 100%;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.lfo-custom-select-trigger:after {
  content: '▼';
  font-size: 6px;
  color: #71717a;
  margin-left: 4px;
}

.lfo-custom-select-popover {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 4px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 999;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 4px;
}

.lfo-custom-select-popover.visible {
  display: block;
}

.lfo-custom-select-option {
  padding: 4px 6px;
  font-size: 9px;
  color: #d4d4d8;
  cursor: pointer;
  font-family: var(--font-mono);
  border-radius: 3px;
}

.lfo-custom-select-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.lfo-custom-select-option.active {
  background: var(--primary);
  color: #ffffff;
}

/* Custom Dropdown/Popover Checkbox System styles */
.lfo-select-wrapper {
  position: relative;
  width: 100%;
}

.lfo-dropdown-trigger {
  width: 100%;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.lfo-dropdown-trigger:after {
  content: '▼';
  font-size: 7px;
  color: #71717a;
}

.lfo-dropdown-popover {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 999;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 4px;
}

.lfo-dropdown-popover.visible {
  display: block;
}

.lfo-group-header {
  font-size: 8px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 1px;
  margin: 6px 0 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2px;
  text-transform: uppercase;
}

.lfo-target-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  font-size: 9px;
  color: #d4d4d8;
  cursor: pointer;
  user-select: none;
  border-radius: 3px;
}

.lfo-target-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.lfo-target-option input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  accent-color: var(--lfo-color);
}

.lfo-dropdown-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 6px;
}

.lfo-popover-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 3px 6px;
  cursor: pointer;
  flex: 1;
  text-align: center;
}

.lfo-popover-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.lfo-popover-btn.clear {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.2);
}
.lfo-popover-btn.clear:hover {
  background: rgba(248, 113, 113, 0.1);
}


.lfo-slot {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  box-sizing: border-box;
}

.lfo-slot-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--lfo-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 3px;
  text-transform: uppercase;
}

.lfo-wave-select {
  display: flex;
  gap: 2px;
  width: 100%;
}

.lfo-wave-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 3px 0;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.lfo-wave-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.lfo-wave-btn.active {
  background: var(--lfo-color) !important;
  color: #000000 !important;
  font-weight: 800;
  box-shadow: 0 0 5px var(--lfo-color);
}

.lfo-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.lfo-dial-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.lfo-dial-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
}

.lfo-select {
  width: 100%;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 3px;
  outline: none;
  box-sizing: border-box;
}

.lfo-select option {
  background: #0d0d12;
  color: var(--text-main);
}

.lfo-mode-select {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.lfo-mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 0;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  border-radius: 2px;
}

.lfo-mode-btn.active {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.lfo-status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lfo-color);
  box-shadow: 0 0 5px var(--lfo-color);
  opacity: 0.2;
  transition: opacity 0.05s ease;
}

/* Modulated knobs glow animation overlay */
.knob-wrapper.lfo-modulated .knob-body {
  box-shadow: 0 0 15px var(--modulation-color), inset 0 2px 4px rgba(255,255,255,0.1) !important;
  border-color: var(--modulation-color) !important;
}

.knob-wrapper.lfo-modulated .knob-indicator {
  background-color: var(--modulation-color) !important;
  box-shadow: 0 0 8px var(--modulation-color) !important;
}

/* Responsive adjustment for Mobile view */
@media (max-width: 992px) {
  .lfo-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .lfo-grid {
    grid-template-columns: 1fr;
  }
}

/* Motion Recording UI controls */
.block-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.motion-rec-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.motion-rec-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #71717a;
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 2px 6px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
}

.motion-rec-btn:hover {
  border-color: #ff5722;
  color: #ff5722;
}

.motion-rec-btn.recording {
  background: rgba(255, 87, 34, 0.15) !important;
  border-color: #ff5722 !important;
  color: #ff5722 !important;
  animation: pulse-red 1s infinite alternate;
}

.motion-rec-btn.armed {
  background: rgba(255, 193, 7, 0.15) !important;
  border-color: #ffc107 !important;
  color: #ffc107 !important;
  animation: pulse-orange 0.5s infinite alternate;
}

.motion-play-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #52525b;
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 2px 6px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
}

.motion-play-btn.ready {
  color: #a1a1aa;
  border-color: rgba(255, 255, 255, 0.15);
}

.motion-play-btn.ready:hover {
  color: #39ff14;
  border-color: #39ff14;
  background: rgba(57, 255, 20, 0.05);
}

.motion-play-btn.playing {
  background: rgba(57, 255, 20, 0.15) !important;
  border-color: #39ff14 !important;
  color: #39ff14 !important;
  animation: pulse-green 1.5s infinite alternate;
}

.motion-clear-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: #52525b;
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 2px 4px;
  cursor: pointer;
  transition: var(--transition);
  display: none;
}

.motion-clear-btn.visible {
  display: inline-block;
  color: #71717a;
}

.motion-clear-btn.visible:hover {
  color: #ff3333;
  border-color: #ff3333;
  background: rgba(255, 51, 51, 0.05);
}

.motion-progress-bar {
  width: 100%;
  height: 2px;
  background: transparent;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.05s linear;
  z-index: 2;
}

.motion-progress-bar.recording {
  background: #ff5722;
}

.motion-progress-bar.playing {
  background: #39ff14;
}

/* Modulated knobs glow animation overlay for motion play */
.knob-wrapper.motion-active .knob-body {
  box-shadow: 0 0 15px #39ff14, inset 0 2px 4px rgba(255,255,255,0.1) !important;
  border-color: #39ff14 !important;
}

.knob-wrapper.motion-active .knob-indicator {
  background-color: #39ff14 !important;
  box-shadow: 0 0 8px #39ff14 !important;
}

/* Animation keyframes */
@keyframes pulse-red {
  0% { opacity: 0.6; }
  100% { opacity: 1; box-shadow: 0 0 8px rgba(255, 87, 34, 0.4); }
}

@keyframes pulse-green {
  0% { opacity: 0.6; }
  100% { opacity: 1; box-shadow: 0 0 8px rgba(57, 255, 20, 0.4); }
}

@keyframes pulse-orange {
  0% { opacity: 0.4; }
  100% { opacity: 1; box-shadow: 0 0 8px rgba(255, 193, 7, 0.4); }
}

/* Local Parameter Value Display styles */
.dial-value {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #71717a;
  margin-top: 2px;
  text-align: center;
  transition: color 0.2s ease;
  font-weight: 700;
}

.drum-tune-select {
  margin-top: 5px;
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #71717a;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 3px 5px;
  outline: none;
  cursor: pointer;
  width: 90px;
  text-align-last: center;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.drum-tune-select:hover,
.drum-tune-select:focus {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.drum-tune-select.active-tune {
  border-color: rgba(0, 229, 255, 0.8) !important;
  color: #00e5ff !important;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  text-shadow: 0 0 4px rgba(0, 229, 255, 0.5);
}

.drum-tune-select option {
  background: #15151e;
  color: #ffffff;
  font-family: var(--font-mono);
}

/* Accent-color coordination per section/channel strip */
.channel-bassline .dial-value { color: rgba(57, 255, 20, 0.75); }
.channel-lead .dial-value { color: rgba(224, 64, 251, 0.75); }
.channel-kick .dial-value { color: rgba(255, 87, 34, 0.75); }
.channel-snare .dial-value { color: rgba(255, 193, 7, 0.75); }
.channel-hat .dial-value { color: rgba(0, 229, 255, 0.75); }
.channel-sampler .dial-value { color: rgba(255, 179, 0, 0.75); }

.filter-block .dial-value { color: rgba(57, 255, 20, 0.75); }
.modulation-block .dial-value { color: rgba(57, 255, 20, 0.75); }
.lead-block .dial-value { color: rgba(224, 64, 251, 0.75); }
.drums-block .dial-value { color: rgba(255, 87, 34, 0.75); }
.sampler-block .dial-value { color: rgba(255, 179, 0, 0.75); }
.fx-block .dial-value { color: rgba(0, 229, 255, 0.75); }
.master-block .dial-value { color: rgba(255, 193, 7, 0.75); }

/* Quick Mute button styling */
.channel-mute-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #71717a;
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 2px 4px;
  cursor: pointer;
  margin-top: 5px;
  transition: var(--transition);
  font-weight: 700;
  width: 100%;
  max-width: 46px;
  text-align: center;
  box-sizing: border-box;
}

.channel-mute-btn:hover {
  border-color: #ff3333;
  color: #ff3333;
  background: rgba(255, 51, 51, 0.05);
}

.channel-mute-btn.muted {
  background: rgba(255, 51, 51, 0.25) !important;
  border-color: #ff3333 !important;
  color: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 51, 51, 0.5);
  text-shadow: 0 0 4px #ff3333;
}

/* Sampler Chop Resolution Selector */
.sampler-resolution-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

#sampler-resolution-select .wave-btn {
  padding: 0.3rem 0.7rem;
  font-size: 0.65rem;
}

#sampler-resolution-select .wave-btn.active {
  background: var(--sampler);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 0 10px var(--sampler-glow);
}

/* Sampler Full Width Layout details */
.sampler-waveform-wrap {
  width: 100%;
  max-width: 100% !important;
  margin-bottom: 0.5rem;
}

#sampler-canvas {
  width: 100%;
  height: 110px !important;
  cursor: crosshair;
}

.sampler-controls-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  gap: 2rem;
  margin-top: 10px;
  flex-wrap: wrap;
}

.sampler-controls-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sampler-fx-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

/* Sampler sequencer step enhancements */
.step-btn.smp-tie-active {
  background: rgba(255, 179, 0, 0.15);
  border-color: var(--sampler);
  color: var(--sampler);
  box-shadow: inset 0 0 4px rgba(255, 179, 0, 0.2);
}

/* Micro knob layout inside step sequencer */
.knob-micro {
  width: 22px !important;
  height: 22px !important;
  margin-top: 4px;
}

.knob-micro .knob-body {
  width: 22px !important;
  height: 22px !important;
  border-width: 1px !important;
  border-color: rgba(255, 179, 0, 0.3) !important;
  background: #1c1c28 !important;
  box-shadow: 0 0 5px rgba(255, 179, 0, 0.05);
}

.knob-micro .knob-indicator {
  height: 6px !important;
  width: 1.2px !important;
  top: 2px !important;
  background: var(--sampler) !important;
}

.knob-micro .knob-notches {
  display: none !important; /* hide notches on micro level to keep it super clean */
}

/* Sampler Privacy Modal & Upload Note styling */
.sampler-upload-note {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
  font-style: italic;
  letter-spacing: 0.3px;
}

.sampler-modal-container {
  max-width: 480px;
  height: auto;
  max-height: 90vh;
  border-color: rgba(255, 179, 0, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 179, 0, 0.05);
}

.sampler-modal-header h2 {
  color: var(--sampler);
  font-size: 1.15rem;
}

.sampler-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sampler-modal-footer .confirm-btn {
  background: var(--sampler);
  border-color: var(--sampler);
  color: #000;
}

.sampler-modal-footer .confirm-btn:hover {
  background: #ffc43d;
  border-color: #ffc43d;
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.35);
}

.sampler-modal-footer .cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
}

.sampler-modal-footer .cancel-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
/* ── Background Story Section ── */
.story-section {
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.story-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.story-header-block {
  text-align: center;
  margin-bottom: 3.5rem;
}

.story-main-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.story-subheading-main {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--secondary);
  line-height: 1.5;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.story-content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.story-content p {
  margin-bottom: 1.75rem;
  text-align: justify;
}

.story-content .story-closing-p {
  font-weight: 500;
  color: var(--text-main);
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}

.story-section-subheading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 8px var(--primary-glow);
}

/* Neumorphic override rules */
body.theme-neumorphic {
  --bg-color: #E0E5EC;
  --bg-grid: #E0E5EC;
  --card-bg: #E0E5EC;
  --card-hover: #E0E5EC;
  --primary: #6C63FF;
  --primary-glow: rgba(108, 99, 255, 0.35);
  --secondary: #8B84FF;
  --secondary-glow: rgba(139, 132, 255, 0.35);
  --sampler: #6c63ff;
  --sampler-glow: rgba(108, 99, 255, 0.35);
  --sampler-dim: rgba(108, 99, 255, 0.15);
  --text-main: #3D4852;
  --text-muted: #6B7280;
  --border-color: transparent;
  --border-hover: transparent;

  /* Custom Neumorphic Variables */
  --neu-shadow-light: rgba(255, 255, 255, 0.65);
  --neu-shadow-dark: rgba(163, 177, 198, 0.7);

  background-image: none !important;
  color: var(--text-main);
  font-family: 'DM Sans', 'Inter', sans-serif;
}

body.theme-neumorphic h1, 
body.theme-neumorphic h2, 
body.theme-neumorphic h3, 
body.theme-neumorphic h4, 
body.theme-neumorphic .block-title {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  border-bottom: none !important;
}

/* Card / Container styling override */
body.theme-neumorphic .synth-block,
body.theme-neumorphic .mixer-block,
body.theme-neumorphic .fx-block,
body.theme-neumorphic .master-block,
body.theme-neumorphic .control-block,
body.theme-neumorphic .album-card,
body.theme-neumorphic .youtube-block,
body.theme-neumorphic .dashboard,
body.theme-neumorphic #header,
body.theme-neumorphic .step-sequencer-grid,
body.theme-neumorphic .legal-modal-container,
body.theme-neumorphic .sampler-modal-container {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 9px 9px 16px var(--neu-shadow-dark), -9px -9px 16px var(--neu-shadow-light) !important;
  border-radius: 24px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: all 0.3s ease-out;
}

body.theme-neumorphic .synth-block:hover,
body.theme-neumorphic .album-card:hover {
  transform: translateY(-2px);
  box-shadow: 11px 11px 20px var(--neu-shadow-dark), -11px -11px 20px var(--neu-shadow-light) !important;
}

/* Audio visualization wells / step grids */
body.theme-neumorphic .canvas-wrapper,
body.theme-neumorphic .sampler-waveform-wrap,
body.theme-neumorphic .wave-display,
body.theme-neumorphic .knob-body,
body.theme-neumorphic .dial-body,
body.theme-neumorphic .step-container,
body.theme-neumorphic .legal-content,
body.theme-neumorphic .sampler-modal-content,
body.theme-neumorphic .sampler-grid-select {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: inset 5px 5px 10px var(--neu-shadow-dark), inset -5px -5px 10px var(--neu-shadow-light) !important;
}

/* Inputs & Buttons */
body.theme-neumorphic button,
body.theme-neumorphic select,
body.theme-neumorphic .step-btn,
body.theme-neumorphic .dir-btn,
body.theme-neumorphic .synth-btn,
body.theme-neumorphic .sampler-btn,
body.theme-neumorphic .tab-btn,
body.theme-neumorphic .theme-toggle-btn {
  background: var(--bg-color) !important;
  border: none !important;
  color: var(--text-main) !important;
  box-shadow: 4px 4px 8px var(--neu-shadow-dark), -4px -4px 8px var(--neu-shadow-light) !important;
  transition: all 0.2s ease-out;
  border-radius: 10px !important;
}

body.theme-neumorphic button:hover,
body.theme-neumorphic .step-btn:hover,
body.theme-neumorphic .theme-toggle-btn:hover {
  box-shadow: 5px 5px 10px var(--neu-shadow-dark), -5px -5px 10px var(--neu-shadow-light) !important;
  transform: translateY(-1px);
}

body.theme-neumorphic button:active,
body.theme-neumorphic button.active,
body.theme-neumorphic .step-btn.active,
body.theme-neumorphic .dir-btn.active,
body.theme-neumorphic .sampler-btn.active,
body.theme-neumorphic .step-btn.gate-active,
body.theme-neumorphic .step-btn.accent-active,
body.theme-neumorphic .step-btn.tie-active {
  box-shadow: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-shadow-light) !important;
  color: var(--primary) !important;
  transform: translateY(0.5px);
}

.hero-inline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px dashed rgba(57, 255, 20, 0.35);
  padding-bottom: 1px;
}

.hero-inline-link:hover {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  text-shadow: 0 0 8px var(--secondary-glow);
}

body.theme-neumorphic .step-btn.gate-active {
  background: var(--bg-color) !important;
  color: var(--primary) !important;
}

/* Knobs */
body.theme-neumorphic .knob-body,
body.theme-neumorphic .dial-body {
  border-radius: 50% !important;
  box-shadow: 5px 5px 10px var(--neu-shadow-dark), -5px -5px 10px var(--neu-shadow-light) !important;
}

body.theme-neumorphic .knob-indicator,
body.theme-neumorphic .dial-pointer {
  background: var(--primary) !important;
}

/* Slider Track & Fader */
body.theme-neumorphic .fader-track,
body.theme-neumorphic .slider-track {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light) !important;
}

body.theme-neumorphic .fader-handle,
body.theme-neumorphic .slider-thumb {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light) !important;
}

/* Switch & Toggles */
body.theme-neumorphic .switch {
  background: var(--bg-color) !important;
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light) !important;
}

body.theme-neumorphic .switch-handle {
  background: var(--bg-color) !important;
  box-shadow: 2px 2px 4px var(--neu-shadow-dark), -2px -2px 4px var(--neu-shadow-light) !important;
}

/* Header customization for Neumorphic */
body.theme-neumorphic #header {
  border-radius: 0 0 24px 24px !important;
}

body.theme-neumorphic .nav-container a {
  color: var(--text-main) !important;
}

body.theme-neumorphic .nav-container a:hover {
  color: var(--primary) !important;
}

body.theme-neumorphic .hero {
  background-color: var(--bg-color) !important;
  color: var(--text-main) !important;
}

body.theme-neumorphic .hero h1 {
  color: var(--text-main) !important;
}

body.theme-neumorphic .social-icon-btn {
  background: var(--bg-color) !important;
  box-shadow: 4px 4px 8px var(--neu-shadow-dark), -4px -4px 8px var(--neu-shadow-light) !important;
  color: var(--text-main) !important;
}

body.theme-neumorphic .social-icon-btn:hover {
  box-shadow: 5px 5px 10px var(--neu-shadow-dark), -5px -5px 10px var(--neu-shadow-light) !important;
  color: var(--primary) !important;
}

/* ── Synth Console Area ─────────────────────── */
body.theme-neumorphic .synth-container {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 9px 9px 20px var(--neu-shadow-dark), -9px -9px 20px var(--neu-shadow-light) !important;
  border-radius: 28px !important;
}

body.theme-neumorphic .synth-container::before {
  display: none !important;
}

body.theme-neumorphic .synth-header {
  border-bottom: 1px solid rgba(163, 177, 198, 0.4) !important;
  background: transparent !important;
}

body.theme-neumorphic .synth-title {
  color: var(--text-main) !important;
  font-family: 'Plus Jakarta Sans', monospace !important;
}

body.theme-neumorphic .synth-title span {
  color: var(--primary) !important;
}

body.theme-neumorphic #console-status {
  color: var(--primary) !important;
}

body.theme-neumorphic .synth-block,
body.theme-neumorphic .lfo-block,
body.theme-neumorphic .sampler-block {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light) !important;
  border-radius: 20px !important;
}

body.theme-neumorphic .block-title,
body.theme-neumorphic .block-title span {
  color: var(--text-main) !important;
  border-bottom: 1px solid rgba(163, 177, 198, 0.35) !important;
}

/* Knobs / Dials */
body.theme-neumorphic .knob-wrapper,
body.theme-neumorphic .knob-outer,
body.theme-neumorphic .knob-track {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 5px 5px 10px var(--neu-shadow-dark), -5px -5px 10px var(--neu-shadow-light) !important;
  border-radius: 50% !important;
}

body.theme-neumorphic .knob-inner,
body.theme-neumorphic .knob-center {
  background: var(--bg-color) !important;
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light) !important;
  border-radius: 50% !important;
}

body.theme-neumorphic .knob-dot,
body.theme-neumorphic .knob-needle,
body.theme-neumorphic .knob-indicator {
  background: var(--primary) !important;
}

body.theme-neumorphic .knob-label,
body.theme-neumorphic .dial-label,
body.theme-neumorphic .knob-value {
  color: var(--text-muted) !important;
}

/* Waveform selector buttons */
body.theme-neumorphic .wave-btn,
body.theme-neumorphic .waveform-btn {
  background: var(--bg-color) !important;
  border: none !important;
  color: var(--text-muted) !important;
  box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light) !important;
  border-radius: 8px !important;
}

body.theme-neumorphic .wave-btn.active,
body.theme-neumorphic .waveform-btn.active,
body.theme-neumorphic .wave-btn:active {
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light) !important;
  color: var(--primary) !important;
  background: var(--bg-color) !important;
}

/* Filter mode buttons */
body.theme-neumorphic .filter-btn,
body.theme-neumorphic .mode-btn {
  background: var(--bg-color) !important;
  border: none !important;
  color: var(--text-muted) !important;
  box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light) !important;
  border-radius: 8px !important;
}

body.theme-neumorphic .filter-btn.active,
body.theme-neumorphic .mode-btn.active {
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light) !important;
  color: var(--primary) !important;
}

/* LFO sub-cards */
body.theme-neumorphic .lfo-card {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 4px 4px 9px var(--neu-shadow-dark), -4px -4px 9px var(--neu-shadow-light) !important;
  border-radius: 14px !important;
}

body.theme-neumorphic .lfo-card .lfo-label,
body.theme-neumorphic .lfo-rate-label,
body.theme-neumorphic .lfo-amt-label {
  color: var(--text-muted) !important;
}

/* Range / slider inputs in Neumorph */
body.theme-neumorphic input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #eef3f9;
  cursor: pointer;
  width: 100%;
  height: 8px !important;
  border-radius: 8px !important;
  box-shadow: inset 1px 1px 3px rgba(163, 177, 198, 0.65), inset -1px -1px 3px rgba(255, 255, 255, 0.8) !important;
}

body.theme-neumorphic input[type="range"]::-webkit-slider-runnable-track {
  background: transparent !important;
  border-radius: 8px !important;
  height: 8px !important;
}

body.theme-neumorphic input[type="range"]::-moz-range-track {
  background: transparent !important;
  border-radius: 8px !important;
  height: 8px !important;
  border: none !important;
}

body.theme-neumorphic input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-color) !important;
  border-radius: 50% !important;
  box-shadow: 2px 2px 4px rgba(163, 177, 198, 0.65), -2px -2px 4px rgba(255, 255, 255, 0.9) !important;
  border: 3px solid currentColor !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: -5px !important;
  transition: transform 0.1s ease-out;
}

body.theme-neumorphic input[type="range"]::-moz-range-thumb {
  background: var(--bg-color) !important;
  border-radius: 50% !important;
  box-shadow: 2px 2px 4px rgba(163, 177, 198, 0.65), -2px -2px 4px rgba(255, 255, 255, 0.9) !important;
  border: 3px solid currentColor !important;
  width: 18px !important;
  height: 18px !important;
  box-sizing: border-box !important;
  transition: transform 0.1s ease-out;
}

/* Step sequencer buttons */
body.theme-neumorphic .step-btn {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light) !important;
  border-radius: 8px !important;
}

body.theme-neumorphic .step-btn.gate-active {
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light) !important;
  background: var(--bg-color) !important;
  color: var(--primary) !important;
}

/* Motion REC / PLAY buttons */
body.theme-neumorphic .motion-rec-btn,
body.theme-neumorphic .motion-play-btn,
body.theme-neumorphic .motion-clear-btn {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 2px 2px 5px var(--neu-shadow-dark), -2px -2px 5px var(--neu-shadow-light) !important;
  color: var(--text-muted) !important;
  border-radius: 5px !important;
}

body.theme-neumorphic .motion-rec-btn.recording {
  color: #e74c3c !important;
  box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light) !important;
}

/* Sequencer section heading */
body.theme-neumorphic .section-title,
body.theme-neumorphic .sequencer-title {
  color: var(--text-main) !important;
}

body.theme-neumorphic .section-title::after {
  background: var(--primary) !important;
}

/* Footer area */
body.theme-neumorphic footer,
body.theme-neumorphic .footer-inner {
  background: var(--bg-color) !important;
  color: var(--text-muted) !important;
  border-top: 1px solid rgba(163, 177, 198, 0.3) !important;
}

body.theme-neumorphic .footer-logo,
body.theme-neumorphic .footer-logo span {
  color: var(--text-main) !important;
}

/* Discography Releases cards */
body.theme-neumorphic #releases,
body.theme-neumorphic .releases-section {
  background: var(--bg-color) !important;
}

body.theme-neumorphic .album-card {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light) !important;
  border-radius: 20px !important;
  color: var(--text-main) !important;
}

body.theme-neumorphic .album-date,
body.theme-neumorphic .album-title,
body.theme-neumorphic .album-link {
  color: var(--text-muted) !important;
}

body.theme-neumorphic .album-title {
  color: var(--text-main) !important;
}

/* Hero section backgrounds */
body.theme-neumorphic .hero::before,
body.theme-neumorphic .hero::after {
  display: none !important;
}

body.theme-neumorphic .hero-waveform path {
  stroke: var(--primary) !important;
}

/* Section backgrounds */
body.theme-neumorphic section,
body.theme-neumorphic #about,
body.theme-neumorphic #synth-console,
body.theme-neumorphic #releases,
body.theme-neumorphic #media,
body.theme-neumorphic #contact {
  background-color: var(--bg-color) !important;
}

/* ── Sequencer Tracks (voice sections) ─────────────────── */
body.theme-neumorphic .voice-section {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: inset 4px 4px 10px rgba(163, 177, 198, 0.55), inset -4px -4px 10px rgba(255, 255, 255, 0.7) !important;
  border-radius: 14px !important;
}

body.theme-neumorphic .voice-header {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 3px 3px 7px rgba(163, 177, 198, 0.6), -3px -3px 7px rgba(255, 255, 255, 0.65) !important;
  border-radius: 10px !important;
}

body.theme-neumorphic .voice-title-wrap {
  color: var(--text-main) !important;
}

/* Active step buttons — vivid colors with inset press effect */
body.theme-neumorphic .step-btn.gate-active,
body.theme-neumorphic .lead-gate-active {
  background: #6C63FF !important;
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(60, 50, 200, 0.5), inset -1px -1px 3px rgba(180, 175, 255, 0.4) !important;
}

body.theme-neumorphic .step-btn.tie-active,
body.theme-neumorphic .lead-tie-active {
  background: #00b8d4 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(0, 100, 150, 0.4), inset -1px -1px 3px rgba(100, 230, 255, 0.3) !important;
}

body.theme-neumorphic .step-btn.accent-active,
body.theme-neumorphic .lead-accent-active {
  background: #ff4081 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(180, 0, 60, 0.4), inset -1px -1px 3px rgba(255, 180, 200, 0.3) !important;
}

body.theme-neumorphic .snare-active {
  background: #e040fb !important;
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(140, 0, 200, 0.4), inset -1px -1px 3px rgba(230, 180, 255, 0.3) !important;
}

body.theme-neumorphic .rim-active {
  background: #9c27b0 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(70, 0, 120, 0.4), inset -1px -1px 3px rgba(180, 100, 220, 0.3) !important;
}

/* Inactive step buttons — soft extruded pillows.
   All active variants must be listed in :not() to prevent override. */
body.theme-neumorphic .step-btn:not(.gate-active):not(.tie-active):not(.accent-active):not(.snare-active):not(.rim-active):not(.kick-active):not(.hat-closed):not(.hat-open):not(.sampler-active):not(.lead-gate-active):not(.lead-tie-active):not(.lead-accent-active):not(.kick-accent-active):not(.snare-accent-active) {
  background: var(--bg-color) !important;
  color: var(--text-muted) !important;
  border: none !important;
  box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.6), -3px -3px 6px rgba(255, 255, 255, 0.65) !important;
}

/* Kick Drum — vivid orange */
body.theme-neumorphic .step-btn.kick-active {
  background: #ff5722 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(180, 40, 0, 0.45), inset -1px -1px 3px rgba(255, 180, 140, 0.3) !important;
}

/* Hi-Hat Closed — vivid cyan */
body.theme-neumorphic .step-btn.hat-closed {
  background: #00b8d4 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(0, 100, 150, 0.4), inset -1px -1px 3px rgba(100, 230, 255, 0.3) !important;
}

/* Hi-Hat Open — vivid amber */
body.theme-neumorphic .step-btn.hat-open {
  background: #ffa000 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(160, 80, 0, 0.4), inset -1px -1px 3px rgba(255, 210, 100, 0.3) !important;
}

/* Sampler active — vivid amber/gold (matches sampler amber theme) */
body.theme-neumorphic .step-btn.sampler-active {
  background: #ff9800 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(160, 70, 0, 0.4), inset -1px -1px 3px rgba(255, 200, 100, 0.3) !important;
}


/* Currently playing step highlight */
body.theme-neumorphic .step-btn.playing-now {
  outline: 2px solid var(--primary) !important;
  outline-offset: 1px;
}

/* Loop selector in Neumorph */
body.theme-neumorphic .loop-selector,
body.theme-neumorphic .speed-selector {
  background: #d0d5de !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.6), inset -2px -2px 5px rgba(255, 255, 255, 0.65) !important;
  border-radius: 6px !important;
}

body.theme-neumorphic .loop-btn,
body.theme-neumorphic .speed-btn {
  color: var(--text-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 4px !important;
}

body.theme-neumorphic .loop-btn.active,
body.theme-neumorphic .speed-btn.active {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Sync button */
body.theme-neumorphic .sync-btn {
  background: var(--bg-color) !important;
  border: none !important;
  color: var(--text-muted) !important;
  box-shadow: 2px 2px 5px rgba(163, 177, 198, 0.55), -2px -2px 5px rgba(255, 255, 255, 0.6) !important;
  border-radius: 6px !important;
}

body.theme-neumorphic .sync-btn.active,
body.theme-neumorphic .sync-btn.synced {
  color: var(--primary) !important;
  box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.55), inset -2px -2px 5px rgba(255, 255, 255, 0.6) !important;
}

/* ── Play Button: green glow when playing ─────── */
body.theme-neumorphic .play-btn {
  background: var(--bg-color) !important;
  color: var(--text-main) !important;
  border: none !important;
  box-shadow: 5px 5px 10px rgba(163, 177, 198, 0.65), -5px -5px 10px rgba(255, 255, 255, 0.65) !important;
}

body.theme-neumorphic .play-btn.playing,
body.theme-neumorphic .play-btn.active {
  background: #22c55e !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.6), inset 2px 2px 5px rgba(0, 100, 40, 0.3) !important;
  animation: neu-play-pulse 2s ease-in-out infinite !important;
}

@keyframes neu-play-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.5), inset 2px 2px 5px rgba(0, 100, 40, 0.3); }
  50%       { box-shadow: 0 0 28px rgba(34, 197, 94, 0.85), inset 2px 2px 5px rgba(0, 100, 40, 0.3); }
}

/* ── Random Button: brief blue flash on click ─── */
body.theme-neumorphic .voice-random-btn {
  background: var(--bg-color) !important;
  color: var(--text-muted) !important;
  border: none !important;
  box-shadow: 3px 3px 7px rgba(163, 177, 198, 0.6), -3px -3px 7px rgba(255, 255, 255, 0.65) !important;
  border-radius: 8px !important;
}

body.theme-neumorphic .voice-random-btn:active,
body.theme-neumorphic .voice-random-btn.flash {
  background: #3b82f6 !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.7), inset 2px 2px 4px rgba(20, 60, 180, 0.3) !important;
  transition: all 0.05s ease-out !important;
}

/* Global RND button (main sequencer) */
body.theme-neumorphic #seq-random-btn {
  background: var(--bg-color) !important;
  color: var(--text-muted) !important;
  border: none !important;
  box-shadow: 3px 3px 7px rgba(163, 177, 198, 0.6), -3px -3px 7px rgba(255, 255, 255, 0.65) !important;
  border-radius: 6px !important;
}

body.theme-neumorphic #seq-random-btn:active {
  background: #3b82f6 !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.7), inset 2px 2px 4px rgba(20, 60, 180, 0.3) !important;
}

/* ── Sync Button: red flash on click ─────────── */
body.theme-neumorphic .sync-btn.flash {
  animation: neu-sync-flash 0.35s ease-out !important;
}

@keyframes neu-sync-flash {
  0%   { background: #ef4444 !important; color: #fff; box-shadow: 0 0 18px rgba(239, 68, 68, 0.75); }
  100% { background: var(--bg-color); color: var(--text-muted); box-shadow: 2px 2px 5px rgba(163, 177, 198, 0.55), -2px -2px 5px rgba(255, 255, 255, 0.6); }
}

/* ── Sampler TIE / FWD / REV step buttons ────── */
body.theme-neumorphic button.smp-tie-active,
body.theme-neumorphic .step-btn.smp-tie-active {
  background: #00b8d4 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(0, 100, 150, 0.4), inset -1px -1px 3px rgba(100, 230, 255, 0.3) !important;
}

body.theme-neumorphic button.smp-fwd-active,
body.theme-neumorphic .step-btn.smp-fwd-active {
  background: #10b981 !important; /* Elegant emerald green for FWD */
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(6, 95, 70, 0.4), inset -1px -1px 3px rgba(167, 243, 208, 0.3) !important;
}

body.theme-neumorphic button.smp-rev-active,
body.theme-neumorphic .step-btn.smp-rev-active {
  background: #8b5cf6 !important; /* Elegant purple for REV */
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(80, 20, 200, 0.4), inset -1px -1px 3px rgba(200, 180, 255, 0.3) !important;
}

body.theme-neumorphic button.smp-pitch-active,
body.theme-neumorphic .step-btn.smp-pitch-active {
  background: #fbbf24 !important; /* Elegant amber for Pitch */
  color: #fff !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px rgba(160, 100, 0, 0.4), inset -1px -1px 3px rgba(255, 220, 100, 0.3) !important;
}

/* Update :not() guard to also exclude sampler sub-states */
body.theme-neumorphic .step-btn:not(.gate-active):not(.tie-active):not(.accent-active):not(.snare-active):not(.rim-active):not(.kick-active):not(.hat-closed):not(.hat-open):not(.sampler-active):not(.lead-gate-active):not(.lead-tie-active):not(.lead-accent-active):not(.smp-tie-active):not(.smp-fwd-active):not(.smp-rev-active):not(.smp-pitch-active):not(.kick-accent-active):not(.snare-accent-active) {
  background: var(--bg-color) !important;
  color: var(--text-muted) !important;
  border: none !important;
  box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.6), -3px -3px 6px rgba(255, 255, 255, 0.65) !important;
}

/* ── Sampler Display Customizations (Neumorphic Mode) ── */
body.theme-neumorphic .sampler-empty,
body.theme-neumorphic #sampler-canvas {
  background: #180928 !important; /* Elegant dark violet/lila */
  border: 1px inset rgba(108, 99, 255, 0.2) !important;
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.6) !important;
}

body.theme-neumorphic .sampler-empty {
  color: #c084fc !important; /* Lila text ("Record a sample or upload a file") */
  border: 1px dashed rgba(167, 139, 250, 0.3) !important;
}

body.theme-neumorphic .sampler-empty svg {
  stroke: #c084fc !important;
  color: #c084fc !important;
  opacity: 0.85 !important;
}


/* Prevent text selection in interactive console */
.synth-container,
.knob-wrapper,
.dial-box,
.step-column,
.mixer-channel-strip,
.voice-section,
.sequencer-scroll-wrapper {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Sampler 2x2 grid select layout & style */
.sampler-grid-select {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  background: #1c1c28;
  border: 1px solid rgba(255, 179, 0, 0.3);
  border-radius: 6px;
  padding: 4px;
  width: 72px;
  height: 52px;
  box-sizing: border-box;
}

.sampler-grid-select .wave-btn {
  font-size: 9px !important;
  padding: 2px !important;
  font-family: var(--font-mono);
  font-weight: 700;
  border: none !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  border-radius: 3px;
  transition: var(--transition);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sampler-grid-select .wave-btn:hover {
  background: rgba(255, 179, 0, 0.1) !important;
  color: var(--sampler) !important;
}

.sampler-grid-select .wave-btn.active {
  background: var(--sampler) !important;
  color: #000000 !important;
  box-shadow: 0 0 6px var(--sampler-glow) !important;
}

.sampler-grid-selector-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sampler-label-small {
  font-size: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Toggle button styling for Gate */
#sampler-gate-toggle-btn.active {
  background: var(--sampler) !important;
  color: #000000 !important;
  border-color: var(--sampler) !important;
  box-shadow: 0 0 10px var(--sampler-glow);
}

#sampler-gate-toggle-btn:hover {
  border-color: var(--sampler) !important;
  color: var(--sampler) !important;
}

#sampler-gate-toggle-btn.active:hover {
  background: #ffb300 !important;
  color: #000000 !important;
}

/* PADS BLOCK */
.pads-block {
  flex: 1 1 100%;
  width: 100%;
  border-color: rgba(233, 30, 99, 0.25) !important;
  box-shadow: 0 0 15px rgba(233, 30, 99, 0.05);
}

.pads-block .block-title {
  color: #e91e63 !important;
  text-shadow: 0 0 8px rgba(233, 30, 99, 0.4);
}

.pads-grid-container {
  width: 100%;
  margin-top: 15px;
}

.pads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
}

.pad-item {
  background: #15151e;
  border: 2px solid #2d2d3a;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 180px;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

.pad-item:hover {
  border-color: rgba(233, 30, 99, 0.4);
  box-shadow: 0 0 8px rgba(233, 30, 99, 0.15);
}

.pad-item.drag-hover {
  border-color: #ffb300 !important;
  box-shadow: 0 0 15px rgba(255, 179, 0, 0.4) !important;
  transform: scale(1.02);
}

.pad-item.has-sample {
  border-color: rgba(233, 30, 99, 0.6);
}

.pad-item.triggered {
  animation: pad-border-glow 0.15s ease-out;
}

.pad-item.triggered .pad-trigger-zone {
  animation: pad-flash 0.15s ease-out;
}

@keyframes pad-border-glow {
  0% {
    border-color: #ff4081;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.5);
  }
  100% {
    border-color: rgba(233, 30, 99, 0.6);
    box-shadow: none;
  }
}

@keyframes pad-flash {
  0% {
    background: rgba(233, 30, 99, 0.28);
  }
  100% {
    background: transparent;
  }
}

.pad-item.recording {
  animation: pad-rec-pulse 1s infinite alternate;
}

@keyframes pad-rec-pulse {
  0% {
    border-color: #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.3);
  }
  100% {
    border-color: rgba(244, 67, 54, 0.8);
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.8);
    background: rgba(244, 67, 54, 0.1);
  }
}

.pad-trigger-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
  position: relative;
}

.pad-label-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  z-index: 5;
  width: 90%;
}

.pad-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.2;
  display: inline-block;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
  outline: none;
  cursor: text;
  transition: all 0.15s ease-in-out;
}

.pad-label:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.pad-label:focus {
  border-bottom-color: #ff4081;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 4px;
  border-radius: 3px;
  max-width: none;
  overflow: visible;
  white-space: normal;
  box-shadow: 0 0 6px rgba(255, 64, 129, 0.2);
}

.pad-edit-icon {
  font-size: 9px;
  color: var(--text-muted);
  opacity: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  pointer-events: none;
}

.pad-label-wrapper:hover .pad-edit-icon {
  opacity: 0.7;
}

.pad-label:focus + .pad-edit-icon {
  display: none;
}

.pad-status-text {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  text-align: center;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
}

.pad-item.has-sample .pad-status-text {
  color: #ff4081;
  font-weight: 700;
}

.pad-mini-waveform {
  position: absolute;
  bottom: 4px;
  left: 6px;
  right: 6px;
  height: 35px;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}

.pad-actions {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-top: 1px solid #2d2d3a;
  background: rgba(0, 0, 0, 0.2);
  height: 28px;
}

.pad-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 100%;
}

.pad-action-btn:not(:last-child) {
  border-right: 1px solid #2d2d3a;
}

.pad-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.pad-rec-btn {
  color: #f44336;
}

.pad-rec-btn:hover {
  background: rgba(244, 67, 54, 0.1) !important;
  color: #ffffff !important;
}

.pad-item.recording .pad-rec-btn {
  animation: pad-btn-blink 0.5s infinite alternate;
  font-weight: 900;
}

@keyframes pad-btn-blink {
  0% { color: #f44336; }
  100% { color: #ffffff; }
}

.pad-edit-btn {
  color: #e91e63;
}

.pad-edit-btn:hover {
  background: rgba(233, 30, 99, 0.1) !important;
  color: #ff4081 !important;
}

.pad-clear-btn:hover {
  background: rgba(244, 67, 54, 0.1) !important;
  color: #f44336 !important;
}

/* Pad Gate Active */
.step-btn.pad-gate-active {
  background: rgba(233, 30, 99, 0.18);
  border-color: #e91e63;
  color: #ff4081;
  box-shadow: inset 0 0 4px rgba(233, 30, 99, 0.25);
}

.mini-trigger-overview {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Pad controls / knobs layout */
.pad-knobs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #2d2d3a;
  background: rgba(0, 0, 0, 0.35);
  height: 48px;
  align-items: center;
  padding: 0 8px;
  box-sizing: border-box;
}

.pad-knob-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pad-knob-wrapper {
  width: 22px;
  height: 22px;
  position: relative;
  cursor: ns-resize;
}

.pad-knob-body {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #e91e63;
  background: #111116;
  position: relative;
  box-sizing: border-box;
  transition: transform 0.05s linear;
}

.pad-knob-indicator {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 1.5px;
  height: 6px;
  background: #e91e63;
  transform: translateX(-50%);
  border-radius: 1px;
}

.pad-knob-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.pad-knob-value {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #ff4081;
  width: 30px;
  text-align: right;
}

/* One-Shot Sampler Pads Neumorphic Style */
body.theme-neumorphic .pad-item {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light) !important;
  border-radius: 12px !important;
}

body.theme-neumorphic .pad-item.has-sample {
  box-shadow: 6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light), inset 0 0 0 2px rgba(233, 30, 99, 0.45) !important;
}

body.theme-neumorphic .pad-item.recording {
  box-shadow: 6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light), inset 0 0 0 2px #f44336 !important;
}

body.theme-neumorphic .pad-label {
  color: var(--text-main) !important;
  border-bottom-color: rgba(0, 0, 0, 0.2) !important;
}

body.theme-neumorphic .pad-label:hover {
  border-bottom-color: rgba(0, 0, 0, 0.5) !important;
}

body.theme-neumorphic .pad-label:focus {
  border-bottom-color: #ff4081 !important;
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--text-main) !important;
}

body.theme-neumorphic .pad-actions {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(0, 0, 0, 0.03) !important;
}

body.theme-neumorphic .pad-action-btn {
  color: var(--text-muted) !important;
}

body.theme-neumorphic .pad-action-btn:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-neumorphic .pad-action-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--text-main) !important;
}

body.theme-neumorphic .pad-knobs {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(0, 0, 0, 0.05) !important;
}

body.theme-neumorphic .pad-knob-body {
  border: 1px solid #e91e63 !important;
  background: var(--bg-color) !important;
  box-shadow: inset 1px 1px 3px var(--neu-shadow-dark), inset -1px -1px 3px var(--neu-shadow-light) !important;
}

/* Modals Neumorphic Style overrides */
body.theme-neumorphic .modal-container {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 9px 9px 16px var(--neu-shadow-dark), -9px -9px 16px var(--neu-shadow-light) !important;
  color: var(--text-main) !important;
}

body.theme-neumorphic .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-neumorphic .modal-header h2 {
  color: #e91e63 !important;
  text-shadow: none !important;
}

body.theme-neumorphic .modal-close-x-btn {
  color: var(--text-muted) !important;
}

body.theme-neumorphic .modal-close-x-btn:hover {
  color: var(--secondary) !important;
}

body.theme-neumorphic .modal-tabs {
  background: var(--bg-color) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-neumorphic .modal-tab-btn {
  color: var(--text-muted) !important;
  border-bottom: 2px solid transparent !important;
}

body.theme-neumorphic .modal-tab-btn:hover {
  color: var(--text-main) !important;
  background: rgba(0, 0, 0, 0.02) !important;
}

body.theme-neumorphic .modal-tab-btn.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary) !important;
  background: rgba(108, 99, 255, 0.05) !important;
}

body.theme-neumorphic .modal-footer {
  background: var(--bg-color) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-neumorphic .modal-btn {
  background: var(--bg-color) !important;
  border: none !important;
  color: var(--text-main) !important;
  box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light) !important;
  transition: all 0.2s ease-out;
}

body.theme-neumorphic .modal-btn:hover {
  box-shadow: 5px 5px 10px var(--neu-shadow-dark), -5px -5px 10px var(--neu-shadow-light) !important;
  color: var(--primary) !important;
}

body.theme-neumorphic .modal-btn:active {
  box-shadow: inset 2px 2px 4px var(--neu-shadow-dark), inset -2px -2px 4px var(--neu-shadow-light) !important;
}

body.theme-neumorphic .pad-edit-waveform-container {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: inset 5px 5px 10px var(--neu-shadow-dark), inset -5px -5px 10px var(--neu-shadow-light) !important;
}

body.theme-neumorphic .pad-edit-info-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--text-muted) !important;
}

body.theme-neumorphic #pad-edit-dur-readout {
  color: var(--text-main) !important;
}

body.theme-neumorphic #pad-edit-reset-btn {
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: var(--text-muted) !important;
}

body.theme-neumorphic .modal-overlay {
  background: rgba(224, 229, 236, 0.65) !important;
}

/* ── Sequencer Solo & Mute Buttons ── */
.voice-solo-btn, .voice-mute-btn {
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px; /* Same padding as voice-random-btn */
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px; /* Same letter-spacing as voice-random-btn */
  transition: all 0.2s ease;
  user-select: none;
  display: inline-block;
  line-height: 1.2;
}

.voice-solo-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ef4444; /* Force red highlight on hover to signal red-solo behavior */
  color: #fff;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.voice-mute-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Red Pulsing Animation for Active Solo */
@keyframes solo-red-pulse {
  0% {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.5) !important;
  }
  100% {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.9) !important;
  }
}

.voice-solo-btn.active {
  animation: solo-red-pulse 0.8s infinite alternate !important;
}

/* Red Pulsing Animation for Active Manual Mute */
@keyframes mute-red-pulse {
  0% {
    background: #f43f5e !important;
    border-color: #f43f5e !important;
    color: #fff !important;
    box-shadow: 0 0 4px rgba(244, 63, 94, 0.5) !important;
  }
  100% {
    background: #be123c !important;
    border-color: #be123c !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.9) !important;
  }
}

.voice-mute-btn.active-manual {
  animation: mute-red-pulse 0.8s infinite alternate !important;
}

/* Solid Yellow Glow for Muted-by-Solo Tracks */
.voice-mute-btn.active-by-solo {
  background: #eab308 !important;
  border-color: #eab308 !important;
  color: #000 !important;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.7) !important;
}

/* Neumorphic theme variants */
body.theme-neumorphic .voice-solo-btn,
body.theme-neumorphic .voice-mute-btn {
  background: var(--bg-color) !important;
  color: var(--text-muted) !important;
  border: none !important;
  box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light) !important; /* Neumorphic shadows */
}

body.theme-neumorphic .voice-solo-btn:hover {
  color: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6) !important;
}

body.theme-neumorphic .voice-mute-btn:hover {
  color: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6) !important;
}

body.theme-neumorphic .voice-solo-btn.active {
  animation: solo-red-pulse 0.8s infinite alternate !important;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.2) !important;
}

body.theme-neumorphic .voice-mute-btn.active-manual {
  animation: mute-red-pulse 0.8s infinite alternate !important;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.2) !important;
}

body.theme-neumorphic .voice-mute-btn.active-by-solo {
  background: #eab308 !important;
  color: #000 !important;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.2) !important;
}

/* Dimming for non-soloed tracks */
.sequencer-grid-active-solo .voice-section:not(.soloed) {
  opacity: 0.35 !important;
  filter: saturate(0.35) !important;
  transition: opacity 0.25s ease, filter 0.25s ease !important;
}

/* ── Web MIDI Controls & Dropdown ── */
.midi-control-container {
  position: relative;
  display: inline-block;
}

.midi-dropdown-popover {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 10px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-top: 6px;
  box-sizing: border-box;
}

.midi-devices-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.midi-device-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 11px;
  color: #d4d4d8;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-mono);
}

.midi-device-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.midi-device-option input[type="checkbox"] {
  cursor: pointer;
  margin: 0;
}

.midi-device-option label {
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0; /* allow flex-shrink to kick in */
  margin: 0;
  user-select: none;
}

.midi-warning {
  font-size: 10px;
  color: #f87171;
  text-align: center;
  line-height: 1.4;
  padding: 8px 4px;
  font-family: var(--font-mono);
}

/* Neumorphic Light Theme Overrides */
body.theme-neumorphic .midi-dropdown-popover {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: 6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light) !important;
}

body.theme-neumorphic .midi-device-option {
  color: var(--text-main) !important;
}

body.theme-neumorphic .midi-device-option:hover {
  background: rgba(0, 0, 0, 0.02) !important;
  color: var(--primary) !important;
}

body.theme-neumorphic .midi-warning {
  color: #dc2626 !important;
}

/* ── MIDI Learn Styling ── */
#seq-midi-learn-btn.active {
  background: var(--secondary) !important;
  color: #000000 !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 0 10px var(--secondary-glow) !important;
}

body.theme-neumorphic #seq-midi-learn-btn.active {
  background: var(--secondary) !important;
  color: #ffffff !important;
  box-shadow: inset 2px 2px 4px var(--neu-shadow-dark), inset -2px -2px 4px var(--neu-shadow-light) !important;
}

.knob-wrapper.midi-waiting {
  outline: 2px solid var(--secondary) !important;
  box-shadow: 0 0 15px var(--secondary-glow), 0 0 5px var(--secondary) !important;
  animation: pulse-orange 1s infinite alternate;
}

@keyframes pulse-orange {
  0% {
    box-shadow: 0 0 5px var(--secondary-glow);
  }
  100% {
    box-shadow: 0 0 20px var(--secondary-glow), 0 0 10px var(--secondary);
  }
}

body.theme-neumorphic .knob-wrapper.midi-waiting {
  outline: 2px solid #e91e63 !important;
  box-shadow: 0 0 15px rgba(233, 30, 99, 0.4), inset 0 0 5px rgba(233, 30, 99, 0.2) !important;
  background: rgba(233, 30, 99, 0.05) !important;
  animation: pulse-pink-neu 1s infinite alternate;
}

@keyframes pulse-pink-neu {
  0% {
    box-shadow: 0 0 5px rgba(233, 30, 99, 0.2);
  }
  100% {
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
  }
}

.midi-mapping-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #d4d4d8;
}

body.theme-neumorphic .midi-mapping-row {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light) !important;
  color: var(--text-main) !important;
}

.midi-mapping-row span {
  font-family: var(--font-mono);
}

.mapping-delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px 8px;
  transition: opacity 0.2s;
}

.mapping-delete-btn:hover {
  opacity: 0.7;
}

.midi-channel-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  outline: none;
  cursor: pointer;
}

body.theme-neumorphic .midi-channel-select {
  background: var(--bg-color) !important;
  border: none !important;
  box-shadow: inset 1px 1px 3px var(--neu-shadow-dark), inset -1px -1px 3px var(--neu-shadow-light) !important;
  color: var(--text-main) !important;
}

/* --- CLIP LAUNCHER STYLE --- */
#clip-launcher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 120px;
  grid-gap: 4px;
  width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
}

.clip-grid-header {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scene-clip {
  background: rgba(16, 16, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  min-height: 80px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.15);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  user-select: none;
}

/* Border colors for the columns */
.scene-clip[data-track="poly"] {
  border-color: rgba(213, 0, 249, 0.25);
  color: rgba(213, 0, 249, 0.3);
}
.scene-clip[data-track="poly"]:hover {
  border-color: #d500f9;
  background: rgba(213, 0, 249, 0.05);
  color: #d500f9;
}

.scene-clip[data-track="bass"] {
  border-color: rgba(57, 255, 20, 0.25);
  color: rgba(57, 255, 20, 0.3);
}
.scene-clip[data-track="bass"]:hover {
  border-color: var(--primary);
  background: rgba(57, 255, 20, 0.05);
  color: var(--primary);
}

.scene-clip[data-track="lead"] {
  border-color: rgba(68, 138, 255, 0.25);
  color: rgba(68, 138, 255, 0.3);
}
.scene-clip[data-track="lead"]:hover {
  border-color: #448aff;
  background: rgba(68, 138, 255, 0.05);
  color: #448aff;
}

/* Master Column styling */
.master-scene-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.scene-launch-btn {
  width: 100%;
  height: 100%;
  min-height: 80px;
  background: rgba(39, 39, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.scene-launch-btn:hover {
  background: rgba(39, 39, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

/* Stop All Button styling */
.stop-all-btn {
  display: block;
  margin-top: 12px;
  width: 100%;
  padding: 10px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: #f87171;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
}

.stop-all-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
}

/* --- PIANO ROLL PANEL STYLE --- */
#piano-roll-panel {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

#piano-roll-panel.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* --- PIANO ROLL KEYBOARD STYLE --- */
#piano-roll-keyboard::-webkit-scrollbar {
  display: none;
}

.piano-key {
  height: 20px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: bold;
  padding-left: 6px;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}

.piano-key.white {
  background: rgba(244, 244, 245, 0.9);
  color: #18181b;
}

.piano-key.white:hover {
  background: rgba(244, 244, 245, 1);
}

.piano-key.black {
  background: #18181b;
  color: rgba(244, 244, 245, 0.6);
  border-left: 12px solid var(--secondary); /* Cyan accent line on black keys */
}

.piano-key.black:hover {
  background: #27272a;
}

/* --- CLIP LAUNCHER HEADER & ARM BUTTONS --- */
.track-arm-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  min-width: 54px;
  height: 28px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.track-arm-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}



