/* =====================================================================
   Painel administrativo — mesmo layout do painel Vorex (admin da Betatudo)
   Medidas e cores conferidas no painel de referência.
   ===================================================================== */
body.admin {
  /* destaque do painel = cor principal da plataforma (Admin → Personalização → Aparência → Cor principal);
     o admin.js troca estas variáveis pela cor salva. Padrão: o azul da plataforma. */
  --accent: #0066ff;
  --accent-rgb: 0, 102, 255;
  --accent-hover: #2b7fff;
  --accent-ink: #ffffff;              /* texto em cima da cor de destaque */
  --a-bg: #0b0e13;
  --a-side: #09090b;
  --a-card: #141419;
  --a-soft: rgba(255, 255, 255, .04);
  --a-line: rgba(255, 255, 255, .06);
  --a-line-2: rgba(255, 255, 255, .1);
  --ink: #eeeef6;
  --ink-90: rgba(255, 255, 255, .9);
  --ink-65: rgba(255, 255, 255, .65);
  --ink-55: rgba(255, 255, 255, .55);
  --ink-40: rgba(255, 255, 255, .4);
  --ink-35: rgba(255, 255, 255, .35);
  --ink-30: rgba(255, 255, 255, .3);
  --label: #6b7280;
  --sub: #a7adb8;
  --ok: #10b981;
  --warn: #fcd34d;
  --bad: #f87171;
  background: var(--a-bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
body.admin a { color: inherit; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn svg.i { width: 16px; height: 16px; }
.btn-sm svg.i { width: 15px; height: 15px; }

.adm-backdrop { display: none; }
.adm { display: grid; grid-template-columns: 288px 1fr; min-height: 100vh; }

/* ---------- Menu lateral ---------- */
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--a-side); border-right: 1px solid rgba(255, 255, 255, .04); z-index: 30; }
.adm-brand { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; min-height: 86px; }
.adm-brand .logo-box { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adm-brand .logo-box img { max-height: 36px; max-width: 170px; object-fit: contain; object-position: left; }
.adm-brand .logo-box b { font-size: 24px; font-weight: 900; font-style: italic; letter-spacing: -.02em; color: #fff; text-transform: uppercase; }
.adm-brand .logo-box span { font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-30); }
.adm-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 10px; scrollbar-width: none; }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-nav .grp { padding: 0 12px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-35); }
.adm-nav .grp:not(:first-child) { margin-top: 18px; }
.adm-link { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 5px 10px; border-radius: 10px; font-size: 13.5px; line-height: 20.25px; font-weight: 400; color: var(--ink-65); text-align: left; transition: background-color .15s, color .15s; }
.adm-link .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; transition: background-color .15s, color .15s; }
.adm-link .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-link:hover { color: #fff; }
.adm-link:hover .ic { background: rgba(255, 255, 255, .03); }
.adm-link.active { color: #fff; font-weight: 500; background: rgba(255, 255, 255, .035); }
.adm-link.active::before { content: ""; position: absolute; left: 3px; top: 50%; width: 3px; height: 20px; border-radius: 999px; transform: translateY(-50%); background: var(--accent); }
.adm-link.active .ic { color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.adm-link.active .ic svg.i { stroke-width: 1.9; }
.adm-link .count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-65); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.adm-link .count.hot { background: rgba(var(--accent-rgb), .14); color: var(--accent); }
.adm-side-foot { padding: 10px; border-top: 1px solid rgba(255, 255, 255, .04); display: grid; gap: 2px; }
.adm-side-foot .who-me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); margin-bottom: 6px; font-size: 12.5px; color: var(--ink-90); }
.adm-side-foot .who-me .av { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .12); color: var(--accent); font-weight: 700; font-size: 12px; }
.adm-side-foot .who-me small { display: block; font-size: 11px; color: var(--ink-40); }
.adm-link.sm { padding: 4px 10px; font-size: 13px; color: var(--ink-55); }
.adm-link.sm .ic { width: 26px; height: 26px; }
.adm-link.sm svg.i { width: 15px; height: 15px; }

/* ---------- Topo (só no celular) ---------- */
.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top { display: none; }
.adm-content { width: 100%; max-width: 1440px; padding: 36px 40px 64px; }

/* ---------- Cabeçalho da página ---------- */
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.pg-head .eyebrow { margin: 0 0 4px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-30); }
.pg-head h1 { margin: 0; font-size: 32px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; color: #fff; }
.pg-head .sub { margin: 6px 0 0; font-size: 13px; color: var(--ink-40); max-width: 760px; line-height: 1.5; }
.pg-head .greet { margin: 10px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.pg-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* pílulas (abas e filtros) — fundo verde no ativo, texto preto */
.seg-pills, .seg { position: relative; display: flex; align-items: center; gap: 4px; width: fit-content; max-width: 100%; padding: 6px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--a-line); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.seg-pills::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
.seg-pills a, .seg button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .8); white-space: nowrap; transition: color .2s, background-color .2s; }
.seg-pills a svg.i { width: 16px; height: 16px; }
.seg-pills a:hover, .seg button:not(.active):hover { color: #fff; background: rgba(255, 255, 255, .04); }
.seg-pills a.active, .seg button.active { color: var(--accent-ink); font-weight: 600; background: var(--accent); box-shadow: 0 4px 12px -4px rgba(var(--accent-rgb), .45); }
.seg-pills a .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .08); }
.seg-pills a.active .count { background: rgba(0, 0, 0, .18); }
.panel-head .seg, .filters .seg { margin-bottom: 0; padding: 4px; }
.panel-head .seg button, .filters .seg button { height: 32px; padding: 0 14px; font-size: 13px; }

