.botons-page {
  --bn-bg: rgba(255,255,255,.04);
  --bn-bg-2: rgba(12,12,22,.92);
  --bn-border: rgba(255,255,255,.12);
  --bn-accent: #7c3aed;
  --bn-accent-2: #a78bfa;
  --bn-ok: #22c55e;
  --bn-warn: #f59e0b;
  --bn-danger: #ef4444;
  --bn-text: #f3f4f6;
  --bn-muted: #9ca3af;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 16px 48px;
  color: var(--bn-text);
}

.botons-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 4px 2px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.botons-hero h1 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.botons-hero p {
  margin: 0;
  color: var(--bn-muted);
  font-size: .92rem;
  max-width: 520px;
  line-height: 1.4;
}

.bn-banner-warn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245,158,11,.4);
  background: rgba(245,158,11,.08);
  color: #fde68a;
  font-size: .9rem;
}
.bn-banner-warn a { color: #c4b5fd; }

.bn-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,.55);
  background: rgba(239,68,68,.12);
  color: #fecaca;
  font-size: .9rem;
  line-height: 1.4;
}
.bn-banner-info i { color: #f87171; flex-shrink: 0; }
.bn-banner-info strong { color: #fee2e2; }
.bn-banner-info span { color: #fecaca; }

/* Studio: tools | stage */
.botons-studio {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bn-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 10px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.bn-panel,
.bn-card {
  background: var(--bn-bg);
  border: 1px solid var(--bn-border);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(8px);
}
.bn-panel h3,
.bn-card h3 {
  margin: 0 0 12px;
  font-size: .92rem;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.bn-step {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  flex-shrink: 0;
}

.bn-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.bn-card-head h3 { margin: 0; }
.bn-card-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.bn-remove-photo {
  font-size: .78rem !important;
  padding: 6px 10px !important;
  color: #fecaca !important;
  border-color: rgba(239,68,68,.45) !important;
}
.bn-remove-photo:hover {
  background: rgba(239,68,68,.15) !important;
}
.bn-btn-danger-soft {
  color: #fecaca !important;
  border-color: rgba(239,68,68,.4) !important;
}
.bn-btn-danger-soft:hover {
  background: rgba(239,68,68,.12) !important;
}
.bn-pill {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(124,58,237,.18);
  border: 1px solid rgba(167,139,250,.35);
  border-radius: 999px;
  padding: 4px 9px;
}
.bn-pill-ok {
  color: #86efac;
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.35);
}

.bn-label {
  display: block;
  font-size: .72rem;
  color: var(--bn-muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.bn-input, .bn-select, .bn-textarea {
  width: 100%;
  background: #0d0d1a;
  color: #fff;
  border: 1px solid var(--bn-border);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: .9rem;
}
.bn-input:focus, .bn-select:focus {
  outline: none;
  border-color: rgba(167,139,250,.65);
  box-shadow: 0 0 0 3px rgba(124,58,237,.18);
}
/* Inputs de cor: mostra a cor escolhida como um "swatch" cheio */
.bn-color {
  -webkit-appearance: none;
  appearance: none;
  padding: 3px;
  height: 38px;
  min-height: 38px;
  cursor: pointer;
  background: #0d0d1a;
}
.bn-color::-webkit-color-swatch-wrapper { padding: 0; }
.bn-color::-webkit-color-swatch {
  border: none;
  border-radius: 7px;
}
.bn-color::-moz-color-swatch {
  border: none;
  border-radius: 7px;
}
.bn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bn-row > * { flex: 1; min-width: 110px; }
.bn-row-end {
  display: flex;
  align-items: flex-end;
  min-width: 110px;
}
.bn-hint {
  font-size: .74rem;
  color: var(--bn-muted);
  margin: 0 0 8px;
  line-height: 1.35;
}
.bn-hint-center { text-align: center; }

.bn-music-results {
  display: none;
  margin: 8px 0 10px;
  border: 1px solid var(--bn-border);
  border-radius: 10px;
  background: #0d0d1a;
  max-height: 220px;
  overflow: auto;
  z-index: 20;
  position: relative;
}
.bn-music-results.is-open,
.bn-music-results:not([hidden]) { display: block; }
.bn-music-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
}
.bn-music-item:hover { background: rgba(124,58,237,.18); }
.bn-music-item img {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}
.bn-music-item strong { display: block; font-size: .82rem; }
.bn-music-item span { display: block; font-size: .72rem; color: var(--bn-muted); }

.bn-slots-meta {
  font-size: .72rem;
  color: var(--bn-muted);
  margin: 0 0 6px;
}
.bn-slots-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bn-slots-bar .bn-slot-add {
  order: -1;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-style: solid !important;
  border-color: var(--bn-accent) !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,.55);
  color: #c4b5fd !important;
  font-size: 1.35rem !important;
  font-weight: 700;
  line-height: 1;
  padding: 0 !important;
}
.bn-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.bn-slot-wrap {
  position: relative;
  display: inline-flex;
  overflow: visible;
  z-index: 1;
}
.bn-slot-wrap:hover { z-index: 5; }
.bn-slot-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--bn-border);
  background: transparent;
  color: #ddd;
  font-size: .75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
}
/* Quadro: miniatura no formato/orientação do produto */
.bn-slots.is-quadro .bn-slot-btn {
  border-radius: 6px;
}
.bn-slots.is-quadro.orient-v .bn-slot-btn {
  width: 34px;
  height: 52px;
}
.bn-slots.is-quadro.orient-h .bn-slot-btn {
  width: 52px;
  height: 34px;
}
.bn-slots-bar:has(.bn-slots.is-quadro.orient-v) .bn-slot-add {
  width: 34px !important;
  height: 52px !important;
  border-radius: 6px !important;
}
.bn-slots-bar:has(.bn-slots.is-quadro.orient-h) .bn-slot-add {
  width: 52px !important;
  height: 34px !important;
  border-radius: 6px !important;
}
.bn-slot-btn.active:not(.has-thumb) {
  background: var(--bn-accent);
  border-color: var(--bn-accent);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(124,58,237,.25);
}
.bn-slot-btn.has-art { border-color: var(--bn-ok); }
.bn-slot-btn.has-thumb {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
  transition: transform .28s ease, filter .28s ease, box-shadow .28s ease, border-color .2s ease;
}
.bn-slot-btn.has-thumb:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
  z-index: 2;
  border-color: var(--bn-accent);
  box-shadow: 0 6px 18px rgba(124,58,237,.35);
}
.bn-slot-btn.has-thumb.active {
  border-color: var(--bn-accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,.55);
}
.bn-slot-btn.has-thumb.active:hover {
  box-shadow: 0 0 0 3px rgba(124,58,237,.55), 0 8px 20px rgba(124,58,237,.35);
}

/* Prévia ampliada ao passar o mouse (2x o tamanho da loja) */
.bn-slot-hover-preview {
  display: none;
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: rgba(15, 15, 26, 0.95);
  border: 2px solid #7c3aed;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,.65), 0 0 36px rgba(124,58,237,.35);
  backdrop-filter: blur(8px);
  max-width: min(600px, 92vw);
  max-height: min(840px, 88vh);
}
.bn-slot-hover-preview.is-visible { display: block; }
.bn-slot-hover-preview img {
  display: block;
  max-width: min(580px, calc(92vw - 20px));
  max-height: min(820px, calc(88vh - 20px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
}
.bn-slot-hover-preview.is-quadro img {
  max-width: min(640px, calc(94vw - 20px));
  max-height: min(760px, calc(88vh - 20px));
}
@media (hover: none), (max-width: 700px) {
  .bn-slot-hover-preview { display: none !important; }
  .bn-slot-btn.has-thumb:hover {
    transform: none;
    filter: none;
  }
}
.bn-slot-rm {
  position: absolute;
  top: -6px; right: -6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.bn-slot-add {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 1.25rem !important;
  font-weight: 700;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.bn-drop {
  border: 1.5px dashed rgba(124,58,237,.55);
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
  color: var(--bn-muted);
  cursor: pointer;
  background: rgba(124,58,237,.08);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  transition: background .15s ease, border-color .15s ease;
}
.bn-drop i { font-size: 1.35rem; color: #a78bfa; }
.bn-drop:hover {
  background: rgba(124,58,237,.14);
  border-color: rgba(167,139,250,.8);
}
.bn-range { width: 100%; margin-bottom: 8px; }
.bn-check {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: #ddd; margin: 0;
}

.bn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bn-actions-sticky {
  position: sticky;
  bottom: 0;
  padding: 10px 0 2px;
  background: linear-gradient(180deg, transparent, rgba(8,8,14,.95) 30%);
  z-index: 5;
}
.bn-actions-sticky .bn-btn { flex: 1; justify-content: center; }

.bn-btn {
  border: none; border-radius: 10px; padding: 10px 14px;
  font-weight: 700; font-size: .86rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.bn-btn-primary { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; }
.bn-btn-ok { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; }
.bn-btn-ghost { background: rgba(255,255,255,.06); color: #eee; border: 1px solid var(--bn-border); }
.bn-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Stage: criador + mockup lado a lado */
.bn-stage {
  min-width: 0;
}
.bn-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  position: sticky;
  top: 10px;
}
/* Faixa horizontal: Seus quadros / slots (abaixo do aviso) */
.bn-slots-top {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--bn-border);
  background: rgba(255,255,255,.03);
}
.bn-slots-top-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.bn-slots-top-head h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: #e5e7eb;
}
.bn-slots-top .bn-hint { margin: 0 0 8px; }
.bn-slots-top .bn-slots-bar { align-items: center; }
.bn-slots-top.is-quadro {
  border-color: rgba(167,139,250,.35);
  background: rgba(124,58,237,.08);
}

/* Zoom (vertical) + preview + Rotação (horizontal) — sem card extra */
.bn-preview-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.bn-preview-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bn-zoom-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  width: 36px;
  flex-shrink: 0;
}
.bn-rot-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
}
.bn-rail-name {
  font-size: .68rem;
  font-weight: 700;
  color: var(--bn-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.bn-zoom-rail .bn-rail-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.bn-range-v {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 18px;
  height: 180px;
  min-height: 140px;
  margin: 0;
  flex: 1;
  max-height: 260px;
}
.bn-rot-rail .bn-range {
  flex: 1;
  margin: 0;
}
.bn-layers-under {
  max-height: 120px;
  margin-top: 2px;
}

.bn-preview-card,
.bn-mockup-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(124,58,237,.14), transparent 45%),
    var(--bn-bg);
}

.bn-canvas-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 20%, #2a2140, #12121f 70%);
  border: 1px solid var(--bn-border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  touch-action: none;
  box-shadow: inset 0 0 40px rgba(0,0,0,.25);
  cursor: pointer;
}
/* Overlay transparente ligado ao input file — gesto nativo no iOS/Android */
.bn-canvas-file-label {
  position: absolute;
  inset: 0;
  z-index: 5;
  margin: 0;
  cursor: pointer;
  background: transparent;
  border-radius: inherit;
}
.bn-canvas-file-label.bn-is-hidden,
.bn-canvas-file-label[hidden] {
  display: none !important;
  pointer-events: none !important;
}
/* Quadro: caixa acompanha a orientação (evita “área morta” no horizontal) */
.bn-canvas-box.is-quadro {
  aspect-ratio: var(--bn-canvas-ar, 3 / 4);
}
#bnCanvas {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
  cursor: grab;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display: block;
}
#bnCanvas.bn-canvas-rect { border-radius: 10px; }
#bnCanvas:active { cursor: grabbing; }

.bn-price {
  margin-top: 12px;
  text-align: center;
  font-size: .95rem;
  color: #ddd;
}
.bn-price-line { margin-bottom: 4px; }
.bn-price-total strong { color: #c4b5fd; font-size: 1.35rem; }
.bn-price-total span { color: var(--bn-muted); font-size: .85rem; }
.bn-price strong { color: #c4b5fd; font-size: 1.1rem; }

.bn-mockup-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-top: 4px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #2a2036;
  box-shadow: 0 18px 42px rgba(0,0,0,.38);
}
.bn-mockup-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
  pointer-events: none;
}
#bnMockup {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}
/* Input file clicável sem aparecer (não usar display:none/hidden) */
.bn-file-visually-hidden {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0.001 !important;
  overflow: hidden !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: -1 !important;
}

.bn-layers {
  max-height: 160px;
  overflow: auto;
  margin-top: 8px;
}
.bn-layer-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 6px 8px; border-radius: 8px;
  background: rgba(0,0,0,.2); margin-bottom: 4px; font-size: .78rem;
  cursor: pointer;
  user-select: none;
}
.bn-layer-item.active { outline: 1px solid var(--bn-accent); }
.bn-layer-item.dragging { opacity: .45; }
.bn-layer-item.drop-target { outline: 2px dashed var(--bn-accent-2); }
.bn-layer-grip { color: var(--bn-muted); cursor: grab; flex-shrink: 0; }
.bn-layer-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-layer-actions { display: flex; gap: 3px; flex-shrink: 0; }
.bn-layer-mini {
  padding: 3px 7px !important;
  font-size: .72rem !important;
}
.bn-layer-mini:disabled { opacity: .3; cursor: default; }

/* Painéis recolhíveis (Texto / Spotify Code) */
details.bn-panel-fold summary {
  list-style: none;
  cursor: pointer;
}
details.bn-panel-fold summary::-webkit-details-marker { display: none; }
details.bn-panel-fold summary h3 { margin: 0; }
details.bn-panel-fold .bn-fold-icon {
  margin-left: auto;
  color: var(--bn-muted);
  transition: transform .2s ease;
  font-size: .75rem;
}
details.bn-panel-fold[open] .bn-fold-icon { transform: rotate(180deg); }
details.bn-panel-fold .bn-fold-body { margin-top: 12px; }

/* Seletor Botton / Quadro */
.bn-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.bn-kind-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--bn-border);
  background: rgba(0,0,0,.25);
  color: var(--bn-muted);
  cursor: pointer;
  transition: all .15s ease;
  text-align: center;
}
.bn-kind-btn strong { color: #e5e7eb; font-size: .88rem; }
.bn-kind-btn > span:last-child { font-size: .68rem; line-height: 1.2; }
.bn-kind-icon { color: var(--bn-accent-2); opacity: .75; }
.bn-kind-btn:hover { border-color: var(--bn-accent-2); color: #fff; }
.bn-kind-btn.active {
  background: rgba(124,58,237,.22);
  border-color: var(--bn-accent);
  color: #fff;
}
.bn-kind-btn.active .bn-kind-icon { opacity: 1; color: #c4b5fd; }
.bn-kind-btn.active strong { color: #fff; }

/* Seletor visual de montagens (não grade) */
.bn-mosaic-opts {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bn-mosaic-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 6px 0 8px;
}
.bn-mosaic-opt {
  border: 1px solid var(--bn-border);
  background: rgba(0,0,0,.28);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  color: var(--bn-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  transition: all .15s ease;
}
.bn-mosaic-opt strong {
  font-size: .62rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
}
.bn-mosaic-opt.active {
  border-color: var(--bn-accent);
  background: rgba(124,58,237,.22);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(124,58,237,.25);
}
.bn-mosaic-mini {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}
.bn-mosaic-mini i {
  position: absolute;
  display: block;
  border-radius: 2px;
  background: rgba(167,139,250,.45);
  border: 1px solid rgba(196,181,253,.5);
}
.bn-mosaic-opt.active .bn-mosaic-mini i {
  background: rgba(196,181,253,.65);
}

/* Células da montagem — layout absoluto (proporções livres) */
.bn-mosaic-cells {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-top: 8px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.bn-mosaic-cells.is-empty { display: none; }
.bn-mosaic-cell {
  position: absolute;
  border-radius: 6px;
  border: 1px dashed rgba(255,255,255,.28);
  background: rgba(30,27,45,.85) center/cover no-repeat;
  color: var(--bn-muted);
  font-size: .68rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  transition: outline .12s ease, border-color .12s ease;
}
.bn-mosaic-cell.has-img { border-style: solid; border-color: rgba(167,139,250,.55); }
.bn-mosaic-cell.active { outline: 2px solid var(--bn-accent); z-index: 2; }
.bn-mosaic-cell i { font-size: .85rem; opacity: .85; }
.bn-mosaic-cell span { padding: 0 3px; text-align: center; line-height: 1.15; }

/* Orientação do quadro */
.bn-orient { display: flex; gap: 8px; margin-bottom: 10px; }
.bn-orient-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--bn-border);
  background: rgba(0,0,0,.25);
  color: var(--bn-muted);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all .15s ease;
}
.bn-orient-btn:hover { border-color: var(--bn-accent-2); color: #fff; }
.bn-orient-btn.active {
  background: rgba(124,58,237,.25);
  border-color: var(--bn-accent);
  color: #fff;
}

/* Dica de resolução (quadros) */
.bn-dpi {
  margin: 10px 0;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: .78rem;
  line-height: 1.45;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #d1d5db;
}
.bn-dpi span { display: block; color: var(--bn-muted); font-size: .72rem; }
.bn-dpi-ok { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.09); color: #bbf7d0; }
.bn-dpi-ok i { color: var(--bn-ok); }
.bn-dpi-warn { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.09); color: #fde68a; }
.bn-dpi-warn i { color: var(--bn-warn); }
.bn-dpi-bad { border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.1); color: #fecaca; }
.bn-dpi-bad i { color: var(--bn-danger); }

/* Nota de acabamento do quadro */
.bn-quadro-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(167,139,250,.35);
  background: rgba(124,58,237,.10);
  color: #ddd6fe;
  font-size: .82rem;
  line-height: 1.45;
}
.bn-quadro-note i { color: #a78bfa; margin-top: 2px; flex-shrink: 0; }
.bn-quadro-note strong { color: #fff; }

.bn-real-btn { width: 100%; margin-top: 10px; }

/* Modal de aceite (produto personalizado) */
.bn-accept-modal.is-open {
  display: flex !important;
}
.bn-accept-dialog {
  max-width: min(92vw, 540px);
  width: 100%;
}
.bn-accept-dialog .bn-real-head strong { color: #fecaca; }
.bn-accept-dialog .bn-real-head i { color: #f87171; }
.bn-accept-body {
  color: #e5e7eb;
  font-size: .92rem;
  line-height: 1.55;
  margin: 8px 0 16px;
}
.bn-accept-body p { margin: 0 0 12px; }
.bn-accept-lead {
  color: #fecaca;
  font-weight: 600;
}
.bn-accept-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  cursor: pointer;
  color: #f3f4f6;
  font-size: .88rem;
  line-height: 1.4;
}
.bn-accept-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #7c3aed;
  cursor: pointer;
}
.bn-accept-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.bn-accept-actions .bn-btn-ok:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Modal de prévia em tamanho real */
.bn-real-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(5,5,12,.82);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.bn-real-modal[hidden] { display: none; }
.bn-real-dialog {
  background: #14121f;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 16px 18px;
  max-width: min(96vw, 1100px);
  max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.bn-real-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 6px; color: #fff;
}
.bn-real-head i { color: #a78bfa; }
.bn-real-close {
  background: none; border: none; color: var(--bn-muted);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 2px 8px;
}
.bn-real-close:hover { color: #fff; }
.bn-real-scroll {
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    repeating-conic-gradient(#1b1928 0% 25%, #232134 0% 50%) 0 0 / 24px 24px;
  padding: 14px;
}
#bnRealCanvas {
  display: block;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

.bn-toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 10px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15); z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); display: none;
}
.bn-toast.show { display: block; }

.bn-drafts { margin-top: 18px; }
.bn-drafts table { width: 100%; font-size: .84rem; color: #ddd; }
.bn-drafts th { color: #9ca3af; font-size: .72rem; text-transform: uppercase; }
.bn-drafts td, .bn-drafts th { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.bn-draft-date { color: #c4b5fd; font-size: .8rem; white-space: nowrap; }
.bn-drafts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.bn-draft-pay {
  padding: 6px 10px !important;
  font-size: .78rem !important;
}
.bn-draft-del {
  color: #fecaca !important;
  border-color: rgba(239,68,68,.45) !important;
}

/* Status em português (cliente) */
.bn-status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}
.bn-status-draft { background: rgba(156,163,175,.18); color: #d1d5db; border-color: rgba(156,163,175,.35); }
.bn-status-awaiting_payment { background: rgba(245,158,11,.18); color: #fcd34d; border-color: rgba(245,158,11,.4); }
.bn-status-paid { background: rgba(52,211,153,.16); color: #6ee7b7; border-color: rgba(52,211,153,.4); }
.bn-status-in_production { background: rgba(96,165,250,.16); color: #93c5fd; border-color: rgba(96,165,250,.4); }
.bn-status-ready { background: rgba(167,139,250,.18); color: #c4b5fd; border-color: rgba(167,139,250,.4); }
.bn-status-shipped { background: rgba(34,211,238,.16); color: #67e8f9; border-color: rgba(34,211,238,.4); }
.bn-status-picked_up,
.bn-status-completed { background: rgba(74,222,128,.16); color: #86efac; border-color: rgba(74,222,128,.4); }
.bn-status-cancelled { background: rgba(248,113,113,.16); color: #fca5a5; border-color: rgba(248,113,113,.4); }

/* Badge flutuante Ajuda / Dúvidas */
.bn-help-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(124,58,237,.45);
}
.bn-help-fab i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}
.bn-help-fab:hover { background: #6d28d9; }
.bn-help-fab.is-open { background: #4c1d95; }
.bn-help-panel {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 9501;
  width: min(380px, calc(100vw - 28px));
  max-height: min(72vh, 560px);
  overflow: auto;
  background: #12121f;
  color: #e5e7eb;
  border: 1px solid rgba(167,139,250,.35);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.bn-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  background: #12121f;
}
.bn-help-body { padding: 12px 14px 16px; font-size: .86rem; line-height: 1.45; }
.bn-help-lead { color: #9ca3af; margin: 0 0 12px; }
.bn-help-body h4 {
  margin: 14px 0 8px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #a78bfa;
}
.bn-help-status {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bn-help-status li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #cbd5e1;
  font-size: .8rem;
}
.bn-help-faq {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,.03);
}
.bn-help-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #e5e7eb;
}
.bn-help-faq p { margin: 8px 0 2px; color: #9ca3af; }
.bn-help-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #16a34a;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}
.bn-help-wa:hover { background: #15803d; }
@media (max-width: 600px) {
  .bn-help-fab span { display: none; }
  .bn-help-fab { padding: 14px; border-radius: 50%; }
  .bn-help-panel { right: 12px; bottom: 70px; }
}

@media (max-width: 1180px) {
  .bn-stage-grid { grid-template-columns: 1fr; }
  .bn-stage-grid .bn-mockup-card { order: -1; }
  .bn-mockup-box,
  .bn-canvas-box { max-width: 480px; margin-left: auto; margin-right: auto; }
  .bn-range-v { height: 140px; max-height: 160px; }
}
@media (max-width: 900px) {
  .botons-studio { grid-template-columns: 1fr; }
  .bn-tools {
    position: static;
    max-height: none;
    order: 2;
  }
  .bn-stage { order: 1; }
  .bn-stage-grid { position: static; }
  .bn-actions-sticky {
    position: sticky;
    bottom: 0;
  }
}

.bn-admin-actor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.bn-admin-actor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  flex: 1 1 280px;
}
.bn-admin-actor-tools .bn-input,
.bn-admin-actor-tools .bn-select {
  min-width: 160px;
  flex: 1 1 160px;
}
.bn-drafts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.bn-drafts-head h3 { margin: 0; }
.bn-drafts-admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bn-drafts-admin-filters .bn-input { min-width: 180px; }
.bn-draft-account { font-size: .78rem; color: var(--bn-muted); max-width: 140px; }
.bn-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--bn-muted);
  cursor: pointer;
  white-space: nowrap;
}

/* Escolha: prontos x personalizar */
.bn-mode-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
}
.bn-mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--bn-border);
  background: linear-gradient(160deg, rgba(124,58,237,.16), rgba(12,12,22,.9));
  color: var(--bn-text);
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
}
.bn-mode-card:hover {
  border-color: var(--bn-accent-2);
  transform: translateY(-1px);
}
.bn-mode-card.active {
  border-color: var(--bn-accent-2);
  box-shadow: 0 0 0 1px rgba(167,139,250,.35);
}
.bn-mode-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(167,139,250,.2);
  color: var(--bn-accent-2);
  font-size: .95rem;
  margin-bottom: 2px;
}
.bn-mode-card strong { font-size: .98rem; }
.bn-mode-card > span:last-child { color: var(--bn-muted); font-size: .78rem; line-height: 1.3; }

/* Abas compactas após escolher um modo */
.bn-mode-pick.is-compact {
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  gap: 8px;
  margin-bottom: 12px;
}
.bn-mode-pick.is-compact .bn-mode-card {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
}
.bn-mode-pick.is-compact .bn-mode-icon {
  width: 22px; height: 22px; font-size: .75rem; margin: 0;
  border-radius: 50%;
}
.bn-mode-pick.is-compact .bn-mode-card > span:last-child { display: none; }
.bn-mode-pick.is-compact .bn-mode-card strong { font-size: .86rem; font-weight: 700; }

/* [hidden] precisa vencer display:grid/flex dos painéis */
.bn-ready[hidden],
#bnCustomWrap[hidden],
.bn-mode-pick[hidden],
.bn-is-hidden {
  display: none !important;
}

/* Vitrine prontos */
.bn-ready {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 280px);
  gap: 18px;
  align-items: start;
}
.bn-ready-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.bn-ready-tabs { display: flex; gap: 6px; }
.bn-ready-tab {
  border: 1px solid var(--bn-border);
  background: rgba(255,255,255,.04);
  color: var(--bn-text);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.bn-ready-tab.active {
  background: var(--bn-accent);
  border-color: transparent;
}
.bn-ready-niche { max-width: 220px; margin-left: auto; }
.bn-ready-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.bn-ready-card {
  background: var(--bn-bg);
  border: 1px solid var(--bn-border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bn-ready-card.in-cart { border-color: var(--bn-ok); }
.bn-ready-mock {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background-color: #1a1626;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: zoom-in;
}
.bn-ready-mock.is-quadro {
  aspect-ratio: 1;
  max-height: none;
  margin: 0;
  width: 100%;
}
.bn-ready-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
/* Face do botton calibrada (MOCKUP_FACE: cx .5132, cy .4580, r .1838) */
.bn-ready-mock.is-botton .bn-ready-art {
  position: absolute;
  left: 32.94%;
  top: 27.42%;
  width: 36.76%;
  height: 36.76%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
/* Quadro na parede da cena (centro ~55% / 40%) */
.bn-ready-mock.is-quadro .bn-ready-art {
  position: absolute;
  left: 35.5%;
  top: 14%;
  width: 40%;
  height: 52%;
  border-radius: 2px;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  box-shadow: 2px 3px 10px rgba(0,0,0,.45);
}
/* Sem arte: mostra só a cena do mockup */
.bn-ready-mock:not(:has(.bn-ready-art))::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bn-ready-meta strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-ready-meta span { color: var(--bn-muted); font-size: .78rem; }
.bn-ready-cart {
  position: sticky;
  top: 88px;
  background: var(--bn-bg-2);
  border: 1px solid var(--bn-border);
  border-radius: 14px;
  padding: 14px;
}
.bn-ready-cart h3 { margin: 0 0 10px; font-size: 1rem; }
.bn-ready-cart-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 360px; overflow: auto; }
.bn-ready-cart-row {
  display: grid;
  grid-template-columns: 40px 1fr 52px 28px;
  gap: 6px;
  align-items: center;
}
.bn-ready-cart-row img {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #222;
}
.bn-ready-cart-info strong { display: block; font-size: .78rem; line-height: 1.2; }
.bn-ready-cart-info span { font-size: .72rem; color: var(--bn-muted); }
.bn-ready-cart-row input {
  width: 100%; background: #0d0d1a; color: #fff; border: 1px solid var(--bn-border);
  border-radius: 8px; padding: 4px; font-size: .8rem;
}
.bn-ready-cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: .9rem;
}
.bn-ready-cart .bn-btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .bn-mode-pick:not(.is-compact) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bn-mode-pick.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .bn-mode-pick.is-compact .bn-mode-card { justify-content: center; width: 100%; }
  .bn-ready { grid-template-columns: 1fr; }
  .bn-ready-cart { position: static; order: -1; }
  .bn-ready-niche { margin-left: 0; width: 100%; max-width: none; }
  .bn-ready-head { flex-direction: column; align-items: stretch; }
  .bn-ready-tabs { width: 100%; }
  .bn-ready-tab { flex: 1; text-align: center; }
  .bn-ready-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bn-admin-actor-tools { margin-left: 0; width: 100%; }
  .bn-drafts-admin-filters { width: 100%; }
  .bn-drafts-admin-filters .bn-input { flex: 1; min-width: 0; }
}

/* Mobile / iOS / Android / iPad */
@media (max-width: 700px) {
  .botons-page {
    padding: 10px 10px 96px;
    max-width: 100%;
  }
  .botons-hero {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .botons-hero h1 { font-size: 1.35rem; }
  .botons-hero p { font-size: .84rem; }
  .bn-banner-warn,
  .bn-banner-info {
    font-size: .82rem;
    padding: 10px 12px;
  }
  .bn-slots-top { margin-bottom: 10px; }
  .bn-slots-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .botons-studio {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .bn-tools {
    position: static !important;
    max-height: none !important;
    order: 2;
    padding: 0;
  }
  .bn-stage { order: 1; }
  .bn-stage-grid { grid-template-columns: 1fr !important; }
  .bn-stage-grid .bn-mockup-card { order: -1; }
  .bn-mockup-box,
  .bn-canvas-box {
    max-width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
  }
  .bn-zoom-rail,
  .bn-rot-rail {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
  }
  .bn-range-v {
    writing-mode: horizontal-tb;
    width: 100%;
    height: auto;
    max-height: none;
  }
  .bn-panel { padding: 12px; }
  .bn-actions-sticky {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 10px 0 env(safe-area-inset-bottom, 0);
    background: linear-gradient(180deg, transparent, rgba(8,8,16,.96) 28%);
  }
  .bn-actions-sticky .bn-btn {
    min-height: 44px;
    font-size: .92rem;
  }
  .bn-help-fab {
    bottom: calc(12px + env(safe-area-inset-bottom, 0));
    right: 12px;
  }
  .bn-drafts { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bn-drafts table { min-width: 640px; font-size: .78rem; }
  .bn-ready-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-ready-card .bn-btn { min-height: 40px; font-size: .82rem; }
  .bn-kind { grid-template-columns: 1fr 1fr; }
  .bn-row { flex-direction: column; }
  input.bn-input,
  select.bn-select,
  textarea.bn-input {
    font-size: 16px; /* evita zoom automático no iOS */
  }
}

@media (max-width: 420px) {
  .bn-ready-grid { grid-template-columns: 1fr; }
  .bn-mode-pick:not(.is-compact) { grid-template-columns: 1fr; }
}

/* Tablet landscape / iPad */
@media (min-width: 701px) and (max-width: 1100px) {
  .botons-page { padding: 14px 14px 40px; }
  .botons-studio { grid-template-columns: minmax(240px, 300px) 1fr; gap: 14px; }
  .bn-stage-grid { grid-template-columns: 1fr 1fr; }
  .bn-ready-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
