/* Show Interativo — mobile-first, tema escuro (palco/bar) */
:root {
  /* Paleta do logo: âmbar #FEA91B, creme #F8EDCF, fundo escuro quente. Contraste AA conferido. */
  --fundo: #17120b;
  --superficie: #211a11;
  --superficie-2: #2d2418;
  --borda: #44382a;
  --texto: #f8f1e1;
  --texto-2: #c9bc9f;
  --destaque: #fea91b;
  --destaque-texto: #1d1404;
  --creme: #f8edcf;
  --roxo: #8b6cff;
  --ok: #2ecc71;
  --perigo: #ff5470;
  --aviso: #ffcf5c;
  --raio: 14px;
  --sombra: 0 6px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--destaque); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { background: var(--superficie-2); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 20px 16px 40px; flex: 1; }
.muted { color: var(--texto-2); }
.centro { text-align: center; }
.inline { display: inline; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barra superior ---------- */
.barra {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: var(--superficie); border-bottom: 1px solid var(--borda);
}
.barra-admin { border-bottom-color: var(--roxo); }
.marca { color: var(--texto); text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.marca-logo { height: 34px; width: auto; display: block; }
.marca-sufixo { color: var(--texto-2); font-weight: 600; }
.menu { display: flex; align-items: center; gap: 4px; overflow-x: auto; max-width: 100%; }
.menu a, .menu .link {
  color: var(--texto-2); text-decoration: none; padding: 10px 10px; border-radius: 10px; white-space: nowrap;
  font: inherit; min-height: 44px; display: inline-flex; align-items: center;
}
.menu a.ativo, .menu a:hover, .menu .link:hover { color: var(--texto); background: var(--superficie-2); }
.menu a.btn { color: var(--destaque-texto); }
.link { background: none; border: 0; cursor: pointer; }

.rodape { text-align: center; color: var(--texto-2); font-size: .85rem; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
.rodape a { color: var(--texto-2); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--destaque); color: var(--destaque-texto); font: inherit; font-weight: 700;
  text-decoration: none; transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; filter: none; }
.btn-sec { background: var(--superficie-2); color: var(--texto); border: 1px solid var(--borda); }
.btn-perigo { background: var(--perigo); color: #fff; }
.btn-ok { background: var(--ok); color: #062611; }
.btn-pequeno { min-height: 36px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.btn-grande { min-height: 52px; padding: 12px 22px; font-size: 1.05rem; width: 100%; }
.btn-gigante { min-height: 72px; padding: 16px 40px; font-size: 1.4rem; border-radius: 18px; margin: 12px 0 16px; }
.linha-botoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Cartões, alertas, selos ---------- */
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 20px; margin-bottom: 16px; }
.estreito { max-width: 440px; margin: 16px auto; }
.estreito-largo { max-width: 640px; margin: 16px auto; }
.grade-2 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grade-2 { grid-template-columns: 1fr 1fr; align-items: start; } }

.alerta { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; border: 1px solid; }
.alerta-ok { background: rgba(46, 204, 113, .12); border-color: rgba(46, 204, 113, .5); }
.alerta-erro { background: rgba(255, 84, 112, .12); border-color: rgba(255, 84, 112, .5); }
.alerta-aviso { background: rgba(255, 207, 92, .1); border-color: rgba(255, 207, 92, .45); }

.selo { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; margin: 0; }
.selo-aovivo { background: rgba(255, 84, 112, .18); color: #ff8aa0; }
.selo-fechado { background: var(--superficie-2); color: var(--texto-2); }
.selo-ok { background: rgba(46, 204, 113, .15); color: #7ee2a8; }
.badge { display: inline-block; min-width: 1.8em; padding: 2px 8px; border-radius: 999px; background: var(--destaque); color: var(--destaque-texto); font-weight: 700; font-size: .8em; text-align: center; vertical-align: middle; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form label.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; }
input, textarea, select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--borda); background: var(--fundo); color: var(--texto); font: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--destaque); outline-offset: 1px; border-color: transparent; }
input[type="file"] { padding: 8px; }
textarea { resize: vertical; }
textarea.codigo { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
@media (min-width: 760px) {
  .form-linha { grid-template-columns: 2fr 2fr 1fr; align-items: end; }
  .form-linha .linha-botoes { grid-column: 1 / -1; }
}
.prefixo { display: flex; align-items: center; border: 1px solid var(--borda); border-radius: 10px; background: var(--fundo); overflow: hidden; }
.prefixo span { padding-left: 12px; color: var(--texto-2); font-weight: 400; white-space: nowrap; font-size: .85rem; }
.prefixo input { border: 0; padding-left: 2px; }
.copiar { display: flex; gap: 8px; margin-bottom: 12px; }
.busca { margin: 0 0 12px; }
.busca input { min-height: 50px; font-size: 1.05rem; border-radius: 14px; }
.form-busca { display: flex; gap: 8px; }

/* ---------- Abas e listas ---------- */
.abas { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; }
.abas a { padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--texto-2); background: var(--superficie); border: 1px solid var(--borda); white-space: nowrap; }
.abas a.ativo { color: var(--destaque-texto); background: var(--destaque); border-color: var(--destaque); font-weight: 700; }

.lista-repertorio, .lista-musicas, .lista-simples, .hist-lista { list-style: none; margin: 0; padding: 0; }
.lista-repertorio li, .lista-musicas li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--borda);
}
.lista-repertorio li.oculta .musica-info strong { color: var(--texto-2); text-decoration: line-through; }
.musica-info { display: flex; flex-direction: column; min-width: 0; }
.musica-info strong { overflow-wrap: anywhere; }
.musica-info .selo { align-self: flex-start; margin-top: 4px; }
.acoes-item { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
@media (max-width: 520px) {
  .lista-repertorio li { flex-direction: column; align-items: stretch; }
  .acoes-item { justify-content: flex-start; }
}
.lista-simples li { padding: 6px 0; }
.resumo-importacao { padding-left: 20px; }

.tabela-rolagem { overflow-x: auto; margin-bottom: 16px; border-radius: var(--raio); border: 1px solid var(--borda); }
.tabela { width: 100%; border-collapse: collapse; background: var(--superficie); font-size: .95rem; }
.tabela th, .tabela td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--borda); vertical-align: top; }
.tabela th { color: var(--texto-2); font-weight: 600; white-space: nowrap; }
.paginacao { display: flex; flex-wrap: wrap; gap: 6px; }
.paginacao a { padding: 8px 12px; border-radius: 8px; background: var(--superficie); text-decoration: none; }
.paginacao a.ativo { background: var(--destaque); color: var(--destaque-texto); }

