@font-face {
  font-family: 'THUNDERHOUSE PRO';
  src: local('THUNDERHOUSE PRO'), local('Impact'), local('Arial Black');
}

:root {
  --bg-dark: #000000;
  --panel-dark: #0a0a0a;
  --hands-orange: #ff9966;
  --text-light: #ffffff;
  --wood-color: #dcb57e;

  --wpp-green: #25D366;
  --mail-blue: #2f80ff;
  --site-orange: #ff9966;
}

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

/* LOGO */
.header-logo {
  display: block !important;
  height: 75px !important;
  width: auto !important;
  flex-shrink: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* WATERMARK */
.canvas-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('image_233e00.png');
  background-size: 30% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: 0.03 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: none;
}

/* BLOQUEIO DE SELEÇÃO DE TEXTOS AO ARRASTAR */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

.top-header, .sidebar, .dev-panel, .modal-content, .pedal-list-premium {
  touch-action: auto;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* HEADER */
.top-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8vw;
  padding: 0 40px;
  background: #050505;
  border-bottom: 1px solid #1a1a1a;
  height: 120px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
  z-index: 100;
  position: relative;
}
.logo-area { display: flex; align-items: center; gap: 20px; }

.logo-text h1 {
  font-size: 36px;
  letter-spacing: 2px;
  color: #fff;
  font-weight: 900;
  margin-bottom: 0;
  line-height: 1;
  text-transform: uppercase;
}
.logo-text p {
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 800;
  color: #555;
  text-transform: uppercase;
  margin-top: 5px;
  display: none;
}
.header-controls { display: flex; align-items: center; gap: 40px; }

/* LANG */
.language-selector { display: flex; align-items: center; gap: 8px; }
.lang-label { font-size: 18px; cursor: default; }
.lang-select { min-width: 140px; font-size: 12px !important; padding: 8px 10px !important; }
.global-settings { display: flex; align-items: center; gap: 20px; }

