/* =====================================================================
   AQUISHOW - Design system dos painéis (admin e artista)
   ===================================================================== */
:root {
    --bg: #0c0a14;
    --bg-2: #120f1d;
    --surface: #17131f;
    --surface-2: #1f1a2b;
    --surface-3: #2a2338;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .14);
    --text: #f4f2f8;
    --text-2: #b8b2c7;
    --text-3: #7e7791;
    --brand-1: #ffb422;
    --brand-2: #e8476f;
    --brand-3: #8a2be2;
    --brand: #e8476f;
    --brand-grad: linear-gradient(120deg, #ff9a1f 0%, #e8476f 50%, #8a2be2 100%);
    --ok: #22c55e;
    --ok-bg: rgba(34, 197, 94, .12);
    --warn: #f59e0b;
    --warn-bg: rgba(245, 158, 11, .12);
    --bad: #ef4444;
    --bad-bg: rgba(239, 68, 68, .12);
    --info: #60a5fa;
    --info-bg: rgba(96, 165, 250, .12);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
    --sidebar: 264px;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #f6f4fa;
    --bg-2: #efecf5;
    --surface: #ffffff;
    --surface-2: #f7f5fb;
    --surface-3: #ece8f3;
    --border: rgba(20, 10, 40, .08);
    --border-strong: rgba(20, 10, 40, .16);
    --text: #17121f;
    --text-2: #4d4660;
    --text-3: #8a8399;
    --shadow: 0 20px 45px -25px rgba(40, 20, 80, .25);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: rgba(232, 71, 111, .35); }

/* ---------------------------------------------------------- layout */
.app { display: flex; min-height: 100vh; }

.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 22px 16px;
    z-index: 50;
    transition: transform .25s ease;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 24px; text-decoration: none; }
.sidebar .brand img { height: 46px; width: auto; }
:root[data-theme="light"] .sidebar .brand img { filter: invert(1) hue-rotate(180deg) saturate(1.4); }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); padding: 18px 12px 8px; font-weight: 600; }
.nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin: 2px 0;
    border-radius: 10px; text-decoration: none;
    color: var(--text-2); font-weight: 500;
    transition: background .15s, color .15s;
}
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.ativo { background: var(--surface-3); color: var(--text); box-shadow: inset 3px 0 0 var(--brand); }
.nav a .contador { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.sidebar-fim { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }

.main { flex: 1; margin-left: var(--sidebar); min-width: 0; }
.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 32px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 19px; font-weight: 700; }
.topbar .sub { color: var(--text-3); font-size: 13px; }
.topbar .acoes { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.conteudo { padding: 28px 32px 80px; max-width: 1380px; }

@media (max-width: 980px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
    body.menu-aberto .sidebar { transform: none; }
    body.menu-aberto::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 45; }
    .main { margin-left: 0; }
    .menu-btn { display: inline-flex; }
    .topbar { padding: 12px 16px; }
    .conteudo { padding: 20px 16px 80px; }
    .topbar .sub { display: none; }
}

