/* ═══════════════════════════════════════════════════════════════
   EQ TRAINER MODULE STYLES
   ═══════════════════════════════════════════════════════════════ */

.eq-trainer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Game Header */
.game-header {
  display: grid;
  grid-template-columns: 80px 60px 1fr 140px 100px;
  gap: 16px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 12px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.level-display,
.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.level-display .label,
.score-display .label,
.timer-display .label,
.streak-display .label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-label);
  text-transform: uppercase;
}

.level-display .value,
.score-display .value,
.streak-display .value {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.level-display .value {
  color: var(--led-amber);
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.4);
}

.score-display .value {
  color: var(--led-green);
  text-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

.lives-display {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.life-led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: all 0.2s;
}

.life-led.active {
  background: var(--led-red);
  box-shadow: 0 0 6px var(--led-red-glow), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.timer-bar-wrap {
  width: 80px;
  height: 6px;
  background: var(--chassis-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 1px;
  overflow: hidden;
  display: block;
}

.timer-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #f5a623 70%, #ff5252 100%);
  transition: width 0.1s linear;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.3);
}

.timer-value {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.streak-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.streak-display .value {
  color: var(--led-amber);
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.4);
}

/* Status Display */
.status-display {
  background: linear-gradient(180deg, #222 0%, #1a1a1a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 12px 16px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#status-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.loader {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--led-green);
  display: inline-block;
  box-shadow: 0 0 6px var(--led-green-glow);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* A/B Controls */
.ab-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-rack--ab {
  flex: 0 1 200px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: 1.5px solid var(--border-subtle);
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.btn-rack--ab:hover {
  border-color: var(--gold-warm);
  color: var(--gold-warm);
}

.btn-rack--ab.active-bypass {
  border-color: var(--led-green);
  background: linear-gradient(180deg, #3a4a3a 0%, #2a3a2a 100%);
  color: var(--led-green);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

.btn-rack--ab.active-eq {
  border-color: var(--led-amber);
  background: linear-gradient(180deg, #4a3a2a 0%, #3a2a1a 100%);
  color: var(--led-amber);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.2);
}

/* Canvas */
.canvas-wrapper {
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid var(--border-panel);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

#freq-canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
}

/* Freq Range Settings */
.freq-range-settings {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #222 0%, #1a1a1a 100%);
  border: 1px solid var(--border-panel);
  border-radius: 2px;
}

.freq-range-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 4px;
}

.freq-range-sublabel {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.freq-select {
  background: #111;
  border: 1px solid var(--border-subtle);
  color: var(--gold-warm);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.freq-select:focus {
  outline: none;
  border-color: var(--gold-warm);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.2);
}

.freq-select:hover {
  border-color: var(--gold-warm);
}

/* Action Panel */
.action-panel {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-rack--primary,
.btn-rack--secondary {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  min-width: 140px;
}

.btn-rack--primary {
  background: linear-gradient(180deg, #d4a84c 0%, #c9a84c 100%);
  border: 1.5px solid var(--gold-warm);
  color: #1c1c1c;
  box-shadow: var(--shadow-button), 0 0 10px rgba(201, 168, 76, 0.2);
  font-size: 0.9rem;
}

.btn-rack--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #e4b85c 0%, #d9b85c 100%);
  box-shadow: var(--shadow-button), 0 0 16px rgba(201, 168, 76, 0.3);
}

.btn-rack--primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-rack--secondary {
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  box-shadow: var(--shadow-button);
}

.btn-rack--secondary:hover:not(:disabled) {
  border-color: var(--gold-warm);
  color: var(--gold-warm);
  background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
}

.btn-rack--primary:disabled,
.btn-rack--secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Result Panel */
.result-panel {
  background: linear-gradient(180deg, #222 0%, #1a1a1a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 12px rgba(76, 175, 80, 0.1);
  animation: slideInUp 0.3s ease;
}

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

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-hit {
  font-size: 2rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

.result-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.result-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.9rem;
}

.detail-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.detail-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.result-points {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-align: right;
  color: var(--led-green);
  text-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

/* Game Over Overlay */
.gameover-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gameover-card {
  background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 100%);
  border: 2px solid var(--border-subtle);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-card), 0 0 40px rgba(0, 0, 0, 0.9);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 400px;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.gameover-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-warm);
  margin-bottom: 20px;
}

.gameover-final-score {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--led-green);
  text-shadow: 0 0 16px rgba(76, 175, 80, 0.4);
  margin-bottom: 8px;
}

.gameover-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.gameover-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-item {
  background: linear-gradient(180deg, #333 0%, #2a2a2a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 12px;
}

.stat-item .stat-label {
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-item .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--led-amber);
}

/* ═══════════════════════════════════════════════════════════════
   SOUND LIBRARY MODULE STYLES
   ═══════════════════════════════════════════════════════════════ */

.sound-library {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.lib-header {
  text-align: center;
  margin-bottom: 10px;
}

.lib-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-warm);
  margin-bottom: 4px;
}

.lib-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.lib-upload-zone {
  background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
  border: 2px dashed var(--border-subtle);
  border-radius: 2px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.lib-upload-zone:hover {
  border-color: var(--gold-warm);
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.lib-upload-zone.drag-over {
  border-color: var(--led-green);
  background: linear-gradient(135deg, #2a3a2a 0%, #1a2a1a 100%);
}

.upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-icon {
  font-size: 2.5rem;
  opacity: 0.6;
}

.upload-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.lib-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.stat-box {
  background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--led-green);
  text-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.lib-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lib-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
  background: linear-gradient(180deg, #222 0%, #1a1a1a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
}

.lib-file-item {
  background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lib-file-item:hover {
  border-color: var(--gold-warm);
  background: linear-gradient(180deg, #2a3a2a 0%, #1c2c1c 100%);
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.file-size, .file-duration, .file-date {
  display: flex;
  align-items: center;
  gap: 2px;
}

.file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.btn-rack--sm {
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 2px;
}

.btn-play,
.btn-delete {
  border: 1.5px solid var(--border-subtle);
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  color: var(--text-secondary);
}

.btn-play:hover,
.btn-delete:hover {
  border-color: var(--gold-warm);
  color: var(--gold-warm);
}

.btn-toggle-active {
  border: 1.5px solid var(--border-subtle);
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  color: var(--text-secondary);
}

.btn-toggle-active.active {
  border-color: var(--led-green);
  background: linear-gradient(180deg, #3a4a3a 0%, #2a3a2a 100%);
  color: var(--led-green);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.15);
}

.btn-toggle-active:hover:not(.active) {
  border-color: var(--gold-warm);
  color: var(--gold-warm);
}

/* ═══════════════════════════════════════════════════════════════
   DYNAMICS TRAINER MODULE STYLES
   ═══════════════════════════════════════════════════════════════ */

.dynamics-trainer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.dyn-curve-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-align: center;
  padding: 6px 0 0;
}

/* Effect type selector */
.dyn-effect-panel {
  background: linear-gradient(180deg, #222 0%, #1a1a1a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 12px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dyn-panel-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dyn-effect-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dyn-effect-btn {
  flex: 1 1 120px;
  padding: 8px 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  border: 1.5px solid var(--border-subtle);
  background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
  color: var(--text-dim);
  transition: all 0.15s;
}

.dyn-effect-btn:hover:not(.active) {
  border-color: var(--gold-warm);
  color: var(--gold-warm);
}

.dyn-effect-btn.active {
  border-color: var(--led-amber);
  background: linear-gradient(180deg, #3a2e10 0%, #2a2008 100%);
  color: var(--led-amber);
  box-shadow: 0 0 10px rgba(245,166,35,0.2);
}

.dyn-amount-btn {
  flex: 1 1 100px;
  padding: 8px 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  border: 1.5px solid var(--border-subtle);
  background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
  color: var(--text-dim);
  transition: all 0.15s;
}

.dyn-amount-btn:hover:not(.active) {
  border-color: var(--led-green);
  color: var(--led-green);
}

.dyn-amount-btn.active {
  border-color: var(--led-green);
  background: linear-gradient(180deg, #1a3020 0%, #121e18 100%);
  color: var(--led-green);
  box-shadow: 0 0 10px rgba(76,175,80,0.25);
}

/* Parameter sliders panel */
.dyn-params-panel {
  background: linear-gradient(180deg, #222 0%, #1a1a1a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dyn-param-row {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  align-items: center;
  gap: 12px;
}

.dyn-param-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.dyn-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--chassis-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.dyn-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-warm);
  border: 1px solid #a08030;
  box-shadow: 0 0 6px rgba(212,175,55,0.4);
  cursor: pointer;
}

.dyn-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-warm);
  border: 1px solid #a08030;
  box-shadow: 0 0 6px rgba(212,175,55,0.4);
  cursor: pointer;
}

.dyn-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 10px rgba(212,175,55,0.6);
}

.dyn-param-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-warm);
  text-align: right;
  white-space: nowrap;
  min-width: 70px;
}

/* Result details grid */
.dyn-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.dyn-result-item {
  background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 8px 12px;
}

.dyn-result-item .detail-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dyn-result-item .detail-value {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.dyn-result-item--ok {
  border-color: rgba(76, 175, 80, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL STYLES
   ═══════════════════════════════════════════════════════════════ */

.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.admin-header {
  padding: 8px 0 4px;
}

.admin-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--led-red);
  text-shadow: 0 0 10px rgba(255, 82, 82, 0.3);
}

.admin-card {
  background: linear-gradient(180deg, #222 0%, #1a1a1a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 16px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.admin-card-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.admin-form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 140px;
}

.admin-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.admin-input {
  background: #111;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}

.admin-input:focus {
  border-color: var(--gold-warm);
  box-shadow: 0 0 6px rgba(212,175,55,0.2);
}

.admin-select {
  background: #111;
  border: 1px solid var(--border-subtle);
  color: var(--gold-warm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.admin-select:focus {
  border-color: var(--gold-warm);
}

.admin-create-btn {
  flex-shrink: 0;
  align-self: flex-end;
}

.admin-error {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--led-red);
  min-height: 18px;
}

.admin-success {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--led-green);
  min-height: 18px;
}

/* User list */
.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-loading {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 8px 0;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 1fr 80px 100px auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  font-size: 0.85rem;
}

.admin-user-row--header {
  background: transparent;
  border-color: transparent;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  padding-bottom: 4px;
}

.admin-user-name {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.admin-user-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 2px;
  text-align: center;
}

.admin-user-role--admin {
  color: var(--led-red);
  border: 1px solid rgba(255,82,82,0.3);
  background: rgba(255,82,82,0.08);
}

.admin-user-role--user {
  color: var(--led-green);
  border: 1px solid rgba(76,175,80,0.3);
  background: rgba(76,175,80,0.08);
}

.admin-user-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.admin-user-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.adm-btn-del {
  border: 1.5px solid rgba(255,82,82,0.4);
  background: linear-gradient(180deg, #3a2a2a 0%, #2a1a1a 100%);
  color: var(--led-red);
}

.adm-btn-del:hover:not(:disabled) {
  border-color: var(--led-red);
  box-shadow: 0 0 6px rgba(255,82,82,0.2);
}

.adm-btn-del:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Modal */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.admin-modal-card {
  background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 100%);
  border: 2px solid var(--border-subtle);
  border-radius: 4px;
  padding: 32px;
  min-width: 340px;
  box-shadow: var(--shadow-card), 0 0 40px rgba(0,0,0,0.9);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-modal-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-warm);
  margin-bottom: 6px;
}

.admin-modal-user {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Admin nav button color */
.nav-btn[data-module="admin"] .nav-btn-led {
  background: var(--led-red);
  box-shadow: 0 0 6px rgba(255,82,82,0.5);
}
