:root {
  --navy: #0b1630; --navy-2: #13213f; --teal: #0fb5a6; --teal-2: #0a9488; --teal-soft: #e6f7f5;
  --bg: #f4f6fb; --ink: #0f172a; --muted: #64748b; --line: #e5e9f2; --radius: 14px;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  --bs-primary: #0fb5a6; --bs-primary-rgb: 15,181,166; --bs-link-color: #0a9488; --bs-link-color-rgb: 10,148,136;
}
body { background: var(--bg); color: var(--ink); font-family: var(--bs-body-font-family); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }

/* ---------- Sidebar ---------- */
.sidebar { width: 260px; min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%) !important; color: #cbd5e1; }
.sidebar.offcanvas-lg { --bs-offcanvas-bg: var(--navy); --bs-offcanvas-color: #cbd5e1; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.25rem; padding: 1.4rem 1.25rem 1rem; letter-spacing: -.01em; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 1.1rem; }
.brand span { color: var(--teal); }
.nav-sec { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #64748b; padding: 1.1rem 1.4rem .4rem; font-weight: 700; }
.sidebar .nav-link { color: #cbd5e1; margin: 2px .75rem; padding: .6rem .8rem; border-radius: 10px; font-weight: 500; font-size: .92rem; display: flex; align-items: center; gap: .7rem; }
.sidebar .nav-link i { font-size: 1.05rem; opacity: .85; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar .nav-link.active { color: #fff; background: rgba(15,181,166,.18); box-shadow: inset 3px 0 0 var(--teal); }
.sidebar .nav-link.active i { color: var(--teal); opacity: 1; }
.side-foot { margin-top: auto; padding: 1rem; border-top: 1px solid rgba(255,255,255,.07); }
.side-foot .plano { background: rgba(255,255,255,.05); border-radius: 12px; padding: .8rem; font-size: .8rem; color: #cbd5e1; }
.side-foot .plano b { color: #fff; }
.progress-thin { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress-thin > div { height: 100%; background: var(--teal); }

/* ---------- Topbar ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: .7rem 1.5rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 10; }
.topbar .conta { font-weight: 700; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-2); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.impersonate { background: #1e293b; color: #fde68a; font-size: .85rem; padding: .5rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.impersonate a { color: #fff; font-weight: 600; }

/* ---------- Content ---------- */
.content { padding: 1.75rem 1.5rem 3rem; max-width: 1400px; }
h1.page { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: .25rem; }
.page-sub { color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -18px rgba(15,23,42,.18); }
.card-title-sm { font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.kpi { padding: 1.1rem 1.2rem; display: flex; gap: 1rem; align-items: flex-start; height: 100%; }
.kpi .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.kpi .rotulo { font-size: .78rem; color: var(--muted); font-weight: 600; }
.kpi .valor { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.kpi .sub { font-size: .8rem; color: var(--muted); }
.ico-teal { background: var(--teal-soft); color: var(--teal-2); }
.ico-red { background: #fdecec; color: #dc2626; }
.ico-amber { background: #fef6e4; color: #d97706; }
.ico-slate { background: #eef2f7; color: #475569; }
.ico-blue { background: #e8f0fe; color: #2563eb; }
.ico-violet { background: #f1ecfe; color: #7c3aed; }

.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--teal); --bs-btn-border-color: var(--teal); --bs-btn-hover-bg: var(--teal-2); --bs-btn-hover-border-color: var(--teal-2); --bs-btn-active-bg: var(--teal-2); --bs-btn-disabled-bg: var(--teal); --bs-btn-disabled-border-color: var(--teal); }
.btn-dark { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); }
.form-control, .form-select { border-radius: 10px; border-color: #dbe1ec; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(15,181,166,.15); }
.form-label { font-weight: 600; font-size: .82rem; color: #334155; }
.table { --bs-table-bg: transparent; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f8fafc; border-bottom: 1px solid var(--line); font-weight: 700; padding-top: .7rem; padding-bottom: .7rem; }
.table td { border-color: #eef1f6; }
.alert { border-radius: 12px; border: 0; }
.badge { font-weight: 600; padding: .4em .7em; border-radius: 999px; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty i { font-size: 2rem; display: block; margin-bottom: .5rem; color: #cbd5e1; }
.steps { display: grid; gap: .75rem; }
.step { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eef2f7; font-weight: 700; font-size: .85rem; }
.step.ok .n { background: var(--teal); color: #fff; }
.step:hover { border-color: var(--teal); }

/* ---------- Publico (login, cadastro, landing) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: radial-gradient(circle at 20% 20%, rgba(15,181,166,.35), transparent 45%), linear-gradient(160deg, var(--navy), #0e2a4a); color: #e2e8f0; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-weight: 800; font-size: 2.1rem; letter-spacing: -.03em; line-height: 1.15; }
.auth-side li { margin-bottom: .7rem; }
.auth-side li i { color: var(--teal); margin-right: .5rem; }
.auth-main { display: grid; place-items: center; padding: 2rem; background: #fff; }
.auth-box { width: 100%; max-width: 400px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

.lp-nav { padding: 1.1rem 0; }
.lp-hero { background: radial-gradient(circle at 80% 0%, rgba(15,181,166,.28), transparent 40%), linear-gradient(170deg, var(--navy), #0e2a4a); color: #cbd5e1; padding: 0 0 6rem; }
.lp-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -.035em; line-height: 1.08; }
.lp-hero .lead { font-size: 1.15rem; color: #cbd5e1; }
.lp-hero .brand { padding: 0; }
.lp-mock { background: #fff; border-radius: 18px; padding: 1.2rem; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); color: var(--ink); }
.lp-feat .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem; }
.lp-sec { padding: 5rem 0; }
.lp-sec h2 { font-weight: 800; letter-spacing: -.03em; }
.plan { padding: 1.8rem; height: 100%; display: flex; flex-direction: column; }
.plan.destaque { border: 2px solid var(--teal); position: relative; }
.plan .preco { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; }
.plan li { padding: .3rem 0; }
.plan li i { color: var(--teal); margin-right: .4rem; }
.tag-destaque { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.lp-foot { background: var(--navy); color: #94a3b8; padding: 2rem 0; font-size: .9rem; }