/* ---------- Botões ---------- */
.admin .btn { height: 41px; padding: 0 16px; border-radius: 12px; font-size: 13px; font-weight: 600; gap: 8px; }
.admin .btn-sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; }
.admin .btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px -6px rgba(var(--accent-rgb), .55); }
.admin .btn-primary:hover { background: var(--accent-hover); }
.admin .btn-ghost { background: rgba(255, 255, 255, .025); border: 1px solid var(--a-line); color: rgba(255, 255, 255, .85); font-weight: 500; }
.admin .btn-ghost:hover { border-color: var(--a-line-2); background: rgba(255, 255, 255, .035); }
.admin .btn-danger { background: rgba(248, 113, 113, .12); color: var(--bad); border: 1px solid rgba(248, 113, 113, .25); }
.admin .btn-danger:hover { background: rgba(248, 113, 113, .2); }
.admin .btn:disabled { opacity: .45; }

/* ---------- Cartões e indicadores ---------- */
.panel { background: var(--a-soft); border-radius: 16px; margin-bottom: 20px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.panel-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #fff; }
.panel-head h3 svg.i { color: var(--accent); }
.panel-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-40); }
.panel-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel-body { padding: 20px 24px; }
.panel-body.flush { padding: 0; }
.panel.warn { box-shadow: inset 0 0 0 1px rgba(252, 211, 77, .35); }
.panel.danger { box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .35); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 > .panel, .grid-3 > .panel { margin-bottom: 0; }
.stack { display: grid; gap: 18px; margin-bottom: 20px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(var(--accent-rgb), .06); border: 1px solid rgba(var(--accent-rgb), .2); color: var(--ink-90); font-size: 13px; margin-bottom: 20px; line-height: 1.5; }
.notice svg.i { color: var(--accent); margin-top: 1px; }
.notice.warn { background: rgba(252, 211, 77, .07); border-color: rgba(252, 211, 77, .25); }
.notice.warn svg.i { color: var(--warn); }
.notice.bad { background: rgba(248, 113, 113, .07); border-color: rgba(248, 113, 113, .3); }
.notice.bad svg.i { color: var(--bad); }

