/* ceu.bio — interface (site, cadastro, painel e admin) */
@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0B1E3F; --navy-2: #132C57; --sky: #1F4E8C; --sky-2: #3B74C4; --sky-soft: #EAF2FC;
  --gold: #C9A84C; --gold-2: #B08F36; --gold-soft: #F6F0DC;
  --ink: #0F1B2D; --muted: #5B6B80; --line: #DFE6EF; --bg: #F4F7FB; --white: #fff;
  --danger: #B42318; --danger-soft: #FEE4E2; --ok: #157F4F; --ok-soft: #DCFAE6; --info-soft: #E0EAFF;
  --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(11,30,63,.06), 0 4px 16px rgba(11,30,63,.06);
  --shadow-lg: 0 20px 50px rgba(11,30,63,.18);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.1rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 1.45rem; color: var(--navy); letter-spacing: -.03em; text-decoration: none !important; }
.logo span { color: var(--gold); }
.logo.light { color: #fff; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; padding: .7em 1.1em; border-radius: 12px; cursor: pointer; text-decoration: none !important; transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: #F7F9FC; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #D4B55E; }
.btn.danger { background: #fff; color: var(--danger); border-color: #F5C2BE; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(11,30,63,.06); }
.btn.sm { padding: .45em .8em; font-size: .88rem; border-radius: 10px; }
.btn.icon { padding: .5em; border-radius: 10px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Formulários ---------- */
.form label, label.field { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 14px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=search], input[type=number], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 500; color: var(--ink); background: #fff;
  border: 1px solid #CDD6E2; border-radius: var(--r-sm); padding: .72em .85em; outline: none; transition: border .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--sky-2); box-shadow: 0 0 0 3px rgba(59,116,196,.18); }
.hint { font-size: .82rem; color: var(--muted); font-weight: 500; margin: 4px 0 0; }
.check { display: flex !important; gap: .6em; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.prefix-input { display: flex; align-items: stretch; margin-top: 6px; border: 1px solid #CDD6E2; border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.prefix-input:focus-within { border-color: var(--sky-2); box-shadow: 0 0 0 3px rgba(59,116,196,.18); }
.prefix-input span { display: flex; align-items: center; padding: 0 .2em 0 .85em; color: var(--muted); font-weight: 600; background: #F7F9FC; }
.prefix-input input { border: 0; margin: 0; box-shadow: none !important; padding-left: .3em; }
.avail { font-size: .82rem; font-weight: 600; margin-top: 5px; min-height: 1.2em; }
.avail.ok { color: var(--ok); } .avail.bad { color: var(--danger); }
.code-input { font-size: 1.8rem !important; letter-spacing: .5em; text-align: center; font-weight: 700 !important; padding-left: 1em !important; }
textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }

/* ---------- Alertas ---------- */
.alert { padding: .8em 1em; border-radius: var(--r-sm); margin-bottom: 14px; font-weight: 500; font-size: .92rem; }
.alert.error { background: var(--danger-soft); color: #7A271A; }
.alert.success { background: var(--ok-soft); color: #085D3A; }
.alert.info { background: var(--info-soft); color: #1D3A7A; }
.flashes { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100; width: min(560px, calc(100% - 24px)); }
.flashes .alert { box-shadow: var(--shadow-lg); animation: drop .3s ease; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.flashes .alert button { background: none; border: 0; cursor: pointer; color: inherit; font-size: 1.2rem; line-height: 1; padding: 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Cartões ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2:first-child { margin-top: 0; }
.card.danger-zone { border-color: #F5C2BE; }

/* ---------- Cadastro / login ---------- */
.auth-body { min-height: 100vh; background: radial-gradient(1200px 600px at 50% -10%, #DCE9FA 0%, var(--bg) 60%); }
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 36px 16px 60px; }
.auth-wrap.wide { max-width: 640px; }
.auth-wrap > .logo { display: flex; justify-content: center; margin-bottom: 22px; font-size: 1.8rem; }
.auth-wrap h1 { font-size: 1.45rem; }
.auth-links { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 16px; font-size: .88rem; font-weight: 600; }
.checks .ok { color: var(--ok); } .checks .bad { color: var(--danger); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 3em; }
.pass-toggle { position: absolute; right: 6px; bottom: 6px; background: none; border: 0; color: var(--muted); padding: 6px; cursor: pointer; border-radius: 8px; }

/* ---------- Página inicial ---------- */
.home-hero { background: linear-gradient(160deg, var(--navy) 0%, #15396E 55%, var(--sky) 100%); color: #fff; overflow: hidden; position: relative; }
.home-hero::after { content: ""; position: absolute; inset: auto -10% -45% -10%; height: 70%; background: radial-gradient(closest-side, rgba(201,168,76,.22), transparent); pointer-events: none; }
.home-nav { max-width: 1100px; margin: 0 auto; padding: 20px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.home-nav .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.home-nav .btn:hover { background: rgba(255,255,255,.18); }
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 30px 20px 80px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero-inner h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: .45em; }
.hero-inner h1 em { font-style: normal; color: var(--gold); }
.hero-inner p.lead { font-size: 1.12rem; color: #D5E2F5; max-width: 34em; }
.claim { display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 6px; max-width: 460px; margin-top: 26px; box-shadow: var(--shadow-lg); }
.claim span { color: var(--muted); font-weight: 700; padding-left: 12px; }
.claim input { border: 0; margin: 0; padding: .7em .2em; font-weight: 700; box-shadow: none !important; min-width: 0; }
.claim .btn { flex: none; }
.hero-note { font-size: .85rem; color: #B9CCE8; margin-top: 12px; }
.phone-mock { width: 270px; height: 540px; margin: 0 auto; border-radius: 40px; background: #0A1630; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.08); transform: rotate(3deg); }
.phone-mock .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #0B1E3F, #1F4E8C); display: flex; flex-direction: column; align-items: center; padding: 34px 18px; color: #fff; }
.mock-avatar { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #E9D7A0); display: grid; place-items: center; color: var(--navy); font-weight: 800; font-size: 1.6rem; border: 3px solid rgba(255,255,255,.85); }
.mock-name { font-weight: 800; margin-top: 12px; display: flex; gap: 4px; align-items: center; }
.mock-name svg { width: 16px; height: 16px; color: var(--gold); }
.mock-bio { font-size: .72rem; color: #CFDDF2; text-align: center; margin: 4px 0 14px; }
.mock-icons { display: flex; gap: 12px; margin-bottom: 14px; }
.mock-icons svg { width: 18px; height: 18px; }
.mock-btn { width: 100%; background: #fff; color: var(--navy); border-radius: 12px; padding: 11px; font-size: .78rem; font-weight: 700; text-align: center; margin-bottom: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.mock-btn svg { width: 15px; height: 15px; }
.mock-btn.wa { background: #25D366; color: #fff; }
.mock-btn.gold { background: var(--gold); color: var(--navy); }
.features { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.features h2 { font-size: 1.7rem; text-align: center; margin: 0 0 8px; }
.features > p { text-align: center; color: var(--muted); margin-bottom: 34px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.feat .fi { width: 42px; height: 42px; border-radius: 12px; background: var(--sky-soft); color: var(--sky); display: grid; place-items: center; margin-bottom: 12px; }
.feat .fi svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1rem; margin-bottom: 4px; }
.feat p { color: var(--muted); font-size: .92rem; margin: 0; }
.home-cta { background: var(--navy); color: #fff; text-align: center; padding: 50px 20px; }
.home-cta h2 { font-size: 1.6rem; margin: 0 0 16px; }
.home-foot { text-align: center; padding: 26px; color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 50px; }
  .phone-mock { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
}

/* ---------- Painel ---------- */
.p-top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40; }
.p-top-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.p-top .logo { color: #fff; font-size: 1.25rem; }
.p-url { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 4px 4px 12px; color: #fff; font-weight: 600; font-size: .88rem; min-width: 0; margin-left: auto; }
.p-url a { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-url button { background: var(--gold); color: var(--navy); border: 0; border-radius: 999px; padding: 5px 10px; font: inherit; font-weight: 700; font-size: .78rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.p-url button svg { width: 14px; height: 14px; }
.p-top form { margin: 0; }
.p-top .btn.ghost { color: #fff; }
.p-top .btn.ghost:hover { background: rgba(255,255,255,.1); }
.p-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 54px; z-index: 30; }
.p-nav-in { max-width: 1180px; margin: 0 auto; padding: 0 10px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.p-nav-in::-webkit-scrollbar { display: none; }
.p-nav a { display: flex; align-items: center; gap: 7px; padding: 13px 12px; color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none; }
.p-nav a .ic { width: 17px; height: 17px; }
.p-nav a:hover { color: var(--ink); }
.p-nav a.on { color: var(--navy); border-color: var(--gold); }
.p-nav a.admin-tab { margin-left: auto; color: var(--sky); }
.imp-bar { background: var(--gold); color: var(--navy); font-weight: 700; font-size: .88rem; }
.imp-bar div { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.imp-bar a { color: var(--navy); text-decoration: underline; white-space: nowrap; }
.p-main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 100px; }
.p-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.p-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.p-head h1 { margin: 0; font-size: 1.4rem; }
.preview-col { position: sticky; top: 120px; }
.preview-phone { width: 300px; height: 610px; margin: 0 auto; border-radius: 42px; background: #0A1630; padding: 11px; box-shadow: var(--shadow-lg); }
.preview-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 32px; background: #fff; }
.preview-cap { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.fab-preview { display: none; }
@media (max-width: 980px) {
  .p-cols { grid-template-columns: 1fr; }
  .preview-col { display: none; }
  .fab-preview { display: inline-flex; position: fixed; right: 16px; bottom: 18px; z-index: 50; box-shadow: var(--shadow-lg); border-radius: 999px; padding: .8em 1.2em; }
  .p-url .full-url { display: none; }
}
@media (max-width: 520px) {
  .p-top .logo { font-size: 1.1rem; }
  .p-top-in { gap: 8px; }
  .p-top .btn.ghost span { display: none; }
}

/* Lista de botões */
.add-row { display: flex; gap: 10px; margin-bottom: 18px; }
.add-row .btn.primary { flex: 1; padding: .95em; font-size: 1rem; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 10px 4px; box-shadow: var(--shadow); transition: box-shadow .15s, opacity .15s; }
.li.off { opacity: .55; }
.li.dragging { opacity: .4; }
.li.drop-before { box-shadow: 0 -3px 0 var(--gold), var(--shadow); }
.li.drop-after { box-shadow: 0 3px 0 var(--gold), var(--shadow); }
.li .grip { cursor: grab; color: #A3B0C2; padding: 8px 2px; touch-action: none; display: flex; }
.li .grip:active { cursor: grabbing; }
.li .tic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--sky-soft); color: var(--sky); }
.li .tic .ic { width: 20px; height: 20px; }
.li.header-item .tic { background: var(--gold-soft); color: var(--gold-2); }
.li .info { flex: 1; min-width: 0; }
.li .info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.li .info small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.li .acts { display: flex; gap: 2px; align-items: center; }
.li .acts form { margin: 0; }
.li .acts .btn { color: var(--muted); }
.li .clicks { font-size: .78rem; color: var(--muted); font-weight: 600; margin-right: 6px; white-space: nowrap; }
.star-tag { display: inline-block; background: var(--gold-soft); color: var(--gold-2); font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.empty { text-align: center; padding: 40px 20px; border: 2px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.empty b { color: var(--ink); display: block; font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 520px) { .li .clicks { display: none; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-end; justify-content: center; background: rgba(11,30,63,.5); backdrop-filter: blur(2px); }
.modal.open { display: flex; }
.modal-box { background: #fff; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 22px; animation: up .22s ease; }
@media (min-width: 640px) { .modal { align-items: center; } .modal-box { border-radius: 22px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-opt { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink); }
.type-opt:hover { border-color: var(--sky-2); background: var(--sky-soft); }
.type-opt .ic { width: 24px; height: 24px; }
.type-opt.featured { grid-column: span 3; flex-direction: row; justify-content: center; font-size: .95rem; background: #E9FBEF; border-color: #B4EBC8; }
.type-opt.featured .ic { color: #128C4A; }
.type-sel { display: flex; align-items: center; gap: 10px; background: var(--sky-soft); color: var(--sky); padding: 8px 12px; border-radius: 12px; font-weight: 700; margin-bottom: 16px; }
.type-sel button { margin-left: auto; }
.modal-foot { display: flex; gap: 10px; margin-top: 6px; }
.modal-foot .btn.primary { flex: 1; }
.preview-modal .modal-box { max-width: 420px; height: 92vh; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.preview-modal .modal-head { padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--line); }
.preview-modal iframe { flex: 1; border: 0; width: 100%; }

/* Aparência */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.theme-opt { cursor: pointer; display: block; margin: 0 !important; }
.theme-opt input { position: absolute; opacity: 0; }
.theme-sw { height: 150px; border-radius: 14px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 7px; border: 2px solid transparent; outline: 1px solid var(--line); transition: transform .1s; }
.theme-sw i { display: block; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 4px; }
.theme-sw b { display: block; width: 100%; height: 16px; border-radius: 6px; }
.theme-opt input:checked + .theme-sw { border-color: var(--gold); outline-color: var(--gold); transform: translateY(-2px); }
.theme-opt input:focus-visible + .theme-sw { box-shadow: 0 0 0 3px rgba(59,116,196,.35); }
.theme-name { text-align: center; font-size: .82rem; font-weight: 600; margin-top: 6px; }
.colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.colors label { margin: 0; font-size: .82rem; }
.colors input[type=color] { display: block; width: 100%; height: 42px; margin-top: 6px; border: 1px solid #CDD6E2; border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
@media (max-width: 520px) { .colors { grid-template-columns: repeat(2, 1fr); } }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; padding: .55em 1em; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; }
.seg input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(59,116,196,.35); }
.bs-round span { border-radius: 10px; } .bs-pill span { border-radius: 999px; } .bs-square span { border-radius: 0; }
.bs-outline span { border-radius: 10px; border-width: 2px !important; } .bs-shadow span { border-radius: 10px; box-shadow: 3px 3px 0 var(--navy); }

/* Perfil */
.avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar-lg { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--sky), var(--navy)); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; flex: none; }
.avatar-row .btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.counter { float: right; font-weight: 500; color: var(--muted); font-size: .8rem; }

/* Estatísticas */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.kpi small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.kpi b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.chart { width: 100%; height: auto; display: block; }
.chart .bar-v { fill: var(--sky); }
.chart .bar-c { fill: var(--gold); }
.chart text { font-size: 10px; fill: var(--muted); font-family: inherit; }
.chart .grid { stroke: var(--line); }
.legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.cell-link { display: flex; align-items: center; gap: 10px; }
.cell-link .ic { color: var(--sky); }

/* Compartilhar */
.share-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.qr-box { background: #fff; border-radius: 18px; padding: 18px; border: 1px solid var(--line); text-align: center; }
.qr-box canvas, .qr-box img, .qr-box svg { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; }
.qr-url { font-weight: 800; margin-top: 10px; color: var(--navy); }
.qr-opts { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 16px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .share-grid { grid-template-columns: 1fr; } }

/* Admin */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.toolbar input, .toolbar select { margin: 0; }
.toolbar select { width: auto; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--muted); text-decoration: none !important; }
.pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.status.active { background: var(--ok-soft); color: var(--ok); }
.status.pending { background: #FEF0C7; color: #93370D; }
.status.blocked { background: var(--danger-soft); color: var(--danger); }
.u-cell { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.u-cell img, .u-cell .av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sky-soft); color: var(--sky); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.u-cell b { display: flex; align-items: center; gap: 4px; }
.u-cell .badge { width: 15px; height: 15px; color: var(--sky-2); }
.u-cell small { display: block; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Erro */
.err-page { text-align: center; }
.err-page .big { font-size: 3.2rem; font-weight: 800; color: var(--navy); letter-spacing: -.04em; }
.preview-cap .ic { width: 13px; height: 13px; vertical-align: -2px; }
.p-main p .ic { width: 15px; height: 15px; vertical-align: -3px; }
.bg-thumb { height: 130px; border-radius: 12px; background-size: cover; background-position: center; margin-bottom: 10px; border: 1px solid var(--line); }
.range { width: 100%; accent-color: var(--navy); margin-top: 8px; padding: 0; border: 0; }