/* ---------------------------------------------------------- componentes */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.card + .card { margin-top: 20px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-head h2 { font-size: 16px; font-weight: 700; }
.card-head p { color: var(--text-3); font-size: 13px; }
.card-head .acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.icone-card {
    width: 38px; height: 38px; border-radius: 11px; flex: none;
    display: grid; place-items: center;
    background: var(--surface-3); color: var(--brand-1);
}
.icone-card svg { width: 20px; height: 20px; }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1180px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* KPIs */
.kpi { position: relative; overflow: hidden; }
.kpi .rotulo { color: var(--text-3); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi .valor { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.kpi .rodape { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--kpi-cor, var(--brand)); opacity: .12; filter: blur(4px); }
.kpi a.cobre { position: absolute; inset: 0; }

/* Botões */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 11px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2); color: var(--text);
    font: inherit; font-weight: 600; font-size: 14px;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .12s, background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primario { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -12px rgba(232, 71, 111, .8); }
.btn-primario:hover { background: var(--brand-grad); opacity: .92; }
.btn-ok { background: var(--ok); border-color: transparent; color: #fff; }
.btn-ok:hover { background: #16a34a; }
.btn-perigo { background: transparent; color: var(--bad); border-color: rgba(239, 68, 68, .4); }
.btn-perigo:hover { background: var(--bad-bg); }
.btn-fantasma { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-fantasma:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 13px; }
.btn-bloco { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-icone { padding: 8px; width: 38px; height: 38px; }

/* Formulários */
.campo { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.campo label, .rotulo-campo { font-size: 13px; font-weight: 600; color: var(--text-2); }
.campo .ajuda { font-size: 12px; color: var(--text-3); }
.input, .campo input[type=text], .campo input[type=email], .campo input[type=url], .campo input[type=tel], .campo input[type=date], .campo input[type=number], .campo input[type=password], .campo select, .campo textarea {
    width: 100%;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 11px; padding: 11px 13px;
    font: inherit; font-size: 14.5px;
    transition: border-color .15s, box-shadow .15s;
}
.campo textarea { resize: vertical; min-height: 96px; }
.input:focus, .campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(232, 71, 111, .16); }
.campo-linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.contador-chars { font-size: 12px; color: var(--text-3); text-align: right; margin-top: -2px; }

.segmentado { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmentado input { display: none; }
.segmentado label { padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.segmentado input:checked + label { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }
.segmentado input[value="Aprovado"]:checked + label { background: var(--ok-bg); color: var(--ok); }
.segmentado input[value="Pendente"]:checked + label { background: var(--warn-bg); color: var(--warn); }
.segmentado input[value="Rejeitado"]:checked + label { background: var(--bad-bg); color: var(--bad); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.switch input { appearance: none; width: 40px; height: 23px; border-radius: 99px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .2s; margin: 0; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(17px); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-Aprovado, .badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-Pendente, .badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-Rejeitado, .badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutro { background: var(--surface-3); color: var(--text-2); }

/* Alertas / toasts */
.alerta { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 13px; margin-bottom: 18px; border: 1px solid; font-weight: 500; }
.alerta-sucesso { background: var(--ok-bg); border-color: rgba(34, 197, 94, .3); color: #86efac; }
.alerta-erro { background: var(--bad-bg); border-color: rgba(239, 68, 68, .3); color: #fca5a5; }
.alerta-info { background: var(--info-bg); border-color: rgba(96, 165, 250, .3); color: #bfdbfe; }
:root[data-theme="light"] .alerta-sucesso { color: #166534; }
:root[data-theme="light"] .alerta-erro { color: #991b1b; }
:root[data-theme="light"] .alerta-info { color: #1e40af; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text); padding: 13px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; animation: entra .25s ease; max-width: 360px; }
.toast.ok { border-left: 4px solid var(--ok); }
.toast.erro { border-left: 4px solid var(--bad); }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tabela */
.tabela-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.tabela td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr { transition: background .12s; }
.tabela tbody tr:hover { background: var(--surface-2); }
.tabela input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; }

.artista-cel { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.avatar { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; color: var(--text-2); font-size: 15px; overflow: hidden; }
.avatar-lg { width: 96px; height: 96px; border-radius: 22px; font-size: 32px; }
.artista-cel strong { display: block; font-weight: 700; }
.artista-cel span { color: var(--text-3); font-size: 12.5px; }

.progresso { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; min-width: 70px; }
.progresso > i { display: block; height: 100%; background: var(--brand-grad); border-radius: 99px; }
.progresso-txt { font-size: 12px; color: var(--text-3); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Barra de filtros */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filtros .busca { flex: 1; min-width: 220px; position: relative; }
.filtros .busca svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--text-3); }
.filtros .busca input { padding-left: 38px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--border-strong); text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 13px; background: transparent; cursor: pointer; font-family: inherit; }
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip.ativo { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { opacity: .6; margin-left: 4px; }

.barra-massa { display: none; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-3); border-radius: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.barra-massa.visivel { display: flex; }

.paginacao { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.paginacao a, .paginacao span { min-width: 36px; padding: 7px 11px; border-radius: 9px; text-align: center; text-decoration: none; border: 1px solid var(--border); color: var(--text-2); font-weight: 600; }
.paginacao .atual { background: var(--text); color: var(--bg); }

.vazio { text-align: center; padding: 50px 20px; color: var(--text-3); }
.vazio svg { width: 44px; height: 44px; margin: 0 auto 12px; opacity: .5; }
.vazio h3 { color: var(--text-2); margin-bottom: 6px; font-size: 16px; }

/* Lista simples */
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.lista li:last-child { border-bottom: 0; }
.lista .meta { margin-left: auto; color: var(--text-3); font-size: 12.5px; white-space: nowrap; }

/* Gráfico de barras */
.barras { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.barras .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.barras .barra { width: 100%; max-width: 44px; background: var(--brand-grad); border-radius: 8px 8px 3px 3px; min-height: 3px; position: relative; transition: opacity .15s; }
.barras .barra:hover { opacity: .85; }
.barras .barra span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--text-2); }
.barras .legenda { font-size: 11.5px; color: var(--text-3); text-transform: capitalize; }

/* Galeria de upload */
.galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.slot-foto {
    position: relative; aspect-ratio: 4 / 3;
    border-radius: 14px; overflow: hidden;
    border: 2px dashed var(--border-strong);
    background: var(--bg-2);
    display: grid; place-items: center;
    cursor: pointer; transition: border-color .15s, background .15s;
}
.slot-foto.capa { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 260px; }
@media (max-width: 760px) { .slot-foto.capa { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; min-height: 0; } }
.slot-foto:hover, .slot-foto.arrastando { border-color: var(--brand); background: rgba(232, 71, 111, .06); }
.slot-foto input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.slot-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-foto.tem-foto { border-style: solid; border-color: var(--border); }
.slot-foto .vazio-foto { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 10px; pointer-events: none; }
.slot-foto .vazio-foto svg { width: 30px; height: 30px; margin: 0 auto 6px; color: var(--text-3); }
.slot-foto .vazio-foto strong { display: block; color: var(--text-2); font-size: 13.5px; }
.slot-foto .etiqueta { position: absolute; left: 10px; top: 10px; z-index: 3; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; pointer-events: none; }
.slot-foto .etiqueta.capa-et { background: var(--brand-grad); }
.slot-foto .acoes-foto { position: absolute; right: 8px; top: 8px; z-index: 4; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.slot-foto:hover .acoes-foto, .slot-foto:focus-within .acoes-foto { opacity: 1; }
.slot-foto .acoes-foto button { background: rgba(0, 0, 0, .7); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.slot-foto .acoes-foto button:hover { background: var(--bad); }
.slot-foto .acoes-foto svg { width: 16px; height: 16px; }
.slot-foto.nova::after { content: 'NOVA — salve para confirmar'; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: rgba(34, 197, 94, .92); color: #fff; font-size: 11px; font-weight: 800; text-align: center; padding: 5px; letter-spacing: .04em; }
.slot-foto.remover { opacity: .45; }
.slot-foto.remover::after { content: 'SERÁ REMOVIDA'; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; text-align: center; padding: 5px; }
@media (hover: none) { .slot-foto .acoes-foto { opacity: 1; } }

/* Checklist de perfil */
.anel { --p: 0; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--brand-2) calc(var(--p) * 1%), var(--surface-3) 0); display: grid; place-items: center; margin: 0 auto; }
.anel > div { width: 96px; height: 96px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; color: var(--text-2); }
.checklist li .ck { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-3); }
.checklist li.ok { color: var(--text); }
.checklist li.ok .ck { background: var(--ok); color: #fff; }
.checklist li .ck svg { width: 12px; height: 12px; }

/* Barra fixa de salvar */
.barra-salvar {
    position: sticky; bottom: 16px; z-index: 30;
    margin-top: 22px;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px 12px 18px;
    background: color-mix(in srgb, var(--surface-3) 92%, transparent);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.barra-salvar .msg { color: var(--text-2); font-size: 13.5px; }
.barra-salvar .msg.sujo { color: var(--warn); font-weight: 600; }
.barra-salvar .acoes { margin-left: auto; display: flex; gap: 8px; }

/* Abas */
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.abas a, .abas button { padding: 12px 16px; text-decoration: none; color: var(--text-3); font-weight: 600; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.abas a:hover, .abas button:hover { color: var(--text); }
.abas .ativo { color: var(--text); border-bottom-color: var(--brand); }
.painel-aba { display: none; }
.painel-aba.ativo { display: block; animation: entra .2s ease; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(5, 3, 10, .7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.modal.aberto { display: flex; }
.modal .caixa { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; padding: 26px; box-shadow: var(--shadow); animation: entra .2s ease; }
.modal .caixa.larga { max-width: 860px; }
.modal h3 { font-size: 18px; margin-bottom: 6px; }

/* Utilidades */
.muted { color: var(--text-3); }
.texto-2 { color: var(--text-2); }
.peq { font-size: 12.5px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.entre { justify-content: space-between; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.txt-c { text-align: center; }
.grad-txt { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oculto { display: none !important; }
code.var { background: var(--surface-3); padding: 2px 7px; border-radius: 6px; font-size: 12.5px; cursor: pointer; color: var(--brand-1); border: 1px solid var(--border); }
code.var:hover { border-color: var(--brand); }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* Tela de login */
.tela-login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.tela-login .arte {
    position: relative; overflow: hidden;
    background: #0c0a14 url('https://loremflickr.com/1200/1400/concert,stage') center/cover;
    display: flex; flex-direction: column; justify-content: space-between; padding: 44px;
}
.tela-login .arte::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(12, 10, 20, .55) 0%, rgba(42, 18, 64, .75) 55%, rgba(232, 71, 111, .55) 100%); }
.tela-login .arte > * { position: relative; }
.tela-login .arte img.logo { height: 64px; width: auto; }
.tela-login .arte h2 { color: #fff; font-size: 40px; font-weight: 800; letter-spacing: -.03em; max-width: 460px; line-height: 1.1; }
.tela-login .arte p { color: rgba(255, 255, 255, .8); margin-top: 14px; max-width: 420px; font-size: 16px; }
.tela-login .form-lado { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.tela-login .form-caixa { width: 100%; max-width: 380px; }
.tela-login .form-caixa h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.tela-login .form-caixa .sub { color: var(--text-3); margin-bottom: 28px; }
.senha-wrap { position: relative; }
.senha-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 6px; }
.senha-wrap button svg { width: 19px; height: 19px; }
@media (max-width: 860px) { .tela-login { grid-template-columns: 1fr; } .tela-login .arte { min-height: 220px; padding: 28px; } .tela-login .arte h2 { font-size: 26px; } .tela-login .arte p { display: none; } }

/* Prévia de e-mail */
.previa-email { width: 100%; height: 620px; border: 1px solid var(--border); border-radius: 14px; background: #f3f1f7; }

/* Editor */
.editor-barra { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--border-strong); border-bottom: 0; border-radius: 11px 11px 0 0; background: var(--surface-2); }
.editor-barra button { background: none; border: 0; color: var(--text-2); padding: 7px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.editor-barra button:hover { background: var(--surface-3); color: var(--text); }
.editor-barra .sep { width: 1px; background: var(--border-strong); margin: 4px 4px; }
.editor-area { min-height: 320px; max-height: 620px; overflow: auto; padding: 18px 20px; border: 1px solid var(--border-strong); border-radius: 0 0 11px 11px; background: #fff; color: #374151; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 15.5px; line-height: 1.65; }
.editor-area:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(232, 71, 111, .16); }
.editor-area h2 { font-size: 22px; margin: 22px 0 10px; color: #111827; }
.editor-area h3 { font-size: 18px; margin: 18px 0 8px; color: #111827; }
.editor-area p { margin: 0 0 14px; }
.editor-area a { color: #c32e78; }
.editor-area img { max-width: 100%; border-radius: 10px; }
.editor-html { width: 100%; min-height: 320px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; border-radius: 0 0 11px 11px !important; }

.progresso-envio { height: 14px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progresso-envio > i { display: block; height: 100%; width: 0; background: var(--brand-grad); transition: width .4s ease; }

/* Publicidade */
.slots-pub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1180px) { .slots-pub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .slots-pub { grid-template-columns: 1fr; } }
.slot-pub { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.slot-pub:hover { border-color: var(--border-strong); }
.slot-pub .banner { aspect-ratio: 5 / 3; background: var(--bg-2); position: relative; display: grid; place-items: center; overflow: hidden; }
.slot-pub .banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-pub .banner .num { position: absolute; left: 12px; top: 12px; background: rgba(0, 0, 0, .7); color: #fff; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.slot-pub .banner .estado { position: absolute; right: 12px; top: 12px; }
.slot-pub .corpo { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.slot-pub .corpo strong { font-size: 15px; }
.slot-pub .corpo .link { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-pub .metricas { display: flex; gap: 18px; margin-top: 8px; }
.slot-pub .metricas div { font-size: 12px; color: var(--text-3); }
.slot-pub .metricas b { display: block; font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.slot-pub .rodape { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.slot-pub.vazio-slot .banner { border-bottom: 1px dashed var(--border-strong); color: var(--text-3); text-align: center; }
.slot-pub.inativo .banner img { filter: grayscale(1) brightness(.6); }

/* usuário logado e botão Sair no topo */
.usuario-chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 13.5px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--border); }
.usuario-chip:hover { color: var(--text); background: var(--surface-2); }
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; font-size: 11px; background: linear-gradient(135deg, #ff9a1f, #e8476f 55%, #8a2be2); color: #fff; }
.btn-sair { border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
.btn-sair:hover { background: var(--bad-bg); color: #fff; }
:root[data-theme="light"] .btn-sair { color: #b91c1c; }
@media (max-width: 700px) { .nome-chip, .btn-sair span { display: none; } }

/* botão WhatsApp (pedir para completar cadastro) */
.btn-whats{background:#25d366;border-color:#25d366;color:#fff}
.btn-whats:hover{background:#1ebe5b;border-color:#1ebe5b;color:#fff}

/* ícones dos avisos (sucesso/erro) e da barra de limite de vídeo */
.alerta svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.barra-limite > svg { width: 20px; height: 20px; flex: none; color: var(--text-3); }