/* KPIs simples (como os cartões da página de Depósitos da referência) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { display: block; min-width: 0; padding: 24px; border-radius: 16px; background: var(--a-soft); transition: filter .3s; }
a.kpi:hover { filter: brightness(1.1); }
.kpi .ic { display: none; }
.kpi small { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.kpi b { display: block; font-size: 28px; line-height: 1; font-weight: 600; letter-spacing: -.03em; color: var(--ink-90); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em { display: block; margin-top: 10px; font-style: normal; font-size: 11.5px; color: var(--ink-35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.green b { color: #fff; }
.kpi.amber b { color: var(--warn); }
.kpi.red b { color: var(--bad); }

/* Painel de controle (cartões grandes da referência) */
.dash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.dcard { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 20px; border-radius: 16px; background: var(--a-card); border: 1px solid rgba(255, 255, 255, .03); }
.dcard .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dcard .lab { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.dcard .val { margin-top: 18px; font-size: clamp(1.75rem, 2.35vw, 2.25rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard .s { margin-top: 8px; font-size: 12.5px; color: var(--sub); }
.dcard.hero { grid-column: span 2; grid-row: span 2; padding: 32px; background: radial-gradient(at 100% 0%, rgba(var(--accent-rgb), .36) 0%, rgba(var(--accent-rgb), .14) 42%, transparent 82%), var(--a-card); border: 0; }
.dcard.hero .lab { color: var(--accent); }
.dcard.hero .val { font-size: clamp(2.3rem, 3.3vw, 3.05rem); }
.dcard.hero .spark { margin-top: auto; padding-top: 24px; display: flex; align-items: flex-end; gap: 4px; height: 110px; }
.dcard.hero .spark i { flex: 1; min-height: 3px; border-radius: 4px 4px 1px 1px; background: rgba(var(--accent-rgb), .55); }
.dcard.wide { grid-column: span 3; }
.dcard.alert { grid-column: span 1; padding: 0; border: 0; background: linear-gradient(135deg, #1b241a 0%, #141419 100%); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); transition: filter .3s; }
.dcard.alert:hover { filter: brightness(1.1); }
.dcard.alert .in { display: flex; flex-direction: column; height: 100%; padding: 22px; }
.dcard.alert .tag { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.dcard.alert .big { margin-top: auto; font-size: 64px; line-height: 1; font-weight: 600; color: var(--accent); letter-spacing: -.03em; }
.chip { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.up { color: var(--ok); background: rgba(16, 185, 129, .13); }
.chip.down { color: var(--bad); background: rgba(248, 113, 113, .13); }
.chip.flat { color: var(--ink-65); background: rgba(255, 255, 255, .06); }
.dcard.hero .chip { color: #fff; background: rgba(0, 0, 0, .22); }
.period { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--a-line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.period button { height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; color: var(--ink-65); }
.period button.active { background: rgba(255, 255, 255, .08); color: #fff; }

/* Gráfico de barras */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: 10px; color: var(--ink-35); }
.bars i { width: 100%; max-width: 30px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: rgba(var(--accent-rgb), .7); }
.bars i.neg { background: var(--bad); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-40); }

/* ---------- Filtros e busca ---------- */
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.input, .filters input, .filters select { height: 36px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .03); padding: 0 14px; outline: none; font-size: 13px; color: rgba(255, 255, 255, .85); }
.filters select { padding-right: 30px; }
.input:focus, .filters input:focus, .filters select:focus { background: rgba(255, 255, 255, .05); }
.search-in { position: relative; display: inline-flex; flex: 1; max-width: 448px; }
.search-in input { width: 100%; height: 36px; padding: 0 14px 0 38px; border: 0; border-radius: 8px; outline: none; background: rgba(255, 255, 255, .03); color: rgba(255, 255, 255, .85); font-size: 13px; }
.search-in input:focus { background: rgba(255, 255, 255, .05); }
.search-in input::placeholder { color: var(--ink-30); }
.search-in svg.i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-30); pointer-events: none; }
.tbl-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 24px; border-bottom: 1px solid rgba(255, 255, 255, .05); }

/* ---------- Tabelas ---------- */
.tbl-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
.adm-content .tbl td.actions { position: sticky; right: 0; z-index: 1; background: #13161b; box-shadow: -14px 0 14px -10px rgba(0, 0, 0, .55); }
.adm-content .tbl tbody tr:hover td.actions { background: #1a1d22; }
.tbl .who .sub, .tbl td > .sub { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 16px 20px; text-align: left; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-35); border-bottom: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; }
.tbl td { padding: 18px 20px; white-space: nowrap; vertical-align: middle; color: var(--ink); }
.tbl tbody tr { transition: background-color .15s; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .04); }
.tbl td.wrap { white-space: normal; min-width: 220px; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.num b, .tbl td b.amt { font-weight: 600; font-size: 14px; letter-spacing: -.01em; color: rgba(255, 255, 255, .95); }
.tbl td.actions { text-align: right; }
.tbl td.actions .btn + .btn { margin-left: 6px; }
.tbl .sub { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-40); }
.tbl .when { font-size: 12.5px; color: var(--ink-55); font-variant-numeric: tabular-nums; }
.tbl input[type=number], .tbl input[type=text] { height: 34px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .04); padding: 0 10px; color: var(--ink); }
.tbl input:focus { outline: 1px solid rgba(var(--accent-rgb), .5); }
.empty-row td { text-align: center; padding: 44px 14px; color: var(--ink-35); }
.who { display: flex; align-items: center; gap: 12px; }
.who .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .06); color: var(--ink-90); }
.who .av svg.i { width: 18px; height: 18px; }
.who .av.pix { color: #32bcad; }
.thumb { width: 36px; height: 46px; border-radius: 8px; object-fit: cover; background: rgba(255, 255, 255, .04); flex-shrink: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.gw-err { display: block; max-width: 190px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--warn); cursor: help; }
.ref { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--ink-55); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }

/* status: texto colorido dentro das tabelas (como na referência); selo nas demais partes */
.admin .pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; background: rgba(255, 255, 255, .06); color: var(--ink-65); }
.admin .pill.green { color: var(--ok); background: rgba(16, 185, 129, .12); }
.admin .pill.amber { color: var(--warn); background: rgba(252, 211, 77, .1); }
.admin .pill.red { color: var(--bad); background: rgba(248, 113, 113, .12); }
.admin .pill.violet { color: #c4b5fd; background: rgba(167, 139, 250, .14); }
.admin .tbl .pill { padding: 0; background: none; font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.admin .pos { color: var(--ok); }
.admin .neg { color: var(--bad); }
.admin .muted { color: var(--ink-40); }

/* ---------- Interruptor ---------- */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: relative; width: 40px; height: 22px; flex-shrink: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); transition: .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #9ca3af; transition: .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { left: 21px; background: var(--accent-ink); }
.switch input:focus-visible + i { outline: 2px solid rgba(var(--accent-rgb), .6); outline-offset: 2px; }

/* ---------- Formulários ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.admin .field label { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.admin .field input, .admin .field select, .admin .field textarea { height: 42px; border-radius: 10px; border: 1px solid var(--a-line); background: rgba(255, 255, 255, .03); color: var(--ink); }
.admin .field input:focus, .admin .field select:focus, .admin .field textarea:focus { border-color: rgba(var(--accent-rgb), .55); }
.admin .field textarea { height: 96px; }
.field .hint { font-size: 11.5px; line-height: 1.45; color: var(--ink-35); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid rgba(255, 255, 255, .05); }
.save-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; justify-content: flex-end; gap: 8px; padding: 12px; border: 1px solid var(--a-line); border-radius: 14px; background: rgba(20, 20, 25, .92); backdrop-filter: blur(10px); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .7); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 13px; }
.kv dt { color: var(--ink-40); }
.kv dd { margin: 0; color: var(--ink); }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--a-line); background: rgba(255, 255, 255, .03); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }

/* ---------- Etapas ---------- */
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.step-num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .06); color: var(--ink-65); }
.step.done .step-num { background: rgba(var(--accent-rgb), .14); color: var(--accent); }
.step.todo .step-num { background: rgba(252, 211, 77, .12); color: var(--warn); }
.step-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; font-weight: 600; color: #fff; }
.step-desc { margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--ink-40); }
.checks { display: grid; gap: 8px; margin-top: 12px; }
.checks div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-90); }
.checks div svg.i { width: 16px; height: 16px; }
.checks .y svg.i { color: var(--accent); }
.checks .n svg.i { color: var(--bad); }
.checks .o svg.i { color: var(--ink-35); }
.checks code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: var(--ink-65); }
.events { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.events span { padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; color: var(--ink-65); }

/* ---------- Carteiras PlayFiver / RTP / eventos ---------- */
.wallets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wallet { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--a-line); }
.wallet small { display: block; font-size: 12px; color: var(--ink-40); }
.wallet b { display: block; margin-top: 4px; font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.wallet.on { border-color: rgba(var(--accent-rgb), .45); background: radial-gradient(at 100% 0%, rgba(var(--accent-rgb), .12), transparent 70%), rgba(255, 255, 255, .03); }
.wallet.off { opacity: .55; }
.wallet .pill { margin-top: 8px; }
.rtp-box { display: flex; align-items: center; gap: 16px; }
.rtp-box input[type=range] { flex: 1; accent-color: var(--accent); height: auto; padding: 0; background: none; border: 0; }
.rtp-box .val { min-width: 86px; text-align: right; font-size: 28px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ev { margin-bottom: 12px; overflow: hidden; border-radius: 14px; background: var(--a-soft); }
.ev-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--a-line); }
.ev-head .t { font-size: 15px; font-weight: 600; color: #fff; }
.ev-head .controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mk { padding: 12px 18px; border-bottom: 1px solid var(--a-line); }
.mk:last-child { border-bottom: 0; }
.mk-name { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; }
.mk .sels { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.mk .sels label { display: flex; gap: 8px; align-items: center; padding: 5px 8px 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); font-size: 13px; }
.mk .sels input[type=number] { width: 74px; height: 30px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .05); padding: 0 8px; color: var(--ink); }