/* ---------- Landing ---------- */
.hero { text-align: center; padding: 32px 0 24px; max-width: 640px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); margin: 16px 0; }
.destaque { font-size: 1.15rem; color: var(--texto-2); }
.acoes-hero { display: grid; gap: 10px; margin: 24px auto 12px; max-width: 360px; }
.passos h2 { text-align: center; margin: 24px 0 16px; }
.grade-passos { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .grade-passos { grid-template-columns: repeat(3, 1fr); } }
.grade-passos .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--destaque); color: var(--destaque-texto); font-weight: 800; margin-bottom: 10px; }
.texto h2 { margin-top: 1.4em; }

/* ---------- QR Code ---------- */
.qr-area { background: #fff; border-radius: var(--raio); padding: 12px; width: min(100%, 300px); margin: 0 auto 16px; }
.qr-area canvas { display: block; width: 100%; height: auto; }

/* ---------- Página do cliente ---------- */
.pagina-cliente .container { max-width: 640px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.cliente-topo { text-align: center; padding: 8px 0 12px; }
.cliente-marca { color: var(--texto-2); font-size: .85rem; margin: 0 0 6px; }
.cliente-topo h1 { font-size: 1.9rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.aviso-cliente { text-align: center; color: var(--texto-2); margin-bottom: 12px; }
.timer {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, #fea91b, #f08a00); color: #1d1404;
  border-radius: var(--raio); padding: 12px 18px; margin-bottom: 12px; box-shadow: var(--sombra);
}
.timer-rotulo { font-weight: 600; }
.timer-tempo { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lista-musicas { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; }
.lista-musicas li:last-child { border-bottom: 0; }
.musica-titulo { font-size: 1.05rem; }
.musica-artista { color: var(--texto-2); font-size: .9rem; }
.btn-pedir { flex: none; min-width: 92px; }
.musica.tocada .musica-titulo { color: var(--texto-2); }
.musica.tocada .btn-pedir { background: var(--superficie-2); color: var(--texto-2); }

/* ---------- Modal e toast ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(5, 4, 10, .7);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 600px) { .modal { align-items: center; } }
.modal-caixa { width: 100%; max-width: 440px; background: var(--superficie); border: 1px solid var(--borda); border-radius: 18px; padding: 22px; box-shadow: var(--sombra); }
.modal-musica { font-size: 1.15rem; font-weight: 700; color: var(--destaque); }
.modal-acoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-acoes .btn { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 60; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 14px;
  background: var(--ok); color: #062611; font-weight: 700; box-shadow: var(--sombra); text-align: center;
  animation: toast-in .2s ease-out;
}
.toast-erro { background: var(--perigo); color: #fff; }
.toast-info { background: var(--superficie-2); color: var(--texto); border: 1px solid var(--borda); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Tela do show (palco) ---------- */
.abrir-show { padding: 40px 20px; }
.show-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.fila-titulo { font-size: 1.5rem; }
.fila-lista { display: grid; gap: 12px; }
.card-fila {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: start;
  background: var(--superficie); border: 1px solid var(--borda); border-radius: 18px; padding: 16px;
}
.card-fila.novo { animation: destaque-novo 3s ease-out; }
@keyframes destaque-novo { 0%, 30% { border-color: var(--destaque); box-shadow: 0 0 0 3px rgba(255, 176, 32, .35); } }
.card-fila .pos { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--superficie-2); font-weight: 800; font-size: 1.2rem; }
.card-fila:first-child .pos { background: var(--destaque); color: var(--destaque-texto); }
.card-fila h3 { font-size: 1.45rem; margin: 0 0 2px; overflow-wrap: anywhere; }
.card-fila .orig { color: var(--texto-2); margin: 0 0 6px; font-size: 1.05rem; }
.card-fila .nomes { margin: 0 0 4px; overflow-wrap: anywhere; }
.card-fila .quando { margin: 0; color: var(--texto-2); font-size: .9rem; }
.card-fila .acoes { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.card-fila .acoes .btn { min-height: 56px; font-size: 1.1rem; }
.votos { display: inline-block; background: var(--destaque); color: var(--destaque-texto); font-weight: 800; padding: 2px 10px; border-radius: 999px; font-size: .9rem; vertical-align: middle; margin-left: 6px; }
@media (min-width: 760px) {
  .card-fila { grid-template-columns: auto 1fr 260px; align-items: center; }
  .card-fila .acoes { grid-column: auto; }
}
.fila-vazia { text-align: center; color: var(--texto-2); padding: 40px 16px; border: 2px dashed var(--borda); border-radius: 18px; }
.historico { margin-top: 24px; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px 18px; }
.historico summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.hist-lista li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borda); }
.hist-lista li:last-child { border-bottom: 0; }

.repertorio-show { margin-top: 28px; }
.rep-lista li.na-fila { display: none; }
.rep-lista li.tocada .musica-info { opacity: .5; }
.rep-acoes { flex: none; display: flex; align-items: center; gap: 10px; }
.rep-marca { color: var(--ok); font-size: .9rem; font-weight: 700; }
.rep-marca:empty { display: none; }

/* ---------- Admin ---------- */
.grade-metricas { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.metrica { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.metrica-valor { font-size: 1.9rem; font-weight: 800; color: var(--destaque); }
.metrica-rotulo { color: var(--texto-2); font-size: .9rem; }

/* ---------- Instalador ---------- */
.requisitos { list-style: none; padding: 0; }
.requisitos .ok { color: #7ee2a8; }
.requisitos .falha { color: #ff8aa0; font-weight: 700; }
.requisitos li { padding: 3px 0; overflow-wrap: anywhere; }
.form label.check input[type="radio"] { width: 22px; height: 22px; min-height: 0; margin-top: 1px; flex: none; }
.log-erros { max-height: 320px; overflow: auto; background: var(--fundo); border-radius: 10px; padding: 12px; font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* =====================================================================
   v3 — Premium, listas, assinatura, admin
   ===================================================================== */

/* Assinatura WMENU (todas as páginas) */
.assinatura-dev { margin: 8px 0 0; font-size: .82rem; color: var(--texto-2); }
.assinatura-dev a { color: var(--texto-2); text-decoration: underline; text-underline-offset: 2px; }
.assinatura-dev a:hover { color: var(--texto); }
.rodape p { margin: 0; }

/* Selos de plano e status */
.selo-premium { background: linear-gradient(135deg, #ffb020, #ff7a45); color: #1a1300; text-decoration: none; }
.selo-as-ativa, .selo-pg-confirmado, .selo-pg-recebido { background: rgba(46, 204, 113, .15); color: #7ee2a8; }
.selo-as-processando, .selo-pg-pendente { background: rgba(139, 108, 255, .18); color: #c3b3ff; }
.selo-as-inadimplente, .selo-pg-atrasado { background: rgba(255, 207, 92, .15); color: var(--aviso); }
.selo-as-cancelamento_agendado { background: rgba(255, 176, 32, .15); color: var(--destaque); }
.selo-as-encerrada, .selo-pg-cancelado { background: var(--superficie-2); color: var(--texto-2); }
.selo-pg-estornado, .selo-pg-chargeback { background: rgba(255, 84, 112, .18); color: #ff8aa0; }
.linha-alerta td { background: rgba(255, 84, 112, .07); }

/* Banner da assinatura no painel */
.banner-assinatura { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 10px 16px; text-align: center; font-size: .95rem; }
.banner-erro { background: rgba(255, 84, 112, .16); border-bottom: 1px solid rgba(255, 84, 112, .5); }
.banner-aviso { background: rgba(255, 176, 32, .12); border-bottom: 1px solid rgba(255, 176, 32, .4); }
.banner-info { background: rgba(139, 108, 255, .14); border-bottom: 1px solid rgba(139, 108, 255, .4); }

/* Cartão do plano e uso */
.cartao-plano-premium { border-color: rgba(255, 176, 32, .5); background: linear-gradient(160deg, rgba(255, 176, 32, .08), var(--superficie) 55%); }
.plano-cabeca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1.1rem; }
.uso { display: grid; grid-template-columns: 1fr; gap: 4px; margin-bottom: 10px; }
.uso progress { width: 100%; height: 10px; accent-color: var(--destaque); }
.uso-faixa { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 12px 16px; margin-bottom: 14px; }
.uso-faixa progress { flex: 1; min-width: 120px; }
.upsell { border-color: rgba(255, 176, 32, .45); }
.dados-assinatura { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0 0 14px; }
.dados-assinatura dt { color: var(--texto-2); font-size: .82rem; }
.dados-assinatura dd { margin: 2px 0 0; font-weight: 600; }
.link-discreto { color: var(--texto-2); text-decoration: underline; font-size: .9rem; padding: 4px 0; }

/* Abas com botões e ranking */
.abas button { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--borda); background: var(--superficie); color: var(--texto-2); font: inherit; cursor: pointer; }
.abas button.ativo { background: var(--destaque); color: var(--destaque-texto); border-color: var(--destaque); font-weight: 700; }
.abas-pequenas { margin-bottom: 10px; }
.ranking { margin: 0; padding-left: 22px; }
.ranking li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--borda); }
.ranking li:last-child { border-bottom: 0; }
.ranking b { color: var(--destaque); }

/* Gráficos SVG */
.grafico { width: 100%; height: auto; display: block; }
.grafico .serie-1 { fill: var(--destaque); stroke: var(--destaque); }
.grafico .serie-2 { fill: #7cc7ff; stroke: #7cc7ff; }
.grafico .serie-3 { fill: var(--perigo); stroke: var(--perigo); }
.grafico polyline.linha { fill: none; stroke-width: 3; }
.grafico-eixo { stroke: var(--borda); stroke-width: 1; }
.grafico-rotulo { fill: var(--texto-2); font-size: 12px; }
.grafico-valor { fill: var(--texto); font-size: 12px; font-weight: 700; }
.legenda { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 0; font-size: .85rem; color: var(--texto-2); }
.legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legenda i.serie-1 { background: var(--destaque); }
.legenda i.serie-2 { background: #7cc7ff; }
.legenda i.serie-3 { background: var(--perigo); }
.variacao { display: block; font-style: normal; font-size: .8rem; color: var(--texto-2); }

/* Checkout */
.checkout { align-items: start; }
.preco-destaque { margin-bottom: 16px; }
.preco { font-size: 2.6rem; font-weight: 800; margin: 6px 0 0; color: var(--destaque); }
.preco small { font-size: 1rem; color: var(--texto-2); font-weight: 600; }
.comparativo .col-premium { background: rgba(255, 176, 32, .06); }
.campos-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.erro-campo { color: #ff8aa0; font-weight: 600; font-size: .85rem; min-height: 0; }
.erro-campo:empty { display: none; }
input[aria-invalid="true"] { border-color: var(--perigo); }
.seguro { font-size: .85rem; color: var(--texto-2); margin: 0; }
.cartao-visual {
  display: grid; gap: 10px; padding: 18px; border-radius: 16px; min-height: 150px; align-content: space-between;
  background: linear-gradient(135deg, #4a3414, #211a11 60%, #3a2810); border: 1px solid #6b4f22; box-shadow: var(--sombra);
  font-family: ui-monospace, Consolas, monospace;
}
.cv-bandeira { justify-self: end; font-family: inherit; font-weight: 800; color: var(--destaque); }
.cv-numero { font-size: 1.15rem; letter-spacing: .08em; }
.cv-nome { font-size: .85rem; color: var(--texto-2); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spinner { display: none; width: 18px; height: 18px; border: 3px solid rgba(0, 0, 0, .25); border-top-color: currentColor; border-radius: 50%; animation: girar-spinner .8s linear infinite; }
.carregando .spinner { display: inline-block; }
.spinner-grande { display: block; width: 48px; height: 48px; margin: 10px auto 16px; border-color: var(--borda); border-top-color: var(--destaque); }
@keyframes girar-spinner { to { transform: rotate(360deg); } }
.modal-largo { max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; }
.lista-perda, .lista-check { padding-left: 20px; }
.lista-check { list-style: none; padding: 0; }
.lista-check li::before { content: "✔ "; color: var(--ok); font-weight: 800; }
.motivos { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Sucesso com confete discreto */
.sucesso { position: relative; overflow: hidden; }
.confete { position: absolute; inset: 0; pointer-events: none; }
.confete i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: .85; animation: cair 2.6s ease-in forwards; }
.confete i:nth-child(3n) { background: var(--destaque); }
.confete i:nth-child(3n+1) { background: var(--roxo); }
.confete i:nth-child(3n+2) { background: var(--ok); }
.confete i:nth-child(1) { left: 4%; animation-delay: .0s; } .confete i:nth-child(2) { left: 10%; animation-delay: .3s; }
.confete i:nth-child(3) { left: 16%; animation-delay: .1s; } .confete i:nth-child(4) { left: 22%; animation-delay: .5s; }
.confete i:nth-child(5) { left: 28%; animation-delay: .2s; } .confete i:nth-child(6) { left: 34%; animation-delay: .6s; }
.confete i:nth-child(7) { left: 40%; animation-delay: .15s; } .confete i:nth-child(8) { left: 46%; animation-delay: .45s; }
.confete i:nth-child(9) { left: 52%; animation-delay: .05s; } .confete i:nth-child(10) { left: 58%; animation-delay: .35s; }
.confete i:nth-child(11) { left: 64%; animation-delay: .25s; } .confete i:nth-child(12) { left: 70%; animation-delay: .55s; }
.confete i:nth-child(13) { left: 76%; animation-delay: .12s; } .confete i:nth-child(14) { left: 82%; animation-delay: .4s; }
.confete i:nth-child(15) { left: 88%; animation-delay: .22s; } .confete i:nth-child(16) { left: 94%; animation-delay: .5s; }
.confete i:nth-child(17) { left: 19%; animation-delay: .7s; } .confete i:nth-child(18) { left: 67%; animation-delay: .75s; }
@keyframes cair { to { transform: translateY(420px) rotate(540deg); opacity: 0; } }

/* Listas de repertório */
.listas { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lista-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 0; }
.lista-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lista-item.bloqueada, .lista-repertorio li.bloqueada { opacity: .6; }
.renomear { display: inline-block; }
.renomear summary { list-style: none; }
.renomear summary::-webkit-details-marker { display: none; }
.renomear[open] form { margin-top: 8px; }
.lista-check-musicas li { padding: 0; }
.lista-check-musicas label.check { display: flex; gap: 12px; align-items: center; padding: 10px 14px; width: 100%; cursor: pointer; }
.lista-check-musicas input[type=checkbox] { width: 22px; height: 22px; flex: none; min-height: 0; }
.contador-escolha { font-size: 1.1rem; }
.contador-escolha strong { color: var(--destaque); font-size: 1.4rem; }
.show-info { margin: 6px 0 0; color: var(--texto-2); }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 1fr; flex: 1; width: 100%; }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; padding: 10px 16px; background: var(--superficie); border-bottom: 1px solid var(--borda); }
.admin-nav a { color: var(--texto-2); text-decoration: none; padding: 10px 12px; border-radius: 10px; white-space: nowrap; }
.admin-nav a.ativo, .admin-nav a:hover { color: var(--texto); background: var(--superficie-2); }
.admin-conteudo { max-width: 1200px; }
@media (min-width: 900px) {
  .admin-layout { grid-template-columns: 220px 1fr; }
  .admin-nav { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--borda); padding: 20px 12px; min-height: 100%; }
}
.filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 16px; }
.filtros input[type=search] { flex: 1 1 220px; }
.filtros select { width: auto; }
.campo-data { display: grid; font-size: .8rem; color: var(--texto-2); }
.campo-data input { width: auto; }
.acoes-admin { display: grid; gap: 16px; }
.tabela tfoot th { color: var(--texto); }

/* Recibo (claro, imprimível) */
.pagina-recibo { background: #f4f1ea; color: #1c1712; }
.pagina-recibo .rodape, .pagina-recibo .assinatura-dev, .pagina-recibo .assinatura-dev a { color: #5a5048; }
.recibo { max-width: 720px; margin: 0 auto; background: #fff; color: #1c1712; padding: clamp(20px, 5vw, 48px); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }
.recibo-cabeca { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid #1c1712; padding-bottom: 14px; margin-bottom: 22px; }
.recibo-cabeca > div { display: grid; }
.recibo-marca { font-size: 1.3rem; }
.recibo-logo { height: 44px; width: auto; display: block; }
.recibo-numero { text-align: right; }
.recibo-tabela { width: 100%; border-collapse: collapse; margin: 18px 0; }
.recibo-tabela th, .recibo-tabela td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e4ddd0; }
.recibo-tabela th { width: 40%; color: #5a5048; font-weight: 600; }
.recibo-nota { color: #5a5048; font-size: .9rem; }
@media print {
  .nao-imprimir { display: none !important; }
  .pagina-recibo { background: #fff; }
  .recibo { box-shadow: none; padding: 0; }
}

/* =====================================================================
   v5 — letra, "Tocando agora" e ordem da lista
   ===================================================================== */
.acoes-item .btn-pequeno { min-height: 44px; }
.selo-letra { background: rgba(139, 108, 255, .18); color: #c3b3ff; }
.com-letra { font-size: .8em; font-weight: 400; }
.busca-filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.busca-filtros input { flex: 1 1 240px; width: auto; }
.busca-filtros select { flex: 0 1 190px; width: auto; min-height: 50px; border-radius: 14px; }
.busca-filtros .btn { min-height: 50px; }
.campo-letra { grid-column: 1 / -1; display: grid; gap: 10px; }
.campo-letra .check { align-items: center; min-height: 44px; }
.form .campo-letra .check input { min-height: 0; margin: 0; }
.campo-letra .alerta { margin: 0; }
.campo-letra textarea { line-height: 1.6; }
.campo-letra .muted { font-weight: 400; font-size: .85rem; }

.toast-acao { min-height: 44px; margin-left: 12px; padding: 4px 14px; border: 0; border-radius: 10px; background: var(--destaque); color: var(--destaque-texto); font: inherit; font-weight: 800; cursor: pointer; }

/* Tocando agora */
.lendo-letra { overflow-anchor: none; }
.lendo-letra .toast { bottom: auto; top: calc(12px + env(safe-area-inset-top, 0px)); width: max-content; } /* não cobre os botões da letra */
.card-fila, .rep-lista li { scroll-margin-top: 8px; }
.card-fila .agora { display: none; margin: 0 0 4px; color: var(--destaque); font-weight: 800; }
.card-fila.tocando { border: 2px solid var(--destaque); }
.card-fila.tocando .agora { display: block; }
.card-fila.tocando .pos { background: var(--destaque); color: var(--destaque-texto); }
.card-fila.tocando .acoes { display: none; }
.rep-lista { overflow: visible; }
.rep-lista li.tocando, .rep-lista li.tocando[hidden] { display: flex !important; flex-wrap: wrap; border: 2px solid var(--destaque); border-radius: var(--raio); }
.rep-lista li.tocando .rep-marca { color: var(--destaque); }
.letra-painel { grid-column: 1 / -1; flex: 1 0 100%; min-width: 0; background: #08070c; border-radius: 14px; }
.letra-texto {
  padding: 18px 18px 26px; color: #f8f1e1; font-weight: 500;
  white-space: pre-wrap; overflow-wrap: anywhere; outline-offset: -2px;
}
.letra-texto.vazia { font-size: 1.1rem; color: var(--texto-2); white-space: normal; }
.letra-barra {
  position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #08070c; border-top: 1px solid var(--borda); border-radius: 0 0 14px 14px;
}
.letra-barra .btn { min-height: 52px; padding: 6px 8px; line-height: 1.15; }
.letra-barra .letra-zoom { grid-column: 1 / -1; justify-content: center; }
@media (min-width: 760px) { .letra-barra { grid-template-columns: 1fr 1fr auto; } .letra-barra .letra-zoom { grid-column: auto; } }

/* Ordem da lista */
.ordem-barra { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; background: var(--superficie); }
.ordem-status { flex: 1 1 140px; min-height: 1.5em; margin: 0; color: #7ee2a8; font-weight: 700; }
.ordem-status.erro { color: #ff8aa0; }
.ordem-lista { list-style: none; margin: 0; padding: 0; counter-reset: ordem; }
.ordem-lista li {
  counter-increment: ordem; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px 44px 44px; align-items: center; gap: 2px;
  height: 76px; scroll-margin: 130px 0 16px; background: var(--superficie); border-bottom: 1px solid var(--borda);
}
.ordem-alca, .ordem-btn { width: 44px; min-height: 48px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--texto); font: inherit; cursor: pointer; }
.ordem-btn { font-size: 1.2rem; font-weight: 700; }
.ordem-btn:hover, .ordem-alca:hover { background: var(--superficie-2); }
.ordem-alca:focus-visible, .ordem-btn:focus-visible { outline: 2px solid var(--destaque); }
.ordem-alca { height: 72px; display: grid; place-content: center; justify-items: center; line-height: 1.2; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ordem-alca span { font-size: 1.4rem; color: var(--texto-2); }
.ordem-alca::after { content: counter(ordem); font-size: .85rem; font-weight: 700; color: var(--destaque); font-variant-numeric: tabular-nums; }
.ordem-info { min-width: 0; display: grid; gap: 3px; padding: 0 4px; }
.ordem-info strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.2; overflow-wrap: anywhere; }
.ordem-detalhe { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; color: var(--texto-2); font-size: .85rem; }
.ordem-detalhe i { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.ordem-detalhe .selo { flex: none; padding: 1px 7px; font-size: .72rem; }
.ordem-lista li.arrastando { position: relative; z-index: 3; pointer-events: none; opacity: .88; background: var(--superficie-2); border-radius: 12px; box-shadow: var(--sombra); }
.ordem-marca { position: relative; z-index: 4; height: 4px; margin-bottom: -4px; border-radius: 4px; background: var(--destaque); pointer-events: none; }
.ordem-arrastando { cursor: grabbing; overflow-anchor: none; }
.ordem-arrastando .ordem-alca { cursor: grabbing; }
@media (max-width: 420px) { .ordem-detalhe .selo-fechado, .ordem-detalhe .selo-premium, .ordem-detalhe .selo-letra { font-size: .68rem; padding: 1px 5px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   v6 — Show Interativo
   ========================================================================== */

/* ---------- Show em destaque no painel ---------- */
.menu a.menu-show { background: var(--destaque); color: var(--destaque-texto); font-weight: 800; gap: 6px; }
.menu a.menu-show:hover, .menu a.menu-show.ativo { background: var(--destaque); color: var(--destaque-texto); filter: brightness(1.08); }
.selo-pulsa { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #d92d4a; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .03em; animation: pulsa 1.6s ease-in-out infinite; }
@keyframes pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 45, 74, .6); } 50% { box-shadow: 0 0 0 6px rgba(217, 45, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .selo-pulsa { animation: none; } }
.botao-show-fixo { display: none; }
@media (max-width: 759px) {
  .botao-show-fixo {
    display: flex; align-items: center; justify-content: center; position: fixed; z-index: 40; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); min-height: 56px; border-radius: 16px; text-decoration: none;
    background: var(--destaque); color: var(--destaque-texto); font-weight: 800; font-size: 1.1rem; box-shadow: var(--sombra);
  }
  .botao-show-fixo.ao-vivo { background: #d92d4a; color: #fff; }
  body.com-botao-show { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
.dica-show { max-width: 1000px; margin: 12px auto 0; padding: 12px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: rgba(254, 169, 27, .12); border: 1px solid rgba(254, 169, 27, .5); border-radius: 12px; }
.dica-show p { margin: 0; }
.cartao-show-topo { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: var(--destaque); background: linear-gradient(135deg, rgba(254, 169, 27, .16), var(--superficie) 60%); }
.cartao-show-topo h2 { font-size: 1.5rem; margin: 0 0 4px; }
.cartao-show-topo p { margin: 0; }
.cartao-show-topo.ao-vivo { border-color: #d92d4a; background: linear-gradient(135deg, rgba(217, 45, 74, .18), var(--superficie) 60%); }
.cartao-destaque { border-color: var(--destaque); box-shadow: 0 0 0 3px rgba(254, 169, 27, .2); }

/* ---------- Letra / Cifra ---------- */
.cor-1 { color: #fea91b; } .cor-2 { color: #7cc7ff; } .cor-3 { color: #7ee2a1; }
.cor-4 { color: #ff9bd0; } .cor-5 { color: #ff7a7a; } .cor-6 { color: #ffffff; }
.letra-texto { font-family: ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: calc(22px * var(--letra-zoom, 100) / 100); line-height: 1.5; }
.letra-texto b { font-weight: 800; }
.letra-zoom { display: flex; gap: 6px; align-items: center; }
.letra-zoom .btn { min-width: 46px; }
.letra-zoom output { min-width: 4.2em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cifra-campo { display: grid; gap: 8px; }
.cifra-barra { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; background: var(--superficie-2); border: 1px solid var(--borda); border-radius: 10px; }
.cifra-barra .btn { min-height: 44px; }
.cifra-cor { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--borda); background: #0d0a06; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.1rem; }
.cifra-cor:focus-visible, .cifra-barra .btn:focus-visible { outline: 3px solid var(--destaque); outline-offset: 2px; }
.cifra-editor { min-height: 320px; max-height: 70vh; overflow: auto; padding: 14px; border: 1px solid var(--borda); border-radius: 10px; background: #0d0a06; color: #f8f1e1;
  font-family: ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.cifra-editor:focus { outline: 2px solid var(--destaque); outline-offset: 1px; }
.cifra-editor:empty::before { content: attr(data-placeholder); color: var(--texto-2); }
.cifra-contador { font-size: .85rem; }
.cifra-contador.excedeu { color: var(--perigo); font-weight: 700; }

/* ---------- Página do público: Pix e sugestões ---------- */
.extras-cliente { display: grid; gap: 16px; margin-top: 24px; }
.bloco-pix { border-color: rgba(254, 169, 27, .55); }
.bloco-pix .btn { width: 100%; }
.pix-valores { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.pix-valores button { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--borda); background: var(--superficie-2); color: var(--texto); font: inherit; font-weight: 700; cursor: pointer; }
.pix-valores button[aria-pressed="true"] { background: var(--destaque); color: var(--destaque-texto); border-color: var(--destaque); }
.pix-recebedor { font-size: 1.05rem; margin: 0 0 6px; }
.pix-qr { display: flex; justify-content: center; margin: 12px 0; }
.pix-qr canvas { width: 220px; height: 220px; background: #fff; border-radius: 12px; padding: 8px; }
.pix-aviso { font-size: .85rem; color: var(--texto-2); margin: 10px 0 0; }
.pix-status { margin: 10px 0 0; }
.modal-caixa.modal-pix { max-height: 92vh; overflow: auto; }
.form-sugestao .linha-botoes .btn { flex: 1; }
.form-sugestao .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aviso-repertorio { margin: 0; }
.previa-publico { border: 1px dashed var(--borda); border-radius: 14px; padding: 16px; background: var(--fundo); }

/* ---------- Sugestões (painel) ---------- */
.lista-sugestoes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lista-sugestoes li { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 14px; background: var(--superficie); border: 1px solid var(--borda); border-radius: 12px; }
.lista-sugestoes .sug-info { min-width: 0; flex: 1 1 260px; }
.lista-sugestoes .sug-info strong { font-size: 1.05rem; }
.lista-sugestoes .sug-total { font-size: 1.4rem; font-weight: 800; color: var(--destaque); min-width: 2.5em; text-align: center; }
.lista-sugestoes .sug-nomes { margin: 4px 0 0; font-size: .9rem; color: var(--texto-2); overflow-wrap: anywhere; }

/* ---------- Estatísticas ---------- */
.filtros-estatisticas { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filtros-estatisticas label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; min-width: 180px; flex: 1; }
.grafico-rotulo-grande { font-size: 14px; fill: var(--texto); }
.grafico-ranking .grafico-valor { font-size: 14px; }
.lista-variacao { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lista-variacao li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--superficie-2); }
.lista-variacao .sobe { color: #7ee2a1; font-weight: 800; white-space: nowrap; }
.lista-variacao .desce { color: #ff8a8a; font-weight: 800; white-space: nowrap; }
.lista-menos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lista-menos li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--superficie-2); }
.lista-menos b { min-width: 2em; text-align: right; }
.cliente-logo { height: 30px; width: auto; display: inline-block; }
.musica.destacada { outline: 3px solid var(--destaque); outline-offset: 2px; border-radius: 12px; }
.form .campo-valor { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.campo-valor input { width: 96px; }
.metrica-texto { font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
fieldset.form { border: 1px solid var(--borda); border-radius: 12px; padding: 12px 14px; margin: 0; }
fieldset.form legend { padding: 0 6px; }