/* UNIT */
.unit-toggle {
  display: flex;
  gap: 5px;
  background: #111;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #222;
}
.unit-btn {
  padding: 8px 15px;
  background: transparent;
  color: #666;
  border: none;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 2px;
}
.unit-btn.active {
  background: #222;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* TOGGLE SWITCH */
.toggle-custom-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.keep-pedals-wrap { flex-direction: row; margin-bottom: 0; gap: 10px; }
.toggle-label-text {
  font-size: 9px;
  font-weight: 800;
  color: #666;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.keep-pedals-wrap .toggle-label-text { text-align: left; line-height: 1.2; }
.toggle-custom-wrap input[type=checkbox] { display: none !important; }

.toggle-pill {
  height: 22px;
  width: 44px;
  background: #222;
  border-radius: 20px;
  position: relative;
  transition: 0.25s ease;
  border: 1px solid #333;
}
.toggle-pill::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #666;
  left: 3px;
  top: 2px;
  transition: 0.25s ease;
}
.toggle-custom-wrap input[type=checkbox]:checked ~ .toggle-pill {
  background: var(--hands-orange);
}
.toggle-custom-wrap input[type=checkbox]:checked ~ .toggle-pill::before {
  left: 23px;
  background: #000;
}
.toggle-custom-wrap input[type=checkbox]:checked ~ .toggle-label-text {
  color: var(--hands-orange);
}

.custom-inputs-area { display: flex; gap: 10px; }
.custom-inputs-area input {
  width: 80px;
  padding: 10px;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

/* TABS */
.tabs-header { display: flex; gap: 30px; }
.tab-btn {
  background: transparent;
  color: #555;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 5px;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--hands-orange);
  transform: scaleX(0);
  transition: 0.3s;
}
.tab-btn.active { color: #fff; }
.tab-btn.active::after { transform: scaleX(1); }

.tabs-content { border-left: 1px solid #1a1a1a; padding-left: 40px; }
.tab-pane { display: none; align-items: center; gap: 20px; }
.tab-pane.active { display: flex; }
.control-group { display: flex; flex-direction: column; }

.editorial-label {
  font-size: 10px;
  color: #888;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* select bonito (corrige branco feio mobile/desktop) */
.editorial-select {
  background: #111;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.editorial-select:focus { border-color: var(--hands-orange); box-shadow: 0 0 0 2px rgba(255,153,102,.2); }
.editorial-select option { background: #101010; color: #fff; }

/* INPUT visual sem estourar tamanho (CORRIGIDO PARA FUNDO ESCURO GLOBAL) */

.input, input[type="text"], input[type="number"] {
  border: 1px solid #333 !important;
  outline: none !important;
  border-radius: 6px !important;
  padding: 0.5em 0.8em !important;
  background-color: #111 !important;
  color: #fff !important;
  font-size: 0.85rem;
  max-width: 110px;
  box-shadow: inset 2px 5px 10px rgba(0,0,0,0.5) !important;
  transition: 300ms ease-in-out;
  -webkit-appearance: none;
}

.input:focus, input[type="text"]:focus, input[type="number"]:focus {
  background-color: #000 !important;
  transform: scale(1.02) !important;
  box-shadow: 0 0 10px rgba(255, 153, 102, 0.2) !important;
  border-color: var(--hands-orange) !important;
}

/* não quebrar campos de busca/largura total */
.editorial-input.input,
.custom-pedal-input.input { max-width: 100% !important; }
.editorial-input.input {
  background-color: #111 !important;
  color: #fff !important;
  box-shadow: none !important;
  max-width: 100% !important;
}
.editorial-input.input:focus {
  background-color: #111 !important;
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--hands-orange) !important;
}
/* BUTTONS */
.action-btn {
  background: #fff;
  color: #000;
  font-size: 18px;
  padding: 10px 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(255,255,255,0.1);
  letter-spacing: 1px;
}
.action-btn:hover { background: var(--hands-orange); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,153,102,0.3); }
.action-btn:active { transform: translateY(2px); box-shadow: none; }

.action-btn-small {
  background: #111;
  border: 1px solid #333;
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 4px;
  letter-spacing: 1px;
}
.action-btn-small:hover { background: var(--hands-orange); color: #000; border-color: var(--hands-orange); }
.action-btn-small.blue { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.action-btn-small.dark { background: #1a1a1a; color: #fff; border-color: #333; }

/* LAYOUT */
.main-layout { display: flex; flex: 1; overflow: hidden; }
.sidebar {
  width: 350px;
  background: #050505;
  border-right: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 90;
  box-shadow: 10px 0 30px rgba(0,0,0,0.8);
  overflow-y: auto;
}
.pedal-search-box { margin-bottom: 0; display: flex; flex-direction: column; height: 350px; }
.editorial-input {
  width: 100%;
  padding: 15px;
  background: #111;
  border: 1px solid #222;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  color: #fff;
  font-size: 11px;
  outline: none;
  margin-top: 5px;
  margin-bottom: 0;
  -webkit-appearance: none;
}
.editorial-input:focus { border-color: #555; }

.pedal-list-premium {
  width: 100%;
  flex: 1;
  background: #0a0a0a;
  border: 1px solid #222;
  color: #ccc;
  font-size: 12px;
  border-radius: 0 0 4px 4px;
  outline: none;
  overflow-y: auto;
  cursor: pointer;
  padding: 5px;
  margin-top: 0;
  -webkit-appearance: none;
  -webkit-overflow-scrolling: touch;
}
.pedal-list-premium option { padding: 12px 10px; border-bottom: 1px solid #111; }
.pedal-list-premium option:hover { background: #151515; }
.pedal-list-premium option:checked {
  background: var(--hands-orange) linear-gradient(0deg, var(--hands-orange) 0, var(--hands-orange) 100%);
  color: #000;
  font-weight: bold;
}
.pedal-list-premium::-webkit-scrollbar { width: 4px; }
.pedal-list-premium::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* CONTACT BOX */
.whatsapp-box {
  margin-top: 20px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
}
.contact-title { font-size: 9px; color: #666; font-weight: 900; letter-spacing: 1px; margin-bottom: 10px; }

.sidebar-wpp-btn {
  width: 100%;
  min-width: unset !important;
  margin-top: 10px;
}

/* GLOBAL FONT */
body, body * {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900;
}

/* CANVAS */
.canvas-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #111 0%, #000 100%);
  touch-action: none;
}
.nav-hints {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  color: #444;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  gap: 20px;
  z-index: 100;
  pointer-events: none;
  letter-spacing: 2px;
}
.zoom-controls {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.zoom-controls button {
  background: #111;
  border: 1px solid #333;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}
.zoom-controls button:hover { background: #fff; color: #000; }

/* WORKSPACE */
.workspace {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  z-index: 1;
}
.board-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: width 0.3s, height 0.3s;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}
.board-controls-panel {
  position: absolute;
  top: -130px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 60;
  background: #050505;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #1a1a1a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
  white-space: nowrap;
}

.pedalboard-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  overflow: visible !important;
}
.pedalboard {
  position: relative;
  box-sizing: content-box;
  background-color: #050505;
  width: 100%;
  height: 100%;
  perspective: 1500px;
  overflow: visible !important;
}
.pedalboard.vertex {
  border-left: 16px solid var(--wood-color);
  border-right: 16px solid var(--wood-color);
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  border-radius: 2px;
}
.pedalboard.supreme {
  border-left: 16px solid var(--wood-color);
  border-right: 16px solid var(--wood-color);
  border-top: 8px solid var(--wood-color);
  border-bottom: 8px solid var(--wood-color);
  border-radius: 2px;
}
.pedalboard.liteplus {
  border-left: 16px solid var(--wood-color);
  border-right: 16px solid var(--wood-color);
  border-top: 8px solid var(--wood-color);
  border-bottom: 4px solid var(--wood-color);
  border-radius: 2px;
}
.board-wrapper { overflow: visible !important; }

/* METAL */
.metal-surface {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  background-color: #181818;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 40%, rgba(0,0,0,0.6) 100%),
    url("data:image/svg+xml;utf8,<svg width='30' height='46' xmlns='http://www.w3.org/2000/svg'><rect width='30' height='46' fill='%23181818'/><rect x='9' y='11' width='12' height='24' rx='6' fill='%23050505'/><circle cx='15' cy='0' r='2.5' fill='%23050505'/><circle cx='0' cy='23' r='2.5' fill='%23050505'/></svg>");
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.1), inset 0 -2px 10px rgba(0,0,0,0.5), 0 3px 10px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 5;
}
.pedalboard.supreme .metal-surface {
  transform-origin: top center;
  transition: transform 0.8s cubic-bezier(0.25,0.8,0.25,1), opacity 0.5s ease;
}
.pedalboard.supreme.open-lid .metal-surface {
  transform: rotateX(82deg) translateY(-28px);
  opacity: 0.85;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* SUPREME INTERNAL */
.supreme-internals {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #080808;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  box-shadow: inset 0 0 50px rgba(0,0,0,1);
  pointer-events: none;
  container-type: inline-size; /* Adaptação de texto */
}
.pedalboard.supreme.open-lid .supreme-internals { opacity: 1; z-index: 10; pointer-events: auto; }

.sz-internal-info {
  position: absolute;
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 8px;
  letter-spacing: 2px;
  pointer-events: none;
  z-index: 5;
}

.supreme-interior-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.05); /* Branco bem suave */
  letter-spacing: 5px;
  font-size: 5cqw; /* Se adapta ao tamanho do board */
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

.sz-zone {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pedalboard.supreme.open-lid .sz-zone { opacity: 1; }

.sz-label { font-size: 6.5px; text-align: center; line-height: 1.4; letter-spacing: 0.3px; }
.sz-yellow { background: rgba(255,200,0,0.05); border: 1px dashed rgba(255,200,0,0.3); }
.sz-yellow .sz-label { color: rgba(255,210,0,0.5); }
.sz-blue { background: rgba(40,130,255,0.05); border: 1px dashed rgba(80,160,255,0.3); }
.sz-blue .sz-label { color: rgba(100,180,255,0.5); }
.sz-red { background: rgba(220,40,40,0.05); border: 1px dashed rgba(255,80,80,0.3); }
.sz-red .sz-label { color: rgba(255,110,110,0.5); }

.sz-piston-left { left: 0; top: 60px; width: 30px; height: calc(100% - 60px); }
.sz-piston-right { right: 0; top: 80px; width: 30px; height: calc(100% - 80px); }
.sz-piston-left .sz-label, .sz-piston-right .sz-label { writing-mode: vertical-rl; text-orientation: mixed; font-size: 5.5px; }

.sz-jack-left { left: 0; top: 0; width: 100px; height: 60px; padding: 3px; }
.sz-jack-right { right: 0; top: 0; width: 100px; height: 80px; padding: 3px; }
.sz-jack-left .sz-label, .sz-jack-right .sz-label { font-size: 6px; }

.sz-support-dot { width: 56px; height: 56px; border-radius: 50% !important; padding: 4px; }
.sz-support-dot .sz-label { font-size: 5.5px; }

/* VERTEX RISER */
.vertex-riser {
  position: absolute;
  top: 0; left: 0;
  z-index: 20;
  border-bottom: 8px solid #050505;
  border-right: none;
  box-shadow: 10px 20px 30px rgba(0,0,0,0.9);
  transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.6s ease;
  opacity: 0.85;
}
.vertex-riser.open { transform: rotateX(75deg); opacity: 0.15; pointer-events: none; }
.vertex-filetinha {
  position: absolute;
  top: 0;
  width: 6px;
  background: #0a0a0a;
  border-left: 1px solid #1a1a1a;
  border-right: 1px solid #000;
  box-shadow: 2px 0 10px rgba(0,0,0,0.9);
  z-index: 15;
}

/* PEDALS */
.pedal-area {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  overflow: visible !important;
}
.pedal {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 5px 15px 25px rgba(0,0,0,0.9);
  border-radius: 4px;
  cursor: grab;
  pointer-events: auto;
  transition: opacity 0.4s ease;
  touch-action: none;
  -webkit-transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.pedal:active { cursor: grabbing; box-shadow: 10px 25px 40px rgba(0,0,0,1); }
.pedal-actions {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  background: #050505;
  padding: 8px;
  border-radius: 6px;
  z-index: 150;
  border: 1px solid #222;
  box-shadow: 0 10px 20px rgba(0,0,0,0.9);
}
.pedal.selected .pedal-actions { opacity: 1; pointer-events: auto; }
.pedal-btn {
  background-color: #111;
  color: #aaa;
  border: 1px solid #222;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.pedal-btn:hover { background-color: #fff; color: #000; }
.pedal-btn.delete:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* DIM MARKERS */
.dim-marker {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  pointer-events: none;
  z-index: 50;
  letter-spacing: 1px;
}
.marker-w { top: -45px; left: 0; width: 100%; border-top: 1px solid #333; padding-top: 10px; }
.marker-w::before, .marker-w::after { content: ''; position: absolute; top: -5px; width: 1px; height: 10px; background: #555; }
.marker-w::before { left: 0; } .marker-w::after { right: 0; }
.marker-h {
  top: 0;
  right: -45px;
  height: 100%;
  border-right: 1px solid #333;
  padding-left: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.marker-h::before, .marker-h::after { content: ''; position: absolute; left: -5px; width: 10px; height: 1px; background: #555; }
.marker-h::before { top: 0; } .marker-h::after { bottom: 0; }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #080808;
  border: 1px solid #1a1a1a;
  padding: 40px;
  border-radius: 6px;
  width: 95%;
  max-width: 1200px;
  box-shadow: 0 30px 80px rgba(0,0,0,1);
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.modal-title {
  color: #fff;
  font-size: 32px;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 50px;
}
.close-modal {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  color: #888;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: 0.2s;
}
.close-modal:hover { color: #e74c3c; }

/* PANELS */
.panels-layout {
  display: flex;
  gap: 60px;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.wood-side-container { position: relative; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.9)); }
.wood-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  background: linear-gradient(to right, #dcae78, #caa276);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}
.side-title {
  position: absolute;
  top: -30px; left: 0;
  color: #555;
  font-size: 11px;
  letter-spacing: 2px;
}
.handle-cutout {
  position: absolute;
  background: #000;
  box-shadow: inset 0 10px 20px rgba(0,0,0,1), 0 1px 1px rgba(255,255,255,0.1);
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
}

/* JACKS */
.jack-hole, .fixed-jack {
  background: #eee;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.8), 2px 2px 5px rgba(0,0,0,0.8);
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.jack-hole.drag-jack { cursor: default; }
.jack-hole::before, .fixed-jack::before {
  content: '';
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: inset 0 2px 5px rgba(0,0,0,1);
  pointer-events: none;
}
.jack-hole::after, .fixed-jack::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 8px;
  height: 10px;
  background: #ff2222;
  border-radius: 2px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  pointer-events: none;
}
.hollow-cap {
  position: absolute;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  background: #000;
  box-shadow: inset 0 2px 10px rgba(0,0,0,1);
}
.hollow-cap::before { content: '●'; color: #444; font-size: 16px; }
.hollow-cap:hover { background: #111; }
.hollow-cap:hover::before { color: #fff; content: 'Furar'; font-size: 11px; }

.jack-menu {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  gap: 5px;
  background: #111;
  padding: 12px 18px;
  border-radius: 6px;
  z-index: 99999;
  pointer-events: auto;
  border: 1px solid #333;
  box-shadow: 0 20px 60px rgba(0,0,0,0.95);
}
.drag-jack.show-menu .jack-menu { display: flex; }
.j-btn {
  background: #222;
  color: #fff;
  border: none;
  width: 26px; height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: 0.2s;
}
.j-btn.del:hover { background: #e74c3c; color: #fff; }

.ac-socket {
  background: #0a0a0a;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: auto;
  cursor: pointer;
  gap: 5px;
}
.ac-socket::before { content: ''; width: 20px; height: 25px; background: #222; border-radius: 2px; pointer-events: none; }
.ac-socket::after { content: ''; width: 15px; height: 20px; background: #e74c3c; border-radius: 2px; pointer-events: none; }
.ac-socket.horizontal { flex-direction: row; }
.ac-socket.vertical { flex-direction: column; }

.jack-toolbox {
  border-top: 1px solid #1a1a1a;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 30px;
}

/* DEV */
body.dev-mode-active .fixed-jack, body.dev-mode-active .drag-jack,
body.dev-mode-active .ac-socket, body.dev-mode-active .handle-cutout,
body.dev-mode-active .wood-bg, body.dev-mode-active .metal-surface,
body.dev-mode-active .sz-zone, body.dev-mode-active .vertex-riser,
body.dev-mode-active .vertex-filetinha, body.dev-mode-active .hollow-cap {
  outline: 2px dashed rgba(255,255,255,0.5);
  outline-offset: 2px;
  transition: outline 0.2s;
  cursor: pointer !important;
}
body.dev-mode-active .dev-selected { outline: 3px solid var(--hands-orange) !important; z-index: 999; }

.dev-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 340px;
  background: #050505;
  border-left: 1px solid #1a1a1a;
  padding: 30px 20px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.9);
  z-index: 20000;
  overflow-y: auto;
}
.close-dev-btn { position: absolute; top: 15px; right: 15px; background: transparent; color: #888; border: none; font-size: 16px; cursor: pointer; }
.close-dev-btn:hover { color: var(--hands-orange); }

.popup-box {
  background: #050505;
  border: 1px solid #1a1a1a;
  padding: 40px;
  border-radius: 6px;
  text-align: center;
  max-width: 450px;
  box-shadow: 0 20px 50px rgba(0,0,0,1);
}
.popup-box h3 { color: #fff; font-size: 32px; margin-bottom: 15px; }
.popup-box p { color: #888; font-size: 12px; margin-bottom: 30px; line-height: 1.5; }
.scrollable-dev-grid { max-height: calc(100vh - 300px); overflow-y: auto; padding-right: 5px; }

/* MOBILE NAV */
.mobile-nav-bar { display: none; }

@media (max-width: 900px) {
  .app-container { height: calc(100dvh - 60px - env(safe-area-inset-bottom)); overflow: hidden; position: relative; }

  .mobile-nav-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    height: calc(60px + env(safe-area-inset-bottom));
    background: #050505;
    border-top: 1px solid #1a1a1a;
    z-index: 5000;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: 5px;
  }
  .mobile-nav-btn {
    background: transparent;
    border: none;
    color: #555;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 33%;
    height: 50px;
    transition: 0.3s;
    cursor: pointer;
    letter-spacing: 1px;
  }
  .mobile-nav-btn.active {
    color: var(--hands-orange);
    text-shadow: 0 0 10px rgba(255,153,102,0.3);
    transform: translateY(-2px);
  }
  .nav-icon { font-size: 18px; margin-bottom: 3px; }

  .top-header {
    position: fixed;
    top: 0; left: -100%;
    width: 85%;
    height: calc(100dvh - 60px - env(safe-area-inset-bottom));
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: max(20px, env(safe-area-inset-top)) 20px 20px;
    z-index: 4000;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.25,0.8,0.25,1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.9);
  }
  .top-header.mobile-open { left: 0; }
  .header-controls { flex-direction: column; width: 100%; align-items: flex-start; gap: 20px; }
  .language-selector { width: 100%; }
  .lang-select { width: 100%; }
  .tabs-header { flex-direction: column; gap: 15px; }
  .tabs-content { padding-left: 0; border-left: none; width: 100%; border-top: 1px solid #1a1a1a; padding-top: 20px; }
  .tab-pane { flex-direction: column; align-items: flex-start; width: 100%; }

  .main-layout { flex-direction: column; }
  .sidebar {
    position: fixed;
    top: 0; right: -100%;
    width: 85%;
    height: calc(100dvh - 60px - env(safe-area-inset-bottom));
    z-index: 4000;
    transition: right 0.3s cubic-bezier(0.25,0.8,0.25,1);
    padding-top: max(20px, env(safe-area-inset-top));
    box-shadow: -10px 0 30px rgba(0,0,0,0.9);
    border-right: none;
  }
  .sidebar.mobile-open { right: 0; }

  .canvas-area {
    width: 100vw;
    height: 100%;
    z-index: 100;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .workspace {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    will-change: transform;
  }
  .pedal-area {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    position: absolute;
    inset: 0;
    z-index: 25;
    overflow: visible !important;
    pointer-events: none;
  }
  .pedal { -webkit-transform: translateZ(0); will-change: transform; pointer-events: auto; }

  .panels-layout { transform: scale(0.65); transform-origin: top center; margin-bottom: -50px; }
  .wood-side-container { margin-bottom: 20px; }
  .modal-content { padding: 40px 10px; overflow-x: hidden; }
  .dev-panel { position: fixed; top: 20px; right: 5%; width: 90%; height: 80vh; border-radius: 8px; border: 1px solid var(--hands-orange); }
  .board-controls-panel { top: -110px; gap: 6px; padding: 8px; }
  .board-controls-panel .action-btn-small { font-size: 11px; padding: 6px 10px; }

  /* select mobile corrigido */
  .editorial-select {
    background-color: #111 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
  }
  .editorial-select option {
    background: #111 !important;
    color: #fff !important;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .mobile-nav-bar { height: 40px; padding-top: 0; align-items: center; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .mobile-nav-btn { flex-direction: row; font-size: 10px; height: 100%; gap: 8px; }
  .nav-icon { margin-bottom: 0; font-size: 14px; }
  .app-container { height: calc(100dvh - 40px); }
  .top-header, .sidebar { height: calc(100dvh - 40px); width: 60%; }
  .panels-layout { transform: scale(0.5); display: flex; flex-direction: row; flex-wrap: nowrap; }
}

/* TOAST */
.toast-container {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  align-items: center;
}
.toast-notif {
  background: #0a0a0a;
  border: 1px solid #333;
  border-left: 4px solid var(--hands-orange);
  color: #fff;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 1px;
  max-width: 260px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,153,102,0.2);
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.85);
  animation: toastIn 0.35s cubic-bezier(0.25,0.8,0.25,1) forwards, toastOut 0.35s cubic-bezier(0.25,0.8,0.25,1) var(--toast-delay, 3s) forwards;
  line-height: 1.5;
  text-align: center;
  min-width: 280px;
}
.toast-notif.toast-warning { border-left-color: #f39c12; }
.toast-notif.toast-error { border-left-color: #e74c3c; }
.toast-notif.toast-info { border-left-color: #3498db; }
@keyframes toastIn { to { opacity: 1; transform: scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: scale(0.85); } }

/* CONV BTN */
.conversion-btns {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 200;
  flex-wrap: wrap;
  justify-content: center;
}
.conv-btn {
  --primary: #ff9966;
  --neutral-1: #2a2a2a;
  --neutral-2: #1a1a1a;
  --radius: 14px;
  cursor: pointer;
  border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  border: none;
  box-shadow: 0 0.5px 0.5px 1px rgba(255,255,255,0.08), 0 10px 20px rgba(0,0,0,0.5), 0 4px 5px 0 rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  min-width: 210px;
  padding: 20px;
  height: 64px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #fff;
  background: var(--neutral-2);
}
.conv-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 1px 2px rgba(255,255,255,0.12), 0 15px 30px rgba(0,0,0,0.5), 0 10px 3px -3px rgba(0,0,0,0.2);
}
.conv-btn:active {
  transform: scale(1);
  box-shadow: 0 0 1px 2px rgba(255,255,255,0.08), 0 10px 3px -3px rgba(0,0,0,0.3);
}
.conv-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid transparent;
  background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
              linear-gradient(to bottom, rgba(255,255,255,0.12), rgba(0,0,0,0.6)) border-box;
  z-index: 0;
  transition: all 0.4s ease;
}
.conv-btn:hover::after {
  transform: scale(1.05, 1.1);
  box-shadow: inset 0 -1px 3px 0 rgba(255,255,255,0.2);
}
.conv-btn::before {
  content: "";
  inset: 7px 6px 6px 6px;
  position: absolute;
  background: linear-gradient(to top, #252525, #1e1e1e);
  border-radius: 30px;
  filter: blur(0.5px);
  z-index: 2;
}
.conv-btn .outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  inset: -2px -3.5px;
}
.conv-btn .outline::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 180deg, transparent 60%, var(--primary) 80%, transparent 100%);
  animation: conv-spin 2s linear infinite;
  animation-play-state: paused;
}
@keyframes conv-spin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
.conv-btn:hover .outline { opacity: 1; }
.conv-btn:hover .outline::before { animation-play-state: running; }

.conv-btn .state {
  padding-left: 29px;
  z-index: 3;
  display: flex;
  position: relative;
  align-items: center;
}
.conv-btn .state p { display: flex; align-items: center; justify-content: center; margin: 0; }
.conv-btn .state .icon {
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  margin: auto;
  transform: scale(1.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 4;
}

/* colors */
.color-whatsapp { --primary: var(--wpp-green); }
.color-email { --primary: var(--mail-blue); }
.color-site { --primary: var(--site-orange); }

/* email no icon */
.no-icon-btn .state { padding-left: 0 !important; justify-content: center; }
.no-icon-btn .icon { display: none !important; }

@media (max-width: 900px) {
  .conversion-btns { bottom: 75px; gap: 10px; }
  .conv-btn { min-width: 160px; font-size: 11px; padding: 15px; height: 54px; }
  .toast-container { left: 50%; top: 50%; transform: translate(-50%, -50%); bottom: auto; }
}

/* CUSTOM PEDAL */
.custom-pedal-grid { display: flex; flex-direction: column; gap: 0; }
.custom-pedal-group { background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: 4px; padding: 12px; }
.custom-pedal-flag { font-size: 11px; color: #888; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.custom-pedal-sublabel { font-size: 8px; color: #555; letter-spacing: 1px; display: block; margin-bottom: 4px; text-transform: uppercase; }
.custom-pedal-input {
  width: 100%;
  padding: 8px;
  background: #111;
  border: 1px solid #222;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  font-size: 13px;
}
.custom-pedal-input:focus { border-color: var(--hands-orange); }

/* MOBILE PEDAL LIST */
#mobile-pedal-btn { display: none; }
#mobile-pedal-list { display: none; }

@media (max-width: 900px) {
  .pedal-list-premium { display: none !important; }
  #pedal-search-input { display: none !important; }
  .pedal-search-box { height: auto !important; }

  #mobile-pedal-btn {
    display: block;
    width: 100%;
    margin-top: 6px;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ccc;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  #mobile-pedal-btn.open {
    color: var(--hands-orange);
    border-color: var(--hands-orange);
    border-radius: 4px 4px 0 0;
  }
  #mobile-pedal-list {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #222;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    box-sizing: border-box;
  }
  #mobile-pedal-list.open { display: block; }

  #mobile-pedal-search {
    width: 100%;
    padding: 9px 10px;
    box-sizing: border-box;
    background: #111;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    font-size: 12px;
    outline: none;
    -webkit-appearance: none;
  }
  #mobile-pedal-search::placeholder { color: #555; }

  #mobile-pedal-items {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-height: 220px;
  }
  .mob-pedal-item {
    padding: 11px 10px;
    border-bottom: 1px solid #111;
    color: #ccc;
    font-size: 12px;
    cursor: pointer;
    line-height: 1.3;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-pedal-item.selected {
    background: var(--hands-orange);
    color: #000;
    font-weight: bold;
  }
  .mob-pedal-item.empty { color: #555; font-style: italic; padding: 11px 10px; }
}