/* ---------- Ficha do jogador ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; background: rgba(0, 0, 0, .65); animation: fade .2s; }
.drawer { width: min(780px, 100%); height: 100%; overflow-y: auto; background: var(--a-bg); border-left: 1px solid var(--a-line); animation: slidein .25s; }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 18px 24px; background: rgba(11, 14, 19, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--a-line); }
.drawer-head .av { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; font-weight: 700; background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.drawer-head h2 { margin: 0; font-size: 18px; color: #fff; }
.drawer-head .x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-40); }
.drawer-head .x:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.drawer-body { padding: 24px 24px 40px; }
.drawer .kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.drawer .kpi { padding: 18px; }
.drawer .kpi b { font-size: 20px; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.action-grid .btn { justify-content: flex-start; }

/* ---------- Janelas ---------- */
.admin .modal { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 18px; }
.admin .modal h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.modal .close { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.modal .close svg.i { width: 18px; height: 18px; }
.admin .toast { background: var(--a-card); border: 1px solid var(--a-line); border-left: 3px solid var(--accent); }
.admin .toast.error { border-left-color: var(--bad); }
.admin .toasts { top: 20px; }

/* ---------- Login ---------- */
.adm-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.adm-login .box { width: 100%; max-width: 400px; padding: 32px; border-radius: 20px; background: var(--a-card); border: 1px solid var(--a-line); }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dcard.hero, .dcard.wide { grid-column: span 2; }
  .dcard.hero { grid-row: auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; width: 288px; transform: translateX(-100%); transition: transform .25s; z-index: 80; }
  body.menu-open .adm-side { transform: none; }
  body.menu-open .adm-backdrop { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(0, 0, 0, .6); }
  .adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: rgba(11, 14, 19, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--a-line); }
  .adm-top .crumb { font-size: 14px; font-weight: 600; color: #fff; }
  .adm-menu-btn { display: grid; }
  .adm-content { padding: 22px 16px 60px; }
  .pg-head h1 { font-size: 26px; }
  .grid-2, .grid-3, .form-grid, .dash { grid-template-columns: 1fr; }
  .dcard.hero, .dcard.wide, .dcard.alert { grid-column: auto; }
  .search-in { max-width: none; }
}

/* =====================================================================
   Configurações → visão geral (cartões)
   ===================================================================== */
.hub-grp { margin: 26px 0 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-35); }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hub-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 16px; background: var(--a-soft); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.hub-card:hover { border-color: var(--a-line-2); background: rgba(255, 255, 255, .055); }
.hub-card .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(var(--accent-rgb), .08); color: var(--accent); flex-shrink: 0; }
.hub-card div { flex: 1; min-width: 0; }
.hub-card b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.hub-card p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-40); }
.hub-card .go { color: var(--ink-30); transition: transform .15s, color .15s; }
.hub-card:hover .go { color: var(--accent); transform: translateX(3px); }

/* =====================================================================
   Configurações → Personalização (editor à esquerda, prévia ao vivo à direita)
   ===================================================================== */
@media (min-width: 901px) {
  body.pz-mode .adm { grid-template-columns: 76px 1fr; }
  body.pz-mode .adm-nav .grp, body.pz-mode .adm-link .lbl, body.pz-mode .adm-link .count, body.pz-mode .adm-brand .logo-box span, body.pz-mode .who-me > div { display: none; }
  body.pz-mode .adm-brand { padding: 16px 8px; justify-content: center; }
  body.pz-mode .adm-brand .logo-box b { font-size: 15px; max-width: 58px; overflow: hidden; }
  body.pz-mode .adm-brand .logo-box img { max-width: 58px; }
  body.pz-mode .adm-link { justify-content: center; padding: 5px 0; }
  body.pz-mode .adm-nav { padding: 14px 8px; }
}
body.pz-mode .adm-content { max-width: none; padding: 0; }
.pz { display: grid; grid-template-columns: minmax(340px, 560px) minmax(0, 1fr); height: 100vh; }
@media (max-width: 1280px) { .pz { grid-template-columns: minmax(330px, 420px) minmax(0, 1fr); } .pz-top, .pz-body, .pz-save { padding-left: 18px; padding-right: 18px; } .pz-tabs { margin-left: 18px; margin-right: 18px; } .pz-tabs button { font-size: 12.5px; } .pz-pv { padding: 12px; } }
.pz-ed { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--a-line); }
.pz-top { padding: 20px 24px 8px; }
.pz-back { font-size: 12.5px; color: var(--ink-40); }
.pz-back:hover { color: #fff; }
.pz-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.pz-title h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.pz-state { font-size: 12px; color: var(--ink-40); white-space: nowrap; }
.pz-state.dirty { color: var(--warn); }
.pz-tabs { display: flex; gap: 4px; margin: 10px 24px 14px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.pz-tabs button { flex: 1; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--ink-55); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.pz-tabs button:hover { color: #fff; }
.pz-tabs button.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pz-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 24px 24px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .12) transparent; }
.pz-save { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--a-line); background: var(--a-bg); }
.pz-save .btn-primary { flex: 1; }
.pz-save .btn:disabled { opacity: .45; cursor: default; }

.pz-acc { background: var(--a-soft); border-radius: 16px; margin-bottom: 12px; }
.pz-acc-h { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.pz-acc-h .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--ink-65); flex-shrink: 0; }
.pz-acc.open .pz-acc-h .ic { background: rgba(var(--accent-rgb), .08); color: var(--accent); }
.pz-acc-h .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pz-acc-h b { font-size: 14px; font-weight: 600; color: #fff; }
.pz-acc-h small { font-size: 12px; color: var(--ink-40); }
.pz-acc-h > svg:last-child { color: var(--ink-40); transition: transform .2s; }
.pz-acc.open .pz-acc-h > svg:last-child { transform: rotate(180deg); }
.pz-acc-b { display: none; padding: 0 18px 18px; }
.pz-acc.open .pz-acc-b { display: block; }

.pz-f { margin-top: 14px; }
.pz-f:first-child { margin-top: 2px; }
.pz-lbl { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pz-lbl label, .pz-f > .switch { font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.pz-lbl output { margin-left: auto; font-size: 12px; color: var(--ink-55); font-variant-numeric: tabular-nums; }
.pz-def { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-35); }
.pz .hint { margin: 0 0 8px; font-size: 11.5px; line-height: 1.45; color: var(--ink-35); }
.pz .pz-f .hint:last-child, .pz-img .hint { margin: 6px 0 0; }
.pz code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .06); font-size: 11px; color: var(--ink-65); }
.pz-in { width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--a-line); background: rgba(255, 255, 255, .03); color: var(--ink); font-size: 13px; outline: none; font-family: inherit; }
textarea.pz-in { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.pz-in:focus { border-color: rgba(var(--accent-rgb), .55); }
.pz-in.bad { border-color: var(--bad); }
.pz-in.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.pz-color { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pz-color input[type=color], .pz-row input[type=color] { width: 42px; height: 38px; padding: 3px; border-radius: 10px; border: 1px solid var(--a-line); background: none; cursor: pointer; flex-shrink: 0; }
.pz-row input[type=color] { width: 36px; height: 36px; }
.pz-color .pz-in { width: 110px; }
.pz-range { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ink-35); }
.pz-range input[type=range] { flex: 1; accent-color: var(--accent); }
.pz-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-2 > .pz-f { margin-top: 10px; }
.pz-sub { margin: 18px 0 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-35); }
.pz-acc-b > .pz-sub:first-child { margin-top: 2px; }
.pz-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pz-acc-b > .btn { margin-top: 10px; }

.pz-img { margin-top: 14px; }
.pz-img-row { display: flex; align-items: flex-start; gap: 12px; }
.pz-thumb { display: grid; place-items: center; width: 132px; height: 70px; flex-shrink: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--a-line);
  background: repeating-conic-gradient(#1b1e24 0 25%, #14161b 0 50%) 50% / 14px 14px; }
.pz-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pz-thumb span { font-size: 11px; color: var(--ink-35); }
.pz-img-act { flex: 1; min-width: 0; display: grid; gap: 8px; justify-items: start; }
.pz-img-act .pz-in { width: 100%; }
.pz-img-act label.btn { cursor: pointer; }
.pz-img.small { margin: 0; }
.pz-img.small .pz-thumb { width: 56px; height: 56px; }
.pz-img.small .pz-img-act .pz-in, .pz-img.small [data-img-def] { display: none; }
.pz-img.small .pz-img-row { align-items: center; gap: 8px; }
.pz-img.small .pz-img-act label.btn { padding: 0 8px; font-size: 0; gap: 0; width: 34px; justify-content: center; }
.pz-img.small .pz-img-act label.btn svg.i { width: 16px; height: 16px; }

.pz-list { display: grid; gap: 8px; }
.pz-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--a-line); background: rgba(255, 255, 255, .02); }
.pz-row.off .pz-row-main, .pz-row.off input[type=color] { opacity: .45; }
.pz-row-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.pz-row-main small { font-size: 11px; color: var(--ink-40); }
.pz-row .switch i { width: 34px; height: 20px; }
.pz-row .switch i::after { width: 14px; height: 14px; }
.pz-row .switch input:checked + i::after { left: 17px; }
.pz-row .icon-btn { width: 34px; height: 34px; border-radius: 9px; color: var(--ink-40); background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.pz-row .icon-btn:hover { color: var(--bad); background: rgba(248, 113, 113, .08); }
.pz-mv { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.pz-mv button { width: 24px; height: 17px; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .05); color: var(--ink-65); font-size: 11px; line-height: 1; cursor: pointer; }
.pz-mv button:hover:not(:disabled) { background: rgba(255, 255, 255, .1); color: #fff; }
.pz-mv button:disabled { opacity: .3; cursor: default; }
.pz-money { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-40); }

.pz-pv { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; padding: 14px 18px 12px; background: #07090c; }
.pz-bar { display: flex; align-items: center; gap: 10px; }
.pz-dev { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.pz-dev button { display: grid; place-items: center; width: 34px; height: 30px; border: 0; border-radius: 7px; background: none; color: var(--ink-55); cursor: pointer; }
.pz-dev button.active { background: rgba(255, 255, 255, .09); color: #fff; }
.pz-url { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; padding: 0 12px; overflow: hidden; white-space: nowrap; border-radius: 10px; background: rgba(255, 255, 255, .04);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-40); }
.pz-bar .icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .04); color: var(--ink-55); cursor: pointer; display: grid; place-items: center; }
.pz-bar .icon-btn:hover { color: #fff; }
.pz-frame { flex: 1; min-height: 0; display: flex; justify-content: center; overflow: hidden; }
.pz-screen { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--a-line); background: #000; }
.pz-frame.phone .pz-screen { border-radius: 20px; border-color: rgba(255, 255, 255, .14); }
.pz-screen iframe { display: block; border: 0; transform-origin: 0 0; background: #000; }
.pz-note { margin: 0; text-align: center; font-size: 11.5px; color: var(--ink-35); }
@media (max-width: 760px) {
  .pz { grid-template-columns: 1fr; height: auto; }
  .pz-ed { border-right: 0; }
  .pz-body { overflow: visible; }
  .pz-save { position: sticky; bottom: 0; z-index: 5; }
  .pz-pv { height: 78vh; }
}
@media (max-width: 520px) {
  .pz { grid-template-columns: minmax(0, 1fr); }
  .pz-top, .pz-body, .pz-save { padding-left: 16px; padding-right: 16px; }
  .pz-tabs { margin: 10px 16px 14px; overflow-x: auto; scrollbar-width: none; }
  .pz-tabs button { flex: 0 0 auto; padding: 0 12px; }
  .pz-2 { grid-template-columns: 1fr; }
}

/* =====================================================================
   Configurações → RTP (cartão com número grande e barra, como no painel de referência)
   ===================================================================== */
.rtp-head { padding-bottom: 18px; border-bottom: 1px solid var(--a-line); margin-bottom: 26px; }
.rtp-card { position: relative; overflow: hidden; max-width: 520px; padding: 30px 26px 28px; border-radius: 22px; border: 1px solid var(--a-line);
  background: radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb), .07), transparent 55%), #121418; }
.rtp-eyebrow { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); }
.rtp-card h2 { margin: 8px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.rtp-desc { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-55); max-width: 420px; }
.rtp-big { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 18px; }
.rtp-big b { font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--accent); text-shadow: 0 0 34px rgba(var(--accent-rgb), .35); }
.rtp-big i { margin-left: 6px; font-style: normal; font-size: 24px; font-weight: 600; color: var(--accent); }
.rtp-chip { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--a-line-2); background: rgba(255, 255, 255, .03); font-size: 12px; color: var(--ink-65); white-space: nowrap; }
.rtp-range { --p: 50%; width: 100%; height: 6px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) 0 var(--p), rgba(255, 255, 255, .08) var(--p) 100%); }
.rtp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid #0b0e13; box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(var(--accent-rgb), .6); }
.rtp-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #0b0e13; box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(var(--accent-rgb), .6); }
.rtp-range:disabled { opacity: .45; cursor: default; }
.rtp-marks { position: relative; height: 18px; margin: 12px 10px 0; }
.rtp-marks button { position: absolute; transform: translateX(-50%); border: 0; background: none; padding: 2px 4px; font-size: 11px; color: var(--ink-40); cursor: pointer; white-space: nowrap; }
.rtp-marks button:hover:not(:disabled) { color: #fff; }
.rtp-ex { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-55); }
.rtp-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-35); }
.rtp-apply { margin-top: 20px; height: 44px; padding: 0 22px; border-radius: 999px; }
.rtp-apply:disabled { opacity: .45; cursor: default; }
@media (max-width: 520px) { .rtp-big b { font-size: 52px; } .rtp-card { padding: 22px 18px; } }

/* ---------- Personalização: proporções, blocos da Home e escolha de ícones ---------- */
.pz-ratio { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(var(--accent-rgb), .07); border: 1px solid rgba(var(--accent-rgb), .18); font-size: 12px; line-height: 1.5; color: var(--ink-65); }
.pz-ratio svg.i { width: 16px; height: 16px; margin-top: 1px; color: var(--accent); }
.pz-block { align-items: center; }
.pz-bname { display: grid; gap: 2px; }
.pz-bname b { font-size: 13px; font-weight: 600; color: #fff; }
.pz-bname small { font-size: 11.5px; color: var(--ink-40); }
.pz-ico { --c: var(--accent); position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%), var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.pz-ico .si { width: 22px; height: 22px; fill: currentColor; }
.pz-ico img { width: 24px; height: 24px; object-fit: contain; }
.pz-ico i { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: #1b1f26; border: 1px solid var(--a-line-2); color: var(--ink-65); }
.pz-ico i svg.i { width: 11px; height: 11px; }
.pz-ico:hover i { color: #fff; border-color: var(--accent); }
.pz-ico.fixed { cursor: default; color: var(--ink-65); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--a-line); }
.pz-ico.fixed svg.i { width: 19px; height: 19px; }
.ico-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ico-opt { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 12px; border: 1px solid var(--a-line); background: rgba(255, 255, 255, .02); color: #fff; cursor: pointer; }
.ico-opt .si { width: 26px; height: 26px; fill: currentColor; }
.ico-opt img { width: 26px; height: 26px; object-fit: contain; }
.ico-opt small { font-size: 11px; color: var(--ink-55); text-align: center; line-height: 1.2; }
.ico-opt:hover { border-color: var(--a-line-2); background: rgba(255, 255, 255, .05); }
.ico-opt.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.ico-opt.on small { color: #fff; }
/* campo de imagem com envio (Banners e outros formulários) */
.img-in { display: flex; align-items: center; gap: 8px; }
.img-in input[name] { flex: 1; min-width: 0; }
.img-prev { display: grid; place-items: center; width: 64px; height: 42px; flex-shrink: 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--a-line); background: rgba(255, 255, 255, .03); color: var(--ink-40); }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-in label.btn { cursor: pointer; flex-shrink: 0; }

/* ---------- Arrastar para mudar a ordem (alça ⋮⋮) ---------- */
.drag-h { display: grid; place-items: center; width: 24px; height: 36px; flex-shrink: 0; border-radius: 7px; color: var(--ink-35); cursor: grab; touch-action: none; user-select: none; }
.drag-h svg.i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.drag-h:hover { color: #fff; background: rgba(255, 255, 255, .05); }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none !important; }
.pz-row.dragging { position: relative; z-index: 2; border-color: rgba(var(--accent-rgb), .6); background: #1a1f27; box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(var(--accent-rgb), .35); }
.tbl tr.dragging td { background: rgba(var(--accent-rgb), .1) !important; }
.tbl tr.dragging td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tbl th.drag-cell, .tbl td.drag-cell { width: 36px; padding-right: 0 !important; }
.pz-row.dragging, .tbl tr.dragging { will-change: transform; }
.tbl tr.dragging { position: relative; z-index: 3; }
.tbl tr.dragging td { background: #1a2130 !important; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }

/* =====================================================================
   Personalização → Home: lista de seções e editor (como no painel de referência)
   ===================================================================== */
.hb-card { background: var(--a-soft); border-radius: 16px; padding: 16px 18px 18px; margin-bottom: 12px; }
.hb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hb-head .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(var(--accent-rgb), .08); color: var(--accent); flex-shrink: 0; }
.hb-head div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hb-head b { font-size: 14px; font-weight: 600; color: #fff; }
.hb-head small { font-size: 12px; color: var(--ink-40); }
.hb-count { padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: 11.5px; color: var(--ink-55); white-space: nowrap; }
.hb-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -4px 0 12px; font-size: 11.5px; color: var(--ink-40); }
.hb-legend span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.hb-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.hb-legend .lg-comp { color: #34d399; } .hb-legend .lg-comp::before { background: #34d399; }
.hb-legend .lg-cat { color: #fbbf24; margin-left: 6px; } .hb-legend .lg-cat::before { background: #fbbf24; }
.hb-list { gap: 6px; }
.hb-row { position: relative; gap: 6px; padding: 8px 8px 8px 6px; overflow: hidden; }
.hb-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #34d399; }
.hb-row.hb-cat::before { background: #fbbf24; }
.hb-row.hb-comp { background: linear-gradient(90deg, rgba(52, 211, 153, .07), rgba(255, 255, 255, .02) 40%); }
.hb-row.hb-cat { background: linear-gradient(90deg, rgba(251, 191, 36, .07), rgba(255, 255, 255, .02) 40%); }
.hb-open { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 4px 2px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.hb-open b { font-size: 13.5px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-open small { font-size: 11.5px; color: var(--ink-40); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-row.hb-comp .hb-open small span { color: #34d399; font-weight: 600; }
.hb-row.hb-cat .hb-open small span { color: #fbbf24; font-weight: 600; }
.hb-row.off .hb-open { opacity: .45; }
.hb-row .icon-btn, .hb-game .icon-btn, .hb-banner .icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--ink-40); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.hb-row .icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hb-row .hb-x:hover, .hb-game .icon-btn:hover, .hb-banner .icon-btn:hover { color: var(--bad); background: rgba(248, 113, 113, .08); }
.hb-x-space { width: 30px; flex-shrink: 0; }
.hb-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.hb-addbtn { display: grid; gap: 3px; padding: 12px; border-radius: 12px; border: 1px dashed var(--a-line-2); background: none; color: #fff; text-align: left; cursor: pointer; }
.hb-addbtn span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.hb-addbtn span svg.i { width: 15px; height: 15px; color: var(--accent); }
.hb-addbtn small { font-size: 11.5px; color: var(--ink-40); }
.hb-addbtn:hover:not(:disabled) { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .05); }
.hb-addbtn:disabled { opacity: .45; cursor: default; }
.hb-crumb { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; font-size: 13px; color: var(--ink-40); }
.hb-crumb button { border: 0; background: none; color: var(--ink-55); cursor: pointer; padding: 0; font-size: 13px; }
.hb-crumb button:hover { color: #fff; }
.hb-crumb b { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-iconrow { display: flex; align-items: center; gap: 10px; }
.hb-iconrow input[type=color] { width: 42px; height: 38px; padding: 3px; border-radius: 10px; border: 1px solid var(--a-line); background: none; cursor: pointer; }
.hb-card select.pz-in { appearance: auto; }
.hb-card .seg { margin: 0; }
.hb-game { gap: 8px; padding: 6px 8px; }
.hb-game img, .hb-noimg { width: 38px; height: 50px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: rgba(255, 255, 255, .05); display: grid; place-items: center; color: var(--ink-40); }
.hb-game .pz-row-main b { font-size: 13px; color: #fff; }
.hb-rank { width: 20px; text-align: center; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.hb-results { display: grid; gap: 4px; margin-top: 8px; }
.hb-res { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--a-line); background: rgba(255, 255, 255, .02); color: #fff; text-align: left; cursor: pointer; }
.hb-res img { width: 30px; height: 40px; border-radius: 5px; object-fit: cover; }
.hb-res span { flex: 1; min-width: 0; display: grid; }
.hb-res b { font-size: 12.5px; font-weight: 600; }
.hb-res small { font-size: 11px; color: var(--ink-40); }
.hb-res em { font-style: normal; font-size: 11px; color: var(--ink-40); }
.hb-res svg.i { color: var(--accent); }
.hb-res:hover:not(:disabled) { border-color: rgba(var(--accent-rgb), .5); }
.hb-res:disabled { opacity: .5; cursor: default; }
.hb-banner { gap: 8px; }
.hb-banner.off .pz-row-main, .hb-banner.off .pz-img { opacity: .45; }
.hb-banner .pz-img.small .pz-thumb { width: 84px; height: 38px; }
.hb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 2px 4px; }
.hb-foot .switch { font-size: 12.5px; color: var(--ink-65); margin-left: auto; }
.hb-del:hover { color: var(--bad); border-color: rgba(248, 113, 113, .4); }
.hb-sub { margin: 12px 0 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-35); }
.hb-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 300px; overflow: auto; }
.hb-pick { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--a-line); background: rgba(255, 255, 255, .02); color: #fff; text-align: left; cursor: pointer; }
.hb-pick b { font-size: 13px; font-weight: 600; }
.hb-pick small { font-size: 11.5px; color: var(--ink-40); }
.hb-pick:hover:not(:disabled) { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .06); }
.hb-pick:disabled { opacity: .45; cursor: default; }

.hb-legend em { font-style: normal; white-space: nowrap; }
.hb-legend .lg-cat { margin-left: 0; }
.hb-banner { display: grid; grid-template-columns: 24px 1fr auto auto; align-items: center; gap: 8px 10px; }
.hb-banner > .drag-h { grid-row: span 2; align-self: center; }
.hb-banner > .pz-img { grid-column: 2; }
.hb-banner > .pz-row-main { grid-column: 2 / 5; grid-row: 2; }
.hb-banner .pz-img.small .pz-thumb { width: 128px; height: 57px; border-radius: 8px; }
.hb-banner .pz-img.small .pz-img-act label.btn { width: auto; font-size: 12px; gap: 6px; padding: 0 10px; }

/* ---------- Confirmação do painel (no lugar do confirm/prompt do navegador) ---------- */
.ask-bg { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); animation: askIn .12s ease; }
.ask { width: 100%; max-width: 420px; padding: 22px; border-radius: 16px; background: #15181e; border: 1px solid var(--a-line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.ask p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--ink-90); }
.ask-in { width: 100%; height: 40px; margin: 0 0 16px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--a-line-2); background: rgba(255, 255, 255, .03); color: var(--ink); outline: none; font-family: inherit; font-size: 13px; }
.ask-in:focus { border-color: rgba(var(--accent-rgb), .6); }
.ask-btns { display: flex; justify-content: flex-end; gap: 8px; }
.admin .ask .btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.admin .ask .btn-danger:hover { background: #ef4444; }
@keyframes askIn { from { opacity: 0; } to { opacity: 1; } }
/* menu lateral: botão do ícone de cada link (neutro, como no menu do site) */
.pz-ico.side-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--a-line); color: var(--ink-90); }
.pz-ico.side-ico .si { width: 19px; height: 19px; }

/* ---------- Menu lateral em grupos (Personalização → Áreas) ---------- */
.sm-groups { gap: 10px; }
.sm-group { border: 1px solid var(--a-line); border-radius: 14px; background: rgba(255, 255, 255, .02); padding: 10px; }
.sm-group.dragging { position: relative; z-index: 2; border-color: rgba(var(--accent-rgb), .6); background: #1a1f27; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.sm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sm-title { flex: 1; min-width: 0; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 12px !important; }
.sm-kind { font-size: 11px; color: var(--ink-40); white-space: nowrap; }
.sm-group .icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--ink-40); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.sm-group .sm-del:hover { color: var(--bad); background: rgba(248, 113, 113, .08); }
.sm-item { gap: 8px; padding: 8px; }
.sm-mob { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-40); cursor: pointer; }
.sm-mob input { accent-color: var(--accent); }
.sm-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 9px; border-radius: 10px; border: 1px dashed var(--a-line-2); background: none; color: var(--ink-65); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.sm-add svg.i { width: 15px; height: 15px; color: var(--accent); }
.sm-add:hover { border-color: rgba(var(--accent-rgb), .6); color: #fff; background: rgba(var(--accent-rgb), .05); }

/* ---------- Amostra de cor (seletores de cor do admin): quadrado arredondado preenchido pela cor ---------- */
.admin input[type=color] { -webkit-appearance: none; appearance: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 11px; background: none; cursor: pointer; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 4px 12px -4px rgba(0, 0, 0, .6); transition: transform .12s, box-shadow .12s; overflow: hidden; }
.admin input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.admin input[type=color]::-webkit-color-swatch { border: 0; border-radius: 11px; }
.admin input[type=color]::-moz-color-swatch { border: 0; border-radius: 11px; }
.admin input[type=color]:hover { transform: scale(1.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 6px 16px -4px rgba(0, 0, 0, .7); }
.admin input[type=color]:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .7); outline-offset: 2px; }
.pz-row input[type=color] { width: 34px; height: 34px; border-radius: 10px; }
.pz-row input[type=color]::-webkit-color-swatch, .pz-row input[type=color]::-moz-color-swatch { border-radius: 10px; }
.pz-color .pz-in { height: 38px; }
/* texto de ajuda logo depois de uma fileira de botões: respiro entre os dois */
.pz .pz-btns + .hint { margin-top: 16px; }
.pz .pz-btns + .hint code { line-height: 1.9; }
.pz .pz-f + .hint { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--a-line); }
